@immich/sdk 2.7.4 → 3.0.0-rc.0

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.
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Immich
3
- * 2.7.4
3
+ * 3.0.0-rc.0
4
4
  * DO NOT MODIFY - This file has been generated using oazapfts.
5
5
  * See https://www.npmjs.com/package/oazapfts
6
6
  */
@@ -112,6 +112,51 @@ export function downloadDatabaseBackup({ filename }, opts) {
112
112
  ...opts
113
113
  }));
114
114
  }
115
+ /**
116
+ * Get integrity report by type
117
+ */
118
+ export function getIntegrityReport({ cursor, limit, $type }, opts) {
119
+ return oazapfts.ok(oazapfts.fetchJson(`/admin/integrity/report${QS.query(QS.explode({
120
+ cursor,
121
+ limit,
122
+ "type": $type
123
+ }))}`, {
124
+ ...opts
125
+ }));
126
+ }
127
+ /**
128
+ * Delete integrity report item
129
+ */
130
+ export function deleteIntegrityReport({ id }, opts) {
131
+ return oazapfts.ok(oazapfts.fetchText(`/admin/integrity/report/${encodeURIComponent(id)}`, {
132
+ ...opts,
133
+ method: "DELETE"
134
+ }));
135
+ }
136
+ /**
137
+ * Download flagged file
138
+ */
139
+ export function getIntegrityReportFile({ id }, opts) {
140
+ return oazapfts.ok(oazapfts.fetchBlob(`/admin/integrity/report/${encodeURIComponent(id)}/file`, {
141
+ ...opts
142
+ }));
143
+ }
144
+ /**
145
+ * Export integrity report by type as CSV
146
+ */
147
+ export function getIntegrityReportCsv({ $type }, opts) {
148
+ return oazapfts.ok(oazapfts.fetchBlob(`/admin/integrity/report/${encodeURIComponent($type)}/csv`, {
149
+ ...opts
150
+ }));
151
+ }
152
+ /**
153
+ * Get integrity report summary
154
+ */
155
+ export function getIntegrityReportSummary(opts) {
156
+ return oazapfts.ok(oazapfts.fetchJson("/admin/integrity/summary", {
157
+ ...opts
158
+ }));
159
+ }
115
160
  /**
116
161
  * Set maintenance mode
117
162
  */
@@ -227,6 +272,18 @@ export function updateUserAdmin({ id, userAdminUpdateDto }, opts) {
227
272
  body: userAdminUpdateDto
228
273
  })));
229
274
  }
275
+ /**
276
+ * Retrieve calendar heatmap activity
277
+ */
278
+ export function getUserCalendarHeatmapAdmin({ $from, id, to, $type }, opts) {
279
+ return oazapfts.ok(oazapfts.fetchJson(`/admin/users/${encodeURIComponent(id)}/calendar-heatmap${QS.query(QS.explode({
280
+ "from": $from,
281
+ to,
282
+ "type": $type
283
+ }))}`, {
284
+ ...opts
285
+ }));
286
+ }
230
287
  /**
231
288
  * Retrieve user preferences
232
289
  */
@@ -277,10 +334,13 @@ export function getUserStatisticsAdmin({ id, isFavorite, isTrashed, visibility }
277
334
  /**
278
335
  * List all albums
279
336
  */
280
- export function getAllAlbums({ assetId, shared }, opts) {
337
+ export function getAllAlbums({ assetId, id, isOwned, isShared, name }, opts) {
281
338
  return oazapfts.ok(oazapfts.fetchJson(`/albums${QS.query(QS.explode({
282
339
  assetId,
283
- shared
340
+ id,
341
+ isOwned,
342
+ isShared,
343
+ name
284
344
  }))}`, {
285
345
  ...opts
286
346
  }));
@@ -298,11 +358,8 @@ export function createAlbum({ createAlbumDto }, opts) {
298
358
  /**
299
359
  * Add assets to albums
300
360
  */
301
- export function addAssetsToAlbums({ key, slug, albumsAddAssetsDto }, opts) {
302
- return oazapfts.ok(oazapfts.fetchJson(`/albums/assets${QS.query(QS.explode({
303
- key,
304
- slug
305
- }))}`, oazapfts.json({
361
+ export function addAssetsToAlbums({ albumsAddAssetsDto }, opts) {
362
+ return oazapfts.ok(oazapfts.fetchJson("/albums/assets", oazapfts.json({
306
363
  ...opts,
307
364
  method: "PUT",
308
365
  body: albumsAddAssetsDto
@@ -328,11 +385,10 @@ export function deleteAlbum({ id }, opts) {
328
385
  /**
329
386
  * Retrieve an album
330
387
  */
331
- export function getAlbumInfo({ id, key, slug, withoutAssets }, opts) {
388
+ export function getAlbumInfo({ id, key, slug }, opts) {
332
389
  return oazapfts.ok(oazapfts.fetchJson(`/albums/${encodeURIComponent(id)}${QS.query(QS.explode({
333
390
  key,
334
- slug,
335
- withoutAssets
391
+ slug
336
392
  }))}`, {
337
393
  ...opts
338
394
  }));
@@ -360,16 +416,24 @@ export function removeAssetFromAlbum({ id, bulkIdsDto }, opts) {
360
416
  /**
361
417
  * Add assets to an album
362
418
  */
363
- export function addAssetsToAlbum({ id, key, slug, bulkIdsDto }, opts) {
364
- return oazapfts.ok(oazapfts.fetchJson(`/albums/${encodeURIComponent(id)}/assets${QS.query(QS.explode({
365
- key,
366
- slug
367
- }))}`, oazapfts.json({
419
+ export function addAssetsToAlbum({ id, bulkIdsDto }, opts) {
420
+ return oazapfts.ok(oazapfts.fetchJson(`/albums/${encodeURIComponent(id)}/assets`, oazapfts.json({
368
421
  ...opts,
369
422
  method: "PUT",
370
423
  body: bulkIdsDto
371
424
  })));
372
425
  }
426
+ /**
427
+ * Retrieve album map markers
428
+ */
429
+ export function getAlbumMapMarkers({ id, key, slug }, opts) {
430
+ return oazapfts.ok(oazapfts.fetchJson(`/albums/${encodeURIComponent(id)}/map-markers${QS.query(QS.explode({
431
+ key,
432
+ slug
433
+ }))}`, {
434
+ ...opts
435
+ }));
436
+ }
373
437
  /**
374
438
  * Remove user from album
375
439
  */
@@ -508,24 +572,6 @@ export function copyAsset({ assetCopyDto }, opts) {
508
572
  body: assetCopyDto
509
573
  })));
510
574
  }
511
- /**
512
- * Retrieve assets by device ID
513
- */
514
- export function getAllUserAssetsByDeviceId({ deviceId }, opts) {
515
- return oazapfts.ok(oazapfts.fetchJson(`/assets/device/${encodeURIComponent(deviceId)}`, {
516
- ...opts
517
- }));
518
- }
519
- /**
520
- * Check existing assets
521
- */
522
- export function checkExistingAssets({ checkExistingAssetsDto }, opts) {
523
- return oazapfts.ok(oazapfts.fetchJson("/assets/exist", oazapfts.json({
524
- ...opts,
525
- method: "POST",
526
- body: checkExistingAssetsDto
527
- })));
528
- }
529
575
  /**
530
576
  * Run an asset job
531
577
  */
@@ -556,16 +602,6 @@ export function updateBulkAssetMetadata({ assetMetadataBulkUpsertDto }, opts) {
556
602
  body: assetMetadataBulkUpsertDto
557
603
  })));
558
604
  }
559
- /**
560
- * Get random assets
561
- */
562
- export function getRandom({ count }, opts) {
563
- return oazapfts.ok(oazapfts.fetchJson(`/assets/random${QS.query(QS.explode({
564
- count
565
- }))}`, {
566
- ...opts
567
- }));
568
- }
569
605
  /**
570
606
  * Get asset statistics
571
607
  */
@@ -681,19 +717,6 @@ export function downloadAsset({ edited, id, key, slug }, opts) {
681
717
  ...opts
682
718
  }));
683
719
  }
684
- /**
685
- * Replace asset
686
- */
687
- export function replaceAsset({ id, key, slug, assetMediaReplaceDto }, opts) {
688
- return oazapfts.ok(oazapfts.fetchJson(`/assets/${encodeURIComponent(id)}/original${QS.query(QS.explode({
689
- key,
690
- slug
691
- }))}`, oazapfts.multipart({
692
- ...opts,
693
- method: "PUT",
694
- body: assetMediaReplaceDto
695
- })));
696
- }
697
720
  /**
698
721
  * View asset thumbnail
699
722
  */
@@ -718,6 +741,54 @@ export function playAssetVideo({ id, key, slug }, opts) {
718
741
  ...opts
719
742
  }));
720
743
  }
744
+ /**
745
+ * Get HLS main playlist
746
+ */
747
+ export function getMainPlaylist({ id, key, slug }, opts) {
748
+ return oazapfts.ok(oazapfts.fetchBlob(`/assets/${encodeURIComponent(id)}/video/stream/main.m3u8${QS.query(QS.explode({
749
+ key,
750
+ slug
751
+ }))}`, {
752
+ ...opts
753
+ }));
754
+ }
755
+ /**
756
+ * End HLS streaming session
757
+ */
758
+ export function endSession({ id, key, sessionId, slug }, opts) {
759
+ return oazapfts.ok(oazapfts.fetchText(`/assets/${encodeURIComponent(id)}/video/stream/${encodeURIComponent(sessionId)}${QS.query(QS.explode({
760
+ key,
761
+ slug
762
+ }))}`, {
763
+ ...opts,
764
+ method: "DELETE"
765
+ }));
766
+ }
767
+ /**
768
+ * Get HLS media playlist
769
+ */
770
+ export function getMediaPlaylist({ id, key, sessionId, slug, variantIndex }, opts) {
771
+ return oazapfts.ok(oazapfts.fetchBlob(`/assets/${encodeURIComponent(id)}/video/stream/${encodeURIComponent(sessionId)}/${encodeURIComponent(variantIndex)}/playlist.m3u8${QS.query(QS.explode({
772
+ key,
773
+ slug
774
+ }))}`, {
775
+ ...opts
776
+ }));
777
+ }
778
+ /**
779
+ * Get HLS segment or init file
780
+ */
781
+ export function getSegment({ filename, id, key, sessionId, slug, variantIndex, xImmichHlsMsn }, opts) {
782
+ return oazapfts.ok(oazapfts.fetchBlob(`/assets/${encodeURIComponent(id)}/video/stream/${encodeURIComponent(sessionId)}/${encodeURIComponent(variantIndex)}/${encodeURIComponent(filename)}${QS.query(QS.explode({
783
+ key,
784
+ slug
785
+ }))}`, {
786
+ ...opts,
787
+ headers: oazapfts.mergeHeaders(opts?.headers, {
788
+ "x-immich-hls-msn": xImmichHlsMsn
789
+ })
790
+ }));
791
+ }
721
792
  /**
722
793
  * Register admin
723
794
  */
@@ -878,7 +949,7 @@ export function resolveDuplicates({ duplicateResolveDto }, opts) {
878
949
  })));
879
950
  }
880
951
  /**
881
- * Delete a duplicate
952
+ * Dismiss a duplicate group
882
953
  */
883
954
  export function deleteDuplicate({ id }, opts) {
884
955
  return oazapfts.ok(oazapfts.fetchText(`/duplicates/${encodeURIComponent(id)}`, {
@@ -1209,6 +1280,16 @@ export function startOAuth({ oAuthConfigDto }, opts) {
1209
1280
  body: oAuthConfigDto
1210
1281
  })));
1211
1282
  }
1283
+ /**
1284
+ * Backchannel OAuth logout
1285
+ */
1286
+ export function logoutOAuth({ oAuthBackchannelLogoutDto }, opts) {
1287
+ return oazapfts.ok(oazapfts.fetchText("/oauth/backchannel-logout", oazapfts.form({
1288
+ ...opts,
1289
+ method: "POST",
1290
+ body: oAuthBackchannelLogoutDto
1291
+ })));
1292
+ }
1212
1293
  /**
1213
1294
  * Finish OAuth
1214
1295
  */
@@ -1404,16 +1485,41 @@ export function getPersonThumbnail({ id }, opts) {
1404
1485
  /**
1405
1486
  * List all plugins
1406
1487
  */
1407
- export function getPlugins(opts) {
1408
- return oazapfts.ok(oazapfts.fetchJson("/plugins", {
1488
+ export function searchPlugins({ description, enabled, id, name, title, version }, opts) {
1489
+ return oazapfts.ok(oazapfts.fetchJson(`/plugins${QS.query(QS.explode({
1490
+ description,
1491
+ enabled,
1492
+ id,
1493
+ name,
1494
+ title,
1495
+ version
1496
+ }))}`, {
1409
1497
  ...opts
1410
1498
  }));
1411
1499
  }
1412
1500
  /**
1413
- * List all plugin triggers
1501
+ * Retrieve plugin methods
1414
1502
  */
1415
- export function getPluginTriggers(opts) {
1416
- return oazapfts.ok(oazapfts.fetchJson("/plugins/triggers", {
1503
+ export function searchPluginMethods({ description, enabled, id, name, pluginName, pluginVersion, title, trigger, $type }, opts) {
1504
+ return oazapfts.ok(oazapfts.fetchJson(`/plugins/methods${QS.query(QS.explode({
1505
+ description,
1506
+ enabled,
1507
+ id,
1508
+ name,
1509
+ pluginName,
1510
+ pluginVersion,
1511
+ title,
1512
+ trigger,
1513
+ "type": $type
1514
+ }))}`, {
1515
+ ...opts
1516
+ }));
1517
+ }
1518
+ /**
1519
+ * Retrieve workflow templates
1520
+ */
1521
+ export function searchPluginTemplates(opts) {
1522
+ return oazapfts.ok(oazapfts.fetchJson("/plugins/templates", {
1417
1523
  ...opts
1418
1524
  }));
1419
1525
  }
@@ -1490,14 +1596,13 @@ export function getExploreData(opts) {
1490
1596
  /**
1491
1597
  * Search large assets
1492
1598
  */
1493
- export function searchLargeAssets({ albumIds, city, country, createdAfter, createdBefore, deviceId, isEncoded, isFavorite, isMotion, isNotInAlbum, isOffline, lensModel, libraryId, make, minFileSize, model, ocr, personIds, rating, size, state, tagIds, takenAfter, takenBefore, trashedAfter, trashedBefore, $type, updatedAfter, updatedBefore, visibility, withDeleted, withExif }, opts) {
1599
+ export function searchLargeAssets({ albumIds, city, country, createdAfter, createdBefore, isEncoded, isFavorite, isMotion, isNotInAlbum, isOffline, lensModel, libraryId, make, minFileSize, model, ocr, personIds, rating, size, state, tagIds, takenAfter, takenBefore, trashedAfter, trashedBefore, $type, updatedAfter, updatedBefore, visibility, withDeleted, withExif }, opts) {
1494
1600
  return oazapfts.ok(oazapfts.fetchJson(`/search/large-assets${QS.query(QS.explode({
1495
1601
  albumIds,
1496
1602
  city,
1497
1603
  country,
1498
1604
  createdAfter,
1499
1605
  createdBefore,
1500
- deviceId,
1501
1606
  isEncoded,
1502
1607
  isFavorite,
1503
1608
  isMotion,
@@ -1697,14 +1802,6 @@ export function getStorage(opts) {
1697
1802
  ...opts
1698
1803
  }));
1699
1804
  }
1700
- /**
1701
- * Get theme
1702
- */
1703
- export function getTheme(opts) {
1704
- return oazapfts.ok(oazapfts.fetchJson("/server/theme", {
1705
- ...opts
1706
- }));
1707
- }
1708
1805
  /**
1709
1806
  * Get server version
1710
1807
  */
@@ -1821,12 +1918,10 @@ export function sharedLinkLogin({ key, slug, sharedLinkLoginDto }, opts) {
1821
1918
  /**
1822
1919
  * Retrieve current shared link
1823
1920
  */
1824
- export function getMySharedLink({ key, password, slug, token }, opts) {
1921
+ export function getMySharedLink({ key, slug }, opts) {
1825
1922
  return oazapfts.ok(oazapfts.fetchJson(`/shared-links/me${QS.query(QS.explode({
1826
1923
  key,
1827
- password,
1828
- slug,
1829
- token
1924
+ slug
1830
1925
  }))}`, {
1831
1926
  ...opts
1832
1927
  }));
@@ -1871,11 +1966,8 @@ export function removeSharedLinkAssets({ id, assetIdsDto }, opts) {
1871
1966
  /**
1872
1967
  * Add assets to a shared link
1873
1968
  */
1874
- export function addSharedLinkAssets({ id, key, slug, assetIdsDto }, opts) {
1875
- return oazapfts.ok(oazapfts.fetchJson(`/shared-links/${encodeURIComponent(id)}/assets${QS.query(QS.explode({
1876
- key,
1877
- slug
1878
- }))}`, oazapfts.json({
1969
+ export function addSharedLinkAssets({ id, assetIdsDto }, opts) {
1970
+ return oazapfts.ok(oazapfts.fetchJson(`/shared-links/${encodeURIComponent(id)}/assets`, oazapfts.json({
1879
1971
  ...opts,
1880
1972
  method: "PUT",
1881
1973
  body: assetIdsDto
@@ -1975,26 +2067,6 @@ export function sendSyncAck({ syncAckSetDto }, opts) {
1975
2067
  body: syncAckSetDto
1976
2068
  })));
1977
2069
  }
1978
- /**
1979
- * Get delta sync for user
1980
- */
1981
- export function getDeltaSync({ assetDeltaSyncDto }, opts) {
1982
- return oazapfts.ok(oazapfts.fetchJson("/sync/delta-sync", oazapfts.json({
1983
- ...opts,
1984
- method: "POST",
1985
- body: assetDeltaSyncDto
1986
- })));
1987
- }
1988
- /**
1989
- * Get full sync for user
1990
- */
1991
- export function getFullSyncForUser({ assetFullSyncDto }, opts) {
1992
- return oazapfts.ok(oazapfts.fetchJson("/sync/full-sync", oazapfts.json({
1993
- ...opts,
1994
- method: "POST",
1995
- body: assetFullSyncDto
1996
- })));
1997
- }
1998
2070
  /**
1999
2071
  * Stream sync changes
2000
2072
  */
@@ -2161,7 +2233,7 @@ export function tagAssets({ id, bulkIdsDto }, opts) {
2161
2233
  /**
2162
2234
  * Get time bucket
2163
2235
  */
2164
- export function getTimeBucket({ albumId, bbox, isFavorite, isTrashed, key, order, personId, slug, tagId, timeBucket, userId, visibility, withCoordinates, withPartners, withStacked }, opts) {
2236
+ export function getTimeBucket({ albumId, bbox, isFavorite, isTrashed, key, order, orderBy, personId, slug, tagId, timeBucket, userId, visibility, withCoordinates, withPartners, withStacked }, opts) {
2165
2237
  return oazapfts.ok(oazapfts.fetchJson(`/timeline/bucket${QS.query(QS.explode({
2166
2238
  albumId,
2167
2239
  bbox,
@@ -2169,6 +2241,7 @@ export function getTimeBucket({ albumId, bbox, isFavorite, isTrashed, key, order
2169
2241
  isTrashed,
2170
2242
  key,
2171
2243
  order,
2244
+ orderBy,
2172
2245
  personId,
2173
2246
  slug,
2174
2247
  tagId,
@@ -2185,7 +2258,7 @@ export function getTimeBucket({ albumId, bbox, isFavorite, isTrashed, key, order
2185
2258
  /**
2186
2259
  * Get time buckets
2187
2260
  */
2188
- export function getTimeBuckets({ albumId, bbox, isFavorite, isTrashed, key, order, personId, slug, tagId, userId, visibility, withCoordinates, withPartners, withStacked }, opts) {
2261
+ export function getTimeBuckets({ albumId, bbox, isFavorite, isTrashed, key, order, orderBy, personId, slug, tagId, userId, visibility, withCoordinates, withPartners, withStacked }, opts) {
2189
2262
  return oazapfts.ok(oazapfts.fetchJson(`/timeline/buckets${QS.query(QS.explode({
2190
2263
  albumId,
2191
2264
  bbox,
@@ -2193,6 +2266,7 @@ export function getTimeBuckets({ albumId, bbox, isFavorite, isTrashed, key, orde
2193
2266
  isTrashed,
2194
2267
  key,
2195
2268
  order,
2269
+ orderBy,
2196
2270
  personId,
2197
2271
  slug,
2198
2272
  tagId,
@@ -2259,6 +2333,18 @@ export function updateMyUser({ userUpdateMeDto }, opts) {
2259
2333
  body: userUpdateMeDto
2260
2334
  })));
2261
2335
  }
2336
+ /**
2337
+ * Retrieve calendar heatmap activity
2338
+ */
2339
+ export function getMyCalendarHeatmap({ $from, to, $type }, opts) {
2340
+ return oazapfts.ok(oazapfts.fetchJson(`/users/me/calendar-heatmap${QS.query(QS.explode({
2341
+ "from": $from,
2342
+ to,
2343
+ "type": $type
2344
+ }))}`, {
2345
+ ...opts
2346
+ }));
2347
+ }
2262
2348
  /**
2263
2349
  * Delete user product key
2264
2350
  */
@@ -2387,8 +2473,14 @@ export function getUniqueOriginalPaths(opts) {
2387
2473
  /**
2388
2474
  * List all workflows
2389
2475
  */
2390
- export function getWorkflows(opts) {
2391
- return oazapfts.ok(oazapfts.fetchJson("/workflows", {
2476
+ export function searchWorkflows({ description, enabled, id, name, trigger }, opts) {
2477
+ return oazapfts.ok(oazapfts.fetchJson(`/workflows${QS.query(QS.explode({
2478
+ description,
2479
+ enabled,
2480
+ id,
2481
+ name,
2482
+ trigger
2483
+ }))}`, {
2392
2484
  ...opts
2393
2485
  }));
2394
2486
  }
@@ -2402,6 +2494,14 @@ export function createWorkflow({ workflowCreateDto }, opts) {
2402
2494
  body: workflowCreateDto
2403
2495
  })));
2404
2496
  }
2497
+ /**
2498
+ * List all workflow triggers
2499
+ */
2500
+ export function getWorkflowTriggers(opts) {
2501
+ return oazapfts.ok(oazapfts.fetchJson("/workflows/triggers", {
2502
+ ...opts
2503
+ }));
2504
+ }
2405
2505
  /**
2406
2506
  * Delete a workflow
2407
2507
  */
@@ -2429,6 +2529,14 @@ export function updateWorkflow({ id, workflowUpdateDto }, opts) {
2429
2529
  body: workflowUpdateDto
2430
2530
  })));
2431
2531
  }
2532
+ /**
2533
+ * Retrieve a workflow
2534
+ */
2535
+ export function getWorkflowForShare({ id }, opts) {
2536
+ return oazapfts.ok(oazapfts.fetchJson(`/workflows/${encodeURIComponent(id)}/share`, {
2537
+ ...opts
2538
+ }));
2539
+ }
2432
2540
  export var ReactionLevel;
2433
2541
  (function (ReactionLevel) {
2434
2542
  ReactionLevel["Album"] = "album";
@@ -2452,6 +2560,12 @@ export var UserAvatarColor;
2452
2560
  UserAvatarColor["Gray"] = "gray";
2453
2561
  UserAvatarColor["Amber"] = "amber";
2454
2562
  })(UserAvatarColor || (UserAvatarColor = {}));
2563
+ export var IntegrityReport;
2564
+ (function (IntegrityReport) {
2565
+ IntegrityReport["UntrackedFile"] = "untracked_file";
2566
+ IntegrityReport["MissingFile"] = "missing_file";
2567
+ IntegrityReport["ChecksumMismatch"] = "checksum_mismatch";
2568
+ })(IntegrityReport || (IntegrityReport = {}));
2455
2569
  export var MaintenanceAction;
2456
2570
  (function (MaintenanceAction) {
2457
2571
  MaintenanceAction["Start"] = "start";
@@ -2490,6 +2604,11 @@ export var UserStatus;
2490
2604
  UserStatus["Removing"] = "removing";
2491
2605
  UserStatus["Deleted"] = "deleted";
2492
2606
  })(UserStatus || (UserStatus = {}));
2607
+ export var CalendarHeatmapType;
2608
+ (function (CalendarHeatmapType) {
2609
+ CalendarHeatmapType["Upload"] = "Upload";
2610
+ CalendarHeatmapType["Taken"] = "Taken";
2611
+ })(CalendarHeatmapType || (CalendarHeatmapType = {}));
2493
2612
  export var AssetOrder;
2494
2613
  (function (AssetOrder) {
2495
2614
  AssetOrder["Asc"] = "asc";
@@ -2505,21 +2624,9 @@ export var AssetVisibility;
2505
2624
  export var AlbumUserRole;
2506
2625
  (function (AlbumUserRole) {
2507
2626
  AlbumUserRole["Editor"] = "editor";
2627
+ AlbumUserRole["Owner"] = "owner";
2508
2628
  AlbumUserRole["Viewer"] = "viewer";
2509
2629
  })(AlbumUserRole || (AlbumUserRole = {}));
2510
- export var SourceType;
2511
- (function (SourceType) {
2512
- SourceType["MachineLearning"] = "machine-learning";
2513
- SourceType["Exif"] = "exif";
2514
- SourceType["Manual"] = "manual";
2515
- })(SourceType || (SourceType = {}));
2516
- export var AssetTypeEnum;
2517
- (function (AssetTypeEnum) {
2518
- AssetTypeEnum["Image"] = "IMAGE";
2519
- AssetTypeEnum["Video"] = "VIDEO";
2520
- AssetTypeEnum["Audio"] = "AUDIO";
2521
- AssetTypeEnum["Other"] = "OTHER";
2522
- })(AssetTypeEnum || (AssetTypeEnum = {}));
2523
2630
  export var BulkIdErrorReason;
2524
2631
  (function (BulkIdErrorReason) {
2525
2632
  BulkIdErrorReason["Duplicate"] = "duplicate";
@@ -2528,14 +2635,6 @@ export var BulkIdErrorReason;
2528
2635
  BulkIdErrorReason["Unknown"] = "unknown";
2529
2636
  BulkIdErrorReason["Validation"] = "validation";
2530
2637
  })(BulkIdErrorReason || (BulkIdErrorReason = {}));
2531
- export var Error;
2532
- (function (Error) {
2533
- Error["Duplicate"] = "duplicate";
2534
- Error["NoPermission"] = "no_permission";
2535
- Error["NotFound"] = "not_found";
2536
- Error["Unknown"] = "unknown";
2537
- Error["Validation"] = "validation";
2538
- })(Error || (Error = {}));
2539
2638
  export var Permission;
2540
2639
  (function (Permission) {
2541
2640
  Permission["All"] = "all";
@@ -2556,7 +2655,6 @@ export var Permission;
2556
2655
  Permission["AssetView"] = "asset.view";
2557
2656
  Permission["AssetDownload"] = "asset.download";
2558
2657
  Permission["AssetUpload"] = "asset.upload";
2559
- Permission["AssetReplace"] = "asset.replace";
2560
2658
  Permission["AssetCopy"] = "asset.copy";
2561
2659
  Permission["AssetDerive"] = "asset.derive";
2562
2660
  Permission["AssetEditGet"] = "asset.edit.get";
@@ -2698,19 +2796,18 @@ export var Permission;
2698
2796
  export var AssetMediaStatus;
2699
2797
  (function (AssetMediaStatus) {
2700
2798
  AssetMediaStatus["Created"] = "created";
2701
- AssetMediaStatus["Replaced"] = "replaced";
2702
2799
  AssetMediaStatus["Duplicate"] = "duplicate";
2703
2800
  })(AssetMediaStatus || (AssetMediaStatus = {}));
2704
- export var Action;
2705
- (function (Action) {
2706
- Action["Accept"] = "accept";
2707
- Action["Reject"] = "reject";
2708
- })(Action || (Action = {}));
2709
- export var Reason;
2710
- (function (Reason) {
2711
- Reason["Duplicate"] = "duplicate";
2712
- Reason["UnsupportedFormat"] = "unsupported-format";
2713
- })(Reason || (Reason = {}));
2801
+ export var AssetUploadAction;
2802
+ (function (AssetUploadAction) {
2803
+ AssetUploadAction["Accept"] = "accept";
2804
+ AssetUploadAction["Reject"] = "reject";
2805
+ })(AssetUploadAction || (AssetUploadAction = {}));
2806
+ export var AssetRejectReason;
2807
+ (function (AssetRejectReason) {
2808
+ AssetRejectReason["Duplicate"] = "duplicate";
2809
+ AssetRejectReason["UnsupportedFormat"] = "unsupported-format";
2810
+ })(AssetRejectReason || (AssetRejectReason = {}));
2714
2811
  export var AssetJobName;
2715
2812
  (function (AssetJobName) {
2716
2813
  AssetJobName["RefreshFaces"] = "refresh-faces";
@@ -2718,6 +2815,13 @@ export var AssetJobName;
2718
2815
  AssetJobName["RegenerateThumbnail"] = "regenerate-thumbnail";
2719
2816
  AssetJobName["TranscodeVideo"] = "transcode-video";
2720
2817
  })(AssetJobName || (AssetJobName = {}));
2818
+ export var AssetTypeEnum;
2819
+ (function (AssetTypeEnum) {
2820
+ AssetTypeEnum["Image"] = "IMAGE";
2821
+ AssetTypeEnum["Video"] = "VIDEO";
2822
+ AssetTypeEnum["Audio"] = "AUDIO";
2823
+ AssetTypeEnum["Other"] = "OTHER";
2824
+ })(AssetTypeEnum || (AssetTypeEnum = {}));
2721
2825
  export var AssetEditAction;
2722
2826
  (function (AssetEditAction) {
2723
2827
  AssetEditAction["Crop"] = "crop";
@@ -2736,6 +2840,12 @@ export var AssetMediaSize;
2736
2840
  AssetMediaSize["Preview"] = "preview";
2737
2841
  AssetMediaSize["Thumbnail"] = "thumbnail";
2738
2842
  })(AssetMediaSize || (AssetMediaSize = {}));
2843
+ export var SourceType;
2844
+ (function (SourceType) {
2845
+ SourceType["MachineLearning"] = "machine-learning";
2846
+ SourceType["Exif"] = "exif";
2847
+ SourceType["Manual"] = "manual";
2848
+ })(SourceType || (SourceType = {}));
2739
2849
  export var ManualJobName;
2740
2850
  (function (ManualJobName) {
2741
2851
  ManualJobName["PersonCleanup"] = "person-cleanup";
@@ -2744,6 +2854,15 @@ export var ManualJobName;
2744
2854
  ManualJobName["MemoryCleanup"] = "memory-cleanup";
2745
2855
  ManualJobName["MemoryCreate"] = "memory-create";
2746
2856
  ManualJobName["BackupDatabase"] = "backup-database";
2857
+ ManualJobName["IntegrityMissingFiles"] = "integrity-missing-files";
2858
+ ManualJobName["IntegrityUntrackedFiles"] = "integrity-untracked-files";
2859
+ ManualJobName["IntegrityChecksumMismatch"] = "integrity-checksum-mismatch";
2860
+ ManualJobName["IntegrityMissingFilesRefresh"] = "integrity-missing-files-refresh";
2861
+ ManualJobName["IntegrityUntrackedFilesRefresh"] = "integrity-untracked-files-refresh";
2862
+ ManualJobName["IntegrityChecksumMismatchRefresh"] = "integrity-checksum-mismatch-refresh";
2863
+ ManualJobName["IntegrityMissingFilesDeleteAll"] = "integrity-missing-files-delete-all";
2864
+ ManualJobName["IntegrityUntrackedFilesDeleteAll"] = "integrity-untracked-files-delete-all";
2865
+ ManualJobName["IntegrityChecksumMismatchDeleteAll"] = "integrity-checksum-mismatch-delete-all";
2747
2866
  })(ManualJobName || (ManualJobName = {}));
2748
2867
  export var QueueName;
2749
2868
  (function (QueueName) {
@@ -2764,6 +2883,7 @@ export var QueueName;
2764
2883
  QueueName["BackupDatabase"] = "backupDatabase";
2765
2884
  QueueName["Ocr"] = "ocr";
2766
2885
  QueueName["Workflow"] = "workflow";
2886
+ QueueName["IntegrityCheck"] = "integrityCheck";
2767
2887
  QueueName["Editor"] = "editor";
2768
2888
  })(QueueName || (QueueName = {}));
2769
2889
  export var QueueCommand;
@@ -2789,17 +2909,15 @@ export var PartnerDirection;
2789
2909
  PartnerDirection["SharedBy"] = "shared-by";
2790
2910
  PartnerDirection["SharedWith"] = "shared-with";
2791
2911
  })(PartnerDirection || (PartnerDirection = {}));
2792
- export var PluginContextType;
2793
- (function (PluginContextType) {
2794
- PluginContextType["Asset"] = "asset";
2795
- PluginContextType["Album"] = "album";
2796
- PluginContextType["Person"] = "person";
2797
- })(PluginContextType || (PluginContextType = {}));
2798
- export var PluginTriggerType;
2799
- (function (PluginTriggerType) {
2800
- PluginTriggerType["AssetCreate"] = "AssetCreate";
2801
- PluginTriggerType["PersonRecognized"] = "PersonRecognized";
2802
- })(PluginTriggerType || (PluginTriggerType = {}));
2912
+ export var WorkflowType;
2913
+ (function (WorkflowType) {
2914
+ WorkflowType["AssetV1"] = "AssetV1";
2915
+ })(WorkflowType || (WorkflowType = {}));
2916
+ export var WorkflowTrigger;
2917
+ (function (WorkflowTrigger) {
2918
+ WorkflowTrigger["AssetCreate"] = "AssetCreate";
2919
+ WorkflowTrigger["AssetMetadataExtraction"] = "AssetMetadataExtraction";
2920
+ })(WorkflowTrigger || (WorkflowTrigger = {}));
2803
2921
  export var QueueJobStatus;
2804
2922
  (function (QueueJobStatus) {
2805
2923
  QueueJobStatus["Active"] = "active";
@@ -2826,7 +2944,6 @@ export var JobName;
2826
2944
  JobName["AssetFileMigration"] = "AssetFileMigration";
2827
2945
  JobName["AssetGenerateThumbnailsQueueAll"] = "AssetGenerateThumbnailsQueueAll";
2828
2946
  JobName["AssetGenerateThumbnails"] = "AssetGenerateThumbnails";
2829
- JobName["AuditLogCleanup"] = "AuditLogCleanup";
2830
2947
  JobName["AuditTableCleanup"] = "AuditTableCleanup";
2831
2948
  JobName["DatabaseBackup"] = "DatabaseBackup";
2832
2949
  JobName["FacialRecognitionQueueAll"] = "FacialRecognitionQueueAll";
@@ -2841,6 +2958,7 @@ export var JobName;
2841
2958
  JobName["LibrarySyncFilesQueueAll"] = "LibrarySyncFilesQueueAll";
2842
2959
  JobName["LibrarySyncFiles"] = "LibrarySyncFiles";
2843
2960
  JobName["LibraryScanQueueAll"] = "LibraryScanQueueAll";
2961
+ JobName["HlsSessionCleanup"] = "HlsSessionCleanup";
2844
2962
  JobName["MemoryCleanup"] = "MemoryCleanup";
2845
2963
  JobName["MemoryGenerate"] = "MemoryGenerate";
2846
2964
  JobName["NotificationsCleanup"] = "NotificationsCleanup";
@@ -2866,7 +2984,17 @@ export var JobName;
2866
2984
  JobName["VersionCheck"] = "VersionCheck";
2867
2985
  JobName["OcrQueueAll"] = "OcrQueueAll";
2868
2986
  JobName["Ocr"] = "Ocr";
2869
- JobName["WorkflowRun"] = "WorkflowRun";
2987
+ JobName["WorkflowAssetTrigger"] = "WorkflowAssetTrigger";
2988
+ JobName["IntegrityUntrackedFilesQueueAll"] = "IntegrityUntrackedFilesQueueAll";
2989
+ JobName["IntegrityUntrackedFiles"] = "IntegrityUntrackedFiles";
2990
+ JobName["IntegrityUntrackedRefresh"] = "IntegrityUntrackedRefresh";
2991
+ JobName["IntegrityMissingFilesQueueAll"] = "IntegrityMissingFilesQueueAll";
2992
+ JobName["IntegrityMissingFiles"] = "IntegrityMissingFiles";
2993
+ JobName["IntegrityMissingFilesRefresh"] = "IntegrityMissingFilesRefresh";
2994
+ JobName["IntegrityChecksumFiles"] = "IntegrityChecksumFiles";
2995
+ JobName["IntegrityChecksumFilesRefresh"] = "IntegrityChecksumFilesRefresh";
2996
+ JobName["IntegrityDeleteReportType"] = "IntegrityDeleteReportType";
2997
+ JobName["IntegrityDeleteReports"] = "IntegrityDeleteReports";
2870
2998
  })(JobName || (JobName = {}));
2871
2999
  export var SearchSuggestionType;
2872
3000
  (function (SearchSuggestionType) {
@@ -2882,28 +3010,33 @@ export var SharedLinkType;
2882
3010
  SharedLinkType["Album"] = "ALBUM";
2883
3011
  SharedLinkType["Individual"] = "INDIVIDUAL";
2884
3012
  })(SharedLinkType || (SharedLinkType = {}));
2885
- export var Error2;
2886
- (function (Error2) {
2887
- Error2["Duplicate"] = "duplicate";
2888
- Error2["NoPermission"] = "no_permission";
2889
- Error2["NotFound"] = "not_found";
2890
- })(Error2 || (Error2 = {}));
3013
+ export var AssetIdErrorReason;
3014
+ (function (AssetIdErrorReason) {
3015
+ AssetIdErrorReason["Duplicate"] = "duplicate";
3016
+ AssetIdErrorReason["NoPermission"] = "no_permission";
3017
+ AssetIdErrorReason["NotFound"] = "not_found";
3018
+ })(AssetIdErrorReason || (AssetIdErrorReason = {}));
2891
3019
  export var SyncEntityType;
2892
3020
  (function (SyncEntityType) {
2893
3021
  SyncEntityType["AuthUserV1"] = "AuthUserV1";
2894
3022
  SyncEntityType["UserV1"] = "UserV1";
2895
3023
  SyncEntityType["UserDeleteV1"] = "UserDeleteV1";
2896
3024
  SyncEntityType["AssetV1"] = "AssetV1";
3025
+ SyncEntityType["AssetV2"] = "AssetV2";
2897
3026
  SyncEntityType["AssetDeleteV1"] = "AssetDeleteV1";
2898
3027
  SyncEntityType["AssetExifV1"] = "AssetExifV1";
2899
3028
  SyncEntityType["AssetEditV1"] = "AssetEditV1";
2900
3029
  SyncEntityType["AssetEditDeleteV1"] = "AssetEditDeleteV1";
2901
3030
  SyncEntityType["AssetMetadataV1"] = "AssetMetadataV1";
2902
3031
  SyncEntityType["AssetMetadataDeleteV1"] = "AssetMetadataDeleteV1";
3032
+ SyncEntityType["AssetOcrV1"] = "AssetOcrV1";
3033
+ SyncEntityType["AssetOcrDeleteV1"] = "AssetOcrDeleteV1";
2903
3034
  SyncEntityType["PartnerV1"] = "PartnerV1";
2904
3035
  SyncEntityType["PartnerDeleteV1"] = "PartnerDeleteV1";
2905
3036
  SyncEntityType["PartnerAssetV1"] = "PartnerAssetV1";
3037
+ SyncEntityType["PartnerAssetV2"] = "PartnerAssetV2";
2906
3038
  SyncEntityType["PartnerAssetBackfillV1"] = "PartnerAssetBackfillV1";
3039
+ SyncEntityType["PartnerAssetBackfillV2"] = "PartnerAssetBackfillV2";
2907
3040
  SyncEntityType["PartnerAssetDeleteV1"] = "PartnerAssetDeleteV1";
2908
3041
  SyncEntityType["PartnerAssetExifV1"] = "PartnerAssetExifV1";
2909
3042
  SyncEntityType["PartnerAssetExifBackfillV1"] = "PartnerAssetExifBackfillV1";
@@ -2911,13 +3044,17 @@ export var SyncEntityType;
2911
3044
  SyncEntityType["PartnerStackDeleteV1"] = "PartnerStackDeleteV1";
2912
3045
  SyncEntityType["PartnerStackV1"] = "PartnerStackV1";
2913
3046
  SyncEntityType["AlbumV1"] = "AlbumV1";
3047
+ SyncEntityType["AlbumV2"] = "AlbumV2";
2914
3048
  SyncEntityType["AlbumDeleteV1"] = "AlbumDeleteV1";
2915
3049
  SyncEntityType["AlbumUserV1"] = "AlbumUserV1";
2916
3050
  SyncEntityType["AlbumUserBackfillV1"] = "AlbumUserBackfillV1";
2917
3051
  SyncEntityType["AlbumUserDeleteV1"] = "AlbumUserDeleteV1";
2918
3052
  SyncEntityType["AlbumAssetCreateV1"] = "AlbumAssetCreateV1";
3053
+ SyncEntityType["AlbumAssetCreateV2"] = "AlbumAssetCreateV2";
2919
3054
  SyncEntityType["AlbumAssetUpdateV1"] = "AlbumAssetUpdateV1";
3055
+ SyncEntityType["AlbumAssetUpdateV2"] = "AlbumAssetUpdateV2";
2920
3056
  SyncEntityType["AlbumAssetBackfillV1"] = "AlbumAssetBackfillV1";
3057
+ SyncEntityType["AlbumAssetBackfillV2"] = "AlbumAssetBackfillV2";
2921
3058
  SyncEntityType["AlbumAssetExifCreateV1"] = "AlbumAssetExifCreateV1";
2922
3059
  SyncEntityType["AlbumAssetExifUpdateV1"] = "AlbumAssetExifUpdateV1";
2923
3060
  SyncEntityType["AlbumAssetExifBackfillV1"] = "AlbumAssetExifBackfillV1";
@@ -2944,19 +3081,24 @@ export var SyncEntityType;
2944
3081
  export var SyncRequestType;
2945
3082
  (function (SyncRequestType) {
2946
3083
  SyncRequestType["AlbumsV1"] = "AlbumsV1";
3084
+ SyncRequestType["AlbumsV2"] = "AlbumsV2";
2947
3085
  SyncRequestType["AlbumUsersV1"] = "AlbumUsersV1";
2948
3086
  SyncRequestType["AlbumToAssetsV1"] = "AlbumToAssetsV1";
2949
3087
  SyncRequestType["AlbumAssetsV1"] = "AlbumAssetsV1";
3088
+ SyncRequestType["AlbumAssetsV2"] = "AlbumAssetsV2";
2950
3089
  SyncRequestType["AlbumAssetExifsV1"] = "AlbumAssetExifsV1";
2951
3090
  SyncRequestType["AssetsV1"] = "AssetsV1";
3091
+ SyncRequestType["AssetsV2"] = "AssetsV2";
2952
3092
  SyncRequestType["AssetExifsV1"] = "AssetExifsV1";
2953
3093
  SyncRequestType["AssetEditsV1"] = "AssetEditsV1";
2954
3094
  SyncRequestType["AssetMetadataV1"] = "AssetMetadataV1";
3095
+ SyncRequestType["AssetOcrV1"] = "AssetOcrV1";
2955
3096
  SyncRequestType["AuthUsersV1"] = "AuthUsersV1";
2956
3097
  SyncRequestType["MemoriesV1"] = "MemoriesV1";
2957
3098
  SyncRequestType["MemoryToAssetsV1"] = "MemoryToAssetsV1";
2958
3099
  SyncRequestType["PartnersV1"] = "PartnersV1";
2959
3100
  SyncRequestType["PartnerAssetsV1"] = "PartnerAssetsV1";
3101
+ SyncRequestType["PartnerAssetsV2"] = "PartnerAssetsV2";
2960
3102
  SyncRequestType["PartnerAssetExifsV1"] = "PartnerAssetExifsV1";
2961
3103
  SyncRequestType["PartnerStacksV1"] = "PartnerStacksV1";
2962
3104
  SyncRequestType["StacksV1"] = "StacksV1";
@@ -2978,7 +3120,6 @@ export var AudioCodec;
2978
3120
  (function (AudioCodec) {
2979
3121
  AudioCodec["Mp3"] = "mp3";
2980
3122
  AudioCodec["Aac"] = "aac";
2981
- AudioCodec["Libopus"] = "libopus";
2982
3123
  AudioCodec["Opus"] = "opus";
2983
3124
  AudioCodec["PcmS16Le"] = "pcm_s16le";
2984
3125
  })(AudioCodec || (AudioCodec = {}));
@@ -3036,11 +3177,31 @@ export var LogLevel;
3036
3177
  LogLevel["Error"] = "error";
3037
3178
  LogLevel["Fatal"] = "fatal";
3038
3179
  })(LogLevel || (LogLevel = {}));
3180
+ export var ReleaseChannel;
3181
+ (function (ReleaseChannel) {
3182
+ ReleaseChannel["Stable"] = "stable";
3183
+ ReleaseChannel["ReleaseCandidate"] = "releaseCandidate";
3184
+ })(ReleaseChannel || (ReleaseChannel = {}));
3039
3185
  export var OAuthTokenEndpointAuthMethod;
3040
3186
  (function (OAuthTokenEndpointAuthMethod) {
3041
3187
  OAuthTokenEndpointAuthMethod["ClientSecretPost"] = "client_secret_post";
3042
3188
  OAuthTokenEndpointAuthMethod["ClientSecretBasic"] = "client_secret_basic";
3043
3189
  })(OAuthTokenEndpointAuthMethod || (OAuthTokenEndpointAuthMethod = {}));
3190
+ export var AssetOrderBy;
3191
+ (function (AssetOrderBy) {
3192
+ AssetOrderBy["TakenAt"] = "takenAt";
3193
+ AssetOrderBy["CreatedAt"] = "createdAt";
3194
+ })(AssetOrderBy || (AssetOrderBy = {}));
3195
+ export var ReleaseType;
3196
+ (function (ReleaseType) {
3197
+ ReleaseType["Major"] = "major";
3198
+ ReleaseType["Premajor"] = "premajor";
3199
+ ReleaseType["Minor"] = "minor";
3200
+ ReleaseType["Preminor"] = "preminor";
3201
+ ReleaseType["Patch"] = "patch";
3202
+ ReleaseType["Prepatch"] = "prepatch";
3203
+ ReleaseType["Prerelease"] = "prerelease";
3204
+ })(ReleaseType || (ReleaseType = {}));
3044
3205
  export var UserMetadataKey;
3045
3206
  (function (UserMetadataKey) {
3046
3207
  UserMetadataKey["Preferences"] = "preferences";