@tachybase/module-file 0.23.8
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/README.md +9 -0
- package/README.zh-CN.md +9 -0
- package/client.d.ts +2 -0
- package/client.js +1 -0
- package/dist/client/FileManagerProvider.d.ts +4 -0
- package/dist/client/FileStorage.d.ts +4 -0
- package/dist/client/StorageOptions.d.ts +2 -0
- package/dist/client/hooks/index.d.ts +1 -0
- package/dist/client/hooks/useUploadFiles.d.ts +9 -0
- package/dist/client/index.d.ts +7 -0
- package/dist/client/index.js +1 -0
- package/dist/client/initializers/UploadActionInitializer.d.ts +2 -0
- package/dist/client/initializers/index.d.ts +1 -0
- package/dist/client/interfaces/attachment.d.ts +103 -0
- package/dist/client/locale/index.d.ts +2 -0
- package/dist/client/schemas/storage.d.ts +11 -0
- package/dist/client/schemas/storageTypes/ali-oss.d.ts +82 -0
- package/dist/client/schemas/storageTypes/index.d.ts +284 -0
- package/dist/client/schemas/storageTypes/local.d.ts +56 -0
- package/dist/client/schemas/storageTypes/s3.d.ts +77 -0
- package/dist/client/schemas/storageTypes/tx-cos.d.ts +71 -0
- package/dist/client/templates/file.d.ts +133 -0
- package/dist/client/templates/index.d.ts +1 -0
- package/dist/externalVersion.js +16 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +39 -0
- package/dist/locale/en-US.json +22 -0
- package/dist/locale/fr-FR.json +21 -0
- package/dist/locale/ja-JP.json +18 -0
- package/dist/locale/ko_KR.json +32 -0
- package/dist/locale/ru-RU.json +18 -0
- package/dist/locale/tr-TR.json +17 -0
- package/dist/locale/zh-CN.json +32 -0
- package/dist/node_modules/@aws-sdk/client-s3/LICENSE +201 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-cjs/auth/httpAuthSchemeProvider.js +127 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-cjs/endpoint/endpointResolver.js +33 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-cjs/endpoint/ruleset.js +7 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-cjs/index.js +1 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-cjs/runtimeConfig.browser.js +47 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-cjs/runtimeConfig.js +69 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-cjs/runtimeConfig.native.js +15 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-cjs/runtimeConfig.shared.js +46 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-es/S3.js +203 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-es/S3Client.js +60 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-es/auth/httpAuthExtensionConfiguration.js +38 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-es/auth/httpAuthSchemeProvider.js +123 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-es/commands/AbortMultipartUploadCommand.js +28 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-es/commands/CompleteMultipartUploadCommand.js +31 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-es/commands/CopyObjectCommand.js +33 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-es/commands/CreateBucketCommand.js +31 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-es/commands/CreateBucketMetadataTableConfigurationCommand.js +31 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-es/commands/CreateMultipartUploadCommand.js +31 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-es/commands/CreateSessionCommand.js +29 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-es/commands/DeleteBucketAnalyticsConfigurationCommand.js +26 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-es/commands/DeleteBucketCommand.js +26 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-es/commands/DeleteBucketCorsCommand.js +26 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-es/commands/DeleteBucketEncryptionCommand.js +26 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-es/commands/DeleteBucketIntelligentTieringConfigurationCommand.js +26 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-es/commands/DeleteBucketInventoryConfigurationCommand.js +26 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-es/commands/DeleteBucketLifecycleCommand.js +26 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-es/commands/DeleteBucketMetadataTableConfigurationCommand.js +26 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-es/commands/DeleteBucketMetricsConfigurationCommand.js +26 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-es/commands/DeleteBucketOwnershipControlsCommand.js +26 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-es/commands/DeleteBucketPolicyCommand.js +26 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-es/commands/DeleteBucketReplicationCommand.js +26 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-es/commands/DeleteBucketTaggingCommand.js +26 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-es/commands/DeleteBucketWebsiteCommand.js +26 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-es/commands/DeleteObjectCommand.js +28 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-es/commands/DeleteObjectTaggingCommand.js +27 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-es/commands/DeleteObjectsCommand.js +32 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-es/commands/DeletePublicAccessBlockCommand.js +26 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-es/commands/GetBucketAccelerateConfigurationCommand.js +28 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-es/commands/GetBucketAclCommand.js +28 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-es/commands/GetBucketAnalyticsConfigurationCommand.js +28 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-es/commands/GetBucketCorsCommand.js +28 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-es/commands/GetBucketEncryptionCommand.js +29 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-es/commands/GetBucketIntelligentTieringConfigurationCommand.js +28 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-es/commands/GetBucketInventoryConfigurationCommand.js +29 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-es/commands/GetBucketLifecycleConfigurationCommand.js +28 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-es/commands/GetBucketLocationCommand.js +28 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-es/commands/GetBucketLoggingCommand.js +28 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-es/commands/GetBucketMetadataTableConfigurationCommand.js +28 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-es/commands/GetBucketMetricsConfigurationCommand.js +28 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-es/commands/GetBucketNotificationConfigurationCommand.js +28 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-es/commands/GetBucketOwnershipControlsCommand.js +28 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-es/commands/GetBucketPolicyCommand.js +28 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-es/commands/GetBucketPolicyStatusCommand.js +28 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-es/commands/GetBucketReplicationCommand.js +28 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-es/commands/GetBucketRequestPaymentCommand.js +28 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-es/commands/GetBucketTaggingCommand.js +28 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-es/commands/GetBucketVersioningCommand.js +28 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-es/commands/GetBucketWebsiteCommand.js +28 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-es/commands/GetObjectAclCommand.js +28 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-es/commands/GetObjectAttributesCommand.js +30 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-es/commands/GetObjectCommand.js +37 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-es/commands/GetObjectLegalHoldCommand.js +27 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-es/commands/GetObjectLockConfigurationCommand.js +27 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-es/commands/GetObjectRetentionCommand.js +27 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-es/commands/GetObjectTaggingCommand.js +27 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-es/commands/GetObjectTorrentCommand.js +26 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-es/commands/GetPublicAccessBlockCommand.js +28 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-es/commands/HeadBucketCommand.js +27 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-es/commands/HeadObjectCommand.js +32 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-es/commands/ListBucketAnalyticsConfigurationsCommand.js +28 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-es/commands/ListBucketIntelligentTieringConfigurationsCommand.js +28 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-es/commands/ListBucketInventoryConfigurationsCommand.js +29 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-es/commands/ListBucketMetricsConfigurationsCommand.js +27 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-es/commands/ListBucketsCommand.js +24 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-es/commands/ListDirectoryBucketsCommand.js +27 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-es/commands/ListMultipartUploadsCommand.js +28 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-es/commands/ListObjectVersionsCommand.js +28 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-es/commands/ListObjectsCommand.js +28 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-es/commands/ListObjectsV2Command.js +28 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-es/commands/ListPartsCommand.js +31 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-es/commands/PutBucketAccelerateConfigurationCommand.js +31 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-es/commands/PutBucketAclCommand.js +31 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-es/commands/PutBucketAnalyticsConfigurationCommand.js +26 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-es/commands/PutBucketCorsCommand.js +31 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-es/commands/PutBucketEncryptionCommand.js +32 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-es/commands/PutBucketIntelligentTieringConfigurationCommand.js +26 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-es/commands/PutBucketInventoryConfigurationCommand.js +27 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-es/commands/PutBucketLifecycleConfigurationCommand.js +33 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-es/commands/PutBucketLoggingCommand.js +31 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-es/commands/PutBucketMetricsConfigurationCommand.js +26 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-es/commands/PutBucketNotificationConfigurationCommand.js +26 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-es/commands/PutBucketOwnershipControlsCommand.js +30 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-es/commands/PutBucketPolicyCommand.js +31 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-es/commands/PutBucketReplicationCommand.js +31 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-es/commands/PutBucketRequestPaymentCommand.js +31 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-es/commands/PutBucketTaggingCommand.js +31 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-es/commands/PutBucketVersioningCommand.js +31 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-es/commands/PutBucketWebsiteCommand.js +31 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-es/commands/PutObjectAclCommand.js +33 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-es/commands/PutObjectCommand.js +37 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-es/commands/PutObjectLegalHoldCommand.js +32 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-es/commands/PutObjectLockConfigurationCommand.js +32 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-es/commands/PutObjectRetentionCommand.js +32 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-es/commands/PutObjectTaggingCommand.js +32 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-es/commands/PutPublicAccessBlockCommand.js +31 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-es/commands/RestoreObjectCommand.js +33 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-es/commands/SelectObjectContentCommand.js +34 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-es/commands/UploadPartCommand.js +36 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-es/commands/UploadPartCopyCommand.js +31 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-es/commands/WriteGetObjectResponseCommand.js +26 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-es/commands/index.js +98 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-es/endpoint/EndpointParameters.js +24 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-es/endpoint/endpointResolver.js +29 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-es/endpoint/ruleset.js +4 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-es/extensionConfiguration.js +1 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-es/index.js +7 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-es/models/S3ServiceException.js +8 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-es/models/index.js +2 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-es/models/models_0.js +580 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-es/models/models_1.js +198 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-es/pagination/Interfaces.js +1 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-es/pagination/ListBucketsPaginator.js +4 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-es/pagination/ListDirectoryBucketsPaginator.js +4 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-es/pagination/ListObjectsV2Paginator.js +4 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-es/pagination/ListPartsPaginator.js +4 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-es/pagination/index.js +5 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-es/protocols/Aws_restXml.js +7635 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-es/runtimeConfig.browser.js +42 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-es/runtimeConfig.js +64 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-es/runtimeConfig.native.js +11 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-es/runtimeConfig.shared.js +42 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-es/runtimeExtensions.js +21 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-es/waiters/index.js +4 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-es/waiters/waitForBucketExists.js +26 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-es/waiters/waitForBucketNotExists.js +25 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-es/waiters/waitForObjectExists.js +26 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-es/waiters/waitForObjectNotExists.js +25 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/S3.d.ts +698 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/S3Client.d.ts +331 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/auth/httpAuthExtensionConfiguration.d.ts +29 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/auth/httpAuthSchemeProvider.d.ts +69 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/commands/AbortMultipartUploadCommand.d.ts +179 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/commands/CompleteMultipartUploadCommand.d.ts +311 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/commands/CopyObjectCommand.d.ts +348 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/commands/CreateBucketCommand.d.ts +283 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/commands/CreateBucketMetadataTableConfigurationCommand.d.ts +134 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/commands/CreateMultipartUploadCommand.d.ts +399 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/commands/CreateSessionCommand.d.ts +196 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/commands/DeleteBucketAnalyticsConfigurationCommand.d.ts +101 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/commands/DeleteBucketCommand.d.ts +138 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/commands/DeleteBucketCorsCommand.d.ts +104 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/commands/DeleteBucketEncryptionCommand.d.ts +130 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/commands/DeleteBucketIntelligentTieringConfigurationCommand.d.ts +94 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/commands/DeleteBucketInventoryConfigurationCommand.d.ts +99 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/commands/DeleteBucketLifecycleCommand.d.ts +150 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/commands/DeleteBucketMetadataTableConfigurationCommand.d.ts +95 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/commands/DeleteBucketMetricsConfigurationCommand.d.ts +107 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/commands/DeleteBucketOwnershipControlsCommand.d.ts +91 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/commands/DeleteBucketPolicyCommand.d.ts +147 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/commands/DeleteBucketReplicationCommand.d.ts +108 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/commands/DeleteBucketTaggingCommand.d.ts +100 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/commands/DeleteBucketWebsiteCommand.d.ts +107 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/commands/DeleteObjectCommand.d.ts +205 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/commands/DeleteObjectTaggingCommand.d.ts +131 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/commands/DeleteObjectsCommand.d.ts +317 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/commands/DeletePublicAccessBlockCommand.d.ts +100 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/commands/GetBucketAccelerateConfigurationCommand.d.ts +102 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/commands/GetBucketAclCommand.d.ts +115 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/commands/GetBucketAnalyticsConfigurationCommand.d.ts +135 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/commands/GetBucketCorsCommand.d.ts +145 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/commands/GetBucketEncryptionCommand.d.ts +143 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/commands/GetBucketIntelligentTieringConfigurationCommand.d.ts +121 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/commands/GetBucketInventoryConfigurationCommand.d.ts +129 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/commands/GetBucketLifecycleConfigurationCommand.d.ts +254 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/commands/GetBucketLocationCommand.d.ts +116 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/commands/GetBucketLoggingCommand.d.ts +110 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/commands/GetBucketMetadataTableConfigurationCommand.d.ts +111 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/commands/GetBucketMetricsConfigurationCommand.d.ts +128 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/commands/GetBucketNotificationConfigurationCommand.d.ts +154 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/commands/GetBucketOwnershipControlsCommand.d.ts +99 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/commands/GetBucketPolicyCommand.d.ts +159 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/commands/GetBucketPolicyStatusCommand.d.ts +105 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/commands/GetBucketReplicationCommand.d.ts +195 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/commands/GetBucketRequestPaymentCommand.d.ts +101 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/commands/GetBucketTaggingCommand.d.ts +134 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/commands/GetBucketVersioningCommand.d.ts +115 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/commands/GetBucketWebsiteCommand.d.ts +139 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/commands/GetObjectAclCommand.d.ts +189 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/commands/GetObjectAttributesCommand.d.ts +326 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/commands/GetObjectCommand.d.ts +367 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/commands/GetObjectLegalHoldCommand.d.ts +90 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/commands/GetObjectLockConfigurationCommand.d.ts +94 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/commands/GetObjectRetentionCommand.d.ts +91 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/commands/GetObjectTaggingCommand.d.ts +163 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/commands/GetObjectTorrentCommand.d.ts +107 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/commands/GetPublicAccessBlockCommand.d.ts +116 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/commands/HeadBucketCommand.d.ts +157 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/commands/HeadObjectCommand.d.ts +315 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/commands/ListBucketAnalyticsConfigurationsCommand.d.ts +147 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/commands/ListBucketIntelligentTieringConfigurationsCommand.d.ts +126 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/commands/ListBucketInventoryConfigurationsCommand.d.ts +142 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/commands/ListBucketMetricsConfigurationsCommand.d.ts +136 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/commands/ListBucketsCommand.d.ts +130 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/commands/ListDirectoryBucketsCommand.d.ts +107 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/commands/ListMultipartUploadsCommand.d.ts +344 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/commands/ListObjectVersionsCommand.d.ts +213 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/commands/ListObjectsCommand.d.ts +196 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/commands/ListObjectsV2Command.d.ts +261 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/commands/ListPartsCommand.d.ts +238 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/commands/PutBucketAccelerateConfigurationCommand.d.ts +115 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/commands/PutBucketAclCommand.d.ts +309 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/commands/PutBucketAnalyticsConfigurationCommand.d.ts +208 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/commands/PutBucketCorsCommand.d.ts +193 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/commands/PutBucketEncryptionCommand.d.ts +209 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/commands/PutBucketIntelligentTieringConfigurationCommand.d.ts +153 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/commands/PutBucketInventoryConfigurationCommand.d.ts +185 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/commands/PutBucketLifecycleConfigurationCommand.d.ts +293 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/commands/PutBucketLoggingCommand.d.ts +209 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/commands/PutBucketMetricsConfigurationCommand.d.ts +141 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/commands/PutBucketNotificationConfigurationCommand.d.ts +206 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/commands/PutBucketOwnershipControlsCommand.d.ts +99 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/commands/PutBucketPolicyCommand.d.ts +162 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/commands/PutBucketReplicationCommand.d.ts +233 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/commands/PutBucketRequestPaymentCommand.d.ts +109 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/commands/PutBucketTaggingCommand.d.ts +163 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/commands/PutBucketVersioningCommand.d.ts +143 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/commands/PutBucketWebsiteCommand.d.ts +244 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/commands/PutObjectAclCommand.d.ts +307 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/commands/PutObjectCommand.d.ts +449 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/commands/PutObjectLegalHoldCommand.d.ts +86 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/commands/PutObjectLockConfigurationCommand.d.ts +109 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/commands/PutObjectRetentionCommand.d.ts +89 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/commands/PutObjectTaggingCommand.d.ts +169 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/commands/PutPublicAccessBlockCommand.d.ts +117 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/commands/RestoreObjectCommand.d.ts +383 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/commands/SelectObjectContentCommand.d.ts +254 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/commands/UploadPartCommand.d.ts +307 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/commands/UploadPartCopyCommand.d.ts +375 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/commands/WriteGetObjectResponseCommand.d.ts +147 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/commands/index.d.ts +98 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/endpoint/EndpointParameters.d.ts +83 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/endpoint/endpointResolver.d.ts +5 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/endpoint/ruleset.d.ts +2 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/extensionConfiguration.d.ts +9 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/index.d.ts +15 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/models/S3ServiceException.d.ts +14 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/models/index.d.ts +2 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/models/models_0.d.ts +13234 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/models/models_1.d.ts +3948 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/pagination/Interfaces.d.ts +8 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/pagination/ListBucketsPaginator.d.ts +7 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/pagination/ListDirectoryBucketsPaginator.d.ts +7 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/pagination/ListObjectsV2Paginator.d.ts +7 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/pagination/ListPartsPaginator.d.ts +7 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/pagination/index.d.ts +5 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/protocols/Aws_restXml.d.ts +884 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/runtimeConfig.browser.d.ts +68 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/runtimeConfig.d.ts +69 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/runtimeConfig.native.d.ts +67 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/runtimeConfig.shared.d.ts +28 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/runtimeExtensions.d.ts +17 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/S3.d.ts +1751 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/S3Client.d.ts +732 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/auth/httpAuthExtensionConfiguration.d.ts +32 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/auth/httpAuthSchemeProvider.d.ts +55 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/commands/AbortMultipartUploadCommand.d.ts +51 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/commands/CompleteMultipartUploadCommand.d.ts +51 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/commands/CopyObjectCommand.d.ts +47 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/commands/CreateBucketCommand.d.ts +47 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/commands/CreateBucketMetadataTableConfigurationCommand.d.ts +47 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/commands/CreateMultipartUploadCommand.d.ts +51 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/commands/CreateSessionCommand.d.ts +47 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/commands/DeleteBucketAnalyticsConfigurationCommand.d.ts +47 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/commands/DeleteBucketCommand.d.ts +45 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/commands/DeleteBucketCorsCommand.d.ts +45 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/commands/DeleteBucketEncryptionCommand.d.ts +46 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/commands/DeleteBucketIntelligentTieringConfigurationCommand.d.ts +47 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/commands/DeleteBucketInventoryConfigurationCommand.d.ts +47 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/commands/DeleteBucketLifecycleCommand.d.ts +46 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/commands/DeleteBucketMetadataTableConfigurationCommand.d.ts +47 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/commands/DeleteBucketMetricsConfigurationCommand.d.ts +47 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/commands/DeleteBucketOwnershipControlsCommand.d.ts +47 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/commands/DeleteBucketPolicyCommand.d.ts +46 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/commands/DeleteBucketReplicationCommand.d.ts +47 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/commands/DeleteBucketTaggingCommand.d.ts +46 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/commands/DeleteBucketWebsiteCommand.d.ts +46 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/commands/DeleteObjectCommand.d.ts +47 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/commands/DeleteObjectTaggingCommand.d.ts +51 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/commands/DeleteObjectsCommand.d.ts +47 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/commands/DeletePublicAccessBlockCommand.d.ts +47 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/commands/GetBucketAccelerateConfigurationCommand.d.ts +51 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/commands/GetBucketAclCommand.d.ts +47 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/commands/GetBucketAnalyticsConfigurationCommand.d.ts +51 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/commands/GetBucketCorsCommand.d.ts +47 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/commands/GetBucketEncryptionCommand.d.ts +51 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/commands/GetBucketIntelligentTieringConfigurationCommand.d.ts +51 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/commands/GetBucketInventoryConfigurationCommand.d.ts +51 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/commands/GetBucketLifecycleConfigurationCommand.d.ts +51 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/commands/GetBucketLocationCommand.d.ts +51 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/commands/GetBucketLoggingCommand.d.ts +50 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/commands/GetBucketMetadataTableConfigurationCommand.d.ts +51 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/commands/GetBucketMetricsConfigurationCommand.d.ts +51 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/commands/GetBucketNotificationConfigurationCommand.d.ts +51 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/commands/GetBucketOwnershipControlsCommand.d.ts +51 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/commands/GetBucketPolicyCommand.d.ts +50 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/commands/GetBucketPolicyStatusCommand.d.ts +51 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/commands/GetBucketReplicationCommand.d.ts +51 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/commands/GetBucketRequestPaymentCommand.d.ts +51 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/commands/GetBucketTaggingCommand.d.ts +50 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/commands/GetBucketVersioningCommand.d.ts +51 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/commands/GetBucketWebsiteCommand.d.ts +50 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/commands/GetObjectAclCommand.d.ts +47 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/commands/GetObjectAttributesCommand.d.ts +51 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/commands/GetObjectCommand.d.ts +52 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/commands/GetObjectLegalHoldCommand.d.ts +51 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/commands/GetObjectLockConfigurationCommand.d.ts +51 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/commands/GetObjectRetentionCommand.d.ts +51 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/commands/GetObjectTaggingCommand.d.ts +50 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/commands/GetObjectTorrentCommand.d.ts +58 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/commands/GetPublicAccessBlockCommand.d.ts +51 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/commands/HeadBucketCommand.d.ts +47 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/commands/HeadObjectCommand.d.ts +47 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/commands/ListBucketAnalyticsConfigurationsCommand.d.ts +51 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/commands/ListBucketIntelligentTieringConfigurationsCommand.d.ts +51 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/commands/ListBucketInventoryConfigurationsCommand.d.ts +51 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/commands/ListBucketMetricsConfigurationsCommand.d.ts +51 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/commands/ListBucketsCommand.d.ts +47 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/commands/ListDirectoryBucketsCommand.d.ts +51 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/commands/ListMultipartUploadsCommand.d.ts +51 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/commands/ListObjectVersionsCommand.d.ts +51 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/commands/ListObjectsCommand.d.ts +47 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/commands/ListObjectsV2Command.d.ts +47 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/commands/ListPartsCommand.d.ts +47 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/commands/PutBucketAccelerateConfigurationCommand.d.ts +47 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/commands/PutBucketAclCommand.d.ts +45 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/commands/PutBucketAnalyticsConfigurationCommand.d.ts +47 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/commands/PutBucketCorsCommand.d.ts +45 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/commands/PutBucketEncryptionCommand.d.ts +46 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/commands/PutBucketIntelligentTieringConfigurationCommand.d.ts +47 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/commands/PutBucketInventoryConfigurationCommand.d.ts +47 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/commands/PutBucketLifecycleConfigurationCommand.d.ts +51 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/commands/PutBucketLoggingCommand.d.ts +45 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/commands/PutBucketMetricsConfigurationCommand.d.ts +47 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/commands/PutBucketNotificationConfigurationCommand.d.ts +47 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/commands/PutBucketOwnershipControlsCommand.d.ts +47 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/commands/PutBucketPolicyCommand.d.ts +45 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/commands/PutBucketReplicationCommand.d.ts +46 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/commands/PutBucketRequestPaymentCommand.d.ts +47 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/commands/PutBucketTaggingCommand.d.ts +45 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/commands/PutBucketVersioningCommand.d.ts +46 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/commands/PutBucketWebsiteCommand.d.ts +45 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/commands/PutObjectAclCommand.d.ts +47 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/commands/PutObjectCommand.d.ts +53 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/commands/PutObjectLegalHoldCommand.d.ts +51 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/commands/PutObjectLockConfigurationCommand.d.ts +51 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/commands/PutObjectRetentionCommand.d.ts +51 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/commands/PutObjectTaggingCommand.d.ts +50 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/commands/PutPublicAccessBlockCommand.d.ts +46 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/commands/RestoreObjectCommand.d.ts +47 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/commands/SelectObjectContentCommand.d.ts +51 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/commands/UploadPartCommand.d.ts +53 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/commands/UploadPartCopyCommand.d.ts +50 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/commands/WriteGetObjectResponseCommand.d.ts +54 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/commands/index.d.ts +98 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +94 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/endpoint/endpointResolver.d.ts +8 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/endpoint/ruleset.d.ts +2 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/extensionConfiguration.d.ts +9 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/index.d.ts +10 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/models/S3ServiceException.d.ts +9 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/models/index.d.ts +2 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/models/models_0.d.ts +2074 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/models/models_1.d.ts +742 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/pagination/Interfaces.d.ts +5 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/pagination/ListBucketsPaginator.d.ts +11 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/pagination/ListDirectoryBucketsPaginator.d.ts +11 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/pagination/ListObjectsV2Paginator.d.ts +11 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/pagination/ListPartsPaginator.d.ts +11 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/pagination/index.d.ts +5 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/protocols/Aws_restXml.d.ts +1185 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/runtimeConfig.browser.d.ts +145 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/runtimeConfig.d.ts +147 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/runtimeConfig.native.d.ts +133 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/runtimeConfig.shared.d.ts +36 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/runtimeExtensions.d.ts +11 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/waiters/index.d.ts +4 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/waiters/waitForBucketExists.d.ts +11 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/waiters/waitForBucketNotExists.d.ts +11 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/waiters/waitForObjectExists.d.ts +11 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/waiters/waitForObjectNotExists.d.ts +11 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/waiters/index.d.ts +4 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/waiters/waitForBucketExists.d.ts +14 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/waiters/waitForBucketNotExists.d.ts +14 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/waiters/waitForObjectExists.d.ts +14 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/waiters/waitForObjectNotExists.d.ts +14 -0
- package/dist/node_modules/@aws-sdk/client-s3/package.json +1 -0
- package/dist/node_modules/mime-match/.travis.yml +11 -0
- package/dist/node_modules/mime-match/example.js +17 -0
- package/dist/node_modules/mime-match/index.js +1 -0
- package/dist/node_modules/mime-match/package.json +1 -0
- package/dist/node_modules/mime-match/test.js +45 -0
- package/dist/node_modules/mkdirp/LICENSE +21 -0
- package/dist/node_modules/mkdirp/bin/cmd.js +33 -0
- package/dist/node_modules/mkdirp/bin/usage.txt +12 -0
- package/dist/node_modules/mkdirp/index.js +1 -0
- package/dist/node_modules/mkdirp/package.json +1 -0
- package/dist/node_modules/mkdirp/readme.markdown +100 -0
- package/dist/node_modules/multer-aliyun-oss/index.js +74 -0
- package/dist/node_modules/multer-aliyun-oss/package.json +1 -0
- package/dist/node_modules/multer-cos/LICENSE +24 -0
- package/dist/node_modules/multer-cos/demo/index.js +39 -0
- package/dist/node_modules/multer-cos/demo/myMulter.js +88 -0
- package/dist/node_modules/multer-cos/index.js +220 -0
- package/dist/node_modules/multer-cos/package.json +1 -0
- package/dist/node_modules/multer-s3/.gitattributes +1 -0
- package/dist/node_modules/multer-s3/.travis.yml +6 -0
- package/dist/node_modules/multer-s3/LICENSE +22 -0
- package/dist/node_modules/multer-s3/index.js +5 -0
- package/dist/node_modules/multer-s3/package.json +1 -0
- package/dist/node_modules/multer-s3/test/basic.js +293 -0
- package/dist/node_modules/multer-s3/test/files/a.txt +1 -0
- package/dist/node_modules/multer-s3/test/files/test.svg +3 -0
- package/dist/node_modules/multer-s3/test/files/test2.svg +9 -0
- package/dist/node_modules/multer-s3/test/util/mock-s3.js +17 -0
- package/dist/server/FileModel.d.ts +4 -0
- package/dist/server/FileModel.js +45 -0
- package/dist/server/actions/attachments.d.ts +3 -0
- package/dist/server/actions/attachments.js +183 -0
- package/dist/server/actions/index.d.ts +3 -0
- package/dist/server/actions/index.js +39 -0
- package/dist/server/collections/attachments.d.ts +2 -0
- package/dist/server/collections/attachments.js +87 -0
- package/dist/server/collections/storages.d.ts +2 -0
- package/dist/server/collections/storages.js +85 -0
- package/dist/server/constants.d.ts +7 -0
- package/dist/server/constants.js +45 -0
- package/dist/server/index.d.ts +2 -0
- package/dist/server/index.js +39 -0
- package/dist/server/migrations/20230831160742-fix-attachment-field.d.ts +5 -0
- package/dist/server/migrations/20230831160742-fix-attachment-field.js +62 -0
- package/dist/server/migrations/20231120142523-fix-storage.d.ts +5 -0
- package/dist/server/migrations/20231120142523-fix-storage.js +63 -0
- package/dist/server/migrations/20240306223006-update-target.d.ts +6 -0
- package/dist/server/migrations/20240306223006-update-target.js +45 -0
- package/dist/server/rules/index.d.ts +1 -0
- package/dist/server/rules/index.js +37 -0
- package/dist/server/rules/mimetype.d.ts +1 -0
- package/dist/server/rules/mimetype.js +36 -0
- package/dist/server/server.d.ts +11 -0
- package/dist/server/server.js +130 -0
- package/dist/server/storages/ali-oss.d.ts +18 -0
- package/dist/server/storages/ali-oss.js +55 -0
- package/dist/server/storages/index.d.ts +33 -0
- package/dist/server/storages/index.js +52 -0
- package/dist/server/storages/local.d.ts +16 -0
- package/dist/server/storages/local.js +87 -0
- package/dist/server/storages/s3.d.ts +19 -0
- package/dist/server/storages/s3.js +82 -0
- package/dist/server/storages/tx-cos.d.ts +19 -0
- package/dist/server/storages/tx-cos.js +61 -0
- package/dist/server/utils.d.ts +2 -0
- package/dist/server/utils.js +53 -0
- package/dist/swagger/index.json +81 -0
- package/package.json +46 -0
- package/server.d.ts +2 -0
- package/server.js +1 -0
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getRuntimeConfig = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const package_json_1 = tslib_1.__importDefault(require("../package.json"));
|
|
6
|
+
const sha1_browser_1 = require("@aws-crypto/sha1-browser");
|
|
7
|
+
const sha256_browser_1 = require("@aws-crypto/sha256-browser");
|
|
8
|
+
const util_user_agent_browser_1 = require("@aws-sdk/util-user-agent-browser");
|
|
9
|
+
const config_resolver_1 = require("@smithy/config-resolver");
|
|
10
|
+
const eventstream_serde_browser_1 = require("@smithy/eventstream-serde-browser");
|
|
11
|
+
const fetch_http_handler_1 = require("@smithy/fetch-http-handler");
|
|
12
|
+
const hash_blob_browser_1 = require("@smithy/hash-blob-browser");
|
|
13
|
+
const invalid_dependency_1 = require("@smithy/invalid-dependency");
|
|
14
|
+
const md5_js_1 = require("@smithy/md5-js");
|
|
15
|
+
const util_body_length_browser_1 = require("@smithy/util-body-length-browser");
|
|
16
|
+
const util_retry_1 = require("@smithy/util-retry");
|
|
17
|
+
const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
|
|
18
|
+
const smithy_client_1 = require("@smithy/smithy-client");
|
|
19
|
+
const util_defaults_mode_browser_1 = require("@smithy/util-defaults-mode-browser");
|
|
20
|
+
const getRuntimeConfig = (config) => {
|
|
21
|
+
const defaultsMode = (0, util_defaults_mode_browser_1.resolveDefaultsModeConfig)(config);
|
|
22
|
+
const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
|
|
23
|
+
const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config);
|
|
24
|
+
return {
|
|
25
|
+
...clientSharedValues,
|
|
26
|
+
...config,
|
|
27
|
+
runtime: "browser",
|
|
28
|
+
defaultsMode,
|
|
29
|
+
bodyLengthChecker: config?.bodyLengthChecker ?? util_body_length_browser_1.calculateBodyLength,
|
|
30
|
+
credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_) => () => Promise.reject(new Error("Credential is missing"))),
|
|
31
|
+
defaultUserAgentProvider: config?.defaultUserAgentProvider ??
|
|
32
|
+
(0, util_user_agent_browser_1.createDefaultUserAgentProvider)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
|
|
33
|
+
eventStreamSerdeProvider: config?.eventStreamSerdeProvider ?? eventstream_serde_browser_1.eventStreamSerdeProvider,
|
|
34
|
+
maxAttempts: config?.maxAttempts ?? util_retry_1.DEFAULT_MAX_ATTEMPTS,
|
|
35
|
+
md5: config?.md5 ?? md5_js_1.Md5,
|
|
36
|
+
region: config?.region ?? (0, invalid_dependency_1.invalidProvider)("Region is missing"),
|
|
37
|
+
requestHandler: fetch_http_handler_1.FetchHttpHandler.create(config?.requestHandler ?? defaultConfigProvider),
|
|
38
|
+
retryMode: config?.retryMode ?? (async () => (await defaultConfigProvider()).retryMode || util_retry_1.DEFAULT_RETRY_MODE),
|
|
39
|
+
sha1: config?.sha1 ?? sha1_browser_1.Sha1,
|
|
40
|
+
sha256: config?.sha256 ?? sha256_browser_1.Sha256,
|
|
41
|
+
streamCollector: config?.streamCollector ?? fetch_http_handler_1.streamCollector,
|
|
42
|
+
streamHasher: config?.streamHasher ?? hash_blob_browser_1.blobHasher,
|
|
43
|
+
useDualstackEndpoint: config?.useDualstackEndpoint ?? (() => Promise.resolve(config_resolver_1.DEFAULT_USE_DUALSTACK_ENDPOINT)),
|
|
44
|
+
useFipsEndpoint: config?.useFipsEndpoint ?? (() => Promise.resolve(config_resolver_1.DEFAULT_USE_FIPS_ENDPOINT)),
|
|
45
|
+
};
|
|
46
|
+
};
|
|
47
|
+
exports.getRuntimeConfig = getRuntimeConfig;
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getRuntimeConfig = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const package_json_1 = tslib_1.__importDefault(require("../package.json"));
|
|
6
|
+
const core_1 = require("@aws-sdk/core");
|
|
7
|
+
const credential_provider_node_1 = require("@aws-sdk/credential-provider-node");
|
|
8
|
+
const middleware_bucket_endpoint_1 = require("@aws-sdk/middleware-bucket-endpoint");
|
|
9
|
+
const middleware_flexible_checksums_1 = require("@aws-sdk/middleware-flexible-checksums");
|
|
10
|
+
const middleware_sdk_s3_1 = require("@aws-sdk/middleware-sdk-s3");
|
|
11
|
+
const util_user_agent_node_1 = require("@aws-sdk/util-user-agent-node");
|
|
12
|
+
const config_resolver_1 = require("@smithy/config-resolver");
|
|
13
|
+
const eventstream_serde_node_1 = require("@smithy/eventstream-serde-node");
|
|
14
|
+
const hash_node_1 = require("@smithy/hash-node");
|
|
15
|
+
const hash_stream_node_1 = require("@smithy/hash-stream-node");
|
|
16
|
+
const middleware_retry_1 = require("@smithy/middleware-retry");
|
|
17
|
+
const node_config_provider_1 = require("@smithy/node-config-provider");
|
|
18
|
+
const node_http_handler_1 = require("@smithy/node-http-handler");
|
|
19
|
+
const util_body_length_node_1 = require("@smithy/util-body-length-node");
|
|
20
|
+
const util_retry_1 = require("@smithy/util-retry");
|
|
21
|
+
const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
|
|
22
|
+
const smithy_client_1 = require("@smithy/smithy-client");
|
|
23
|
+
const util_defaults_mode_node_1 = require("@smithy/util-defaults-mode-node");
|
|
24
|
+
const smithy_client_2 = require("@smithy/smithy-client");
|
|
25
|
+
const getRuntimeConfig = (config) => {
|
|
26
|
+
(0, smithy_client_2.emitWarningIfUnsupportedVersion)(process.version);
|
|
27
|
+
const defaultsMode = (0, util_defaults_mode_node_1.resolveDefaultsModeConfig)(config);
|
|
28
|
+
const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
|
|
29
|
+
const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config);
|
|
30
|
+
(0, core_1.emitWarningIfUnsupportedVersion)(process.version);
|
|
31
|
+
const profileConfig = { profile: config?.profile };
|
|
32
|
+
return {
|
|
33
|
+
...clientSharedValues,
|
|
34
|
+
...config,
|
|
35
|
+
runtime: "node",
|
|
36
|
+
defaultsMode,
|
|
37
|
+
bodyLengthChecker: config?.bodyLengthChecker ?? util_body_length_node_1.calculateBodyLength,
|
|
38
|
+
credentialDefaultProvider: config?.credentialDefaultProvider ?? credential_provider_node_1.defaultProvider,
|
|
39
|
+
defaultUserAgentProvider: config?.defaultUserAgentProvider ??
|
|
40
|
+
(0, util_user_agent_node_1.createDefaultUserAgentProvider)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
|
|
41
|
+
disableS3ExpressSessionAuth: config?.disableS3ExpressSessionAuth ??
|
|
42
|
+
(0, node_config_provider_1.loadConfig)(middleware_sdk_s3_1.NODE_DISABLE_S3_EXPRESS_SESSION_AUTH_OPTIONS, profileConfig),
|
|
43
|
+
eventStreamSerdeProvider: config?.eventStreamSerdeProvider ?? eventstream_serde_node_1.eventStreamSerdeProvider,
|
|
44
|
+
maxAttempts: config?.maxAttempts ?? (0, node_config_provider_1.loadConfig)(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
|
|
45
|
+
md5: config?.md5 ?? hash_node_1.Hash.bind(null, "md5"),
|
|
46
|
+
region: config?.region ??
|
|
47
|
+
(0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, { ...config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS, ...profileConfig }),
|
|
48
|
+
requestChecksumCalculation: config?.requestChecksumCalculation ??
|
|
49
|
+
(0, node_config_provider_1.loadConfig)(middleware_flexible_checksums_1.NODE_REQUEST_CHECKSUM_CALCULATION_CONFIG_OPTIONS, profileConfig),
|
|
50
|
+
requestHandler: node_http_handler_1.NodeHttpHandler.create(config?.requestHandler ?? defaultConfigProvider),
|
|
51
|
+
responseChecksumValidation: config?.responseChecksumValidation ??
|
|
52
|
+
(0, node_config_provider_1.loadConfig)(middleware_flexible_checksums_1.NODE_RESPONSE_CHECKSUM_VALIDATION_CONFIG_OPTIONS, profileConfig),
|
|
53
|
+
retryMode: config?.retryMode ??
|
|
54
|
+
(0, node_config_provider_1.loadConfig)({
|
|
55
|
+
...middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS,
|
|
56
|
+
default: async () => (await defaultConfigProvider()).retryMode || util_retry_1.DEFAULT_RETRY_MODE,
|
|
57
|
+
}, config),
|
|
58
|
+
sha1: config?.sha1 ?? hash_node_1.Hash.bind(null, "sha1"),
|
|
59
|
+
sha256: config?.sha256 ?? hash_node_1.Hash.bind(null, "sha256"),
|
|
60
|
+
sigv4aSigningRegionSet: config?.sigv4aSigningRegionSet ?? (0, node_config_provider_1.loadConfig)(core_1.NODE_SIGV4A_CONFIG_OPTIONS, profileConfig),
|
|
61
|
+
streamCollector: config?.streamCollector ?? node_http_handler_1.streamCollector,
|
|
62
|
+
streamHasher: config?.streamHasher ?? hash_stream_node_1.readableStreamHasher,
|
|
63
|
+
useArnRegion: config?.useArnRegion ?? (0, node_config_provider_1.loadConfig)(middleware_bucket_endpoint_1.NODE_USE_ARN_REGION_CONFIG_OPTIONS, profileConfig),
|
|
64
|
+
useDualstackEndpoint: config?.useDualstackEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, profileConfig),
|
|
65
|
+
useFipsEndpoint: config?.useFipsEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, profileConfig),
|
|
66
|
+
userAgentAppId: config?.userAgentAppId ?? (0, node_config_provider_1.loadConfig)(util_user_agent_node_1.NODE_APP_ID_CONFIG_OPTIONS, profileConfig),
|
|
67
|
+
};
|
|
68
|
+
};
|
|
69
|
+
exports.getRuntimeConfig = getRuntimeConfig;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getRuntimeConfig = void 0;
|
|
4
|
+
const sha256_js_1 = require("@aws-crypto/sha256-js");
|
|
5
|
+
const runtimeConfig_browser_1 = require("./runtimeConfig.browser");
|
|
6
|
+
const getRuntimeConfig = (config) => {
|
|
7
|
+
const browserDefaults = (0, runtimeConfig_browser_1.getRuntimeConfig)(config);
|
|
8
|
+
return {
|
|
9
|
+
...browserDefaults,
|
|
10
|
+
...config,
|
|
11
|
+
runtime: "react-native",
|
|
12
|
+
sha256: config?.sha256 ?? sha256_js_1.Sha256,
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
exports.getRuntimeConfig = getRuntimeConfig;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getRuntimeConfig = void 0;
|
|
4
|
+
const core_1 = require("@aws-sdk/core");
|
|
5
|
+
const signature_v4_multi_region_1 = require("@aws-sdk/signature-v4-multi-region");
|
|
6
|
+
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
|
+
const url_parser_1 = require("@smithy/url-parser");
|
|
8
|
+
const util_base64_1 = require("@smithy/util-base64");
|
|
9
|
+
const util_stream_1 = require("@smithy/util-stream");
|
|
10
|
+
const util_utf8_1 = require("@smithy/util-utf8");
|
|
11
|
+
const httpAuthSchemeProvider_1 = require("./auth/httpAuthSchemeProvider");
|
|
12
|
+
const endpointResolver_1 = require("./endpoint/endpointResolver");
|
|
13
|
+
const getRuntimeConfig = (config) => {
|
|
14
|
+
return {
|
|
15
|
+
apiVersion: "2006-03-01",
|
|
16
|
+
base64Decoder: config?.base64Decoder ?? util_base64_1.fromBase64,
|
|
17
|
+
base64Encoder: config?.base64Encoder ?? util_base64_1.toBase64,
|
|
18
|
+
disableHostPrefix: config?.disableHostPrefix ?? false,
|
|
19
|
+
endpointProvider: config?.endpointProvider ?? endpointResolver_1.defaultEndpointResolver,
|
|
20
|
+
extensions: config?.extensions ?? [],
|
|
21
|
+
getAwsChunkedEncodingStream: config?.getAwsChunkedEncodingStream ?? util_stream_1.getAwsChunkedEncodingStream,
|
|
22
|
+
httpAuthSchemeProvider: config?.httpAuthSchemeProvider ?? httpAuthSchemeProvider_1.defaultS3HttpAuthSchemeProvider,
|
|
23
|
+
httpAuthSchemes: config?.httpAuthSchemes ?? [
|
|
24
|
+
{
|
|
25
|
+
schemeId: "aws.auth#sigv4",
|
|
26
|
+
identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4"),
|
|
27
|
+
signer: new core_1.AwsSdkSigV4Signer(),
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
schemeId: "aws.auth#sigv4a",
|
|
31
|
+
identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4a"),
|
|
32
|
+
signer: new core_1.AwsSdkSigV4ASigner(),
|
|
33
|
+
},
|
|
34
|
+
],
|
|
35
|
+
logger: config?.logger ?? new smithy_client_1.NoOpLogger(),
|
|
36
|
+
sdkStreamMixin: config?.sdkStreamMixin ?? util_stream_1.sdkStreamMixin,
|
|
37
|
+
serviceId: config?.serviceId ?? "S3",
|
|
38
|
+
signerConstructor: config?.signerConstructor ?? signature_v4_multi_region_1.SignatureV4MultiRegion,
|
|
39
|
+
signingEscapePath: config?.signingEscapePath ?? false,
|
|
40
|
+
urlParser: config?.urlParser ?? url_parser_1.parseUrl,
|
|
41
|
+
useArnRegion: config?.useArnRegion ?? false,
|
|
42
|
+
utf8Decoder: config?.utf8Decoder ?? util_utf8_1.fromUtf8,
|
|
43
|
+
utf8Encoder: config?.utf8Encoder ?? util_utf8_1.toUtf8,
|
|
44
|
+
};
|
|
45
|
+
};
|
|
46
|
+
exports.getRuntimeConfig = getRuntimeConfig;
|
|
@@ -0,0 +1,203 @@
|
|
|
1
|
+
import { createAggregatedClient } from "@smithy/smithy-client";
|
|
2
|
+
import { AbortMultipartUploadCommand, } from "./commands/AbortMultipartUploadCommand";
|
|
3
|
+
import { CompleteMultipartUploadCommand, } from "./commands/CompleteMultipartUploadCommand";
|
|
4
|
+
import { CopyObjectCommand } from "./commands/CopyObjectCommand";
|
|
5
|
+
import { CreateBucketCommand, } from "./commands/CreateBucketCommand";
|
|
6
|
+
import { CreateBucketMetadataTableConfigurationCommand, } from "./commands/CreateBucketMetadataTableConfigurationCommand";
|
|
7
|
+
import { CreateMultipartUploadCommand, } from "./commands/CreateMultipartUploadCommand";
|
|
8
|
+
import { CreateSessionCommand, } from "./commands/CreateSessionCommand";
|
|
9
|
+
import { DeleteBucketAnalyticsConfigurationCommand, } from "./commands/DeleteBucketAnalyticsConfigurationCommand";
|
|
10
|
+
import { DeleteBucketCommand, } from "./commands/DeleteBucketCommand";
|
|
11
|
+
import { DeleteBucketCorsCommand, } from "./commands/DeleteBucketCorsCommand";
|
|
12
|
+
import { DeleteBucketEncryptionCommand, } from "./commands/DeleteBucketEncryptionCommand";
|
|
13
|
+
import { DeleteBucketIntelligentTieringConfigurationCommand, } from "./commands/DeleteBucketIntelligentTieringConfigurationCommand";
|
|
14
|
+
import { DeleteBucketInventoryConfigurationCommand, } from "./commands/DeleteBucketInventoryConfigurationCommand";
|
|
15
|
+
import { DeleteBucketLifecycleCommand, } from "./commands/DeleteBucketLifecycleCommand";
|
|
16
|
+
import { DeleteBucketMetadataTableConfigurationCommand, } from "./commands/DeleteBucketMetadataTableConfigurationCommand";
|
|
17
|
+
import { DeleteBucketMetricsConfigurationCommand, } from "./commands/DeleteBucketMetricsConfigurationCommand";
|
|
18
|
+
import { DeleteBucketOwnershipControlsCommand, } from "./commands/DeleteBucketOwnershipControlsCommand";
|
|
19
|
+
import { DeleteBucketPolicyCommand, } from "./commands/DeleteBucketPolicyCommand";
|
|
20
|
+
import { DeleteBucketReplicationCommand, } from "./commands/DeleteBucketReplicationCommand";
|
|
21
|
+
import { DeleteBucketTaggingCommand, } from "./commands/DeleteBucketTaggingCommand";
|
|
22
|
+
import { DeleteBucketWebsiteCommand, } from "./commands/DeleteBucketWebsiteCommand";
|
|
23
|
+
import { DeleteObjectCommand, } from "./commands/DeleteObjectCommand";
|
|
24
|
+
import { DeleteObjectsCommand, } from "./commands/DeleteObjectsCommand";
|
|
25
|
+
import { DeleteObjectTaggingCommand, } from "./commands/DeleteObjectTaggingCommand";
|
|
26
|
+
import { DeletePublicAccessBlockCommand, } from "./commands/DeletePublicAccessBlockCommand";
|
|
27
|
+
import { GetBucketAccelerateConfigurationCommand, } from "./commands/GetBucketAccelerateConfigurationCommand";
|
|
28
|
+
import { GetBucketAclCommand, } from "./commands/GetBucketAclCommand";
|
|
29
|
+
import { GetBucketAnalyticsConfigurationCommand, } from "./commands/GetBucketAnalyticsConfigurationCommand";
|
|
30
|
+
import { GetBucketCorsCommand, } from "./commands/GetBucketCorsCommand";
|
|
31
|
+
import { GetBucketEncryptionCommand, } from "./commands/GetBucketEncryptionCommand";
|
|
32
|
+
import { GetBucketIntelligentTieringConfigurationCommand, } from "./commands/GetBucketIntelligentTieringConfigurationCommand";
|
|
33
|
+
import { GetBucketInventoryConfigurationCommand, } from "./commands/GetBucketInventoryConfigurationCommand";
|
|
34
|
+
import { GetBucketLifecycleConfigurationCommand, } from "./commands/GetBucketLifecycleConfigurationCommand";
|
|
35
|
+
import { GetBucketLocationCommand, } from "./commands/GetBucketLocationCommand";
|
|
36
|
+
import { GetBucketLoggingCommand, } from "./commands/GetBucketLoggingCommand";
|
|
37
|
+
import { GetBucketMetadataTableConfigurationCommand, } from "./commands/GetBucketMetadataTableConfigurationCommand";
|
|
38
|
+
import { GetBucketMetricsConfigurationCommand, } from "./commands/GetBucketMetricsConfigurationCommand";
|
|
39
|
+
import { GetBucketNotificationConfigurationCommand, } from "./commands/GetBucketNotificationConfigurationCommand";
|
|
40
|
+
import { GetBucketOwnershipControlsCommand, } from "./commands/GetBucketOwnershipControlsCommand";
|
|
41
|
+
import { GetBucketPolicyCommand, } from "./commands/GetBucketPolicyCommand";
|
|
42
|
+
import { GetBucketPolicyStatusCommand, } from "./commands/GetBucketPolicyStatusCommand";
|
|
43
|
+
import { GetBucketReplicationCommand, } from "./commands/GetBucketReplicationCommand";
|
|
44
|
+
import { GetBucketRequestPaymentCommand, } from "./commands/GetBucketRequestPaymentCommand";
|
|
45
|
+
import { GetBucketTaggingCommand, } from "./commands/GetBucketTaggingCommand";
|
|
46
|
+
import { GetBucketVersioningCommand, } from "./commands/GetBucketVersioningCommand";
|
|
47
|
+
import { GetBucketWebsiteCommand, } from "./commands/GetBucketWebsiteCommand";
|
|
48
|
+
import { GetObjectAclCommand, } from "./commands/GetObjectAclCommand";
|
|
49
|
+
import { GetObjectAttributesCommand, } from "./commands/GetObjectAttributesCommand";
|
|
50
|
+
import { GetObjectCommand } from "./commands/GetObjectCommand";
|
|
51
|
+
import { GetObjectLegalHoldCommand, } from "./commands/GetObjectLegalHoldCommand";
|
|
52
|
+
import { GetObjectLockConfigurationCommand, } from "./commands/GetObjectLockConfigurationCommand";
|
|
53
|
+
import { GetObjectRetentionCommand, } from "./commands/GetObjectRetentionCommand";
|
|
54
|
+
import { GetObjectTaggingCommand, } from "./commands/GetObjectTaggingCommand";
|
|
55
|
+
import { GetObjectTorrentCommand, } from "./commands/GetObjectTorrentCommand";
|
|
56
|
+
import { GetPublicAccessBlockCommand, } from "./commands/GetPublicAccessBlockCommand";
|
|
57
|
+
import { HeadBucketCommand } from "./commands/HeadBucketCommand";
|
|
58
|
+
import { HeadObjectCommand } from "./commands/HeadObjectCommand";
|
|
59
|
+
import { ListBucketAnalyticsConfigurationsCommand, } from "./commands/ListBucketAnalyticsConfigurationsCommand";
|
|
60
|
+
import { ListBucketIntelligentTieringConfigurationsCommand, } from "./commands/ListBucketIntelligentTieringConfigurationsCommand";
|
|
61
|
+
import { ListBucketInventoryConfigurationsCommand, } from "./commands/ListBucketInventoryConfigurationsCommand";
|
|
62
|
+
import { ListBucketMetricsConfigurationsCommand, } from "./commands/ListBucketMetricsConfigurationsCommand";
|
|
63
|
+
import { ListBucketsCommand } from "./commands/ListBucketsCommand";
|
|
64
|
+
import { ListDirectoryBucketsCommand, } from "./commands/ListDirectoryBucketsCommand";
|
|
65
|
+
import { ListMultipartUploadsCommand, } from "./commands/ListMultipartUploadsCommand";
|
|
66
|
+
import { ListObjectsCommand } from "./commands/ListObjectsCommand";
|
|
67
|
+
import { ListObjectsV2Command, } from "./commands/ListObjectsV2Command";
|
|
68
|
+
import { ListObjectVersionsCommand, } from "./commands/ListObjectVersionsCommand";
|
|
69
|
+
import { ListPartsCommand } from "./commands/ListPartsCommand";
|
|
70
|
+
import { PutBucketAccelerateConfigurationCommand, } from "./commands/PutBucketAccelerateConfigurationCommand";
|
|
71
|
+
import { PutBucketAclCommand, } from "./commands/PutBucketAclCommand";
|
|
72
|
+
import { PutBucketAnalyticsConfigurationCommand, } from "./commands/PutBucketAnalyticsConfigurationCommand";
|
|
73
|
+
import { PutBucketCorsCommand, } from "./commands/PutBucketCorsCommand";
|
|
74
|
+
import { PutBucketEncryptionCommand, } from "./commands/PutBucketEncryptionCommand";
|
|
75
|
+
import { PutBucketIntelligentTieringConfigurationCommand, } from "./commands/PutBucketIntelligentTieringConfigurationCommand";
|
|
76
|
+
import { PutBucketInventoryConfigurationCommand, } from "./commands/PutBucketInventoryConfigurationCommand";
|
|
77
|
+
import { PutBucketLifecycleConfigurationCommand, } from "./commands/PutBucketLifecycleConfigurationCommand";
|
|
78
|
+
import { PutBucketLoggingCommand, } from "./commands/PutBucketLoggingCommand";
|
|
79
|
+
import { PutBucketMetricsConfigurationCommand, } from "./commands/PutBucketMetricsConfigurationCommand";
|
|
80
|
+
import { PutBucketNotificationConfigurationCommand, } from "./commands/PutBucketNotificationConfigurationCommand";
|
|
81
|
+
import { PutBucketOwnershipControlsCommand, } from "./commands/PutBucketOwnershipControlsCommand";
|
|
82
|
+
import { PutBucketPolicyCommand, } from "./commands/PutBucketPolicyCommand";
|
|
83
|
+
import { PutBucketReplicationCommand, } from "./commands/PutBucketReplicationCommand";
|
|
84
|
+
import { PutBucketRequestPaymentCommand, } from "./commands/PutBucketRequestPaymentCommand";
|
|
85
|
+
import { PutBucketTaggingCommand, } from "./commands/PutBucketTaggingCommand";
|
|
86
|
+
import { PutBucketVersioningCommand, } from "./commands/PutBucketVersioningCommand";
|
|
87
|
+
import { PutBucketWebsiteCommand, } from "./commands/PutBucketWebsiteCommand";
|
|
88
|
+
import { PutObjectAclCommand, } from "./commands/PutObjectAclCommand";
|
|
89
|
+
import { PutObjectCommand } from "./commands/PutObjectCommand";
|
|
90
|
+
import { PutObjectLegalHoldCommand, } from "./commands/PutObjectLegalHoldCommand";
|
|
91
|
+
import { PutObjectLockConfigurationCommand, } from "./commands/PutObjectLockConfigurationCommand";
|
|
92
|
+
import { PutObjectRetentionCommand, } from "./commands/PutObjectRetentionCommand";
|
|
93
|
+
import { PutObjectTaggingCommand, } from "./commands/PutObjectTaggingCommand";
|
|
94
|
+
import { PutPublicAccessBlockCommand, } from "./commands/PutPublicAccessBlockCommand";
|
|
95
|
+
import { RestoreObjectCommand, } from "./commands/RestoreObjectCommand";
|
|
96
|
+
import { SelectObjectContentCommand, } from "./commands/SelectObjectContentCommand";
|
|
97
|
+
import { UploadPartCommand } from "./commands/UploadPartCommand";
|
|
98
|
+
import { UploadPartCopyCommand, } from "./commands/UploadPartCopyCommand";
|
|
99
|
+
import { WriteGetObjectResponseCommand, } from "./commands/WriteGetObjectResponseCommand";
|
|
100
|
+
import { S3Client } from "./S3Client";
|
|
101
|
+
const commands = {
|
|
102
|
+
AbortMultipartUploadCommand,
|
|
103
|
+
CompleteMultipartUploadCommand,
|
|
104
|
+
CopyObjectCommand,
|
|
105
|
+
CreateBucketCommand,
|
|
106
|
+
CreateBucketMetadataTableConfigurationCommand,
|
|
107
|
+
CreateMultipartUploadCommand,
|
|
108
|
+
CreateSessionCommand,
|
|
109
|
+
DeleteBucketCommand,
|
|
110
|
+
DeleteBucketAnalyticsConfigurationCommand,
|
|
111
|
+
DeleteBucketCorsCommand,
|
|
112
|
+
DeleteBucketEncryptionCommand,
|
|
113
|
+
DeleteBucketIntelligentTieringConfigurationCommand,
|
|
114
|
+
DeleteBucketInventoryConfigurationCommand,
|
|
115
|
+
DeleteBucketLifecycleCommand,
|
|
116
|
+
DeleteBucketMetadataTableConfigurationCommand,
|
|
117
|
+
DeleteBucketMetricsConfigurationCommand,
|
|
118
|
+
DeleteBucketOwnershipControlsCommand,
|
|
119
|
+
DeleteBucketPolicyCommand,
|
|
120
|
+
DeleteBucketReplicationCommand,
|
|
121
|
+
DeleteBucketTaggingCommand,
|
|
122
|
+
DeleteBucketWebsiteCommand,
|
|
123
|
+
DeleteObjectCommand,
|
|
124
|
+
DeleteObjectsCommand,
|
|
125
|
+
DeleteObjectTaggingCommand,
|
|
126
|
+
DeletePublicAccessBlockCommand,
|
|
127
|
+
GetBucketAccelerateConfigurationCommand,
|
|
128
|
+
GetBucketAclCommand,
|
|
129
|
+
GetBucketAnalyticsConfigurationCommand,
|
|
130
|
+
GetBucketCorsCommand,
|
|
131
|
+
GetBucketEncryptionCommand,
|
|
132
|
+
GetBucketIntelligentTieringConfigurationCommand,
|
|
133
|
+
GetBucketInventoryConfigurationCommand,
|
|
134
|
+
GetBucketLifecycleConfigurationCommand,
|
|
135
|
+
GetBucketLocationCommand,
|
|
136
|
+
GetBucketLoggingCommand,
|
|
137
|
+
GetBucketMetadataTableConfigurationCommand,
|
|
138
|
+
GetBucketMetricsConfigurationCommand,
|
|
139
|
+
GetBucketNotificationConfigurationCommand,
|
|
140
|
+
GetBucketOwnershipControlsCommand,
|
|
141
|
+
GetBucketPolicyCommand,
|
|
142
|
+
GetBucketPolicyStatusCommand,
|
|
143
|
+
GetBucketReplicationCommand,
|
|
144
|
+
GetBucketRequestPaymentCommand,
|
|
145
|
+
GetBucketTaggingCommand,
|
|
146
|
+
GetBucketVersioningCommand,
|
|
147
|
+
GetBucketWebsiteCommand,
|
|
148
|
+
GetObjectCommand,
|
|
149
|
+
GetObjectAclCommand,
|
|
150
|
+
GetObjectAttributesCommand,
|
|
151
|
+
GetObjectLegalHoldCommand,
|
|
152
|
+
GetObjectLockConfigurationCommand,
|
|
153
|
+
GetObjectRetentionCommand,
|
|
154
|
+
GetObjectTaggingCommand,
|
|
155
|
+
GetObjectTorrentCommand,
|
|
156
|
+
GetPublicAccessBlockCommand,
|
|
157
|
+
HeadBucketCommand,
|
|
158
|
+
HeadObjectCommand,
|
|
159
|
+
ListBucketAnalyticsConfigurationsCommand,
|
|
160
|
+
ListBucketIntelligentTieringConfigurationsCommand,
|
|
161
|
+
ListBucketInventoryConfigurationsCommand,
|
|
162
|
+
ListBucketMetricsConfigurationsCommand,
|
|
163
|
+
ListBucketsCommand,
|
|
164
|
+
ListDirectoryBucketsCommand,
|
|
165
|
+
ListMultipartUploadsCommand,
|
|
166
|
+
ListObjectsCommand,
|
|
167
|
+
ListObjectsV2Command,
|
|
168
|
+
ListObjectVersionsCommand,
|
|
169
|
+
ListPartsCommand,
|
|
170
|
+
PutBucketAccelerateConfigurationCommand,
|
|
171
|
+
PutBucketAclCommand,
|
|
172
|
+
PutBucketAnalyticsConfigurationCommand,
|
|
173
|
+
PutBucketCorsCommand,
|
|
174
|
+
PutBucketEncryptionCommand,
|
|
175
|
+
PutBucketIntelligentTieringConfigurationCommand,
|
|
176
|
+
PutBucketInventoryConfigurationCommand,
|
|
177
|
+
PutBucketLifecycleConfigurationCommand,
|
|
178
|
+
PutBucketLoggingCommand,
|
|
179
|
+
PutBucketMetricsConfigurationCommand,
|
|
180
|
+
PutBucketNotificationConfigurationCommand,
|
|
181
|
+
PutBucketOwnershipControlsCommand,
|
|
182
|
+
PutBucketPolicyCommand,
|
|
183
|
+
PutBucketReplicationCommand,
|
|
184
|
+
PutBucketRequestPaymentCommand,
|
|
185
|
+
PutBucketTaggingCommand,
|
|
186
|
+
PutBucketVersioningCommand,
|
|
187
|
+
PutBucketWebsiteCommand,
|
|
188
|
+
PutObjectCommand,
|
|
189
|
+
PutObjectAclCommand,
|
|
190
|
+
PutObjectLegalHoldCommand,
|
|
191
|
+
PutObjectLockConfigurationCommand,
|
|
192
|
+
PutObjectRetentionCommand,
|
|
193
|
+
PutObjectTaggingCommand,
|
|
194
|
+
PutPublicAccessBlockCommand,
|
|
195
|
+
RestoreObjectCommand,
|
|
196
|
+
SelectObjectContentCommand,
|
|
197
|
+
UploadPartCommand,
|
|
198
|
+
UploadPartCopyCommand,
|
|
199
|
+
WriteGetObjectResponseCommand,
|
|
200
|
+
};
|
|
201
|
+
export class S3 extends S3Client {
|
|
202
|
+
}
|
|
203
|
+
createAggregatedClient(commands, S3);
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { getAddExpectContinuePlugin } from "@aws-sdk/middleware-expect-continue";
|
|
2
|
+
import { resolveFlexibleChecksumsConfig, } from "@aws-sdk/middleware-flexible-checksums";
|
|
3
|
+
import { getHostHeaderPlugin, resolveHostHeaderConfig, } from "@aws-sdk/middleware-host-header";
|
|
4
|
+
import { getLoggerPlugin } from "@aws-sdk/middleware-logger";
|
|
5
|
+
import { getRecursionDetectionPlugin } from "@aws-sdk/middleware-recursion-detection";
|
|
6
|
+
import { getRegionRedirectMiddlewarePlugin, getS3ExpressHttpSigningPlugin, getS3ExpressPlugin, getValidateBucketNamePlugin, resolveS3Config, } from "@aws-sdk/middleware-sdk-s3";
|
|
7
|
+
import { getUserAgentPlugin, resolveUserAgentConfig, } from "@aws-sdk/middleware-user-agent";
|
|
8
|
+
import { resolveRegionConfig } from "@smithy/config-resolver";
|
|
9
|
+
import { DefaultIdentityProviderConfig, getHttpAuthSchemeEndpointRuleSetPlugin, getHttpSigningPlugin, } from "@smithy/core";
|
|
10
|
+
import { resolveEventStreamSerdeConfig, } from "@smithy/eventstream-serde-config-resolver";
|
|
11
|
+
import { getContentLengthPlugin } from "@smithy/middleware-content-length";
|
|
12
|
+
import { resolveEndpointConfig } from "@smithy/middleware-endpoint";
|
|
13
|
+
import { getRetryPlugin, resolveRetryConfig } from "@smithy/middleware-retry";
|
|
14
|
+
import { Client as __Client, } from "@smithy/smithy-client";
|
|
15
|
+
import { defaultS3HttpAuthSchemeParametersProvider, resolveHttpAuthSchemeConfig, } from "./auth/httpAuthSchemeProvider";
|
|
16
|
+
import { CreateSessionCommand, } from "./commands/CreateSessionCommand";
|
|
17
|
+
import { resolveClientEndpointParameters, } from "./endpoint/EndpointParameters";
|
|
18
|
+
import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
|
|
19
|
+
import { resolveRuntimeExtensions } from "./runtimeExtensions";
|
|
20
|
+
export { __Client };
|
|
21
|
+
export class S3Client extends __Client {
|
|
22
|
+
constructor(...[configuration]) {
|
|
23
|
+
const _config_0 = __getRuntimeConfig(configuration || {});
|
|
24
|
+
const _config_1 = resolveClientEndpointParameters(_config_0);
|
|
25
|
+
const _config_2 = resolveUserAgentConfig(_config_1);
|
|
26
|
+
const _config_3 = resolveFlexibleChecksumsConfig(_config_2);
|
|
27
|
+
const _config_4 = resolveRetryConfig(_config_3);
|
|
28
|
+
const _config_5 = resolveRegionConfig(_config_4);
|
|
29
|
+
const _config_6 = resolveHostHeaderConfig(_config_5);
|
|
30
|
+
const _config_7 = resolveEndpointConfig(_config_6);
|
|
31
|
+
const _config_8 = resolveEventStreamSerdeConfig(_config_7);
|
|
32
|
+
const _config_9 = resolveHttpAuthSchemeConfig(_config_8);
|
|
33
|
+
const _config_10 = resolveS3Config(_config_9, { session: [() => this, CreateSessionCommand] });
|
|
34
|
+
const _config_11 = resolveRuntimeExtensions(_config_10, configuration?.extensions || []);
|
|
35
|
+
super(_config_11);
|
|
36
|
+
this.config = _config_11;
|
|
37
|
+
this.middlewareStack.use(getUserAgentPlugin(this.config));
|
|
38
|
+
this.middlewareStack.use(getRetryPlugin(this.config));
|
|
39
|
+
this.middlewareStack.use(getContentLengthPlugin(this.config));
|
|
40
|
+
this.middlewareStack.use(getHostHeaderPlugin(this.config));
|
|
41
|
+
this.middlewareStack.use(getLoggerPlugin(this.config));
|
|
42
|
+
this.middlewareStack.use(getRecursionDetectionPlugin(this.config));
|
|
43
|
+
this.middlewareStack.use(getHttpAuthSchemeEndpointRuleSetPlugin(this.config, {
|
|
44
|
+
httpAuthSchemeParametersProvider: defaultS3HttpAuthSchemeParametersProvider,
|
|
45
|
+
identityProviderConfigProvider: async (config) => new DefaultIdentityProviderConfig({
|
|
46
|
+
"aws.auth#sigv4": config.credentials,
|
|
47
|
+
"aws.auth#sigv4a": config.credentials,
|
|
48
|
+
}),
|
|
49
|
+
}));
|
|
50
|
+
this.middlewareStack.use(getHttpSigningPlugin(this.config));
|
|
51
|
+
this.middlewareStack.use(getValidateBucketNamePlugin(this.config));
|
|
52
|
+
this.middlewareStack.use(getAddExpectContinuePlugin(this.config));
|
|
53
|
+
this.middlewareStack.use(getRegionRedirectMiddlewarePlugin(this.config));
|
|
54
|
+
this.middlewareStack.use(getS3ExpressPlugin(this.config));
|
|
55
|
+
this.middlewareStack.use(getS3ExpressHttpSigningPlugin(this.config));
|
|
56
|
+
}
|
|
57
|
+
destroy() {
|
|
58
|
+
super.destroy();
|
|
59
|
+
}
|
|
60
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
export const getHttpAuthExtensionConfiguration = (runtimeConfig) => {
|
|
2
|
+
const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
|
|
3
|
+
let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
|
|
4
|
+
let _credentials = runtimeConfig.credentials;
|
|
5
|
+
return {
|
|
6
|
+
setHttpAuthScheme(httpAuthScheme) {
|
|
7
|
+
const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
|
|
8
|
+
if (index === -1) {
|
|
9
|
+
_httpAuthSchemes.push(httpAuthScheme);
|
|
10
|
+
}
|
|
11
|
+
else {
|
|
12
|
+
_httpAuthSchemes.splice(index, 1, httpAuthScheme);
|
|
13
|
+
}
|
|
14
|
+
},
|
|
15
|
+
httpAuthSchemes() {
|
|
16
|
+
return _httpAuthSchemes;
|
|
17
|
+
},
|
|
18
|
+
setHttpAuthSchemeProvider(httpAuthSchemeProvider) {
|
|
19
|
+
_httpAuthSchemeProvider = httpAuthSchemeProvider;
|
|
20
|
+
},
|
|
21
|
+
httpAuthSchemeProvider() {
|
|
22
|
+
return _httpAuthSchemeProvider;
|
|
23
|
+
},
|
|
24
|
+
setCredentials(credentials) {
|
|
25
|
+
_credentials = credentials;
|
|
26
|
+
},
|
|
27
|
+
credentials() {
|
|
28
|
+
return _credentials;
|
|
29
|
+
},
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
export const resolveHttpAuthRuntimeConfig = (config) => {
|
|
33
|
+
return {
|
|
34
|
+
httpAuthSchemes: config.httpAuthSchemes(),
|
|
35
|
+
httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
|
|
36
|
+
credentials: config.credentials(),
|
|
37
|
+
};
|
|
38
|
+
};
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
import { resolveAwsSdkSigV4AConfig, resolveAwsSdkSigV4Config, } from "@aws-sdk/core";
|
|
2
|
+
import { signatureV4CrtContainer } from "@aws-sdk/signature-v4-multi-region";
|
|
3
|
+
import { resolveParams } from "@smithy/middleware-endpoint";
|
|
4
|
+
import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware";
|
|
5
|
+
import { defaultEndpointResolver } from "../endpoint/endpointResolver";
|
|
6
|
+
const createEndpointRuleSetHttpAuthSchemeParametersProvider = (defaultHttpAuthSchemeParametersProvider) => async (config, context, input) => {
|
|
7
|
+
if (!input) {
|
|
8
|
+
throw new Error(`Could not find \`input\` for \`defaultEndpointRuleSetHttpAuthSchemeParametersProvider\``);
|
|
9
|
+
}
|
|
10
|
+
const defaultParameters = await defaultHttpAuthSchemeParametersProvider(config, context, input);
|
|
11
|
+
const instructionsFn = getSmithyContext(context)?.commandInstance?.constructor
|
|
12
|
+
?.getEndpointParameterInstructions;
|
|
13
|
+
if (!instructionsFn) {
|
|
14
|
+
throw new Error(`getEndpointParameterInstructions() is not defined on \`${context.commandName}\``);
|
|
15
|
+
}
|
|
16
|
+
const endpointParameters = await resolveParams(input, { getEndpointParameterInstructions: instructionsFn }, config);
|
|
17
|
+
return Object.assign(defaultParameters, endpointParameters);
|
|
18
|
+
};
|
|
19
|
+
const _defaultS3HttpAuthSchemeParametersProvider = async (config, context, input) => {
|
|
20
|
+
return {
|
|
21
|
+
operation: getSmithyContext(context).operation,
|
|
22
|
+
region: (await normalizeProvider(config.region)()) ||
|
|
23
|
+
(() => {
|
|
24
|
+
throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
|
|
25
|
+
})(),
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
export const defaultS3HttpAuthSchemeParametersProvider = createEndpointRuleSetHttpAuthSchemeParametersProvider(_defaultS3HttpAuthSchemeParametersProvider);
|
|
29
|
+
function createAwsAuthSigv4HttpAuthOption(authParameters) {
|
|
30
|
+
return {
|
|
31
|
+
schemeId: "aws.auth#sigv4",
|
|
32
|
+
signingProperties: {
|
|
33
|
+
name: "s3",
|
|
34
|
+
region: authParameters.region,
|
|
35
|
+
},
|
|
36
|
+
propertiesExtractor: (config, context) => ({
|
|
37
|
+
signingProperties: {
|
|
38
|
+
config,
|
|
39
|
+
context,
|
|
40
|
+
},
|
|
41
|
+
}),
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
function createAwsAuthSigv4aHttpAuthOption(authParameters) {
|
|
45
|
+
return {
|
|
46
|
+
schemeId: "aws.auth#sigv4a",
|
|
47
|
+
signingProperties: {
|
|
48
|
+
name: "s3",
|
|
49
|
+
region: authParameters.region,
|
|
50
|
+
},
|
|
51
|
+
propertiesExtractor: (config, context) => ({
|
|
52
|
+
signingProperties: {
|
|
53
|
+
config,
|
|
54
|
+
context,
|
|
55
|
+
},
|
|
56
|
+
}),
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
const createEndpointRuleSetHttpAuthSchemeProvider = (defaultEndpointResolver, defaultHttpAuthSchemeResolver, createHttpAuthOptionFunctions) => {
|
|
60
|
+
const endpointRuleSetHttpAuthSchemeProvider = (authParameters) => {
|
|
61
|
+
const endpoint = defaultEndpointResolver(authParameters);
|
|
62
|
+
const authSchemes = endpoint.properties?.authSchemes;
|
|
63
|
+
if (!authSchemes) {
|
|
64
|
+
return defaultHttpAuthSchemeResolver(authParameters);
|
|
65
|
+
}
|
|
66
|
+
const options = [];
|
|
67
|
+
for (const scheme of authSchemes) {
|
|
68
|
+
const { name: resolvedName, properties = {}, ...rest } = scheme;
|
|
69
|
+
const name = resolvedName.toLowerCase();
|
|
70
|
+
if (resolvedName !== name) {
|
|
71
|
+
console.warn(`HttpAuthScheme has been normalized with lowercasing: \`${resolvedName}\` to \`${name}\``);
|
|
72
|
+
}
|
|
73
|
+
let schemeId;
|
|
74
|
+
if (name === "sigv4a") {
|
|
75
|
+
schemeId = "aws.auth#sigv4a";
|
|
76
|
+
const sigv4Present = authSchemes.find((s) => {
|
|
77
|
+
const name = s.name.toLowerCase();
|
|
78
|
+
return name !== "sigv4a" && name.startsWith("sigv4");
|
|
79
|
+
});
|
|
80
|
+
if (!signatureV4CrtContainer.CrtSignerV4 && sigv4Present) {
|
|
81
|
+
continue;
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
else if (name.startsWith("sigv4")) {
|
|
85
|
+
schemeId = "aws.auth#sigv4";
|
|
86
|
+
}
|
|
87
|
+
else {
|
|
88
|
+
throw new Error(`Unknown HttpAuthScheme found in \`@smithy.rules#endpointRuleSet\`: \`${name}\``);
|
|
89
|
+
}
|
|
90
|
+
const createOption = createHttpAuthOptionFunctions[schemeId];
|
|
91
|
+
if (!createOption) {
|
|
92
|
+
throw new Error(`Could not find HttpAuthOption create function for \`${schemeId}\``);
|
|
93
|
+
}
|
|
94
|
+
const option = createOption(authParameters);
|
|
95
|
+
option.schemeId = schemeId;
|
|
96
|
+
option.signingProperties = { ...(option.signingProperties || {}), ...rest, ...properties };
|
|
97
|
+
options.push(option);
|
|
98
|
+
}
|
|
99
|
+
return options;
|
|
100
|
+
};
|
|
101
|
+
return endpointRuleSetHttpAuthSchemeProvider;
|
|
102
|
+
};
|
|
103
|
+
const _defaultS3HttpAuthSchemeProvider = (authParameters) => {
|
|
104
|
+
const options = [];
|
|
105
|
+
switch (authParameters.operation) {
|
|
106
|
+
default: {
|
|
107
|
+
options.push(createAwsAuthSigv4HttpAuthOption(authParameters));
|
|
108
|
+
options.push(createAwsAuthSigv4aHttpAuthOption(authParameters));
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
return options;
|
|
112
|
+
};
|
|
113
|
+
export const defaultS3HttpAuthSchemeProvider = createEndpointRuleSetHttpAuthSchemeProvider(defaultEndpointResolver, _defaultS3HttpAuthSchemeProvider, {
|
|
114
|
+
"aws.auth#sigv4": createAwsAuthSigv4HttpAuthOption,
|
|
115
|
+
"aws.auth#sigv4a": createAwsAuthSigv4aHttpAuthOption,
|
|
116
|
+
});
|
|
117
|
+
export const resolveHttpAuthSchemeConfig = (config) => {
|
|
118
|
+
const config_0 = resolveAwsSdkSigV4Config(config);
|
|
119
|
+
const config_1 = resolveAwsSdkSigV4AConfig(config_0);
|
|
120
|
+
return {
|
|
121
|
+
...config_1,
|
|
122
|
+
};
|
|
123
|
+
};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { getThrow200ExceptionsPlugin } from "@aws-sdk/middleware-sdk-s3";
|
|
2
|
+
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
3
|
+
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
4
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
5
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
6
|
+
import { de_AbortMultipartUploadCommand, se_AbortMultipartUploadCommand } from "../protocols/Aws_restXml";
|
|
7
|
+
export { $Command };
|
|
8
|
+
export class AbortMultipartUploadCommand extends $Command
|
|
9
|
+
.classBuilder()
|
|
10
|
+
.ep({
|
|
11
|
+
...commonParams,
|
|
12
|
+
Bucket: { type: "contextParams", name: "Bucket" },
|
|
13
|
+
Key: { type: "contextParams", name: "Key" },
|
|
14
|
+
})
|
|
15
|
+
.m(function (Command, cs, config, o) {
|
|
16
|
+
return [
|
|
17
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
18
|
+
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
19
|
+
getThrow200ExceptionsPlugin(config),
|
|
20
|
+
];
|
|
21
|
+
})
|
|
22
|
+
.s("AmazonS3", "AbortMultipartUpload", {})
|
|
23
|
+
.n("S3Client", "AbortMultipartUploadCommand")
|
|
24
|
+
.f(void 0, void 0)
|
|
25
|
+
.ser(se_AbortMultipartUploadCommand)
|
|
26
|
+
.de(de_AbortMultipartUploadCommand)
|
|
27
|
+
.build() {
|
|
28
|
+
}
|