@finueva/drive 0.14.0 → 0.15.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.
@@ -228,6 +228,8 @@ interface operations {
228
228
  query?: {
229
229
  limit?: number;
230
230
  cursor?: string;
231
+ /** @description Comma-separated exact lowercase media types (1–16 unique values). Filters published current files before pagination. */
232
+ mediaTypes?: string;
231
233
  };
232
234
  header?: never;
233
235
  path?: never;
@@ -4184,6 +4186,7 @@ interface operations {
4184
4186
  content: {
4185
4187
  "application/json": {
4186
4188
  byteLength: number;
4189
+ contentMd5?: string;
4187
4190
  digest: string;
4188
4191
  expectedVersionId: string;
4189
4192
  };
@@ -4200,11 +4203,29 @@ interface operations {
4200
4203
  expiresAtEpochMilliseconds: number;
4201
4204
  itemId: string;
4202
4205
  /** @enum {string} */
4203
- mode: "presigned-multipart" | "server-mediated-zero-byte";
4206
+ mode: "presigned-multipart" | "server-mediated-zero-byte" | "presigned-single";
4204
4207
  /** @enum {number} */
4205
4208
  partByteLength: 33554432;
4206
4209
  partCount: number;
4207
4210
  revision: number;
4211
+ singleUpload?: {
4212
+ descriptor: {
4213
+ expectedByteLength: number;
4214
+ expiresAtEpochMilliseconds: number;
4215
+ headers: {
4216
+ "content-md5": string;
4217
+ "content-type": string;
4218
+ /** @enum {string} */
4219
+ "if-none-match": "*";
4220
+ };
4221
+ /** @enum {string} */
4222
+ method: "PUT";
4223
+ /** Format: uri */
4224
+ url: string;
4225
+ } | null;
4226
+ /** @enum {string} */
4227
+ state: "uploading" | "completing" | "ready";
4228
+ };
4208
4229
  uploadId: string;
4209
4230
  versionId: string;
4210
4231
  };
@@ -4220,11 +4241,29 @@ interface operations {
4220
4241
  expiresAtEpochMilliseconds: number;
4221
4242
  itemId: string;
4222
4243
  /** @enum {string} */
4223
- mode: "presigned-multipart" | "server-mediated-zero-byte";
4244
+ mode: "presigned-multipart" | "server-mediated-zero-byte" | "presigned-single";
4224
4245
  /** @enum {number} */
4225
4246
  partByteLength: 33554432;
4226
4247
  partCount: number;
4227
4248
  revision: number;
4249
+ singleUpload?: {
4250
+ descriptor: {
4251
+ expectedByteLength: number;
4252
+ expiresAtEpochMilliseconds: number;
4253
+ headers: {
4254
+ "content-md5": string;
4255
+ "content-type": string;
4256
+ /** @enum {string} */
4257
+ "if-none-match": "*";
4258
+ };
4259
+ /** @enum {string} */
4260
+ method: "PUT";
4261
+ /** Format: uri */
4262
+ url: string;
4263
+ } | null;
4264
+ /** @enum {string} */
4265
+ state: "uploading" | "completing" | "ready";
4266
+ };
4228
4267
  uploadId: string;
4229
4268
  versionId: string;
4230
4269
  };
@@ -5330,6 +5369,8 @@ interface operations {
5330
5369
  "application/json": {
5331
5370
  /** @description Caller-declared whole-file SHA-256 metadata; it is not archive verification evidence. */
5332
5371
  callerDeclaredContentDigest: string;
5372
+ /** @description Requests a conditional single PUT for a nonempty file up to 8 MiB. */
5373
+ contentMd5?: string;
5333
5374
  displayFilename: string;
5334
5375
  expectedByteLength: number;
5335
5376
  mediaType: string;
@@ -5350,11 +5391,29 @@ interface operations {
5350
5391
  expiresAtEpochMilliseconds: number;
5351
5392
  itemId: string;
5352
5393
  /** @enum {string} */
5353
- mode: "presigned-multipart" | "server-mediated-zero-byte";
5394
+ mode: "presigned-multipart" | "server-mediated-zero-byte" | "presigned-single";
5354
5395
  /** @enum {number} */
5355
5396
  partByteLength: 33554432;
5356
5397
  partCount: number;
5357
5398
  revision: number;
5399
+ singleUpload?: {
5400
+ descriptor: {
5401
+ expectedByteLength: number;
5402
+ expiresAtEpochMilliseconds: number;
5403
+ headers: {
5404
+ "content-md5": string;
5405
+ "content-type": string;
5406
+ /** @enum {string} */
5407
+ "if-none-match": "*";
5408
+ };
5409
+ /** @enum {string} */
5410
+ method: "PUT";
5411
+ /** Format: uri */
5412
+ url: string;
5413
+ } | null;
5414
+ /** @enum {string} */
5415
+ state: "uploading" | "completing" | "ready";
5416
+ };
5358
5417
  uploadId: string;
5359
5418
  versionId: string;
5360
5419
  };
@@ -5370,11 +5429,29 @@ interface operations {
5370
5429
  expiresAtEpochMilliseconds: number;
5371
5430
  itemId: string;
5372
5431
  /** @enum {string} */
5373
- mode: "presigned-multipart" | "server-mediated-zero-byte";
5432
+ mode: "presigned-multipart" | "server-mediated-zero-byte" | "presigned-single";
5374
5433
  /** @enum {number} */
5375
5434
  partByteLength: 33554432;
5376
5435
  partCount: number;
5377
5436
  revision: number;
5437
+ singleUpload?: {
5438
+ descriptor: {
5439
+ expectedByteLength: number;
5440
+ expiresAtEpochMilliseconds: number;
5441
+ headers: {
5442
+ "content-md5": string;
5443
+ "content-type": string;
5444
+ /** @enum {string} */
5445
+ "if-none-match": "*";
5446
+ };
5447
+ /** @enum {string} */
5448
+ method: "PUT";
5449
+ /** Format: uri */
5450
+ url: string;
5451
+ } | null;
5452
+ /** @enum {string} */
5453
+ state: "uploading" | "completing" | "ready";
5454
+ };
5378
5455
  uploadId: string;
5379
5456
  versionId: string;
5380
5457
  };
@@ -5566,7 +5643,7 @@ interface operations {
5566
5643
  /** @enum {string} */
5567
5644
  lifecycle: "initiating" | "recovery-required" | "uploading" | "completing" | "provider-completed" | "verifying" | "failed" | "ready" | "aborting" | "aborted";
5568
5645
  /** @enum {string} */
5569
- mode: "presigned-multipart" | "server-mediated-zero-byte";
5646
+ mode: "presigned-multipart" | "server-mediated-zero-byte" | "presigned-single";
5570
5647
  nextAfterPartNumber: number | null;
5571
5648
  partPolicy: {
5572
5649
  /** @enum {number} */
@@ -5577,7 +5654,7 @@ interface operations {
5577
5654
  };
5578
5655
  ready: {
5579
5656
  byteLength: number;
5580
- /** @description Caller-declared whole-file SHA-256. Portable profiles independently verify file bytes before publication; legacy profiles retain provider-checksum semantics. */
5657
+ /** @description Caller-declared whole-file SHA-256. Drive independently verifies archive bytes before publication. */
5581
5658
  callerDeclaredContentDigest: string;
5582
5659
  displayFilename: string;
5583
5660
  itemId: string;
@@ -5870,7 +5947,7 @@ interface operations {
5870
5947
  content: {
5871
5948
  "application/json": {
5872
5949
  byteLength: number;
5873
- /** @description Caller-declared whole-file SHA-256. Portable profiles independently verify file bytes before publication; legacy profiles retain provider-checksum semantics. */
5950
+ /** @description Caller-declared whole-file SHA-256. Drive independently verifies archive bytes before publication. */
5874
5951
  callerDeclaredContentDigest: string;
5875
5952
  displayFilename: string;
5876
5953
  itemId: string;
@@ -6396,7 +6473,7 @@ interface operations {
6396
6473
  content: {
6397
6474
  "application/json": {
6398
6475
  byteLength: number;
6399
- /** @description Caller-declared whole-file SHA-256. Portable profiles independently verify file bytes before publication; legacy profiles retain provider-checksum semantics. */
6476
+ /** @description Caller-declared whole-file SHA-256. Drive independently verifies archive bytes before publication. */
6400
6477
  callerDeclaredContentDigest: string;
6401
6478
  displayFilename: string;
6402
6479
  itemId: string;
@@ -6695,6 +6772,7 @@ type IncomingSharePage = Readonly<{
6695
6772
  nextCursor: string | null;
6696
6773
  }>;
6697
6774
  interface ListIncomingSharesInput {
6775
+ readonly mediaTypes?: readonly string[];
6698
6776
  readonly limit?: number;
6699
6777
  readonly cursor?: string;
6700
6778
  readonly signal?: AbortSignal;