@nocobase/plugin-file-manager 1.6.0-beta.2 → 1.6.0-beta.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/index.js +1 -1
- package/dist/client/schemas/storageTypes/ali-oss.d.ts +3 -0
- package/dist/client/schemas/storageTypes/index.d.ts +9 -0
- package/dist/client/schemas/storageTypes/s3.d.ts +3 -0
- package/dist/client/schemas/storageTypes/tx-cos.d.ts +3 -0
- package/dist/externalVersion.js +6 -6
- package/dist/node_modules/@aws-sdk/client-s3/dist-cjs/S3.js +1302 -101
- package/dist/node_modules/@aws-sdk/client-s3/dist-cjs/S3Client.js +12 -18
- package/dist/node_modules/@aws-sdk/client-s3/dist-cjs/commands/AbortMultipartUploadCommand.js +13 -20
- package/dist/node_modules/@aws-sdk/client-s3/dist-cjs/commands/CompleteMultipartUploadCommand.js +10 -18
- package/dist/node_modules/@aws-sdk/client-s3/dist-cjs/commands/CopyObjectCommand.js +10 -17
- package/dist/node_modules/@aws-sdk/client-s3/dist-cjs/commands/CreateBucketCommand.js +13 -20
- package/dist/node_modules/@aws-sdk/client-s3/dist-cjs/commands/CreateMultipartUploadCommand.js +10 -18
- package/dist/node_modules/@aws-sdk/client-s3/dist-cjs/commands/DeleteBucketAnalyticsConfigurationCommand.js +13 -20
- package/dist/node_modules/@aws-sdk/client-s3/dist-cjs/commands/DeleteBucketCommand.js +13 -20
- package/dist/node_modules/@aws-sdk/client-s3/dist-cjs/commands/DeleteBucketCorsCommand.js +13 -20
- package/dist/node_modules/@aws-sdk/client-s3/dist-cjs/commands/DeleteBucketEncryptionCommand.js +13 -20
- package/dist/node_modules/@aws-sdk/client-s3/dist-cjs/commands/DeleteBucketIntelligentTieringConfigurationCommand.js +13 -20
- package/dist/node_modules/@aws-sdk/client-s3/dist-cjs/commands/DeleteBucketInventoryConfigurationCommand.js +13 -20
- package/dist/node_modules/@aws-sdk/client-s3/dist-cjs/commands/DeleteBucketLifecycleCommand.js +13 -20
- package/dist/node_modules/@aws-sdk/client-s3/dist-cjs/commands/DeleteBucketMetricsConfigurationCommand.js +13 -20
- package/dist/node_modules/@aws-sdk/client-s3/dist-cjs/commands/DeleteBucketOwnershipControlsCommand.js +13 -20
- package/dist/node_modules/@aws-sdk/client-s3/dist-cjs/commands/DeleteBucketPolicyCommand.js +13 -20
- package/dist/node_modules/@aws-sdk/client-s3/dist-cjs/commands/DeleteBucketReplicationCommand.js +13 -20
- package/dist/node_modules/@aws-sdk/client-s3/dist-cjs/commands/DeleteBucketTaggingCommand.js +13 -20
- package/dist/node_modules/@aws-sdk/client-s3/dist-cjs/commands/DeleteBucketWebsiteCommand.js +13 -20
- package/dist/node_modules/@aws-sdk/client-s3/dist-cjs/commands/DeleteObjectCommand.js +13 -20
- package/dist/node_modules/@aws-sdk/client-s3/dist-cjs/commands/DeleteObjectTaggingCommand.js +13 -19
- package/dist/node_modules/@aws-sdk/client-s3/dist-cjs/commands/DeleteObjectsCommand.js +13 -19
- package/dist/node_modules/@aws-sdk/client-s3/dist-cjs/commands/DeletePublicAccessBlockCommand.js +13 -20
- package/dist/node_modules/@aws-sdk/client-s3/dist-cjs/commands/GetBucketAccelerateConfigurationCommand.js +13 -20
- package/dist/node_modules/@aws-sdk/client-s3/dist-cjs/commands/GetBucketAclCommand.js +13 -20
- package/dist/node_modules/@aws-sdk/client-s3/dist-cjs/commands/GetBucketAnalyticsConfigurationCommand.js +13 -20
- package/dist/node_modules/@aws-sdk/client-s3/dist-cjs/commands/GetBucketCorsCommand.js +13 -20
- package/dist/node_modules/@aws-sdk/client-s3/dist-cjs/commands/GetBucketEncryptionCommand.js +11 -19
- package/dist/node_modules/@aws-sdk/client-s3/dist-cjs/commands/GetBucketIntelligentTieringConfigurationCommand.js +13 -20
- package/dist/node_modules/@aws-sdk/client-s3/dist-cjs/commands/GetBucketInventoryConfigurationCommand.js +11 -19
- package/dist/node_modules/@aws-sdk/client-s3/dist-cjs/commands/GetBucketLifecycleConfigurationCommand.js +13 -20
- package/dist/node_modules/@aws-sdk/client-s3/dist-cjs/commands/GetBucketLocationCommand.js +13 -20
- package/dist/node_modules/@aws-sdk/client-s3/dist-cjs/commands/GetBucketLoggingCommand.js +13 -20
- package/dist/node_modules/@aws-sdk/client-s3/dist-cjs/commands/GetBucketMetricsConfigurationCommand.js +13 -20
- package/dist/node_modules/@aws-sdk/client-s3/dist-cjs/commands/GetBucketNotificationConfigurationCommand.js +13 -20
- package/dist/node_modules/@aws-sdk/client-s3/dist-cjs/commands/GetBucketOwnershipControlsCommand.js +13 -20
- package/dist/node_modules/@aws-sdk/client-s3/dist-cjs/commands/GetBucketPolicyCommand.js +13 -20
- package/dist/node_modules/@aws-sdk/client-s3/dist-cjs/commands/GetBucketPolicyStatusCommand.js +13 -20
- package/dist/node_modules/@aws-sdk/client-s3/dist-cjs/commands/GetBucketReplicationCommand.js +13 -20
- package/dist/node_modules/@aws-sdk/client-s3/dist-cjs/commands/GetBucketRequestPaymentCommand.js +13 -20
- package/dist/node_modules/@aws-sdk/client-s3/dist-cjs/commands/GetBucketTaggingCommand.js +13 -20
- package/dist/node_modules/@aws-sdk/client-s3/dist-cjs/commands/GetBucketVersioningCommand.js +13 -20
- package/dist/node_modules/@aws-sdk/client-s3/dist-cjs/commands/GetBucketWebsiteCommand.js +13 -20
- package/dist/node_modules/@aws-sdk/client-s3/dist-cjs/commands/GetObjectAclCommand.js +13 -20
- package/dist/node_modules/@aws-sdk/client-s3/dist-cjs/commands/GetObjectAttributesCommand.js +11 -18
- package/dist/node_modules/@aws-sdk/client-s3/dist-cjs/commands/GetObjectCommand.js +10 -18
- package/dist/node_modules/@aws-sdk/client-s3/dist-cjs/commands/GetObjectLegalHoldCommand.js +13 -19
- package/dist/node_modules/@aws-sdk/client-s3/dist-cjs/commands/GetObjectLockConfigurationCommand.js +13 -19
- package/dist/node_modules/@aws-sdk/client-s3/dist-cjs/commands/GetObjectRetentionCommand.js +13 -19
- package/dist/node_modules/@aws-sdk/client-s3/dist-cjs/commands/GetObjectTaggingCommand.js +13 -19
- package/dist/node_modules/@aws-sdk/client-s3/dist-cjs/commands/GetObjectTorrentCommand.js +11 -18
- package/dist/node_modules/@aws-sdk/client-s3/dist-cjs/commands/GetPublicAccessBlockCommand.js +13 -20
- package/dist/node_modules/@aws-sdk/client-s3/dist-cjs/commands/HeadBucketCommand.js +13 -19
- package/dist/node_modules/@aws-sdk/client-s3/dist-cjs/commands/HeadObjectCommand.js +10 -18
- package/dist/node_modules/@aws-sdk/client-s3/dist-cjs/commands/ListBucketAnalyticsConfigurationsCommand.js +13 -20
- package/dist/node_modules/@aws-sdk/client-s3/dist-cjs/commands/ListBucketIntelligentTieringConfigurationsCommand.js +13 -20
- package/dist/node_modules/@aws-sdk/client-s3/dist-cjs/commands/ListBucketInventoryConfigurationsCommand.js +11 -19
- package/dist/node_modules/@aws-sdk/client-s3/dist-cjs/commands/ListBucketMetricsConfigurationsCommand.js +13 -19
- package/dist/node_modules/@aws-sdk/client-s3/dist-cjs/commands/ListBucketsCommand.js +13 -19
- package/dist/node_modules/@aws-sdk/client-s3/dist-cjs/commands/ListMultipartUploadsCommand.js +13 -20
- package/dist/node_modules/@aws-sdk/client-s3/dist-cjs/commands/ListObjectVersionsCommand.js +13 -20
- package/dist/node_modules/@aws-sdk/client-s3/dist-cjs/commands/ListObjectsCommand.js +13 -20
- package/dist/node_modules/@aws-sdk/client-s3/dist-cjs/commands/ListObjectsV2Command.js +13 -20
- package/dist/node_modules/@aws-sdk/client-s3/dist-cjs/commands/ListPartsCommand.js +11 -19
- package/dist/node_modules/@aws-sdk/client-s3/dist-cjs/commands/PutBucketAccelerateConfigurationCommand.js +13 -20
- package/dist/node_modules/@aws-sdk/client-s3/dist-cjs/commands/PutBucketAclCommand.js +13 -20
- package/dist/node_modules/@aws-sdk/client-s3/dist-cjs/commands/PutBucketAnalyticsConfigurationCommand.js +13 -20
- package/dist/node_modules/@aws-sdk/client-s3/dist-cjs/commands/PutBucketCorsCommand.js +13 -20
- package/dist/node_modules/@aws-sdk/client-s3/dist-cjs/commands/PutBucketEncryptionCommand.js +11 -19
- package/dist/node_modules/@aws-sdk/client-s3/dist-cjs/commands/PutBucketIntelligentTieringConfigurationCommand.js +13 -20
- package/dist/node_modules/@aws-sdk/client-s3/dist-cjs/commands/PutBucketInventoryConfigurationCommand.js +11 -19
- package/dist/node_modules/@aws-sdk/client-s3/dist-cjs/commands/PutBucketLifecycleConfigurationCommand.js +13 -20
- package/dist/node_modules/@aws-sdk/client-s3/dist-cjs/commands/PutBucketLoggingCommand.js +13 -20
- package/dist/node_modules/@aws-sdk/client-s3/dist-cjs/commands/PutBucketMetricsConfigurationCommand.js +13 -20
- package/dist/node_modules/@aws-sdk/client-s3/dist-cjs/commands/PutBucketNotificationConfigurationCommand.js +13 -20
- package/dist/node_modules/@aws-sdk/client-s3/dist-cjs/commands/PutBucketOwnershipControlsCommand.js +13 -20
- package/dist/node_modules/@aws-sdk/client-s3/dist-cjs/commands/PutBucketPolicyCommand.js +13 -20
- package/dist/node_modules/@aws-sdk/client-s3/dist-cjs/commands/PutBucketReplicationCommand.js +13 -20
- package/dist/node_modules/@aws-sdk/client-s3/dist-cjs/commands/PutBucketRequestPaymentCommand.js +13 -20
- package/dist/node_modules/@aws-sdk/client-s3/dist-cjs/commands/PutBucketTaggingCommand.js +13 -20
- package/dist/node_modules/@aws-sdk/client-s3/dist-cjs/commands/PutBucketVersioningCommand.js +13 -20
- package/dist/node_modules/@aws-sdk/client-s3/dist-cjs/commands/PutBucketWebsiteCommand.js +13 -20
- package/dist/node_modules/@aws-sdk/client-s3/dist-cjs/commands/PutObjectAclCommand.js +13 -20
- package/dist/node_modules/@aws-sdk/client-s3/dist-cjs/commands/PutObjectCommand.js +13 -21
- package/dist/node_modules/@aws-sdk/client-s3/dist-cjs/commands/PutObjectLegalHoldCommand.js +13 -19
- package/dist/node_modules/@aws-sdk/client-s3/dist-cjs/commands/PutObjectLockConfigurationCommand.js +13 -19
- package/dist/node_modules/@aws-sdk/client-s3/dist-cjs/commands/PutObjectRetentionCommand.js +13 -19
- package/dist/node_modules/@aws-sdk/client-s3/dist-cjs/commands/PutObjectTaggingCommand.js +13 -19
- package/dist/node_modules/@aws-sdk/client-s3/dist-cjs/commands/PutPublicAccessBlockCommand.js +13 -20
- package/dist/node_modules/@aws-sdk/client-s3/dist-cjs/commands/RestoreObjectCommand.js +11 -18
- package/dist/node_modules/@aws-sdk/client-s3/dist-cjs/commands/SelectObjectContentCommand.js +10 -20
- package/dist/node_modules/@aws-sdk/client-s3/dist-cjs/commands/UploadPartCommand.js +10 -18
- package/dist/node_modules/@aws-sdk/client-s3/dist-cjs/commands/UploadPartCopyCommand.js +10 -17
- package/dist/node_modules/@aws-sdk/client-s3/dist-cjs/commands/WriteGetObjectResponseCommand.js +11 -18
- package/dist/node_modules/@aws-sdk/client-s3/dist-cjs/commands/index.js +0 -2
- package/dist/node_modules/@aws-sdk/client-s3/dist-cjs/endpoint/EndpointParameters.js +0 -1
- package/dist/node_modules/@aws-sdk/client-s3/dist-cjs/endpoint/endpointResolver.js +1 -1
- package/dist/node_modules/@aws-sdk/client-s3/dist-cjs/endpoint/ruleset.js +3 -3
- package/dist/node_modules/@aws-sdk/client-s3/dist-cjs/index.js +3 -3
- package/dist/node_modules/@aws-sdk/client-s3/dist-cjs/models/S3ServiceException.js +2 -3
- package/dist/node_modules/@aws-sdk/client-s3/dist-cjs/models/models_0.js +1300 -378
- package/dist/node_modules/@aws-sdk/client-s3/dist-cjs/models/models_1.js +143 -49
- package/dist/node_modules/@aws-sdk/client-s3/dist-cjs/pagination/ListObjectsV2Paginator.js +8 -1
- package/dist/node_modules/@aws-sdk/client-s3/dist-cjs/pagination/ListPartsPaginator.js +8 -1
- package/dist/node_modules/@aws-sdk/client-s3/dist-cjs/pagination/index.js +0 -1
- package/dist/node_modules/@aws-sdk/client-s3/dist-cjs/protocols/Aws_restXml.js +2257 -1975
- package/dist/node_modules/@aws-sdk/client-s3/dist-cjs/runtimeConfig.browser.js +16 -10
- package/dist/node_modules/@aws-sdk/client-s3/dist-cjs/runtimeConfig.js +18 -16
- package/dist/node_modules/@aws-sdk/client-s3/dist-cjs/runtimeConfig.shared.js +16 -25
- package/dist/node_modules/@aws-sdk/client-s3/dist-cjs/waiters/waitForBucketExists.js +1 -1
- package/dist/node_modules/@aws-sdk/client-s3/dist-cjs/waiters/waitForBucketNotExists.js +1 -1
- package/dist/node_modules/@aws-sdk/client-s3/dist-cjs/waiters/waitForObjectExists.js +1 -1
- package/dist/node_modules/@aws-sdk/client-s3/dist-cjs/waiters/waitForObjectNotExists.js +1 -1
- package/dist/node_modules/@aws-sdk/client-s3/dist-es/S3.js +1302 -101
- package/dist/node_modules/@aws-sdk/client-s3/dist-es/S3Client.js +12 -18
- package/dist/node_modules/@aws-sdk/client-s3/dist-es/commands/AbortMultipartUploadCommand.js +13 -20
- package/dist/node_modules/@aws-sdk/client-s3/dist-es/commands/CompleteMultipartUploadCommand.js +10 -18
- package/dist/node_modules/@aws-sdk/client-s3/dist-es/commands/CopyObjectCommand.js +10 -17
- package/dist/node_modules/@aws-sdk/client-s3/dist-es/commands/CreateBucketCommand.js +13 -20
- package/dist/node_modules/@aws-sdk/client-s3/dist-es/commands/CreateMultipartUploadCommand.js +10 -18
- package/dist/node_modules/@aws-sdk/client-s3/dist-es/commands/DeleteBucketAnalyticsConfigurationCommand.js +13 -20
- package/dist/node_modules/@aws-sdk/client-s3/dist-es/commands/DeleteBucketCommand.js +13 -20
- package/dist/node_modules/@aws-sdk/client-s3/dist-es/commands/DeleteBucketCorsCommand.js +13 -20
- package/dist/node_modules/@aws-sdk/client-s3/dist-es/commands/DeleteBucketEncryptionCommand.js +13 -20
- package/dist/node_modules/@aws-sdk/client-s3/dist-es/commands/DeleteBucketIntelligentTieringConfigurationCommand.js +13 -20
- package/dist/node_modules/@aws-sdk/client-s3/dist-es/commands/DeleteBucketInventoryConfigurationCommand.js +13 -20
- package/dist/node_modules/@aws-sdk/client-s3/dist-es/commands/DeleteBucketLifecycleCommand.js +13 -20
- package/dist/node_modules/@aws-sdk/client-s3/dist-es/commands/DeleteBucketMetricsConfigurationCommand.js +13 -20
- package/dist/node_modules/@aws-sdk/client-s3/dist-es/commands/DeleteBucketOwnershipControlsCommand.js +13 -20
- package/dist/node_modules/@aws-sdk/client-s3/dist-es/commands/DeleteBucketPolicyCommand.js +13 -20
- package/dist/node_modules/@aws-sdk/client-s3/dist-es/commands/DeleteBucketReplicationCommand.js +13 -20
- package/dist/node_modules/@aws-sdk/client-s3/dist-es/commands/DeleteBucketTaggingCommand.js +13 -20
- package/dist/node_modules/@aws-sdk/client-s3/dist-es/commands/DeleteBucketWebsiteCommand.js +13 -20
- package/dist/node_modules/@aws-sdk/client-s3/dist-es/commands/DeleteObjectCommand.js +13 -20
- package/dist/node_modules/@aws-sdk/client-s3/dist-es/commands/DeleteObjectTaggingCommand.js +13 -19
- package/dist/node_modules/@aws-sdk/client-s3/dist-es/commands/DeleteObjectsCommand.js +13 -19
- package/dist/node_modules/@aws-sdk/client-s3/dist-es/commands/DeletePublicAccessBlockCommand.js +13 -20
- package/dist/node_modules/@aws-sdk/client-s3/dist-es/commands/GetBucketAccelerateConfigurationCommand.js +13 -20
- package/dist/node_modules/@aws-sdk/client-s3/dist-es/commands/GetBucketAclCommand.js +13 -20
- package/dist/node_modules/@aws-sdk/client-s3/dist-es/commands/GetBucketAnalyticsConfigurationCommand.js +13 -20
- package/dist/node_modules/@aws-sdk/client-s3/dist-es/commands/GetBucketCorsCommand.js +13 -20
- package/dist/node_modules/@aws-sdk/client-s3/dist-es/commands/GetBucketEncryptionCommand.js +12 -20
- package/dist/node_modules/@aws-sdk/client-s3/dist-es/commands/GetBucketIntelligentTieringConfigurationCommand.js +13 -20
- package/dist/node_modules/@aws-sdk/client-s3/dist-es/commands/GetBucketInventoryConfigurationCommand.js +12 -20
- package/dist/node_modules/@aws-sdk/client-s3/dist-es/commands/GetBucketLifecycleConfigurationCommand.js +13 -20
- package/dist/node_modules/@aws-sdk/client-s3/dist-es/commands/GetBucketLocationCommand.js +13 -20
- package/dist/node_modules/@aws-sdk/client-s3/dist-es/commands/GetBucketLoggingCommand.js +13 -20
- package/dist/node_modules/@aws-sdk/client-s3/dist-es/commands/GetBucketMetricsConfigurationCommand.js +13 -20
- package/dist/node_modules/@aws-sdk/client-s3/dist-es/commands/GetBucketNotificationConfigurationCommand.js +13 -20
- package/dist/node_modules/@aws-sdk/client-s3/dist-es/commands/GetBucketOwnershipControlsCommand.js +13 -20
- package/dist/node_modules/@aws-sdk/client-s3/dist-es/commands/GetBucketPolicyCommand.js +13 -20
- package/dist/node_modules/@aws-sdk/client-s3/dist-es/commands/GetBucketPolicyStatusCommand.js +13 -20
- package/dist/node_modules/@aws-sdk/client-s3/dist-es/commands/GetBucketReplicationCommand.js +13 -20
- package/dist/node_modules/@aws-sdk/client-s3/dist-es/commands/GetBucketRequestPaymentCommand.js +13 -20
- package/dist/node_modules/@aws-sdk/client-s3/dist-es/commands/GetBucketTaggingCommand.js +13 -20
- package/dist/node_modules/@aws-sdk/client-s3/dist-es/commands/GetBucketVersioningCommand.js +13 -20
- package/dist/node_modules/@aws-sdk/client-s3/dist-es/commands/GetBucketWebsiteCommand.js +13 -20
- package/dist/node_modules/@aws-sdk/client-s3/dist-es/commands/GetObjectAclCommand.js +13 -20
- package/dist/node_modules/@aws-sdk/client-s3/dist-es/commands/GetObjectAttributesCommand.js +12 -19
- package/dist/node_modules/@aws-sdk/client-s3/dist-es/commands/GetObjectCommand.js +10 -18
- package/dist/node_modules/@aws-sdk/client-s3/dist-es/commands/GetObjectLegalHoldCommand.js +13 -19
- package/dist/node_modules/@aws-sdk/client-s3/dist-es/commands/GetObjectLockConfigurationCommand.js +13 -19
- package/dist/node_modules/@aws-sdk/client-s3/dist-es/commands/GetObjectRetentionCommand.js +13 -19
- package/dist/node_modules/@aws-sdk/client-s3/dist-es/commands/GetObjectTaggingCommand.js +13 -19
- package/dist/node_modules/@aws-sdk/client-s3/dist-es/commands/GetObjectTorrentCommand.js +12 -19
- package/dist/node_modules/@aws-sdk/client-s3/dist-es/commands/GetPublicAccessBlockCommand.js +13 -20
- package/dist/node_modules/@aws-sdk/client-s3/dist-es/commands/HeadBucketCommand.js +13 -19
- package/dist/node_modules/@aws-sdk/client-s3/dist-es/commands/HeadObjectCommand.js +10 -18
- package/dist/node_modules/@aws-sdk/client-s3/dist-es/commands/ListBucketAnalyticsConfigurationsCommand.js +13 -20
- package/dist/node_modules/@aws-sdk/client-s3/dist-es/commands/ListBucketIntelligentTieringConfigurationsCommand.js +13 -20
- package/dist/node_modules/@aws-sdk/client-s3/dist-es/commands/ListBucketInventoryConfigurationsCommand.js +12 -20
- package/dist/node_modules/@aws-sdk/client-s3/dist-es/commands/ListBucketMetricsConfigurationsCommand.js +13 -19
- package/dist/node_modules/@aws-sdk/client-s3/dist-es/commands/ListBucketsCommand.js +13 -19
- package/dist/node_modules/@aws-sdk/client-s3/dist-es/commands/ListMultipartUploadsCommand.js +13 -20
- package/dist/node_modules/@aws-sdk/client-s3/dist-es/commands/ListObjectVersionsCommand.js +13 -20
- package/dist/node_modules/@aws-sdk/client-s3/dist-es/commands/ListObjectsCommand.js +13 -20
- package/dist/node_modules/@aws-sdk/client-s3/dist-es/commands/ListObjectsV2Command.js +13 -20
- package/dist/node_modules/@aws-sdk/client-s3/dist-es/commands/ListPartsCommand.js +12 -20
- package/dist/node_modules/@aws-sdk/client-s3/dist-es/commands/PutBucketAccelerateConfigurationCommand.js +13 -20
- package/dist/node_modules/@aws-sdk/client-s3/dist-es/commands/PutBucketAclCommand.js +13 -20
- package/dist/node_modules/@aws-sdk/client-s3/dist-es/commands/PutBucketAnalyticsConfigurationCommand.js +13 -20
- package/dist/node_modules/@aws-sdk/client-s3/dist-es/commands/PutBucketCorsCommand.js +13 -20
- package/dist/node_modules/@aws-sdk/client-s3/dist-es/commands/PutBucketEncryptionCommand.js +11 -19
- package/dist/node_modules/@aws-sdk/client-s3/dist-es/commands/PutBucketIntelligentTieringConfigurationCommand.js +13 -20
- package/dist/node_modules/@aws-sdk/client-s3/dist-es/commands/PutBucketInventoryConfigurationCommand.js +11 -19
- package/dist/node_modules/@aws-sdk/client-s3/dist-es/commands/PutBucketLifecycleConfigurationCommand.js +13 -20
- package/dist/node_modules/@aws-sdk/client-s3/dist-es/commands/PutBucketLoggingCommand.js +13 -20
- package/dist/node_modules/@aws-sdk/client-s3/dist-es/commands/PutBucketMetricsConfigurationCommand.js +13 -20
- package/dist/node_modules/@aws-sdk/client-s3/dist-es/commands/PutBucketNotificationConfigurationCommand.js +13 -20
- package/dist/node_modules/@aws-sdk/client-s3/dist-es/commands/PutBucketOwnershipControlsCommand.js +13 -20
- package/dist/node_modules/@aws-sdk/client-s3/dist-es/commands/PutBucketPolicyCommand.js +13 -20
- package/dist/node_modules/@aws-sdk/client-s3/dist-es/commands/PutBucketReplicationCommand.js +13 -20
- package/dist/node_modules/@aws-sdk/client-s3/dist-es/commands/PutBucketRequestPaymentCommand.js +13 -20
- package/dist/node_modules/@aws-sdk/client-s3/dist-es/commands/PutBucketTaggingCommand.js +13 -20
- package/dist/node_modules/@aws-sdk/client-s3/dist-es/commands/PutBucketVersioningCommand.js +13 -20
- package/dist/node_modules/@aws-sdk/client-s3/dist-es/commands/PutBucketWebsiteCommand.js +13 -20
- package/dist/node_modules/@aws-sdk/client-s3/dist-es/commands/PutObjectAclCommand.js +13 -20
- package/dist/node_modules/@aws-sdk/client-s3/dist-es/commands/PutObjectCommand.js +11 -19
- package/dist/node_modules/@aws-sdk/client-s3/dist-es/commands/PutObjectLegalHoldCommand.js +13 -19
- package/dist/node_modules/@aws-sdk/client-s3/dist-es/commands/PutObjectLockConfigurationCommand.js +13 -19
- package/dist/node_modules/@aws-sdk/client-s3/dist-es/commands/PutObjectRetentionCommand.js +13 -19
- package/dist/node_modules/@aws-sdk/client-s3/dist-es/commands/PutObjectTaggingCommand.js +13 -19
- package/dist/node_modules/@aws-sdk/client-s3/dist-es/commands/PutPublicAccessBlockCommand.js +13 -20
- package/dist/node_modules/@aws-sdk/client-s3/dist-es/commands/RestoreObjectCommand.js +12 -19
- package/dist/node_modules/@aws-sdk/client-s3/dist-es/commands/SelectObjectContentCommand.js +10 -20
- package/dist/node_modules/@aws-sdk/client-s3/dist-es/commands/UploadPartCommand.js +10 -18
- package/dist/node_modules/@aws-sdk/client-s3/dist-es/commands/UploadPartCopyCommand.js +10 -17
- package/dist/node_modules/@aws-sdk/client-s3/dist-es/commands/WriteGetObjectResponseCommand.js +11 -18
- package/dist/node_modules/@aws-sdk/client-s3/dist-es/commands/index.js +0 -2
- package/dist/node_modules/@aws-sdk/client-s3/dist-es/endpoint/EndpointParameters.js +0 -1
- package/dist/node_modules/@aws-sdk/client-s3/dist-es/endpoint/endpointResolver.js +1 -1
- package/dist/node_modules/@aws-sdk/client-s3/dist-es/endpoint/ruleset.js +3 -3
- package/dist/node_modules/@aws-sdk/client-s3/dist-es/index.js +2 -3
- package/dist/node_modules/@aws-sdk/client-s3/dist-es/models/S3ServiceException.js +1 -2
- package/dist/node_modules/@aws-sdk/client-s3/dist-es/models/models_0.js +1066 -362
- package/dist/node_modules/@aws-sdk/client-s3/dist-es/models/models_1.js +116 -46
- package/dist/node_modules/@aws-sdk/client-s3/dist-es/pagination/ListObjectsV2Paginator.js +8 -1
- package/dist/node_modules/@aws-sdk/client-s3/dist-es/pagination/ListPartsPaginator.js +8 -1
- package/dist/node_modules/@aws-sdk/client-s3/dist-es/pagination/index.js +0 -1
- package/dist/node_modules/@aws-sdk/client-s3/dist-es/protocols/Aws_restXml.js +1739 -1453
- package/dist/node_modules/@aws-sdk/client-s3/dist-es/runtimeConfig.browser.js +16 -10
- package/dist/node_modules/@aws-sdk/client-s3/dist-es/runtimeConfig.js +18 -16
- package/dist/node_modules/@aws-sdk/client-s3/dist-es/runtimeConfig.shared.js +16 -25
- package/dist/node_modules/@aws-sdk/client-s3/dist-es/waiters/waitForBucketExists.js +1 -1
- package/dist/node_modules/@aws-sdk/client-s3/dist-es/waiters/waitForBucketNotExists.js +1 -1
- package/dist/node_modules/@aws-sdk/client-s3/dist-es/waiters/waitForObjectExists.js +1 -1
- package/dist/node_modules/@aws-sdk/client-s3/dist-es/waiters/waitForObjectNotExists.js +1 -1
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/S3.d.ts +5312 -115
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/S3Client.d.ts +39 -69
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/commands/AbortMultipartUploadCommand.d.ts +8 -96
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/commands/CompleteMultipartUploadCommand.d.ts +66 -212
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/commands/CopyObjectCommand.d.ts +161 -253
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/commands/CreateBucketCommand.d.ts +124 -201
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/commands/CreateMultipartUploadCommand.d.ts +212 -247
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/commands/DeleteBucketAnalyticsConfigurationCommand.d.ts +8 -45
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/commands/DeleteBucketCommand.d.ts +7 -85
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/commands/DeleteBucketCorsCommand.d.ts +8 -56
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/commands/DeleteBucketEncryptionCommand.d.ts +12 -49
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/commands/DeleteBucketIntelligentTieringConfigurationCommand.d.ts +6 -43
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/commands/DeleteBucketInventoryConfigurationCommand.d.ts +6 -45
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/commands/DeleteBucketLifecycleCommand.d.ts +8 -54
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/commands/DeleteBucketMetricsConfigurationCommand.d.ts +11 -48
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/commands/DeleteBucketOwnershipControlsCommand.d.ts +6 -44
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/commands/DeleteBucketPolicyCommand.d.ts +22 -97
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/commands/DeleteBucketReplicationCommand.d.ts +9 -57
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/commands/DeleteBucketTaggingCommand.d.ts +5 -53
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/commands/DeleteBucketWebsiteCommand.d.ts +7 -53
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/commands/DeleteObjectCommand.d.ts +23 -158
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/commands/DeleteObjectTaggingCommand.d.ts +11 -83
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/commands/DeleteObjectsCommand.d.ts +27 -238
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/commands/DeletePublicAccessBlockCommand.d.ts +7 -44
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/commands/GetBucketAccelerateConfigurationCommand.d.ts +12 -53
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/commands/GetBucketAclCommand.d.ts +14 -72
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/commands/GetBucketAnalyticsConfigurationCommand.d.ts +11 -82
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/commands/GetBucketCorsCommand.d.ts +7 -95
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/commands/GetBucketEncryptionCommand.d.ts +10 -60
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/commands/GetBucketIntelligentTieringConfigurationCommand.d.ts +6 -70
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/commands/GetBucketInventoryConfigurationCommand.d.ts +9 -74
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/commands/GetBucketLifecycleConfigurationCommand.d.ts +9 -127
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/commands/GetBucketLocationCommand.d.ts +9 -70
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/commands/GetBucketLoggingCommand.d.ts +6 -66
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/commands/GetBucketMetricsConfigurationCommand.d.ts +13 -70
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/commands/GetBucketNotificationConfigurationCommand.d.ts +9 -108
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/commands/GetBucketOwnershipControlsCommand.d.ts +7 -54
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/commands/GetBucketPolicyCommand.d.ts +22 -110
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/commands/GetBucketPolicyStatusCommand.d.ts +7 -47
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/commands/GetBucketReplicationCommand.d.ts +9 -135
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/commands/GetBucketRequestPaymentCommand.d.ts +6 -62
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/commands/GetBucketTaggingCommand.d.ts +6 -74
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/commands/GetBucketVersioningCommand.d.ts +6 -62
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/commands/GetBucketWebsiteCommand.d.ts +7 -91
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/commands/GetObjectAclCommand.d.ts +12 -126
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/commands/GetObjectAttributesCommand.d.ts +117 -228
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/commands/GetObjectCommand.d.ts +166 -290
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/commands/GetObjectLegalHoldCommand.d.ts +6 -50
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/commands/GetObjectLockConfigurationCommand.d.ts +7 -54
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/commands/GetObjectRetentionCommand.d.ts +6 -52
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/commands/GetObjectTaggingCommand.d.ts +13 -109
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/commands/GetObjectTorrentCommand.d.ts +7 -63
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/commands/GetPublicAccessBlockCommand.d.ts +8 -50
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/commands/HeadBucketCommand.d.ts +21 -109
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/commands/HeadObjectCommand.d.ts +87 -216
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/commands/ListBucketAnalyticsConfigurationsCommand.d.ts +12 -85
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/commands/ListBucketIntelligentTieringConfigurationsCommand.d.ts +6 -75
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/commands/ListBucketInventoryConfigurationsCommand.d.ts +13 -82
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/commands/ListBucketMetricsConfigurationsCommand.d.ts +15 -76
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/commands/ListBucketsCommand.d.ts +5 -84
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/commands/ListMultipartUploadsCommand.d.ts +23 -262
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/commands/ListObjectVersionsCommand.d.ts +13 -153
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/commands/ListObjectsCommand.d.ts +6 -130
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/commands/ListObjectsV2Command.d.ts +24 -185
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/commands/ListPartsCommand.d.ts +20 -165
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/commands/PutBucketAccelerateConfigurationCommand.d.ts +15 -50
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/commands/PutBucketAclCommand.d.ts +122 -201
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/commands/PutBucketAnalyticsConfigurationCommand.d.ts +25 -83
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/commands/PutBucketCorsCommand.d.ts +10 -112
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/commands/PutBucketEncryptionCommand.d.ts +22 -69
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/commands/PutBucketIntelligentTieringConfigurationCommand.d.ts +63 -99
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/commands/PutBucketInventoryConfigurationCommand.d.ts +71 -121
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/commands/PutBucketLifecycleConfigurationCommand.d.ts +81 -197
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/commands/PutBucketLoggingCommand.d.ts +54 -144
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/commands/PutBucketMetricsConfigurationCommand.d.ts +13 -69
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/commands/PutBucketNotificationConfigurationCommand.d.ts +25 -134
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/commands/PutBucketOwnershipControlsCommand.d.ts +6 -54
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/commands/PutBucketPolicyCommand.d.ts +20 -108
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/commands/PutBucketReplicationCommand.d.ts +41 -171
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/commands/PutBucketRequestPaymentCommand.d.ts +7 -63
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/commands/PutBucketTaggingCommand.d.ts +54 -104
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/commands/PutBucketVersioningCommand.d.ts +24 -76
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/commands/PutBucketWebsiteCommand.d.ts +9 -93
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/commands/PutObjectAclCommand.d.ts +129 -220
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/commands/PutObjectCommand.d.ts +99 -342
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/commands/PutObjectLegalHoldCommand.d.ts +6 -54
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/commands/PutObjectLockConfigurationCommand.d.ts +13 -67
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/commands/PutObjectRetentionCommand.d.ts +9 -58
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/commands/PutObjectTaggingCommand.d.ts +77 -108
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/commands/PutPublicAccessBlockCommand.d.ts +14 -52
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/commands/RestoreObjectCommand.d.ts +214 -337
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/commands/SelectObjectContentCommand.d.ts +98 -200
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/commands/UploadPartCommand.d.ts +92 -189
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/commands/UploadPartCopyCommand.d.ts +121 -237
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/commands/WriteGetObjectResponseCommand.d.ts +34 -113
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/commands/index.d.ts +0 -2
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/endpoint/EndpointParameters.d.ts +2 -10
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/endpoint/endpointResolver.d.ts +1 -1
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/endpoint/ruleset.d.ts +1 -1
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/index.d.ts +2 -11
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/models/S3ServiceException.d.ts +1 -4
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/models/models_0.d.ts +2799 -5390
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/models/models_1.d.ts +354 -1959
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/pagination/Interfaces.d.ts +3 -5
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/pagination/ListObjectsV2Paginator.d.ts +1 -4
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/pagination/ListPartsPaginator.d.ts +1 -4
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/pagination/index.d.ts +0 -1
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/protocols/Aws_restXml.d.ts +188 -764
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/runtimeConfig.browser.d.ts +38 -45
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/runtimeConfig.d.ts +9 -16
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/runtimeConfig.native.d.ts +34 -41
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/runtimeConfig.shared.d.ts +8 -14
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/S3.d.ts +2 -37
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/S3Client.d.ts +36 -55
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/commands/AbortMultipartUploadCommand.d.ts +3 -4
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/commands/CompleteMultipartUploadCommand.d.ts +3 -4
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/commands/CopyObjectCommand.d.ts +3 -4
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/commands/CreateBucketCommand.d.ts +3 -4
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/commands/CreateMultipartUploadCommand.d.ts +3 -4
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/commands/DeleteBucketAnalyticsConfigurationCommand.d.ts +3 -4
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/commands/DeleteBucketCommand.d.ts +3 -4
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/commands/DeleteBucketCorsCommand.d.ts +3 -4
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/commands/DeleteBucketEncryptionCommand.d.ts +3 -4
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/commands/DeleteBucketIntelligentTieringConfigurationCommand.d.ts +3 -4
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/commands/DeleteBucketInventoryConfigurationCommand.d.ts +3 -4
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/commands/DeleteBucketLifecycleCommand.d.ts +3 -4
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/commands/DeleteBucketMetricsConfigurationCommand.d.ts +3 -4
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/commands/DeleteBucketOwnershipControlsCommand.d.ts +3 -4
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/commands/DeleteBucketPolicyCommand.d.ts +3 -4
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/commands/DeleteBucketReplicationCommand.d.ts +3 -4
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/commands/DeleteBucketTaggingCommand.d.ts +3 -4
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/commands/DeleteBucketWebsiteCommand.d.ts +3 -4
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/commands/DeleteObjectCommand.d.ts +3 -4
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/commands/DeleteObjectTaggingCommand.d.ts +3 -4
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/commands/DeleteObjectsCommand.d.ts +3 -4
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/commands/DeletePublicAccessBlockCommand.d.ts +3 -4
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/commands/GetBucketAccelerateConfigurationCommand.d.ts +3 -4
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/commands/GetBucketAclCommand.d.ts +3 -4
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/commands/GetBucketAnalyticsConfigurationCommand.d.ts +3 -4
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/commands/GetBucketCorsCommand.d.ts +3 -4
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/commands/GetBucketEncryptionCommand.d.ts +3 -4
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/commands/GetBucketIntelligentTieringConfigurationCommand.d.ts +3 -4
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/commands/GetBucketInventoryConfigurationCommand.d.ts +3 -4
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/commands/GetBucketLifecycleConfigurationCommand.d.ts +3 -4
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/commands/GetBucketLocationCommand.d.ts +3 -4
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/commands/GetBucketLoggingCommand.d.ts +3 -4
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/commands/GetBucketMetricsConfigurationCommand.d.ts +3 -4
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/commands/GetBucketNotificationConfigurationCommand.d.ts +3 -4
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/commands/GetBucketOwnershipControlsCommand.d.ts +3 -4
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/commands/GetBucketPolicyCommand.d.ts +3 -4
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/commands/GetBucketPolicyStatusCommand.d.ts +3 -4
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/commands/GetBucketReplicationCommand.d.ts +3 -4
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/commands/GetBucketRequestPaymentCommand.d.ts +3 -4
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/commands/GetBucketTaggingCommand.d.ts +3 -4
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/commands/GetBucketVersioningCommand.d.ts +3 -4
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/commands/GetBucketWebsiteCommand.d.ts +3 -4
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/commands/GetObjectAclCommand.d.ts +3 -4
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/commands/GetObjectAttributesCommand.d.ts +3 -4
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/commands/GetObjectCommand.d.ts +6 -9
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/commands/GetObjectLegalHoldCommand.d.ts +3 -4
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/commands/GetObjectLockConfigurationCommand.d.ts +3 -4
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/commands/GetObjectRetentionCommand.d.ts +3 -4
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/commands/GetObjectTaggingCommand.d.ts +3 -4
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/commands/GetObjectTorrentCommand.d.ts +6 -12
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/commands/GetPublicAccessBlockCommand.d.ts +3 -4
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/commands/HeadBucketCommand.d.ts +5 -8
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/commands/HeadObjectCommand.d.ts +3 -4
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/commands/ListBucketAnalyticsConfigurationsCommand.d.ts +3 -4
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/commands/ListBucketIntelligentTieringConfigurationsCommand.d.ts +3 -4
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/commands/ListBucketInventoryConfigurationsCommand.d.ts +3 -4
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/commands/ListBucketMetricsConfigurationsCommand.d.ts +3 -4
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/commands/ListBucketsCommand.d.ts +3 -4
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/commands/ListMultipartUploadsCommand.d.ts +3 -4
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/commands/ListObjectVersionsCommand.d.ts +3 -4
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/commands/ListObjectsCommand.d.ts +3 -4
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/commands/ListObjectsV2Command.d.ts +3 -4
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/commands/ListPartsCommand.d.ts +3 -4
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/commands/PutBucketAccelerateConfigurationCommand.d.ts +3 -4
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/commands/PutBucketAclCommand.d.ts +3 -4
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/commands/PutBucketAnalyticsConfigurationCommand.d.ts +3 -4
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/commands/PutBucketCorsCommand.d.ts +3 -4
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/commands/PutBucketEncryptionCommand.d.ts +3 -4
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/commands/PutBucketIntelligentTieringConfigurationCommand.d.ts +3 -4
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/commands/PutBucketInventoryConfigurationCommand.d.ts +3 -4
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/commands/PutBucketLifecycleConfigurationCommand.d.ts +3 -4
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/commands/PutBucketLoggingCommand.d.ts +3 -4
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/commands/PutBucketMetricsConfigurationCommand.d.ts +3 -4
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/commands/PutBucketNotificationConfigurationCommand.d.ts +3 -4
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/commands/PutBucketOwnershipControlsCommand.d.ts +3 -4
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/commands/PutBucketPolicyCommand.d.ts +3 -4
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/commands/PutBucketReplicationCommand.d.ts +4 -5
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/commands/PutBucketRequestPaymentCommand.d.ts +4 -5
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/commands/PutBucketTaggingCommand.d.ts +4 -5
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/commands/PutBucketVersioningCommand.d.ts +4 -5
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/commands/PutBucketWebsiteCommand.d.ts +4 -5
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/commands/PutObjectAclCommand.d.ts +4 -5
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/commands/PutObjectCommand.d.ts +12 -10
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/commands/PutObjectLegalHoldCommand.d.ts +4 -5
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/commands/PutObjectLockConfigurationCommand.d.ts +4 -5
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/commands/PutObjectRetentionCommand.d.ts +3 -4
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/commands/PutObjectTaggingCommand.d.ts +3 -4
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/commands/PutPublicAccessBlockCommand.d.ts +3 -4
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/commands/RestoreObjectCommand.d.ts +3 -4
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/commands/SelectObjectContentCommand.d.ts +3 -4
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/commands/UploadPartCommand.d.ts +11 -9
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/commands/UploadPartCopyCommand.d.ts +3 -4
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/commands/WriteGetObjectResponseCommand.d.ts +11 -11
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/commands/index.d.ts +0 -2
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +5 -9
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/endpoint/endpointResolver.d.ts +1 -1
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/endpoint/ruleset.d.ts +1 -1
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/index.d.ts +2 -6
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/models/S3ServiceException.d.ts +1 -2
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/models/models_0.d.ts +1189 -639
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/models/models_1.d.ts +123 -251
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/pagination/Interfaces.d.ts +3 -2
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/pagination/ListObjectsV2Paginator.d.ts +1 -1
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/pagination/ListPartsPaginator.d.ts +1 -1
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/pagination/index.d.ts +0 -1
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/protocols/Aws_restXml.d.ts +188 -212
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/runtimeConfig.browser.d.ts +62 -78
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/runtimeConfig.d.ts +14 -29
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/runtimeConfig.native.d.ts +52 -70
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/runtimeConfig.shared.d.ts +10 -19
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/waiters/waitForBucketExists.d.ts +1 -1
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/waiters/waitForBucketNotExists.d.ts +1 -1
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/waiters/waitForObjectExists.d.ts +1 -1
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/waiters/waitForObjectNotExists.d.ts +1 -1
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/waiters/waitForBucketExists.d.ts +1 -1
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/waiters/waitForBucketNotExists.d.ts +1 -1
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/waiters/waitForObjectExists.d.ts +1 -1
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/waiters/waitForObjectNotExists.d.ts +1 -1
- package/dist/node_modules/@aws-sdk/client-s3/package.json +1 -1
- package/dist/node_modules/mime-match/package.json +1 -1
- package/dist/node_modules/mkdirp/package.json +1 -1
- package/dist/node_modules/multer-aliyun-oss/package.json +1 -1
- package/dist/node_modules/multer-cos/index.js +1 -1
- package/dist/node_modules/multer-cos/package.json +1 -1
- package/dist/node_modules/multer-s3/index.js +4 -4
- package/dist/node_modules/multer-s3/package.json +1 -1
- package/dist/server/actions/attachments.js +2 -1
- package/dist/server/collections/attachments.js +1 -0
- package/dist/server/collections/storages.js +1 -0
- package/dist/server/server.d.ts +1 -0
- package/dist/server/server.js +8 -14
- package/package.json +3 -3
- package/dist/node_modules/@aws-sdk/client-s3/dist-cjs/commands/CreateSessionCommand.js +0 -59
- package/dist/node_modules/@aws-sdk/client-s3/dist-cjs/commands/ListDirectoryBucketsCommand.js +0 -58
- package/dist/node_modules/@aws-sdk/client-s3/dist-cjs/extensionConfiguration.js +0 -2
- package/dist/node_modules/@aws-sdk/client-s3/dist-cjs/pagination/ListDirectoryBucketsPaginator.js +0 -29
- package/dist/node_modules/@aws-sdk/client-s3/dist-cjs/runtimeExtensions.js +0 -22
- package/dist/node_modules/@aws-sdk/client-s3/dist-es/commands/CreateSessionCommand.js +0 -55
- package/dist/node_modules/@aws-sdk/client-s3/dist-es/commands/ListDirectoryBucketsCommand.js +0 -54
- package/dist/node_modules/@aws-sdk/client-s3/dist-es/extensionConfiguration.js +0 -1
- package/dist/node_modules/@aws-sdk/client-s3/dist-es/pagination/ListDirectoryBucketsPaginator.js +0 -25
- package/dist/node_modules/@aws-sdk/client-s3/dist-es/runtimeExtensions.js +0 -18
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/commands/CreateSessionCommand.d.ts +0 -145
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/commands/ListDirectoryBucketsCommand.d.ts +0 -98
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/extensionConfiguration.d.ts +0 -8
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/pagination/ListDirectoryBucketsPaginator.d.ts +0 -7
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/runtimeExtensions.d.ts +0 -17
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/commands/CreateSessionCommand.d.ts +0 -35
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/commands/ListDirectoryBucketsCommand.d.ts +0 -42
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/extensionConfiguration.d.ts +0 -7
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/pagination/ListDirectoryBucketsPaginator.d.ts +0 -11
- package/dist/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/runtimeExtensions.d.ts +0 -11
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"multer-s3","version":"3.0.1","description":"Streaming multer storage engine for AWS S3","main":"index.js","scripts":{"test":"standard && mocha test/basic.js"},"engines":{"node":">= 12.0.0"},"repository":{"type":"git","url":"git+https://github.com/badunk/multer-s3.git"},"keywords":["multer","s3","amazon","aws"],"author":"badunk","license":"MIT","bugs":{"url":"https://github.com/badunk/multer-s3/issues"},"homepage":"https://github.com/badunk/multer-s3#readme","dependencies":{"@aws-sdk/lib-storage":"^3.46.0","file-type":"^3.3.0","html-comment-regex":"^1.1.2","run-parallel":"^1.1.6"},"peerDependencies":{"@aws-sdk/client-s3":"^3.0.0"},"devDependencies":{"express":"^4.13.1","form-data":"^1.0.0-rc3","mocha":"^2.2.5","multer":"^1.1.0","on-finished":"^2.3.0","standard":"^5.4.1","xtend":"^4.0.1"},"_lastModified":"2025-02-
|
|
1
|
+
{"name":"multer-s3","version":"3.0.1","description":"Streaming multer storage engine for AWS S3","main":"index.js","scripts":{"test":"standard && mocha test/basic.js"},"engines":{"node":">= 12.0.0"},"repository":{"type":"git","url":"git+https://github.com/badunk/multer-s3.git"},"keywords":["multer","s3","amazon","aws"],"author":"badunk","license":"MIT","bugs":{"url":"https://github.com/badunk/multer-s3/issues"},"homepage":"https://github.com/badunk/multer-s3#readme","dependencies":{"@aws-sdk/lib-storage":"^3.46.0","file-type":"^3.3.0","html-comment-regex":"^1.1.2","run-parallel":"^1.1.6"},"peerDependencies":{"@aws-sdk/client-s3":"^3.0.0"},"devDependencies":{"express":"^4.13.1","form-data":"^1.0.0-rc3","mocha":"^2.2.5","multer":"^1.1.0","on-finished":"^2.3.0","standard":"^5.4.1","xtend":"^4.0.1"},"_lastModified":"2025-02-11T04:46:41.497Z"}
|
|
@@ -132,7 +132,8 @@ async function createMiddleware(ctx, next) {
|
|
|
132
132
|
const storageName = ((_c = (_b = ctx.db.getFieldByPath(attachmentField)) == null ? void 0 : _b.options) == null ? void 0 : _c.storage) || collection.options.storage;
|
|
133
133
|
const StorageRepo = ctx.db.getRepository("storages");
|
|
134
134
|
const storage = await StorageRepo.findOne({ filter: storageName ? { name: storageName } : { default: true } });
|
|
135
|
-
|
|
135
|
+
const plugin = ctx.app.pm.get(import__.default);
|
|
136
|
+
ctx.storage = plugin.parseStorage(storage);
|
|
136
137
|
if (ctx == null ? void 0 : ctx.request.is("multipart/*")) {
|
|
137
138
|
await multipart(ctx, next);
|
|
138
139
|
} else {
|
|
@@ -32,6 +32,7 @@ module.exports = __toCommonJS(storages_exports);
|
|
|
32
32
|
var import_database = require("@nocobase/database");
|
|
33
33
|
var storages_default = (0, import_database.defineCollection)({
|
|
34
34
|
dumpRules: "required",
|
|
35
|
+
migrationRules: ["overwrite", "schema-only"],
|
|
35
36
|
name: "storages",
|
|
36
37
|
shared: true,
|
|
37
38
|
fields: [
|
package/dist/server/server.d.ts
CHANGED
|
@@ -28,6 +28,7 @@ export declare class PluginFileManagerServer extends Plugin {
|
|
|
28
28
|
afterDestroy: (record: Model, options: any) => Promise<void>;
|
|
29
29
|
registerStorageType(type: string, options: IStorage): void;
|
|
30
30
|
createFileRecord(options: FileRecordOptions): Promise<any>;
|
|
31
|
+
parseStorage(instance: any): any;
|
|
31
32
|
uploadFile(options: UploadFileOptions): Promise<any>;
|
|
32
33
|
loadStorages(options?: {
|
|
33
34
|
transaction: any;
|
package/dist/server/server.js
CHANGED
|
@@ -95,6 +95,9 @@ class PluginFileManagerServer extends import_server.Plugin {
|
|
|
95
95
|
const data = await this.uploadFile({ storageName: name, filePath });
|
|
96
96
|
return await collectionRepository.create({ values: { ...data, ...values }, transaction });
|
|
97
97
|
}
|
|
98
|
+
parseStorage(instance) {
|
|
99
|
+
return this.app.environment.renderJsonTemplate(instance.toJSON());
|
|
100
|
+
}
|
|
98
101
|
async uploadFile(options) {
|
|
99
102
|
const { storageName, filePath, documentRoot } = options;
|
|
100
103
|
const storageRepository = this.db.getRepository("storages");
|
|
@@ -117,6 +120,7 @@ class PluginFileManagerServer extends import_server.Plugin {
|
|
|
117
120
|
if (!storageInstance) {
|
|
118
121
|
throw new Error("[file-manager] no linked or default storage provided");
|
|
119
122
|
}
|
|
123
|
+
storageInstance = this.parseStorage(storageInstance);
|
|
120
124
|
if (documentRoot) {
|
|
121
125
|
storageInstance.options["documentRoot"] = documentRoot;
|
|
122
126
|
}
|
|
@@ -130,13 +134,13 @@ class PluginFileManagerServer extends import_server.Plugin {
|
|
|
130
134
|
path: filePath,
|
|
131
135
|
stream: fileStream
|
|
132
136
|
};
|
|
133
|
-
await new Promise((
|
|
137
|
+
await new Promise((resolve, reject) => {
|
|
134
138
|
engine._handleFile({}, file, (error, info) => {
|
|
135
139
|
if (error) {
|
|
136
140
|
reject(error);
|
|
137
141
|
}
|
|
138
142
|
Object.assign(file, info);
|
|
139
|
-
|
|
143
|
+
resolve(info);
|
|
140
144
|
});
|
|
141
145
|
});
|
|
142
146
|
return (0, import_attachments.getFileData)({ app: this.app, file, storage: storageInstance, request: { body: {} } });
|
|
@@ -148,7 +152,7 @@ class PluginFileManagerServer extends import_server.Plugin {
|
|
|
148
152
|
});
|
|
149
153
|
this.storagesCache = /* @__PURE__ */ new Map();
|
|
150
154
|
for (const storage of storages) {
|
|
151
|
-
this.storagesCache.set(storage.get("id"),
|
|
155
|
+
this.storagesCache.set(storage.get("id"), this.parseStorage(storage));
|
|
152
156
|
}
|
|
153
157
|
this.db["_fileStorages"] = this.storagesCache;
|
|
154
158
|
}
|
|
@@ -178,7 +182,7 @@ class PluginFileManagerServer extends import_server.Plugin {
|
|
|
178
182
|
filterByTk: message.storageId
|
|
179
183
|
});
|
|
180
184
|
if (storage) {
|
|
181
|
-
this.storagesCache.set(storage.id,
|
|
185
|
+
this.storagesCache.set(storage.id, this.parseStorage(storage));
|
|
182
186
|
}
|
|
183
187
|
}
|
|
184
188
|
if (message.type === "storageRemove") {
|
|
@@ -203,9 +207,6 @@ class PluginFileManagerServer extends import_server.Plugin {
|
|
|
203
207
|
this.storageTypes.register(import_constants.STORAGE_TYPE_ALI_OSS, new import_ali_oss.default());
|
|
204
208
|
this.storageTypes.register(import_constants.STORAGE_TYPE_S3, new import_s3.default());
|
|
205
209
|
this.storageTypes.register(import_constants.STORAGE_TYPE_TX_COS, new import_tx_cos.default());
|
|
206
|
-
await this.db.import({
|
|
207
|
-
directory: (0, import_path.resolve)(__dirname, "./collections")
|
|
208
|
-
});
|
|
209
210
|
const Storage = this.db.getModel("storages");
|
|
210
211
|
Storage.afterSave((m, { transaction }) => {
|
|
211
212
|
this.storagesCache.set(m.id, m.toJSON());
|
|
@@ -231,13 +232,6 @@ class PluginFileManagerServer extends import_server.Plugin {
|
|
|
231
232
|
name: `pm.${this.name}.storages`,
|
|
232
233
|
actions: ["storages:*"]
|
|
233
234
|
});
|
|
234
|
-
this.db.addMigrations({
|
|
235
|
-
namespace: "file-manager",
|
|
236
|
-
directory: (0, import_path.resolve)(__dirname, "migrations"),
|
|
237
|
-
context: {
|
|
238
|
-
plugin: this
|
|
239
|
-
}
|
|
240
|
-
});
|
|
241
235
|
(0, import_actions.default)(this);
|
|
242
236
|
this.app.acl.allow("attachments", ["upload", "create"], "loggedIn");
|
|
243
237
|
this.app.acl.allow("storages", "getBasicInfo", "loggedIn");
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nocobase/plugin-file-manager",
|
|
3
|
-
"version": "1.6.0-beta.
|
|
3
|
+
"version": "1.6.0-beta.4",
|
|
4
4
|
"displayName": "File manager",
|
|
5
5
|
"displayName.zh-CN": "文件管理器",
|
|
6
6
|
"description": "Provides files storage services with files collection template and attachment field.",
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"homepage": "https://docs.nocobase.com/handbook/file-manager",
|
|
11
11
|
"homepage.zh-CN": "https://docs-cn.nocobase.com/handbook/file-manager",
|
|
12
12
|
"devDependencies": {
|
|
13
|
-
"@aws-sdk/client-s3": "
|
|
13
|
+
"@aws-sdk/client-s3": "3.245.0",
|
|
14
14
|
"@formily/antd-v5": "1.x",
|
|
15
15
|
"@formily/core": "2.x",
|
|
16
16
|
"@formily/react": "2.x",
|
|
@@ -43,5 +43,5 @@
|
|
|
43
43
|
"Collections",
|
|
44
44
|
"Collection fields"
|
|
45
45
|
],
|
|
46
|
-
"gitHead": "
|
|
46
|
+
"gitHead": "4419f433716dadf34886b261d9abe20e74551044"
|
|
47
47
|
}
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.CreateSessionCommand = exports.$Command = void 0;
|
|
4
|
-
const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
|
|
5
|
-
const middleware_serde_1 = require("@smithy/middleware-serde");
|
|
6
|
-
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
|
-
Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
|
|
8
|
-
const types_1 = require("@smithy/types");
|
|
9
|
-
const models_0_1 = require("../models/models_0");
|
|
10
|
-
const Aws_restXml_1 = require("../protocols/Aws_restXml");
|
|
11
|
-
class CreateSessionCommand extends smithy_client_1.Command {
|
|
12
|
-
static getEndpointParameterInstructions() {
|
|
13
|
-
return {
|
|
14
|
-
DisableS3ExpressSessionAuth: { type: "staticContextParams", value: true },
|
|
15
|
-
Bucket: { type: "contextParams", name: "Bucket" },
|
|
16
|
-
ForcePathStyle: { type: "clientContextParams", name: "forcePathStyle" },
|
|
17
|
-
UseArnRegion: { type: "clientContextParams", name: "useArnRegion" },
|
|
18
|
-
DisableMultiRegionAccessPoints: { type: "clientContextParams", name: "disableMultiregionAccessPoints" },
|
|
19
|
-
Accelerate: { type: "clientContextParams", name: "useAccelerateEndpoint" },
|
|
20
|
-
UseGlobalEndpoint: { type: "builtInParams", name: "useGlobalEndpoint" },
|
|
21
|
-
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
22
|
-
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
23
|
-
Region: { type: "builtInParams", name: "region" },
|
|
24
|
-
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
25
|
-
};
|
|
26
|
-
}
|
|
27
|
-
constructor(input) {
|
|
28
|
-
super();
|
|
29
|
-
this.input = input;
|
|
30
|
-
}
|
|
31
|
-
resolveMiddleware(clientStack, configuration, options) {
|
|
32
|
-
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
33
|
-
this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, CreateSessionCommand.getEndpointParameterInstructions()));
|
|
34
|
-
const stack = clientStack.concat(this.middlewareStack);
|
|
35
|
-
const { logger } = configuration;
|
|
36
|
-
const clientName = "S3Client";
|
|
37
|
-
const commandName = "CreateSessionCommand";
|
|
38
|
-
const handlerExecutionContext = {
|
|
39
|
-
logger,
|
|
40
|
-
clientName,
|
|
41
|
-
commandName,
|
|
42
|
-
inputFilterSensitiveLog: (_) => _,
|
|
43
|
-
outputFilterSensitiveLog: models_0_1.CreateSessionOutputFilterSensitiveLog,
|
|
44
|
-
[types_1.SMITHY_CONTEXT_KEY]: {
|
|
45
|
-
service: "AmazonS3",
|
|
46
|
-
operation: "CreateSession",
|
|
47
|
-
},
|
|
48
|
-
};
|
|
49
|
-
const { requestHandler } = configuration;
|
|
50
|
-
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
51
|
-
}
|
|
52
|
-
serialize(input, context) {
|
|
53
|
-
return (0, Aws_restXml_1.se_CreateSessionCommand)(input, context);
|
|
54
|
-
}
|
|
55
|
-
deserialize(output, context) {
|
|
56
|
-
return (0, Aws_restXml_1.de_CreateSessionCommand)(output, context);
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
exports.CreateSessionCommand = CreateSessionCommand;
|
package/dist/node_modules/@aws-sdk/client-s3/dist-cjs/commands/ListDirectoryBucketsCommand.js
DELETED
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ListDirectoryBucketsCommand = exports.$Command = void 0;
|
|
4
|
-
const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
|
|
5
|
-
const middleware_serde_1 = require("@smithy/middleware-serde");
|
|
6
|
-
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
|
-
Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
|
|
8
|
-
const types_1 = require("@smithy/types");
|
|
9
|
-
const Aws_restXml_1 = require("../protocols/Aws_restXml");
|
|
10
|
-
class ListDirectoryBucketsCommand extends smithy_client_1.Command {
|
|
11
|
-
static getEndpointParameterInstructions() {
|
|
12
|
-
return {
|
|
13
|
-
UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true },
|
|
14
|
-
ForcePathStyle: { type: "clientContextParams", name: "forcePathStyle" },
|
|
15
|
-
UseArnRegion: { type: "clientContextParams", name: "useArnRegion" },
|
|
16
|
-
DisableMultiRegionAccessPoints: { type: "clientContextParams", name: "disableMultiregionAccessPoints" },
|
|
17
|
-
Accelerate: { type: "clientContextParams", name: "useAccelerateEndpoint" },
|
|
18
|
-
DisableS3ExpressSessionAuth: { type: "clientContextParams", name: "disableS3ExpressSessionAuth" },
|
|
19
|
-
UseGlobalEndpoint: { type: "builtInParams", name: "useGlobalEndpoint" },
|
|
20
|
-
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
21
|
-
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
22
|
-
Region: { type: "builtInParams", name: "region" },
|
|
23
|
-
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
24
|
-
};
|
|
25
|
-
}
|
|
26
|
-
constructor(input) {
|
|
27
|
-
super();
|
|
28
|
-
this.input = input;
|
|
29
|
-
}
|
|
30
|
-
resolveMiddleware(clientStack, configuration, options) {
|
|
31
|
-
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
32
|
-
this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, ListDirectoryBucketsCommand.getEndpointParameterInstructions()));
|
|
33
|
-
const stack = clientStack.concat(this.middlewareStack);
|
|
34
|
-
const { logger } = configuration;
|
|
35
|
-
const clientName = "S3Client";
|
|
36
|
-
const commandName = "ListDirectoryBucketsCommand";
|
|
37
|
-
const handlerExecutionContext = {
|
|
38
|
-
logger,
|
|
39
|
-
clientName,
|
|
40
|
-
commandName,
|
|
41
|
-
inputFilterSensitiveLog: (_) => _,
|
|
42
|
-
outputFilterSensitiveLog: (_) => _,
|
|
43
|
-
[types_1.SMITHY_CONTEXT_KEY]: {
|
|
44
|
-
service: "AmazonS3",
|
|
45
|
-
operation: "ListDirectoryBuckets",
|
|
46
|
-
},
|
|
47
|
-
};
|
|
48
|
-
const { requestHandler } = configuration;
|
|
49
|
-
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
50
|
-
}
|
|
51
|
-
serialize(input, context) {
|
|
52
|
-
return (0, Aws_restXml_1.se_ListDirectoryBucketsCommand)(input, context);
|
|
53
|
-
}
|
|
54
|
-
deserialize(output, context) {
|
|
55
|
-
return (0, Aws_restXml_1.de_ListDirectoryBucketsCommand)(output, context);
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
exports.ListDirectoryBucketsCommand = ListDirectoryBucketsCommand;
|
package/dist/node_modules/@aws-sdk/client-s3/dist-cjs/pagination/ListDirectoryBucketsPaginator.js
DELETED
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.paginateListDirectoryBuckets = void 0;
|
|
4
|
-
const ListDirectoryBucketsCommand_1 = require("../commands/ListDirectoryBucketsCommand");
|
|
5
|
-
const S3Client_1 = require("../S3Client");
|
|
6
|
-
const makePagedClientRequest = async (client, input, ...args) => {
|
|
7
|
-
return await client.send(new ListDirectoryBucketsCommand_1.ListDirectoryBucketsCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListDirectoryBuckets(config, input, ...additionalArguments) {
|
|
10
|
-
let token = config.startingToken || undefined;
|
|
11
|
-
let hasNext = true;
|
|
12
|
-
let page;
|
|
13
|
-
while (hasNext) {
|
|
14
|
-
input.ContinuationToken = token;
|
|
15
|
-
input["MaxDirectoryBuckets"] = config.pageSize;
|
|
16
|
-
if (config.client instanceof S3Client_1.S3Client) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected S3 | S3Client");
|
|
21
|
-
}
|
|
22
|
-
yield page;
|
|
23
|
-
const prevToken = token;
|
|
24
|
-
token = page.ContinuationToken;
|
|
25
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
26
|
-
}
|
|
27
|
-
return undefined;
|
|
28
|
-
}
|
|
29
|
-
exports.paginateListDirectoryBuckets = paginateListDirectoryBuckets;
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.resolveRuntimeExtensions = void 0;
|
|
4
|
-
const region_config_resolver_1 = require("@aws-sdk/region-config-resolver");
|
|
5
|
-
const protocol_http_1 = require("@smithy/protocol-http");
|
|
6
|
-
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
|
-
const asPartial = (t) => t;
|
|
8
|
-
const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
|
|
9
|
-
const extensionConfiguration = {
|
|
10
|
-
...asPartial((0, region_config_resolver_1.getAwsRegionExtensionConfiguration)(runtimeConfig)),
|
|
11
|
-
...asPartial((0, smithy_client_1.getDefaultExtensionConfiguration)(runtimeConfig)),
|
|
12
|
-
...asPartial((0, protocol_http_1.getHttpHandlerExtensionConfiguration)(runtimeConfig)),
|
|
13
|
-
};
|
|
14
|
-
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
15
|
-
return {
|
|
16
|
-
...runtimeConfig,
|
|
17
|
-
...(0, region_config_resolver_1.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
|
|
18
|
-
...(0, smithy_client_1.resolveDefaultRuntimeConfig)(extensionConfiguration),
|
|
19
|
-
...(0, protocol_http_1.resolveHttpHandlerRuntimeConfig)(extensionConfiguration),
|
|
20
|
-
};
|
|
21
|
-
};
|
|
22
|
-
exports.resolveRuntimeExtensions = resolveRuntimeExtensions;
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
-
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
|
-
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
-
import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
|
|
5
|
-
import { CreateSessionOutputFilterSensitiveLog } from "../models/models_0";
|
|
6
|
-
import { de_CreateSessionCommand, se_CreateSessionCommand } from "../protocols/Aws_restXml";
|
|
7
|
-
export { $Command };
|
|
8
|
-
export class CreateSessionCommand extends $Command {
|
|
9
|
-
static getEndpointParameterInstructions() {
|
|
10
|
-
return {
|
|
11
|
-
DisableS3ExpressSessionAuth: { type: "staticContextParams", value: true },
|
|
12
|
-
Bucket: { type: "contextParams", name: "Bucket" },
|
|
13
|
-
ForcePathStyle: { type: "clientContextParams", name: "forcePathStyle" },
|
|
14
|
-
UseArnRegion: { type: "clientContextParams", name: "useArnRegion" },
|
|
15
|
-
DisableMultiRegionAccessPoints: { type: "clientContextParams", name: "disableMultiregionAccessPoints" },
|
|
16
|
-
Accelerate: { type: "clientContextParams", name: "useAccelerateEndpoint" },
|
|
17
|
-
UseGlobalEndpoint: { type: "builtInParams", name: "useGlobalEndpoint" },
|
|
18
|
-
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
19
|
-
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
20
|
-
Region: { type: "builtInParams", name: "region" },
|
|
21
|
-
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
22
|
-
};
|
|
23
|
-
}
|
|
24
|
-
constructor(input) {
|
|
25
|
-
super();
|
|
26
|
-
this.input = input;
|
|
27
|
-
}
|
|
28
|
-
resolveMiddleware(clientStack, configuration, options) {
|
|
29
|
-
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
30
|
-
this.middlewareStack.use(getEndpointPlugin(configuration, CreateSessionCommand.getEndpointParameterInstructions()));
|
|
31
|
-
const stack = clientStack.concat(this.middlewareStack);
|
|
32
|
-
const { logger } = configuration;
|
|
33
|
-
const clientName = "S3Client";
|
|
34
|
-
const commandName = "CreateSessionCommand";
|
|
35
|
-
const handlerExecutionContext = {
|
|
36
|
-
logger,
|
|
37
|
-
clientName,
|
|
38
|
-
commandName,
|
|
39
|
-
inputFilterSensitiveLog: (_) => _,
|
|
40
|
-
outputFilterSensitiveLog: CreateSessionOutputFilterSensitiveLog,
|
|
41
|
-
[SMITHY_CONTEXT_KEY]: {
|
|
42
|
-
service: "AmazonS3",
|
|
43
|
-
operation: "CreateSession",
|
|
44
|
-
},
|
|
45
|
-
};
|
|
46
|
-
const { requestHandler } = configuration;
|
|
47
|
-
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
48
|
-
}
|
|
49
|
-
serialize(input, context) {
|
|
50
|
-
return se_CreateSessionCommand(input, context);
|
|
51
|
-
}
|
|
52
|
-
deserialize(output, context) {
|
|
53
|
-
return de_CreateSessionCommand(output, context);
|
|
54
|
-
}
|
|
55
|
-
}
|
package/dist/node_modules/@aws-sdk/client-s3/dist-es/commands/ListDirectoryBucketsCommand.js
DELETED
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
-
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
|
-
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
-
import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
|
|
5
|
-
import { de_ListDirectoryBucketsCommand, se_ListDirectoryBucketsCommand } from "../protocols/Aws_restXml";
|
|
6
|
-
export { $Command };
|
|
7
|
-
export class ListDirectoryBucketsCommand extends $Command {
|
|
8
|
-
static getEndpointParameterInstructions() {
|
|
9
|
-
return {
|
|
10
|
-
UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true },
|
|
11
|
-
ForcePathStyle: { type: "clientContextParams", name: "forcePathStyle" },
|
|
12
|
-
UseArnRegion: { type: "clientContextParams", name: "useArnRegion" },
|
|
13
|
-
DisableMultiRegionAccessPoints: { type: "clientContextParams", name: "disableMultiregionAccessPoints" },
|
|
14
|
-
Accelerate: { type: "clientContextParams", name: "useAccelerateEndpoint" },
|
|
15
|
-
DisableS3ExpressSessionAuth: { type: "clientContextParams", name: "disableS3ExpressSessionAuth" },
|
|
16
|
-
UseGlobalEndpoint: { type: "builtInParams", name: "useGlobalEndpoint" },
|
|
17
|
-
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
18
|
-
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
19
|
-
Region: { type: "builtInParams", name: "region" },
|
|
20
|
-
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
21
|
-
};
|
|
22
|
-
}
|
|
23
|
-
constructor(input) {
|
|
24
|
-
super();
|
|
25
|
-
this.input = input;
|
|
26
|
-
}
|
|
27
|
-
resolveMiddleware(clientStack, configuration, options) {
|
|
28
|
-
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
29
|
-
this.middlewareStack.use(getEndpointPlugin(configuration, ListDirectoryBucketsCommand.getEndpointParameterInstructions()));
|
|
30
|
-
const stack = clientStack.concat(this.middlewareStack);
|
|
31
|
-
const { logger } = configuration;
|
|
32
|
-
const clientName = "S3Client";
|
|
33
|
-
const commandName = "ListDirectoryBucketsCommand";
|
|
34
|
-
const handlerExecutionContext = {
|
|
35
|
-
logger,
|
|
36
|
-
clientName,
|
|
37
|
-
commandName,
|
|
38
|
-
inputFilterSensitiveLog: (_) => _,
|
|
39
|
-
outputFilterSensitiveLog: (_) => _,
|
|
40
|
-
[SMITHY_CONTEXT_KEY]: {
|
|
41
|
-
service: "AmazonS3",
|
|
42
|
-
operation: "ListDirectoryBuckets",
|
|
43
|
-
},
|
|
44
|
-
};
|
|
45
|
-
const { requestHandler } = configuration;
|
|
46
|
-
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
47
|
-
}
|
|
48
|
-
serialize(input, context) {
|
|
49
|
-
return se_ListDirectoryBucketsCommand(input, context);
|
|
50
|
-
}
|
|
51
|
-
deserialize(output, context) {
|
|
52
|
-
return de_ListDirectoryBucketsCommand(output, context);
|
|
53
|
-
}
|
|
54
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
package/dist/node_modules/@aws-sdk/client-s3/dist-es/pagination/ListDirectoryBucketsPaginator.js
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { ListDirectoryBucketsCommand, } from "../commands/ListDirectoryBucketsCommand";
|
|
2
|
-
import { S3Client } from "../S3Client";
|
|
3
|
-
const makePagedClientRequest = async (client, input, ...args) => {
|
|
4
|
-
return await client.send(new ListDirectoryBucketsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListDirectoryBuckets(config, input, ...additionalArguments) {
|
|
7
|
-
let token = config.startingToken || undefined;
|
|
8
|
-
let hasNext = true;
|
|
9
|
-
let page;
|
|
10
|
-
while (hasNext) {
|
|
11
|
-
input.ContinuationToken = token;
|
|
12
|
-
input["MaxDirectoryBuckets"] = config.pageSize;
|
|
13
|
-
if (config.client instanceof S3Client) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected S3 | S3Client");
|
|
18
|
-
}
|
|
19
|
-
yield page;
|
|
20
|
-
const prevToken = token;
|
|
21
|
-
token = page.ContinuationToken;
|
|
22
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
-
}
|
|
24
|
-
return undefined;
|
|
25
|
-
}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfiguration, } from "@aws-sdk/region-config-resolver";
|
|
2
|
-
import { getHttpHandlerExtensionConfiguration, resolveHttpHandlerRuntimeConfig } from "@smithy/protocol-http";
|
|
3
|
-
import { getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig } from "@smithy/smithy-client";
|
|
4
|
-
const asPartial = (t) => t;
|
|
5
|
-
export const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
|
|
6
|
-
const extensionConfiguration = {
|
|
7
|
-
...asPartial(getAwsRegionExtensionConfiguration(runtimeConfig)),
|
|
8
|
-
...asPartial(getDefaultExtensionConfiguration(runtimeConfig)),
|
|
9
|
-
...asPartial(getHttpHandlerExtensionConfiguration(runtimeConfig)),
|
|
10
|
-
};
|
|
11
|
-
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
12
|
-
return {
|
|
13
|
-
...runtimeConfig,
|
|
14
|
-
...resolveAwsRegionExtensionConfiguration(extensionConfiguration),
|
|
15
|
-
...resolveDefaultRuntimeConfig(extensionConfiguration),
|
|
16
|
-
...resolveHttpHandlerRuntimeConfig(extensionConfiguration),
|
|
17
|
-
};
|
|
18
|
-
};
|
|
@@ -1,145 +0,0 @@
|
|
|
1
|
-
import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
|
|
2
|
-
import { Command as $Command } from "@smithy/smithy-client";
|
|
3
|
-
import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
|
|
4
|
-
import { CreateSessionOutput, CreateSessionRequest } from "../models/models_0";
|
|
5
|
-
import { S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../S3Client";
|
|
6
|
-
/**
|
|
7
|
-
* @public
|
|
8
|
-
*/
|
|
9
|
-
export { __MetadataBearer, $Command };
|
|
10
|
-
/**
|
|
11
|
-
* @public
|
|
12
|
-
*
|
|
13
|
-
* The input for {@link CreateSessionCommand}.
|
|
14
|
-
*/
|
|
15
|
-
export interface CreateSessionCommandInput extends CreateSessionRequest {
|
|
16
|
-
}
|
|
17
|
-
/**
|
|
18
|
-
* @public
|
|
19
|
-
*
|
|
20
|
-
* The output of {@link CreateSessionCommand}.
|
|
21
|
-
*/
|
|
22
|
-
export interface CreateSessionCommandOutput extends CreateSessionOutput, __MetadataBearer {
|
|
23
|
-
}
|
|
24
|
-
/**
|
|
25
|
-
* @public
|
|
26
|
-
* <p>Creates a session that establishes temporary security credentials to support fast authentication and authorization for the Zonal endpoint APIs on directory buckets.
|
|
27
|
-
* For more information about Zonal endpoint APIs that include the Availability Zone in the request endpoint, see
|
|
28
|
-
* <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-express-APIs.html">S3 Express One Zone APIs</a> in the <i>Amazon S3 User Guide</i>.
|
|
29
|
-
* </p>
|
|
30
|
-
* <p>To make Zonal endpoint API requests on a directory bucket, use the <code>CreateSession</code>
|
|
31
|
-
* API operation. Specifically, you grant <code>s3express:CreateSession</code> permission to a
|
|
32
|
-
* bucket in a bucket policy or an IAM identity-based policy. Then, you use IAM credentials to make the
|
|
33
|
-
* <code>CreateSession</code> API request on the bucket, which returns temporary security
|
|
34
|
-
* credentials that include the access key ID, secret access key, session token, and
|
|
35
|
-
* expiration. These credentials have associated permissions to access the Zonal endpoint APIs. After
|
|
36
|
-
* the session is created, you don’t need to use other policies to grant permissions to each
|
|
37
|
-
* Zonal endpoint API individually. Instead, in your Zonal endpoint API requests, you sign your requests by
|
|
38
|
-
* applying the temporary security credentials of the session to the request headers and
|
|
39
|
-
* following the SigV4 protocol for authentication. You also apply the session token to the
|
|
40
|
-
* <code>x-amz-s3session-token</code> request header for authorization. Temporary security
|
|
41
|
-
* credentials are scoped to the bucket and expire after 5 minutes. After the expiration time,
|
|
42
|
-
* any calls that you make with those credentials will fail. You must use IAM credentials
|
|
43
|
-
* again to make a <code>CreateSession</code> API request that generates a new set of
|
|
44
|
-
* temporary credentials for use. Temporary credentials cannot be extended or refreshed beyond
|
|
45
|
-
* the original specified interval.</p>
|
|
46
|
-
* <p>If you use Amazon Web Services SDKs, SDKs handle the session token refreshes automatically to avoid
|
|
47
|
-
* service interruptions when a session expires. We recommend that you use the Amazon Web Services SDKs to
|
|
48
|
-
* initiate and manage requests to the CreateSession API. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-express-optimizing-performance-guidelines-design-patterns.html#s3-express-optimizing-performance-session-authentication">Performance guidelines and design patterns</a> in the
|
|
49
|
-
* <i>Amazon S3 User Guide</i>.</p>
|
|
50
|
-
* <note>
|
|
51
|
-
* <ul>
|
|
52
|
-
* <li>
|
|
53
|
-
* <p>You must make requests for this API operation to the Zonal endpoint. These endpoints support virtual-hosted-style requests in the format <code>https://<i>bucket_name</i>.s3express-<i>az_id</i>.<i>region</i>.amazonaws.com</code>. Path-style requests are not supported. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-express-Regions-and-Zones.html">Regional and Zonal endpoints</a> in the
|
|
54
|
-
* <i>Amazon S3 User Guide</i>.</p>
|
|
55
|
-
* </li>
|
|
56
|
-
* <li>
|
|
57
|
-
* <p>
|
|
58
|
-
* <b>
|
|
59
|
-
* <code>CopyObject</code> API operation</b> - Unlike other Zonal endpoint APIs, the <code>CopyObject</code> API operation doesn't use the temporary security credentials returned from the <code>CreateSession</code> API operation for authentication and authorization. For information about authentication and authorization of the <code>CopyObject</code> API operation on directory buckets, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_CopyObject.html">CopyObject</a>.</p>
|
|
60
|
-
* </li>
|
|
61
|
-
* <li>
|
|
62
|
-
* <p>
|
|
63
|
-
* <b>
|
|
64
|
-
* <code>HeadBucket</code> API operation</b> - Unlike other Zonal endpoint APIs, the <code>HeadBucket</code> API operation doesn't use the temporary security credentials returned from the <code>CreateSession</code> API operation for authentication and authorization. For information about authentication and authorization of the <code>HeadBucket</code> API operation on directory buckets, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_HeadBucket.html">HeadBucket</a>.</p>
|
|
65
|
-
* </li>
|
|
66
|
-
* </ul>
|
|
67
|
-
* </note>
|
|
68
|
-
* <dl>
|
|
69
|
-
* <dt>Permissions</dt>
|
|
70
|
-
* <dd>
|
|
71
|
-
* <p>To obtain temporary security credentials, you must create a bucket policy or an IAM identity-based policy that
|
|
72
|
-
* grants <code>s3express:CreateSession</code> permission to the bucket. In a
|
|
73
|
-
* policy, you can have the <code>s3express:SessionMode</code> condition key to
|
|
74
|
-
* control who can create a <code>ReadWrite</code> or <code>ReadOnly</code> session.
|
|
75
|
-
* For more information about <code>ReadWrite</code> or <code>ReadOnly</code>
|
|
76
|
-
* sessions, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_CreateSession.html#API_CreateSession_RequestParameters">
|
|
77
|
-
* <code>x-amz-create-session-mode</code>
|
|
78
|
-
* </a>. For example policies, see
|
|
79
|
-
* <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-express-security-iam-example-bucket-policies.html">Example bucket policies for S3 Express One Zone</a> and <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-express-security-iam-identity-policies.html">Amazon Web Services Identity and Access Management (IAM) identity-based policies for S3 Express One Zone</a> in the
|
|
80
|
-
* <i>Amazon S3 User Guide</i>. </p>
|
|
81
|
-
* <p>To grant cross-account access to Zonal endpoint APIs, the bucket policy should also grant both accounts the <code>s3express:CreateSession</code> permission.</p>
|
|
82
|
-
* </dd>
|
|
83
|
-
* <dt>HTTP Host header syntax</dt>
|
|
84
|
-
* <dd>
|
|
85
|
-
* <p>
|
|
86
|
-
* <b>Directory buckets </b> - The HTTP Host header syntax is <code>
|
|
87
|
-
* <i>Bucket_name</i>.s3express-<i>az_id</i>.<i>region</i>.amazonaws.com</code>.</p>
|
|
88
|
-
* </dd>
|
|
89
|
-
* </dl>
|
|
90
|
-
* @example
|
|
91
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
92
|
-
* ```javascript
|
|
93
|
-
* import { S3Client, CreateSessionCommand } from "@aws-sdk/client-s3"; // ES Modules import
|
|
94
|
-
* // const { S3Client, CreateSessionCommand } = require("@aws-sdk/client-s3"); // CommonJS import
|
|
95
|
-
* const client = new S3Client(config);
|
|
96
|
-
* const input = { // CreateSessionRequest
|
|
97
|
-
* SessionMode: "ReadOnly" || "ReadWrite",
|
|
98
|
-
* Bucket: "STRING_VALUE", // required
|
|
99
|
-
* };
|
|
100
|
-
* const command = new CreateSessionCommand(input);
|
|
101
|
-
* const response = await client.send(command);
|
|
102
|
-
* // { // CreateSessionOutput
|
|
103
|
-
* // Credentials: { // SessionCredentials
|
|
104
|
-
* // AccessKeyId: "STRING_VALUE", // required
|
|
105
|
-
* // SecretAccessKey: "STRING_VALUE", // required
|
|
106
|
-
* // SessionToken: "STRING_VALUE", // required
|
|
107
|
-
* // Expiration: new Date("TIMESTAMP"), // required
|
|
108
|
-
* // },
|
|
109
|
-
* // };
|
|
110
|
-
*
|
|
111
|
-
* ```
|
|
112
|
-
*
|
|
113
|
-
* @param CreateSessionCommandInput - {@link CreateSessionCommandInput}
|
|
114
|
-
* @returns {@link CreateSessionCommandOutput}
|
|
115
|
-
* @see {@link CreateSessionCommandInput} for command's `input` shape.
|
|
116
|
-
* @see {@link CreateSessionCommandOutput} for command's `response` shape.
|
|
117
|
-
* @see {@link S3ClientResolvedConfig | config} for S3Client's `config` shape.
|
|
118
|
-
*
|
|
119
|
-
* @throws {@link NoSuchBucket} (client fault)
|
|
120
|
-
* <p>The specified bucket does not exist.</p>
|
|
121
|
-
*
|
|
122
|
-
* @throws {@link S3ServiceException}
|
|
123
|
-
* <p>Base exception class for all service exceptions from S3 service.</p>
|
|
124
|
-
*
|
|
125
|
-
*/
|
|
126
|
-
export declare class CreateSessionCommand extends $Command<CreateSessionCommandInput, CreateSessionCommandOutput, S3ClientResolvedConfig> {
|
|
127
|
-
readonly input: CreateSessionCommandInput;
|
|
128
|
-
static getEndpointParameterInstructions(): EndpointParameterInstructions;
|
|
129
|
-
/**
|
|
130
|
-
* @public
|
|
131
|
-
*/
|
|
132
|
-
constructor(input: CreateSessionCommandInput);
|
|
133
|
-
/**
|
|
134
|
-
* @internal
|
|
135
|
-
*/
|
|
136
|
-
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: S3ClientResolvedConfig, options?: __HttpHandlerOptions): Handler<CreateSessionCommandInput, CreateSessionCommandOutput>;
|
|
137
|
-
/**
|
|
138
|
-
* @internal
|
|
139
|
-
*/
|
|
140
|
-
private serialize;
|
|
141
|
-
/**
|
|
142
|
-
* @internal
|
|
143
|
-
*/
|
|
144
|
-
private deserialize;
|
|
145
|
-
}
|