@uniformdev/assets 20.72.3-alpha.45 → 20.72.3-alpha.52

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.
package/dist/index.d.mts CHANGED
@@ -1122,6 +1122,14 @@ interface paths {
1122
1122
  * This internal status is subject to change without notice and is thus marked deprecated to discourage use of internal data
1123
1123
  */
1124
1124
  withUIStatus?: components["parameters"]["withUIStatus"];
1125
+ /**
1126
+ * @description Controls filtering of trashed items.
1127
+ *
1128
+ * exclude: (default) Only return items not in trash.
1129
+ * only: Only return trashed items (for trash view).
1130
+ * include: Return both trashed and non-trashed items.
1131
+ */
1132
+ deleted?: components["parameters"]["deleted"];
1125
1133
  };
1126
1134
  header?: never;
1127
1135
  path?: never;
@@ -1157,7 +1165,10 @@ interface paths {
1157
1165
  500: components["responses"]["InternalServerError"];
1158
1166
  };
1159
1167
  };
1160
- /** @description Upserts an asset */
1168
+ /**
1169
+ * @description Creates or updates assets. Submitting the ID of a trashed asset restores it.
1170
+ * A file-backed asset must include its original file reference when restored.
1171
+ */
1161
1172
  put: {
1162
1173
  parameters: {
1163
1174
  query?: never;
@@ -1199,7 +1210,10 @@ interface paths {
1199
1210
  };
1200
1211
  };
1201
1212
  post?: never;
1202
- /** @description Deletes or unpublishes an asset */
1213
+ /**
1214
+ * @description Moves an asset to trash. Trashed assets are omitted from default GET results and
1215
+ * permanently deleted after the configured retention period.
1216
+ */
1203
1217
  delete: {
1204
1218
  parameters: {
1205
1219
  query?: never;
@@ -1212,12 +1226,12 @@ interface paths {
1212
1226
  "application/json": {
1213
1227
  /**
1214
1228
  * Format: uuid
1215
- * @description The ID of the asset to delete
1229
+ * @description The ID of the asset to move to trash
1216
1230
  */
1217
1231
  assetId: string;
1218
1232
  /**
1219
1233
  * Format: uuid
1220
- * @description The ID of the project the asset to delete belongs to
1234
+ * @description The ID of the project the asset belongs to
1221
1235
  */
1222
1236
  projectId: string;
1223
1237
  /**
@@ -1300,8 +1314,12 @@ interface components {
1300
1314
  /** @constant */
1301
1315
  type: "text";
1302
1316
  };
1317
+ /** @description An asset can reference at most one file. A file can be attached to only one asset. */
1303
1318
  file?: {
1304
- /** Format: uuid */
1319
+ /**
1320
+ * Format: uuid
1321
+ * @description File ID to attach. A trashed file cannot be attached to an active asset.
1322
+ */
1305
1323
  value: string;
1306
1324
  /** @constant */
1307
1325
  type: "file";
@@ -1370,8 +1388,12 @@ interface components {
1370
1388
  /** @constant */
1371
1389
  type: "text";
1372
1390
  };
1391
+ /** @description An asset can reference at most one file. A file can be attached to only one asset. */
1373
1392
  file?: {
1374
- /** Format: uuid */
1393
+ /**
1394
+ * Format: uuid
1395
+ * @description File ID to attach. A trashed file cannot be attached to an active asset.
1396
+ */
1375
1397
  value: string;
1376
1398
  /** @constant */
1377
1399
  type: "file";
@@ -1405,6 +1427,11 @@ interface components {
1405
1427
  * @description Modified date string for this definition
1406
1428
  */
1407
1429
  modified: string;
1430
+ /**
1431
+ * Format: date-time
1432
+ * @description Timestamp when the item was moved to trash. Omitted if not in trash.
1433
+ */
1434
+ deletedAt?: string;
1408
1435
  /**
1409
1436
  * Format: uuid
1410
1437
  * @description The release this asset belongs to. If not set, the asset belongs to the base
@@ -1707,6 +1734,14 @@ interface components {
1707
1734
  * This internal status is subject to change without notice and is thus marked deprecated to discourage use of internal data
1708
1735
  */
1709
1736
  withUIStatus: boolean;
1737
+ /**
1738
+ * @description Controls filtering of trashed items.
1739
+ *
1740
+ * exclude: (default) Only return items not in trash.
1741
+ * only: Only return trashed items (for trash view).
1742
+ * include: Return both trashed and non-trashed items.
1743
+ */
1744
+ deleted: "exclude" | "only" | "include";
1710
1745
  };
1711
1746
  requestBodies: never;
1712
1747
  headers: never;
package/dist/index.d.ts CHANGED
@@ -1122,6 +1122,14 @@ interface paths {
1122
1122
  * This internal status is subject to change without notice and is thus marked deprecated to discourage use of internal data
1123
1123
  */
1124
1124
  withUIStatus?: components["parameters"]["withUIStatus"];
1125
+ /**
1126
+ * @description Controls filtering of trashed items.
1127
+ *
1128
+ * exclude: (default) Only return items not in trash.
1129
+ * only: Only return trashed items (for trash view).
1130
+ * include: Return both trashed and non-trashed items.
1131
+ */
1132
+ deleted?: components["parameters"]["deleted"];
1125
1133
  };
1126
1134
  header?: never;
1127
1135
  path?: never;
@@ -1157,7 +1165,10 @@ interface paths {
1157
1165
  500: components["responses"]["InternalServerError"];
1158
1166
  };
1159
1167
  };
1160
- /** @description Upserts an asset */
1168
+ /**
1169
+ * @description Creates or updates assets. Submitting the ID of a trashed asset restores it.
1170
+ * A file-backed asset must include its original file reference when restored.
1171
+ */
1161
1172
  put: {
1162
1173
  parameters: {
1163
1174
  query?: never;
@@ -1199,7 +1210,10 @@ interface paths {
1199
1210
  };
1200
1211
  };
1201
1212
  post?: never;
1202
- /** @description Deletes or unpublishes an asset */
1213
+ /**
1214
+ * @description Moves an asset to trash. Trashed assets are omitted from default GET results and
1215
+ * permanently deleted after the configured retention period.
1216
+ */
1203
1217
  delete: {
1204
1218
  parameters: {
1205
1219
  query?: never;
@@ -1212,12 +1226,12 @@ interface paths {
1212
1226
  "application/json": {
1213
1227
  /**
1214
1228
  * Format: uuid
1215
- * @description The ID of the asset to delete
1229
+ * @description The ID of the asset to move to trash
1216
1230
  */
1217
1231
  assetId: string;
1218
1232
  /**
1219
1233
  * Format: uuid
1220
- * @description The ID of the project the asset to delete belongs to
1234
+ * @description The ID of the project the asset belongs to
1221
1235
  */
1222
1236
  projectId: string;
1223
1237
  /**
@@ -1300,8 +1314,12 @@ interface components {
1300
1314
  /** @constant */
1301
1315
  type: "text";
1302
1316
  };
1317
+ /** @description An asset can reference at most one file. A file can be attached to only one asset. */
1303
1318
  file?: {
1304
- /** Format: uuid */
1319
+ /**
1320
+ * Format: uuid
1321
+ * @description File ID to attach. A trashed file cannot be attached to an active asset.
1322
+ */
1305
1323
  value: string;
1306
1324
  /** @constant */
1307
1325
  type: "file";
@@ -1370,8 +1388,12 @@ interface components {
1370
1388
  /** @constant */
1371
1389
  type: "text";
1372
1390
  };
1391
+ /** @description An asset can reference at most one file. A file can be attached to only one asset. */
1373
1392
  file?: {
1374
- /** Format: uuid */
1393
+ /**
1394
+ * Format: uuid
1395
+ * @description File ID to attach. A trashed file cannot be attached to an active asset.
1396
+ */
1375
1397
  value: string;
1376
1398
  /** @constant */
1377
1399
  type: "file";
@@ -1405,6 +1427,11 @@ interface components {
1405
1427
  * @description Modified date string for this definition
1406
1428
  */
1407
1429
  modified: string;
1430
+ /**
1431
+ * Format: date-time
1432
+ * @description Timestamp when the item was moved to trash. Omitted if not in trash.
1433
+ */
1434
+ deletedAt?: string;
1408
1435
  /**
1409
1436
  * Format: uuid
1410
1437
  * @description The release this asset belongs to. If not set, the asset belongs to the base
@@ -1707,6 +1734,14 @@ interface components {
1707
1734
  * This internal status is subject to change without notice and is thus marked deprecated to discourage use of internal data
1708
1735
  */
1709
1736
  withUIStatus: boolean;
1737
+ /**
1738
+ * @description Controls filtering of trashed items.
1739
+ *
1740
+ * exclude: (default) Only return items not in trash.
1741
+ * only: Only return trashed items (for trash view).
1742
+ * include: Return both trashed and non-trashed items.
1743
+ */
1744
+ deleted: "exclude" | "only" | "include";
1710
1745
  };
1711
1746
  requestBodies: never;
1712
1747
  headers: never;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uniformdev/assets",
3
- "version": "20.72.3-alpha.45+2b8b05d58a",
3
+ "version": "20.72.3-alpha.52+f01685e1ef",
4
4
  "description": "Uniform Assets",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "main": "./dist/index.js",
@@ -37,11 +37,11 @@
37
37
  "access": "public"
38
38
  },
39
39
  "dependencies": {
40
- "@uniformdev/context": "20.72.3-alpha.45+2b8b05d58a",
41
- "@uniformdev/files": "20.72.3-alpha.45+2b8b05d58a"
40
+ "@uniformdev/context": "20.72.3-alpha.52+f01685e1ef",
41
+ "@uniformdev/files": "20.72.3-alpha.52+f01685e1ef"
42
42
  },
43
43
  "devDependencies": {
44
44
  "ts-xor": "^1.3.0"
45
45
  },
46
- "gitHead": "2b8b05d58ab275b4d29a9647feeaad47b0ab5cce"
46
+ "gitHead": "f01685e1ef0aeb05dc200ccdcdd5aba6f6cfc437"
47
47
  }