@aws-lite/s3-types 0.2.0 → 0.2.2

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 (2) hide show
  1. package/index.d.ts +120 -0
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -3,6 +3,7 @@ import {
3
3
  // $IMPORTS_START
4
4
  AbortMultipartUploadCommandOutput as AbortMultipartUploadResponse,
5
5
  CompleteMultipartUploadCommandOutput as CompleteMultipartUploadResponse,
6
+ CopyObjectCommandOutput as CopyObjectResponse,
6
7
  CreateBucketCommandOutput as CreateBucketResponse,
7
8
  CreateMultipartUploadCommandOutput as CreateMultipartUploadResponse,
8
9
  DeleteBucketCommandOutput as DeleteBucketResponse,
@@ -20,6 +21,8 @@ import {
20
21
  DeleteBucketWebsiteCommandOutput as DeleteBucketWebsiteResponse,
21
22
  DeleteObjectCommandOutput as DeleteObjectResponse,
22
23
  DeleteObjectsCommandOutput as DeleteObjectsResponse,
24
+ DeleteObjectTaggingCommandOutput as DeleteObjectTaggingResponse,
25
+ DeletePublicAccessBlockCommandOutput as DeletePublicAccessBlockResponse,
23
26
  GetBucketAccelerateConfigurationCommandOutput as GetBucketAccelerateConfigurationResponse,
24
27
  GetBucketAclCommandOutput as GetBucketAclResponse,
25
28
  GetBucketAnalyticsConfigurationCommandOutput as GetBucketAnalyticsConfigurationResponse,
@@ -41,6 +44,14 @@ import {
41
44
  GetBucketVersioningCommandOutput as GetBucketVersioningResponse,
42
45
  GetBucketWebsiteCommandOutput as GetBucketWebsiteResponse,
43
46
  GetObjectCommandOutput as GetObjectResponse,
47
+ GetObjectAclCommandOutput as GetObjectAclResponse,
48
+ GetObjectAttributesCommandOutput as GetObjectAttributesResponse,
49
+ GetObjectLegalHoldCommandOutput as GetObjectLegalHoldResponse,
50
+ GetObjectLockConfigurationCommandOutput as GetObjectLockConfigurationResponse,
51
+ GetObjectRetentionCommandOutput as GetObjectRetentionResponse,
52
+ GetObjectTaggingCommandOutput as GetObjectTaggingResponse,
53
+ GetObjectTorrentCommandOutput as GetObjectTorrentResponse,
54
+ GetPublicAccessBlockCommandOutput as GetPublicAccessBlockResponse,
44
55
  HeadBucketCommandOutput as HeadBucketResponse,
45
56
  HeadObjectCommandOutput as HeadObjectResponse,
46
57
  ListBucketAnalyticsConfigurationsCommandOutput as ListBucketAnalyticsConfigurationsResponse,
@@ -50,6 +61,8 @@ import {
50
61
  ListBucketsCommandOutput as ListBucketsResponse,
51
62
  ListMultipartUploadsCommandOutput as ListMultipartUploadsResponse,
52
63
  ListObjectsV2CommandOutput as ListObjectsV2Response,
64
+ ListObjectVersionsCommandOutput as ListObjectVersionsResponse,
65
+ ListPartsCommandOutput as ListPartsResponse,
53
66
  PutBucketAccelerateConfigurationCommandOutput as PutBucketAccelerateConfigurationResponse,
54
67
  PutBucketAnalyticsConfigurationCommandOutput as PutBucketAnalyticsConfigurationResponse,
55
68
  PutBucketCorsCommandOutput as PutBucketCorsResponse,
@@ -71,6 +84,8 @@ import {
71
84
  PutObjectLockConfigurationCommandOutput as PutObjectLockConfigurationResponse,
72
85
  PutObjectRetentionCommandOutput as PutObjectRetentionResponse,
73
86
  PutObjectTaggingCommandOutput as PutObjectTaggingResponse,
87
+ PutPublicAccessBlockCommandOutput as PutPublicAccessBlockResponse,
88
+ RestoreObjectCommandOutput as RestoreObjectResponse,
74
89
  UploadCommandOutput as UploadResponse,
75
90
  UploadPartCommandOutput as UploadPartResponse,
76
91
  // $IMPORTS_END
@@ -91,6 +106,12 @@ declare interface AwsLiteS3 {
91
106
  * - aws-lite docs: {@link https://github.com/architect/aws-lite/blob/main/plugins/s3/readme.md#CompleteMultipartUpload S3: CompleteMultipartUpload}
92
107
  */
93
108
  CompleteMultipartUpload: (input: { Bucket: string, Key: string, UploadId: string, MultipartUpload?: Record<string, any>, ChecksumCRC32?: string, ChecksumCRC32C?: string, ChecksumSHA1?: string, ChecksumSHA256?: string, RequestPayer?: string, ExpectedBucketOwner?: string, SSECustomerAlgorithm?: string, SSECustomerKey?: string, SSECustomerKeyMD5?: string }) => Promise<CompleteMultipartUploadResponse>
109
+ /**
110
+ * @description
111
+ * - AWS docs: {@link https://docs.aws.amazon.com/AmazonS3/latest/API/API_CopyObject.html S3: CopyObject}
112
+ * - aws-lite docs: {@link https://github.com/architect/aws-lite/blob/main/plugins/s3/readme.md#CopyObject S3: CopyObject}
113
+ */
114
+ CopyObject: (input: { Bucket: string, Key: string, ACL?: string, CacheControl?: string, ChecksumAlgorithm?: string, ContentDisposition?: string, ContentEncoding?: string, ContentLanguage?: string, ContentType?: string, CopySource?: string, CopySourceIfMatch?: string, CopySourceIfModifiedSince?: string, CopySourceIfNoneMatch?: string, CopySourceIfUnmodifiedSince?: string, Expires?: string, GrantFullControl?: string, GrantRead?: string, GrantReadACP?: string, GrantWriteACP?: string, MetadataDirective?: string, TaggingDirective?: string, ServerSideEncryption?: string, StorageClass?: string, WebsiteRedirectLocation?: string, SSECustomerAlgorithm?: string, SSECustomerKey?: string, SSECustomerKeyMD5?: string, SSEKMSKeyId?: string, SSEKMSEncryptionContext?: string, BucketKeyEnabled?: string, CopySourceSSECustomerAlgorithm?: string, CopySourceSSECustomerKey?: string, CopySourceSSECustomerKeyMD5?: string, RequestPayer?: string, Tagging?: string, ObjectLockMode?: string, ObjectLockRetainUntilDate?: string, ObjectLockLegalHoldStatus?: string, ExpectedBucketOwner?: string, ExpectedSourceBucketOwner?: string }) => Promise<CopyObjectResponse>
94
115
  /**
95
116
  * @description
96
117
  * - AWS docs: {@link https://docs.aws.amazon.com/AmazonS3/latest/API/API_CreateBucket.html S3: CreateBucket}
@@ -193,6 +214,18 @@ declare interface AwsLiteS3 {
193
214
  * - aws-lite docs: {@link https://github.com/architect/aws-lite/blob/main/plugins/s3/readme.md#DeleteObjects S3: DeleteObjects}
194
215
  */
195
216
  DeleteObjects: (input: { Bucket: string, Delete: Record<string, any>, MFA?: string, RequestPayer?: string, BypassGovernanceRetention?: string, ExpectedBucketOwner?: string, ChecksumAlgorithm?: string, ContentMD5?: string }) => Promise<DeleteObjectsResponse>
217
+ /**
218
+ * @description
219
+ * - AWS docs: {@link https://docs.aws.amazon.com/AmazonS3/latest/API/API_DeleteObjectTagging.html S3: DeleteObjectTagging}
220
+ * - aws-lite docs: {@link https://github.com/architect/aws-lite/blob/main/plugins/s3/readme.md#DeleteObjectTagging S3: DeleteObjectTagging}
221
+ */
222
+ DeleteObjectTagging: (input: { Bucket: string, Key: string, VersionId?: string, ExpectedBucketOwner?: string }) => Promise<DeleteObjectTaggingResponse>
223
+ /**
224
+ * @description
225
+ * - AWS docs: {@link https://docs.aws.amazon.com/AmazonS3/latest/API/API_DeletePublicAccessBlock.html S3: DeletePublicAccessBlock}
226
+ * - aws-lite docs: {@link https://github.com/architect/aws-lite/blob/main/plugins/s3/readme.md#DeletePublicAccessBlock S3: DeletePublicAccessBlock}
227
+ */
228
+ DeletePublicAccessBlock: (input: { Bucket: string, ExpectedBucketOwner?: string }) => Promise<DeletePublicAccessBlockResponse>
196
229
  /**
197
230
  * @description
198
231
  * - AWS docs: {@link https://docs.aws.amazon.com/AmazonS3/latest/API/API_GetBucketAccelerateConfiguration.html S3: GetBucketAccelerateConfiguration}
@@ -319,6 +352,54 @@ declare interface AwsLiteS3 {
319
352
  * - aws-lite docs: {@link https://github.com/architect/aws-lite/blob/main/plugins/s3/readme.md#GetObject S3: GetObject}
320
353
  */
321
354
  GetObject: (input: { Bucket: string, Key: string, PartNumber?: number, VersionId?: string, IfMatch?: string, IfModifiedSince?: string, IfNoneMatch?: string, IfUnmodifiedSince?: string, Range?: string, SSECustomerAlgorithm?: string, SSECustomerKey?: string, SSECustomerKeyMD5?: string, RequestPayer?: string, ExpectedBucketOwner?: string, ChecksumMode?: string, ResponseCacheControl?: string, ResponseContentDisposition?: string, ResponseContentEncoding?: string, ResponseContentLanguage?: string, ResponseContentType?: string, ResponseExpires?: string, rawResponsePayload?: boolean, streamResponsePayload?: boolean }) => Promise<GetObjectResponse>
355
+ /**
356
+ * @description
357
+ * - AWS docs: {@link https://docs.aws.amazon.com/AmazonS3/latest/API/API_GetObjectAcl.html S3: GetObjectAcl}
358
+ * - aws-lite docs: {@link https://github.com/architect/aws-lite/blob/main/plugins/s3/readme.md#GetObjectAcl S3: GetObjectAcl}
359
+ */
360
+ GetObjectAcl: (input: { Bucket: string, Key: string, VersionId?: string, ExpectedBucketOwner?: string, RequestPayer?: string }) => Promise<GetObjectAclResponse>
361
+ /**
362
+ * @description
363
+ * - AWS docs: {@link https://docs.aws.amazon.com/AmazonS3/latest/API/API_GetObjectAttributes.html S3: GetObjectAttributes}
364
+ * - aws-lite docs: {@link https://github.com/architect/aws-lite/blob/main/plugins/s3/readme.md#GetObjectAttributes S3: GetObjectAttributes}
365
+ */
366
+ GetObjectAttributes: (input: { Bucket: string, Key: string, ObjectAttributes: any[], VersionId?: string, MaxParts?: number, PartNumberMarker?: string, SSECustomerAlgorithm?: string, SSECustomerKey?: string, SSECustomerKeyMD5?: string, RequestPayer?: string, ExpectedBucketOwner?: string }) => Promise<GetObjectAttributesResponse>
367
+ /**
368
+ * @description
369
+ * - AWS docs: {@link https://docs.aws.amazon.com/AmazonS3/latest/API/API_GetObjectLegalHold.html S3: GetObjectLegalHold}
370
+ * - aws-lite docs: {@link https://github.com/architect/aws-lite/blob/main/plugins/s3/readme.md#GetObjectLegalHold S3: GetObjectLegalHold}
371
+ */
372
+ GetObjectLegalHold: (input: { Bucket: string, Key: string, VersionId?: string, ExpectedBucketOwner?: string, RequestPayer?: string }) => Promise<GetObjectLegalHoldResponse>
373
+ /**
374
+ * @description
375
+ * - AWS docs: {@link https://docs.aws.amazon.com/AmazonS3/latest/API/API_GetObjectLockConfiguration.html S3: GetObjectLockConfiguration}
376
+ * - aws-lite docs: {@link https://github.com/architect/aws-lite/blob/main/plugins/s3/readme.md#GetObjectLockConfiguration S3: GetObjectLockConfiguration}
377
+ */
378
+ GetObjectLockConfiguration: (input: { Bucket: string, ExpectedBucketOwner?: string }) => Promise<GetObjectLockConfigurationResponse>
379
+ /**
380
+ * @description
381
+ * - AWS docs: {@link https://docs.aws.amazon.com/AmazonS3/latest/API/API_GetObjectRetention.html S3: GetObjectRetention}
382
+ * - aws-lite docs: {@link https://github.com/architect/aws-lite/blob/main/plugins/s3/readme.md#GetObjectRetention S3: GetObjectRetention}
383
+ */
384
+ GetObjectRetention: (input: { Bucket: string, Key: string, VersionId?: string, ExpectedBucketOwner?: string, RequestPayer?: string }) => Promise<GetObjectRetentionResponse>
385
+ /**
386
+ * @description
387
+ * - AWS docs: {@link https://docs.aws.amazon.com/AmazonS3/latest/API/API_GetObjectTagging.html S3: GetObjectTagging}
388
+ * - aws-lite docs: {@link https://github.com/architect/aws-lite/blob/main/plugins/s3/readme.md#GetObjectTagging S3: GetObjectTagging}
389
+ */
390
+ GetObjectTagging: (input: { Bucket: string, Key: string, VersionId?: string, ExpectedBucketOwner?: string, RequestPayer?: string }) => Promise<GetObjectTaggingResponse>
391
+ /**
392
+ * @description
393
+ * - AWS docs: {@link https://docs.aws.amazon.com/AmazonS3/latest/API/API_GetObjectTorrent.html S3: GetObjectTorrent}
394
+ * - aws-lite docs: {@link https://github.com/architect/aws-lite/blob/main/plugins/s3/readme.md#GetObjectTorrent S3: GetObjectTorrent}
395
+ */
396
+ GetObjectTorrent: (input: { Bucket: string, Key: string, ExpectedBucketOwner?: string, RequestPayer?: string }) => Promise<GetObjectTorrentResponse>
397
+ /**
398
+ * @description
399
+ * - AWS docs: {@link https://docs.aws.amazon.com/AmazonS3/latest/API/API_GetPublicAccessBlock.html S3: GetPublicAccessBlock}
400
+ * - aws-lite docs: {@link https://github.com/architect/aws-lite/blob/main/plugins/s3/readme.md#GetPublicAccessBlock S3: GetPublicAccessBlock}
401
+ */
402
+ GetPublicAccessBlock: (input: { Bucket: string, ExpectedBucketOwner?: string }) => Promise<GetPublicAccessBlockResponse>
322
403
  /**
323
404
  * @description
324
405
  * - AWS docs: {@link https://docs.aws.amazon.com/AmazonS3/latest/API/API_HeadBucket.html S3: HeadBucket}
@@ -369,6 +450,18 @@ declare interface AwsLiteS3 {
369
450
  * - aws-lite docs: {@link https://github.com/architect/aws-lite/blob/main/plugins/s3/readme.md#ListObjectsV2 S3: ListObjectsV2}
370
451
  */
371
452
  ListObjectsV2: (input: { Bucket: string, ContinuationToken?: string, Delimiter?: string, EncodingType?: string, FetchOwner?: string, MaxKeys?: number, Prefix?: string, StartAfter?: string, RequestPayer?: string, ExpectedBucketOwner?: string, OptionalObjectAttributes?: string, paginate?: boolean }) => Promise<ListObjectsV2Response>
453
+ /**
454
+ * @description
455
+ * - AWS docs: {@link https://docs.aws.amazon.com/AmazonS3/latest/API/API_ListObjectVersions.html S3: ListObjectVersions}
456
+ * - aws-lite docs: {@link https://github.com/architect/aws-lite/blob/main/plugins/s3/readme.md#ListObjectVersions S3: ListObjectVersions}
457
+ */
458
+ ListObjectVersions: (input: { Bucket: string, Delimiter?: string, EncodingType?: string, KeyMarker?: string, MaxKeys?: number, Prefix?: string, VersionIdMarker?: string, ExpectedBucketOwner?: string, RequestPayer?: string, OptionalObjectAttributes?: string }) => Promise<ListObjectVersionsResponse>
459
+ /**
460
+ * @description
461
+ * - AWS docs: {@link https://docs.aws.amazon.com/AmazonS3/latest/API/API_ListParts.html S3: ListParts}
462
+ * - aws-lite docs: {@link https://github.com/architect/aws-lite/blob/main/plugins/s3/readme.md#ListParts S3: ListParts}
463
+ */
464
+ ListParts: (input: { Bucket: string, Key: string, UploadId: string, MaxParts?: number, PartNumberMarker?: string, RequestPayer?: string, ExpectedBucketOwner?: string, SSECustomerAlgorithm?: string, SSECustomerKey?: string, SSECustomerKeyMD5?: string }) => Promise<ListPartsResponse>
372
465
  /**
373
466
  * @description
374
467
  * - AWS docs: {@link https://docs.aws.amazon.com/AmazonS3/latest/API/API_PutBucketAccelerateConfiguration.html S3: PutBucketAccelerateConfiguration}
@@ -495,6 +588,18 @@ declare interface AwsLiteS3 {
495
588
  * - aws-lite docs: {@link https://github.com/architect/aws-lite/blob/main/plugins/s3/readme.md#PutObjectTagging S3: PutObjectTagging}
496
589
  */
497
590
  PutObjectTagging: (input: { Bucket: string, Key: string, VersionId?: string, Tagging: Record<string, any>, ContentMD5?: string, ChecksumAlgorithm?: string, ExpectedBucketOwner?: string, RequestPayer?: string }) => Promise<PutObjectTaggingResponse>
591
+ /**
592
+ * @description
593
+ * - AWS docs: {@link https://docs.aws.amazon.com/AmazonS3/latest/API/API_PutPublicAccessBlock.html S3: PutPublicAccessBlock}
594
+ * - aws-lite docs: {@link https://github.com/architect/aws-lite/blob/main/plugins/s3/readme.md#PutPublicAccessBlock S3: PutPublicAccessBlock}
595
+ */
596
+ PutPublicAccessBlock: (input: { Bucket: string, PublicAccessBlockConfiguration: Record<string, any>, ContentMD5?: string, ChecksumAlgorithm?: string, ExpectedBucketOwner?: string }) => Promise<PutPublicAccessBlockResponse>
597
+ /**
598
+ * @description
599
+ * - AWS docs: {@link https://docs.aws.amazon.com/AmazonS3/latest/API/API_RestoreObject.html S3: RestoreObject}
600
+ * - aws-lite docs: {@link https://github.com/architect/aws-lite/blob/main/plugins/s3/readme.md#RestoreObject S3: RestoreObject}
601
+ */
602
+ RestoreObject: (input: { Bucket: string, Key: string, RestoreRequest: Record<string, any>, VersionId?: string, RequestPayer?: string, ChecksumAlgorithm?: string, ExpectedBucketOwner?: string }) => Promise<RestoreObjectResponse>
498
603
  /**
499
604
  * @description
500
605
  * - aws-lite docs: {@link https://github.com/architect/aws-lite/blob/main/plugins/s3/readme.md#Upload S3: Upload}
@@ -521,6 +626,7 @@ export type {
521
626
  // $EXPORT_START
522
627
  AbortMultipartUploadResponse,
523
628
  CompleteMultipartUploadResponse,
629
+ CopyObjectResponse,
524
630
  CreateBucketResponse,
525
631
  CreateMultipartUploadResponse,
526
632
  DeleteBucketResponse,
@@ -538,6 +644,8 @@ export type {
538
644
  DeleteBucketWebsiteResponse,
539
645
  DeleteObjectResponse,
540
646
  DeleteObjectsResponse,
647
+ DeleteObjectTaggingResponse,
648
+ DeletePublicAccessBlockResponse,
541
649
  GetBucketAccelerateConfigurationResponse,
542
650
  GetBucketAclResponse,
543
651
  GetBucketAnalyticsConfigurationResponse,
@@ -559,6 +667,14 @@ export type {
559
667
  GetBucketVersioningResponse,
560
668
  GetBucketWebsiteResponse,
561
669
  GetObjectResponse,
670
+ GetObjectAclResponse,
671
+ GetObjectAttributesResponse,
672
+ GetObjectLegalHoldResponse,
673
+ GetObjectLockConfigurationResponse,
674
+ GetObjectRetentionResponse,
675
+ GetObjectTaggingResponse,
676
+ GetObjectTorrentResponse,
677
+ GetPublicAccessBlockResponse,
562
678
  HeadBucketResponse,
563
679
  HeadObjectResponse,
564
680
  ListBucketAnalyticsConfigurationsResponse,
@@ -568,6 +684,8 @@ export type {
568
684
  ListBucketsResponse,
569
685
  ListMultipartUploadsResponse,
570
686
  ListObjectsV2Response,
687
+ ListObjectVersionsResponse,
688
+ ListPartsResponse,
571
689
  PutBucketAccelerateConfigurationResponse,
572
690
  PutBucketAnalyticsConfigurationResponse,
573
691
  PutBucketCorsResponse,
@@ -589,6 +707,8 @@ export type {
589
707
  PutObjectLockConfigurationResponse,
590
708
  PutObjectRetentionResponse,
591
709
  PutObjectTaggingResponse,
710
+ PutPublicAccessBlockResponse,
711
+ RestoreObjectResponse,
592
712
  UploadResponse,
593
713
  UploadPartResponse,
594
714
  // $EXPORT_END
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-lite/s3-types",
3
- "version": "0.2.0",
3
+ "version": "0.2.2",
4
4
  "description": "Type definitions for the `@aws-lite/s3` plugin",
5
5
  "homepage": "https://aws-lite.org/services/s3",
6
6
  "repository": {