@aws-amplify/storage 5.9.21 → 5.9.23

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (84) hide show
  1. package/lib/AwsClients/S3/abortMultipartUpload.d.ts +2 -3
  2. package/lib/AwsClients/S3/abortMultipartUpload.js +2 -2
  3. package/lib/AwsClients/S3/completeMultipartUpload.d.ts +2 -3
  4. package/lib/AwsClients/S3/completeMultipartUpload.js +2 -2
  5. package/lib/AwsClients/S3/copyObject.d.ts +2 -3
  6. package/lib/AwsClients/S3/copyObject.js +2 -2
  7. package/lib/AwsClients/S3/createMultipartUpload.d.ts +2 -3
  8. package/lib/AwsClients/S3/createMultipartUpload.js +2 -2
  9. package/lib/AwsClients/S3/deleteObject.d.ts +2 -3
  10. package/lib/AwsClients/S3/deleteObject.js +2 -2
  11. package/lib/AwsClients/S3/getObject.d.ts +2 -3
  12. package/lib/AwsClients/S3/getObject.js +2 -2
  13. package/lib/AwsClients/S3/headObject.d.ts +2 -3
  14. package/lib/AwsClients/S3/headObject.js +2 -2
  15. package/lib/AwsClients/S3/listObjectsV2.d.ts +2 -3
  16. package/lib/AwsClients/S3/listObjectsV2.js +2 -2
  17. package/lib/AwsClients/S3/listParts.d.ts +2 -3
  18. package/lib/AwsClients/S3/listParts.js +2 -2
  19. package/lib/AwsClients/S3/putObject.d.ts +2 -3
  20. package/lib/AwsClients/S3/putObject.js +2 -2
  21. package/lib/AwsClients/S3/runtime/base64/index.browser.js +2 -3
  22. package/lib/AwsClients/S3/runtime/base64/index.native.js +2 -3
  23. package/lib/AwsClients/S3/runtime/contentSha256middleware.js +2 -2
  24. package/lib/AwsClients/S3/runtime/xhrTransferHandler.d.ts +0 -1
  25. package/lib/AwsClients/S3/types.d.ts +0 -1
  26. package/lib/AwsClients/S3/uploadPart.d.ts +2 -3
  27. package/lib/AwsClients/S3/uploadPart.js +2 -2
  28. package/lib/AwsClients/S3/utils/deserializeHelpers.d.ts +2 -2
  29. package/lib/AwsClients/S3/utils/parsePayload.js +2 -2
  30. package/lib/AwsClients/S3/utils/serializeHelpers.js +2 -2
  31. package/lib/common/MD5utils.js +2 -2
  32. package/lib/common/MD5utils.native.js +2 -2
  33. package/lib/common/S3ClientUtils.d.ts +0 -1
  34. package/lib/common/S3ClientUtils.js +2 -2
  35. package/lib/common/StorageErrorStrings.js +3 -3
  36. package/lib/index.js +1 -0
  37. package/lib/providers/AWSS3Provider.js +36 -28
  38. package/lib/providers/AWSS3ProviderManagedUpload.d.ts +0 -1
  39. package/lib/providers/AWSS3ProviderManagedUpload.js +2 -2
  40. package/lib/providers/AWSS3UploadTask.d.ts +0 -1
  41. package/lib/providers/AWSS3UploadTask.js +14 -14
  42. package/lib/tsconfig.tsbuildinfo +1 -1
  43. package/lib-esm/AwsClients/S3/abortMultipartUpload.d.ts +2 -3
  44. package/lib-esm/AwsClients/S3/abortMultipartUpload.js +2 -2
  45. package/lib-esm/AwsClients/S3/completeMultipartUpload.d.ts +2 -3
  46. package/lib-esm/AwsClients/S3/completeMultipartUpload.js +2 -2
  47. package/lib-esm/AwsClients/S3/copyObject.d.ts +2 -3
  48. package/lib-esm/AwsClients/S3/copyObject.js +2 -2
  49. package/lib-esm/AwsClients/S3/createMultipartUpload.d.ts +2 -3
  50. package/lib-esm/AwsClients/S3/createMultipartUpload.js +2 -2
  51. package/lib-esm/AwsClients/S3/deleteObject.d.ts +2 -3
  52. package/lib-esm/AwsClients/S3/deleteObject.js +2 -2
  53. package/lib-esm/AwsClients/S3/getObject.d.ts +2 -3
  54. package/lib-esm/AwsClients/S3/getObject.js +2 -2
  55. package/lib-esm/AwsClients/S3/headObject.d.ts +2 -3
  56. package/lib-esm/AwsClients/S3/headObject.js +2 -2
  57. package/lib-esm/AwsClients/S3/listObjectsV2.d.ts +2 -3
  58. package/lib-esm/AwsClients/S3/listObjectsV2.js +2 -2
  59. package/lib-esm/AwsClients/S3/listParts.d.ts +2 -3
  60. package/lib-esm/AwsClients/S3/listParts.js +2 -2
  61. package/lib-esm/AwsClients/S3/putObject.d.ts +2 -3
  62. package/lib-esm/AwsClients/S3/putObject.js +2 -2
  63. package/lib-esm/AwsClients/S3/runtime/contentSha256middleware.js +2 -2
  64. package/lib-esm/AwsClients/S3/runtime/xhrTransferHandler.d.ts +0 -1
  65. package/lib-esm/AwsClients/S3/types.d.ts +0 -1
  66. package/lib-esm/AwsClients/S3/uploadPart.d.ts +2 -3
  67. package/lib-esm/AwsClients/S3/uploadPart.js +2 -2
  68. package/lib-esm/AwsClients/S3/utils/deserializeHelpers.d.ts +2 -2
  69. package/lib-esm/AwsClients/S3/utils/parsePayload.js +2 -2
  70. package/lib-esm/AwsClients/S3/utils/serializeHelpers.js +2 -2
  71. package/lib-esm/common/MD5utils.js +2 -2
  72. package/lib-esm/common/MD5utils.native.js +2 -2
  73. package/lib-esm/common/S3ClientUtils.d.ts +0 -1
  74. package/lib-esm/common/S3ClientUtils.js +2 -2
  75. package/lib-esm/index.js +1 -0
  76. package/lib-esm/providers/AWSS3Provider.js +19 -21
  77. package/lib-esm/providers/AWSS3ProviderManagedUpload.d.ts +0 -1
  78. package/lib-esm/providers/AWSS3ProviderManagedUpload.js +2 -2
  79. package/lib-esm/providers/AWSS3UploadTask.d.ts +0 -1
  80. package/lib-esm/providers/AWSS3UploadTask.js +12 -12
  81. package/lib-esm/tsconfig.tsbuildinfo +1 -1
  82. package/package.json +24 -14
  83. package/src/index.ts +2 -0
  84. package/src/providers/AWSS3Provider.ts +1 -1
@@ -1,11 +1,10 @@
1
- /// <reference types="node" />
2
1
  import { Endpoint, HttpResponse } from '@aws-amplify/core/internals/aws-client-utils';
3
2
  import { MetadataBearer } from '@aws-sdk/types';
4
3
  import type { AbortMultipartUploadCommandInput } from './types';
5
4
  export type AbortMultipartUploadInput = Pick<AbortMultipartUploadCommandInput, 'Bucket' | 'Key' | 'UploadId'>;
6
5
  export type AbortMultipartUploadOutput = MetadataBearer;
7
6
  export declare const abortMultipartUpload: (config: Omit<import("@aws-amplify/core/internals/aws-client-utils").UserAgentOptions & import("@aws-amplify/core/internals/aws-client-utils").RetryOptions<HttpResponse> & import("@aws-amplify/core/internals/aws-client-utils").SigningOptions & import("./runtime/xhrTransferHandler").XhrTransferHandlerOptions & import("@aws-amplify/core/internals/aws-client-utils").ServiceClientOptions & Partial<import("@aws-amplify/core/internals/aws-client-utils").UserAgentOptions & import("@aws-amplify/core/internals/aws-client-utils").RetryOptions<HttpResponse> & import("@aws-amplify/core/internals/aws-client-utils").SigningOptions & import("./runtime/xhrTransferHandler").XhrTransferHandlerOptions & import("@aws-amplify/core/internals/aws-client-utils").ServiceClientOptions>, "emitter" | "responseType" | "abortSignal" | "computeDelay" | "region" | "endpointResolver" | "userAgentHeader" | "userAgentValue" | "retryDecider" | "maxAttempts" | "credentials" | "service" | "uriEscapePath"> & {
8
- emitter?: import("events").EventEmitter;
7
+ emitter?: import("events")<[never]>;
9
8
  responseType?: "text" | "blob";
10
9
  abortSignal?: AbortSignal;
11
10
  computeDelay?: (attempt: number) => number;
@@ -15,7 +14,7 @@ export declare const abortMultipartUpload: (config: Omit<import("@aws-amplify/co
15
14
  userAgentValue?: string;
16
15
  retryDecider?: (response?: HttpResponse, error?: unknown) => Promise<boolean>;
17
16
  maxAttempts?: number;
18
- credentials?: import("@aws-sdk/types").Credentials | (() => Promise<import("@aws-sdk/types").Credentials>);
17
+ credentials?: import("@aws-amplify/core/internals/aws-client-utils").Credentials | (() => Promise<import("@aws-amplify/core/internals/aws-client-utils").Credentials>);
19
18
  service?: string;
20
19
  uriEscapePath?: boolean;
21
20
  }, input: AbortMultipartUploadInput) => Promise<MetadataBearer>;
@@ -21,8 +21,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
21
21
  });
22
22
  };
23
23
  var __generator = (this && this.__generator) || function (thisArg, body) {
24
- var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
25
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
24
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
25
+ return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
26
26
  function verb(n) { return function (v) { return step([n, v]); }; }
27
27
  function step(op) {
28
28
  if (f) throw new TypeError("Generator is already executing.");
@@ -1,10 +1,9 @@
1
- /// <reference types="node" />
2
1
  import { Endpoint, HttpResponse } from '@aws-amplify/core/internals/aws-client-utils';
3
2
  import type { CompleteMultipartUploadCommandInput, CompleteMultipartUploadCommandOutput } from './types';
4
3
  export type CompleteMultipartUploadInput = Pick<CompleteMultipartUploadCommandInput, 'Bucket' | 'Key' | 'UploadId' | 'MultipartUpload' | 'SSECustomerAlgorithm' | 'SSECustomerKey' | 'SSECustomerKeyMD5'>;
5
4
  export type CompleteMultipartUploadOutput = Pick<CompleteMultipartUploadCommandOutput, '$metadata' | 'Key' | 'ETag' | 'Location'>;
6
5
  export declare const completeMultipartUpload: (config: Omit<import("@aws-amplify/core/internals/aws-client-utils").UserAgentOptions & import("@aws-amplify/core/internals/aws-client-utils").RetryOptions<HttpResponse> & import("@aws-amplify/core/internals/aws-client-utils").SigningOptions & import("./runtime/xhrTransferHandler").XhrTransferHandlerOptions & import("@aws-amplify/core/internals/aws-client-utils").ServiceClientOptions & Partial<import("@aws-amplify/core/internals/aws-client-utils").UserAgentOptions & import("@aws-amplify/core/internals/aws-client-utils").RetryOptions<HttpResponse> & import("@aws-amplify/core/internals/aws-client-utils").SigningOptions & import("./runtime/xhrTransferHandler").XhrTransferHandlerOptions & import("@aws-amplify/core/internals/aws-client-utils").ServiceClientOptions>, "emitter" | "responseType" | "abortSignal" | "computeDelay" | "region" | "endpointResolver" | "userAgentHeader" | "userAgentValue" | "retryDecider" | "maxAttempts" | "credentials" | "service" | "uriEscapePath"> & {
7
- emitter?: import("events").EventEmitter;
6
+ emitter?: import("events")<[never]>;
8
7
  responseType?: "text" | "blob";
9
8
  abortSignal?: AbortSignal;
10
9
  computeDelay?: (attempt: number) => number;
@@ -14,7 +13,7 @@ export declare const completeMultipartUpload: (config: Omit<import("@aws-amplify
14
13
  userAgentValue?: string;
15
14
  retryDecider?: (response?: HttpResponse, error?: unknown) => Promise<boolean>;
16
15
  maxAttempts?: number;
17
- credentials?: import("@aws-sdk/types/types/credentials").Credentials | (() => Promise<import("@aws-sdk/types/types/credentials").Credentials>);
16
+ credentials?: import("@aws-amplify/core/internals/aws-client-utils").Credentials | (() => Promise<import("@aws-amplify/core/internals/aws-client-utils").Credentials>);
18
17
  service?: string;
19
18
  uriEscapePath?: boolean;
20
19
  }, input: CompleteMultipartUploadInput) => Promise<CompleteMultipartUploadOutput>;
@@ -21,8 +21,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
21
21
  });
22
22
  };
23
23
  var __generator = (this && this.__generator) || function (thisArg, body) {
24
- var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
25
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
24
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
25
+ return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
26
26
  function verb(n) { return function (v) { return step([n, v]); }; }
27
27
  function step(op) {
28
28
  if (f) throw new TypeError("Generator is already executing.");
@@ -1,4 +1,3 @@
1
- /// <reference types="node" />
2
1
  import { Endpoint, HttpResponse } from '@aws-amplify/core/internals/aws-client-utils';
3
2
  import { MetadataBearer } from '@aws-sdk/types';
4
3
  import type { CopyObjectCommandInput } from './types';
@@ -8,7 +7,7 @@ import type { CopyObjectCommandInput } from './types';
8
7
  export type CopyObjectInput = Pick<CopyObjectCommandInput, 'Bucket' | 'CopySource' | 'Key' | 'MetadataDirective' | 'CacheControl' | 'ContentType' | 'ContentDisposition' | 'ContentLanguage' | 'Expires' | 'ACL' | 'ServerSideEncryption' | 'SSECustomerAlgorithm' | 'SSECustomerKey' | 'SSECustomerKeyMD5' | 'SSEKMSKeyId' | 'Tagging' | 'Metadata'>;
9
8
  export type CopyObjectOutput = MetadataBearer;
10
9
  export declare const copyObject: (config: Omit<import("@aws-amplify/core/internals/aws-client-utils").UserAgentOptions & import("@aws-amplify/core/internals/aws-client-utils").RetryOptions<HttpResponse> & import("@aws-amplify/core/internals/aws-client-utils").SigningOptions & import("./runtime/xhrTransferHandler").XhrTransferHandlerOptions & import("@aws-amplify/core/internals/aws-client-utils").ServiceClientOptions & Partial<import("@aws-amplify/core/internals/aws-client-utils").UserAgentOptions & import("@aws-amplify/core/internals/aws-client-utils").RetryOptions<HttpResponse> & import("@aws-amplify/core/internals/aws-client-utils").SigningOptions & import("./runtime/xhrTransferHandler").XhrTransferHandlerOptions & import("@aws-amplify/core/internals/aws-client-utils").ServiceClientOptions>, "emitter" | "responseType" | "abortSignal" | "computeDelay" | "region" | "endpointResolver" | "userAgentHeader" | "userAgentValue" | "retryDecider" | "maxAttempts" | "credentials" | "service" | "uriEscapePath"> & {
11
- emitter?: import("events").EventEmitter;
10
+ emitter?: import("events")<[never]>;
12
11
  responseType?: "text" | "blob";
13
12
  abortSignal?: AbortSignal;
14
13
  computeDelay?: (attempt: number) => number;
@@ -18,7 +17,7 @@ export declare const copyObject: (config: Omit<import("@aws-amplify/core/interna
18
17
  userAgentValue?: string;
19
18
  retryDecider?: (response?: HttpResponse, error?: unknown) => Promise<boolean>;
20
19
  maxAttempts?: number;
21
- credentials?: import("@aws-sdk/types").Credentials | (() => Promise<import("@aws-sdk/types").Credentials>);
20
+ credentials?: import("@aws-amplify/core/internals/aws-client-utils").Credentials | (() => Promise<import("@aws-amplify/core/internals/aws-client-utils").Credentials>);
22
21
  service?: string;
23
22
  uriEscapePath?: boolean;
24
23
  }, input: CopyObjectInput) => Promise<MetadataBearer>;
@@ -21,8 +21,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
21
21
  });
22
22
  };
23
23
  var __generator = (this && this.__generator) || function (thisArg, body) {
24
- var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
25
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
24
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
25
+ return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
26
26
  function verb(n) { return function (v) { return step([n, v]); }; }
27
27
  function step(op) {
28
28
  if (f) throw new TypeError("Generator is already executing.");
@@ -1,11 +1,10 @@
1
- /// <reference types="node" />
2
1
  import { Endpoint, HttpResponse } from '@aws-amplify/core/internals/aws-client-utils';
3
2
  import type { CreateMultipartUploadCommandInput, CreateMultipartUploadCommandOutput } from './types';
4
3
  import type { PutObjectInput } from './putObject';
5
4
  export type CreateMultipartUploadInput = Extract<CreateMultipartUploadCommandInput, PutObjectInput>;
6
5
  export type CreateMultipartUploadOutput = Pick<CreateMultipartUploadCommandOutput, 'UploadId' | '$metadata'>;
7
6
  export declare const createMultipartUpload: (config: Omit<import("@aws-amplify/core/internals/aws-client-utils").UserAgentOptions & import("@aws-amplify/core/internals/aws-client-utils").RetryOptions<HttpResponse> & import("@aws-amplify/core/internals/aws-client-utils").SigningOptions & import("./runtime/xhrTransferHandler").XhrTransferHandlerOptions & import("@aws-amplify/core/internals/aws-client-utils").ServiceClientOptions & Partial<import("@aws-amplify/core/internals/aws-client-utils").UserAgentOptions & import("@aws-amplify/core/internals/aws-client-utils").RetryOptions<HttpResponse> & import("@aws-amplify/core/internals/aws-client-utils").SigningOptions & import("./runtime/xhrTransferHandler").XhrTransferHandlerOptions & import("@aws-amplify/core/internals/aws-client-utils").ServiceClientOptions>, "emitter" | "responseType" | "abortSignal" | "computeDelay" | "region" | "endpointResolver" | "userAgentHeader" | "userAgentValue" | "retryDecider" | "maxAttempts" | "credentials" | "service" | "uriEscapePath"> & {
8
- emitter?: import("events").EventEmitter;
7
+ emitter?: import("events")<[never]>;
9
8
  responseType?: "text" | "blob";
10
9
  abortSignal?: AbortSignal;
11
10
  computeDelay?: (attempt: number) => number;
@@ -15,7 +14,7 @@ export declare const createMultipartUpload: (config: Omit<import("@aws-amplify/c
15
14
  userAgentValue?: string;
16
15
  retryDecider?: (response?: HttpResponse, error?: unknown) => Promise<boolean>;
17
16
  maxAttempts?: number;
18
- credentials?: import("@aws-sdk/types/types/credentials").Credentials | (() => Promise<import("@aws-sdk/types/types/credentials").Credentials>);
17
+ credentials?: import("@aws-amplify/core/internals/aws-client-utils").Credentials | (() => Promise<import("@aws-amplify/core/internals/aws-client-utils").Credentials>);
19
18
  service?: string;
20
19
  uriEscapePath?: boolean;
21
20
  }, input: CreateMultipartUploadCommandInput) => Promise<CreateMultipartUploadOutput>;
@@ -21,8 +21,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
21
21
  });
22
22
  };
23
23
  var __generator = (this && this.__generator) || function (thisArg, body) {
24
- var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
25
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
24
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
25
+ return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
26
26
  function verb(n) { return function (v) { return step([n, v]); }; }
27
27
  function step(op) {
28
28
  if (f) throw new TypeError("Generator is already executing.");
@@ -1,10 +1,9 @@
1
- /// <reference types="node" />
2
1
  import { Endpoint, HttpResponse } from '@aws-amplify/core/internals/aws-client-utils';
3
2
  import type { DeleteObjectCommandInput, DeleteObjectCommandOutput } from './types';
4
3
  export type DeleteObjectInput = Pick<DeleteObjectCommandInput, 'Bucket' | 'Key'>;
5
4
  export type DeleteObjectOutput = DeleteObjectCommandOutput;
6
5
  export declare const deleteObject: (config: Omit<import("@aws-amplify/core/internals/aws-client-utils").UserAgentOptions & import("@aws-amplify/core/internals/aws-client-utils").RetryOptions<HttpResponse> & import("@aws-amplify/core/internals/aws-client-utils").SigningOptions & import("./runtime/xhrTransferHandler").XhrTransferHandlerOptions & import("@aws-amplify/core/internals/aws-client-utils").ServiceClientOptions & Partial<import("@aws-amplify/core/internals/aws-client-utils").UserAgentOptions & import("@aws-amplify/core/internals/aws-client-utils").RetryOptions<HttpResponse> & import("@aws-amplify/core/internals/aws-client-utils").SigningOptions & import("./runtime/xhrTransferHandler").XhrTransferHandlerOptions & import("@aws-amplify/core/internals/aws-client-utils").ServiceClientOptions>, "emitter" | "responseType" | "abortSignal" | "computeDelay" | "region" | "endpointResolver" | "userAgentHeader" | "userAgentValue" | "retryDecider" | "maxAttempts" | "credentials" | "service" | "uriEscapePath"> & {
7
- emitter?: import("events").EventEmitter;
6
+ emitter?: import("events")<[never]>;
8
7
  responseType?: "text" | "blob";
9
8
  abortSignal?: AbortSignal;
10
9
  computeDelay?: (attempt: number) => number;
@@ -14,7 +13,7 @@ export declare const deleteObject: (config: Omit<import("@aws-amplify/core/inter
14
13
  userAgentValue?: string;
15
14
  retryDecider?: (response?: HttpResponse, error?: unknown) => Promise<boolean>;
16
15
  maxAttempts?: number;
17
- credentials?: import("@aws-sdk/types/types/credentials").Credentials | (() => Promise<import("@aws-sdk/types/types/credentials").Credentials>);
16
+ credentials?: import("@aws-amplify/core/internals/aws-client-utils").Credentials | (() => Promise<import("@aws-amplify/core/internals/aws-client-utils").Credentials>);
18
17
  service?: string;
19
18
  uriEscapePath?: boolean;
20
19
  }, input: DeleteObjectInput) => Promise<DeleteObjectCommandOutput>;
@@ -21,8 +21,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
21
21
  });
22
22
  };
23
23
  var __generator = (this && this.__generator) || function (thisArg, body) {
24
- var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
25
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
24
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
25
+ return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
26
26
  function verb(n) { return function (v) { return step([n, v]); }; }
27
27
  function step(op) {
28
28
  if (f) throw new TypeError("Generator is already executing.");
@@ -1,11 +1,10 @@
1
- /// <reference types="node" />
2
1
  import { Endpoint, UserAgentOptions, PresignUrlOptions } from '@aws-amplify/core/internals/aws-client-utils';
3
2
  import { S3EndpointResolverOptions } from './base';
4
3
  import type { GetObjectCommandInput, GetObjectCommandOutput } from './types';
5
4
  export type GetObjectInput = Pick<GetObjectCommandInput, 'Bucket' | 'Key' | 'ResponseCacheControl' | 'ResponseContentDisposition' | 'ResponseContentEncoding' | 'ResponseContentLanguage' | 'ResponseContentType' | 'SSECustomerAlgorithm' | 'SSECustomerKey' | 'SSECustomerKeyMD5'>;
6
5
  export type GetObjectOutput = GetObjectCommandOutput;
7
6
  export declare const getObject: (config: Omit<UserAgentOptions & import("@aws-amplify/core/internals/aws-client-utils").RetryOptions<import("@aws-amplify/core/internals/aws-client-utils").HttpResponse> & import("@aws-amplify/core/internals/aws-client-utils").SigningOptions & import("./runtime/xhrTransferHandler").XhrTransferHandlerOptions & import("@aws-amplify/core/internals/aws-client-utils").ServiceClientOptions & Partial<UserAgentOptions & import("@aws-amplify/core/internals/aws-client-utils").RetryOptions<import("@aws-amplify/core/internals/aws-client-utils").HttpResponse> & import("@aws-amplify/core/internals/aws-client-utils").SigningOptions & import("./runtime/xhrTransferHandler").XhrTransferHandlerOptions & import("@aws-amplify/core/internals/aws-client-utils").ServiceClientOptions>, "emitter" | "responseType" | "abortSignal" | "computeDelay" | "region" | "endpointResolver" | "userAgentHeader" | "userAgentValue" | "retryDecider" | "maxAttempts" | "credentials" | "service" | "uriEscapePath"> & {
8
- emitter?: import("events").EventEmitter;
7
+ emitter?: import("events")<[never]>;
9
8
  responseType?: "text" | "blob";
10
9
  abortSignal?: AbortSignal;
11
10
  computeDelay?: (attempt: number) => number;
@@ -15,7 +14,7 @@ export declare const getObject: (config: Omit<UserAgentOptions & import("@aws-am
15
14
  userAgentValue?: string;
16
15
  retryDecider?: (response?: import("@aws-amplify/core/internals/aws-client-utils").HttpResponse, error?: unknown) => Promise<boolean>;
17
16
  maxAttempts?: number;
18
- credentials?: import("@aws-sdk/types/types/credentials").Credentials | (() => Promise<import("@aws-sdk/types/types/credentials").Credentials>);
17
+ credentials?: import("@aws-amplify/core/internals/aws-client-utils").Credentials | (() => Promise<import("@aws-amplify/core/internals/aws-client-utils").Credentials>);
19
18
  service?: string;
20
19
  uriEscapePath?: boolean;
21
20
  }, input: GetObjectInput) => Promise<GetObjectCommandOutput>;
@@ -21,8 +21,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
21
21
  });
22
22
  };
23
23
  var __generator = (this && this.__generator) || function (thisArg, body) {
24
- var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
25
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
24
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
25
+ return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
26
26
  function verb(n) { return function (v) { return step([n, v]); }; }
27
27
  function step(op) {
28
28
  if (f) throw new TypeError("Generator is already executing.");
@@ -1,10 +1,9 @@
1
- /// <reference types="node" />
2
1
  import { Endpoint } from '@aws-amplify/core/internals/aws-client-utils';
3
2
  import type { HeadObjectCommandInput, HeadObjectCommandOutput } from './types';
4
3
  export type HeadObjectInput = Pick<HeadObjectCommandInput, 'Bucket' | 'Key' | 'SSECustomerKey' | 'SSECustomerKeyMD5' | 'SSECustomerAlgorithm'>;
5
4
  export type HeadObjectOutput = Pick<HeadObjectCommandOutput, '$metadata' | 'ContentLength' | 'ContentType' | 'ETag' | 'LastModified' | 'Metadata' | 'VersionId'>;
6
5
  export declare const headObject: (config: Omit<import("@aws-amplify/core/internals/aws-client-utils").UserAgentOptions & import("@aws-amplify/core/internals/aws-client-utils").RetryOptions<import("@aws-amplify/core/internals/aws-client-utils").HttpResponse> & import("@aws-amplify/core/internals/aws-client-utils").SigningOptions & import("./runtime/xhrTransferHandler").XhrTransferHandlerOptions & import("@aws-amplify/core/internals/aws-client-utils").ServiceClientOptions & Partial<import("@aws-amplify/core/internals/aws-client-utils").UserAgentOptions & import("@aws-amplify/core/internals/aws-client-utils").RetryOptions<import("@aws-amplify/core/internals/aws-client-utils").HttpResponse> & import("@aws-amplify/core/internals/aws-client-utils").SigningOptions & import("./runtime/xhrTransferHandler").XhrTransferHandlerOptions & import("@aws-amplify/core/internals/aws-client-utils").ServiceClientOptions>, "emitter" | "responseType" | "abortSignal" | "computeDelay" | "region" | "endpointResolver" | "userAgentHeader" | "userAgentValue" | "retryDecider" | "maxAttempts" | "credentials" | "service" | "uriEscapePath"> & {
7
- emitter?: import("events").EventEmitter;
6
+ emitter?: import("events")<[never]>;
8
7
  responseType?: "text" | "blob";
9
8
  abortSignal?: AbortSignal;
10
9
  computeDelay?: (attempt: number) => number;
@@ -14,7 +13,7 @@ export declare const headObject: (config: Omit<import("@aws-amplify/core/interna
14
13
  userAgentValue?: string;
15
14
  retryDecider?: (response?: import("@aws-amplify/core/internals/aws-client-utils").HttpResponse, error?: unknown) => Promise<boolean>;
16
15
  maxAttempts?: number;
17
- credentials?: import("@aws-sdk/types/types/credentials").Credentials | (() => Promise<import("@aws-sdk/types/types/credentials").Credentials>);
16
+ credentials?: import("@aws-amplify/core/internals/aws-client-utils").Credentials | (() => Promise<import("@aws-amplify/core/internals/aws-client-utils").Credentials>);
18
17
  service?: string;
19
18
  uriEscapePath?: boolean;
20
19
  }, input: HeadObjectInput) => Promise<HeadObjectOutput>;
@@ -21,8 +21,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
21
21
  });
22
22
  };
23
23
  var __generator = (this && this.__generator) || function (thisArg, body) {
24
- var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
25
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
24
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
25
+ return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
26
26
  function verb(n) { return function (v) { return step([n, v]); }; }
27
27
  function step(op) {
28
28
  if (f) throw new TypeError("Generator is already executing.");
@@ -1,10 +1,9 @@
1
- /// <reference types="node" />
2
1
  import { Endpoint, HttpResponse } from '@aws-amplify/core/internals/aws-client-utils';
3
2
  import type { ListObjectsV2CommandInput, ListObjectsV2CommandOutput } from './types';
4
3
  export type ListObjectsV2Input = ListObjectsV2CommandInput;
5
4
  export type ListObjectsV2Output = ListObjectsV2CommandOutput;
6
5
  export declare const listObjectsV2: (config: Omit<import("@aws-amplify/core/internals/aws-client-utils").UserAgentOptions & import("@aws-amplify/core/internals/aws-client-utils").RetryOptions<HttpResponse> & import("@aws-amplify/core/internals/aws-client-utils").SigningOptions & import("./runtime/xhrTransferHandler").XhrTransferHandlerOptions & import("@aws-amplify/core/internals/aws-client-utils").ServiceClientOptions & Partial<import("@aws-amplify/core/internals/aws-client-utils").UserAgentOptions & import("@aws-amplify/core/internals/aws-client-utils").RetryOptions<HttpResponse> & import("@aws-amplify/core/internals/aws-client-utils").SigningOptions & import("./runtime/xhrTransferHandler").XhrTransferHandlerOptions & import("@aws-amplify/core/internals/aws-client-utils").ServiceClientOptions>, "emitter" | "responseType" | "abortSignal" | "computeDelay" | "region" | "endpointResolver" | "userAgentHeader" | "userAgentValue" | "retryDecider" | "maxAttempts" | "credentials" | "service" | "uriEscapePath"> & {
7
- emitter?: import("events").EventEmitter;
6
+ emitter?: import("events")<[never]>;
8
7
  responseType?: "text" | "blob";
9
8
  abortSignal?: AbortSignal;
10
9
  computeDelay?: (attempt: number) => number;
@@ -14,7 +13,7 @@ export declare const listObjectsV2: (config: Omit<import("@aws-amplify/core/inte
14
13
  userAgentValue?: string;
15
14
  retryDecider?: (response?: HttpResponse, error?: unknown) => Promise<boolean>;
16
15
  maxAttempts?: number;
17
- credentials?: import("@aws-sdk/types/types/credentials").Credentials | (() => Promise<import("@aws-sdk/types/types/credentials").Credentials>);
16
+ credentials?: import("@aws-amplify/core/internals/aws-client-utils").Credentials | (() => Promise<import("@aws-amplify/core/internals/aws-client-utils").Credentials>);
18
17
  service?: string;
19
18
  uriEscapePath?: boolean;
20
19
  }, input: ListObjectsV2CommandInput) => Promise<ListObjectsV2CommandOutput>;
@@ -21,8 +21,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
21
21
  });
22
22
  };
23
23
  var __generator = (this && this.__generator) || function (thisArg, body) {
24
- var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
25
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
24
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
25
+ return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
26
26
  function verb(n) { return function (v) { return step([n, v]); }; }
27
27
  function step(op) {
28
28
  if (f) throw new TypeError("Generator is already executing.");
@@ -1,10 +1,9 @@
1
- /// <reference types="node" />
2
1
  import { Endpoint, HttpResponse } from '@aws-amplify/core/internals/aws-client-utils';
3
2
  import type { ListPartsCommandInput, ListPartsCommandOutput } from './types';
4
3
  export type ListPartsInput = Pick<ListPartsCommandInput, 'Bucket' | 'Key' | 'UploadId' | 'SSECustomerAlgorithm' | 'SSECustomerKey' | 'SSECustomerKeyMD5'>;
5
4
  export type ListPartsOutput = Pick<ListPartsCommandOutput, 'Parts' | 'UploadId' | '$metadata'>;
6
5
  export declare const listParts: (config: Omit<import("@aws-amplify/core/internals/aws-client-utils").UserAgentOptions & import("@aws-amplify/core/internals/aws-client-utils").RetryOptions<HttpResponse> & import("@aws-amplify/core/internals/aws-client-utils").SigningOptions & import("./runtime/xhrTransferHandler").XhrTransferHandlerOptions & import("@aws-amplify/core/internals/aws-client-utils").ServiceClientOptions & Partial<import("@aws-amplify/core/internals/aws-client-utils").UserAgentOptions & import("@aws-amplify/core/internals/aws-client-utils").RetryOptions<HttpResponse> & import("@aws-amplify/core/internals/aws-client-utils").SigningOptions & import("./runtime/xhrTransferHandler").XhrTransferHandlerOptions & import("@aws-amplify/core/internals/aws-client-utils").ServiceClientOptions>, "emitter" | "responseType" | "abortSignal" | "computeDelay" | "region" | "endpointResolver" | "userAgentHeader" | "userAgentValue" | "retryDecider" | "maxAttempts" | "credentials" | "service" | "uriEscapePath"> & {
7
- emitter?: import("events").EventEmitter;
6
+ emitter?: import("events")<[never]>;
8
7
  responseType?: "text" | "blob";
9
8
  abortSignal?: AbortSignal;
10
9
  computeDelay?: (attempt: number) => number;
@@ -14,7 +13,7 @@ export declare const listParts: (config: Omit<import("@aws-amplify/core/internal
14
13
  userAgentValue?: string;
15
14
  retryDecider?: (response?: HttpResponse, error?: unknown) => Promise<boolean>;
16
15
  maxAttempts?: number;
17
- credentials?: import("@aws-sdk/types/types/credentials").Credentials | (() => Promise<import("@aws-sdk/types/types/credentials").Credentials>);
16
+ credentials?: import("@aws-amplify/core/internals/aws-client-utils").Credentials | (() => Promise<import("@aws-amplify/core/internals/aws-client-utils").Credentials>);
18
17
  service?: string;
19
18
  uriEscapePath?: boolean;
20
19
  }, input: ListPartsInput) => Promise<ListPartsOutput>;
@@ -21,8 +21,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
21
21
  });
22
22
  };
23
23
  var __generator = (this && this.__generator) || function (thisArg, body) {
24
- var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
25
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
24
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
25
+ return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
26
26
  function verb(n) { return function (v) { return step([n, v]); }; }
27
27
  function step(op) {
28
28
  if (f) throw new TypeError("Generator is already executing.");
@@ -1,4 +1,3 @@
1
- /// <reference types="node" />
2
1
  import { Endpoint, HttpResponse } from '@aws-amplify/core/internals/aws-client-utils';
3
2
  import type { PutObjectCommandInput, PutObjectCommandOutput } from './types';
4
3
  /**
@@ -7,7 +6,7 @@ import type { PutObjectCommandInput, PutObjectCommandOutput } from './types';
7
6
  export type PutObjectInput = Pick<PutObjectCommandInput, 'Bucket' | 'Key' | 'Body' | 'ServerSideEncryption' | 'SSECustomerAlgorithm' | 'SSECustomerKey' | 'SSECustomerKeyMD5' | 'SSEKMSKeyId' | 'ACL' | 'CacheControl' | 'ContentDisposition' | 'ContentEncoding' | 'ContentType' | 'ContentMD5' | 'Expires' | 'Metadata' | 'Tagging'>;
8
7
  export type PutObjectOutput = Pick<PutObjectCommandOutput, '$metadata' | 'ETag' | 'VersionId'>;
9
8
  export declare const putObject: (config: Omit<import("@aws-amplify/core/internals/aws-client-utils").UserAgentOptions & import("@aws-amplify/core/internals/aws-client-utils").RetryOptions<HttpResponse> & import("@aws-amplify/core/internals/aws-client-utils").SigningOptions & import("./runtime/xhrTransferHandler").XhrTransferHandlerOptions & import("@aws-amplify/core/internals/aws-client-utils").ServiceClientOptions & Partial<import("@aws-amplify/core/internals/aws-client-utils").UserAgentOptions & import("@aws-amplify/core/internals/aws-client-utils").RetryOptions<HttpResponse> & import("@aws-amplify/core/internals/aws-client-utils").SigningOptions & import("./runtime/xhrTransferHandler").XhrTransferHandlerOptions & import("@aws-amplify/core/internals/aws-client-utils").ServiceClientOptions>, "emitter" | "responseType" | "abortSignal" | "computeDelay" | "region" | "endpointResolver" | "userAgentHeader" | "userAgentValue" | "retryDecider" | "maxAttempts" | "credentials" | "service" | "uriEscapePath"> & {
10
- emitter?: import("events").EventEmitter;
9
+ emitter?: import("events")<[never]>;
11
10
  responseType?: "text" | "blob";
12
11
  abortSignal?: AbortSignal;
13
12
  computeDelay?: (attempt: number) => number;
@@ -17,7 +16,7 @@ export declare const putObject: (config: Omit<import("@aws-amplify/core/internal
17
16
  userAgentValue?: string;
18
17
  retryDecider?: (response?: HttpResponse, error?: unknown) => Promise<boolean>;
19
18
  maxAttempts?: number;
20
- credentials?: import("@aws-sdk/types/types/credentials").Credentials | (() => Promise<import("@aws-sdk/types/types/credentials").Credentials>);
19
+ credentials?: import("@aws-amplify/core/internals/aws-client-utils").Credentials | (() => Promise<import("@aws-amplify/core/internals/aws-client-utils").Credentials>);
21
20
  service?: string;
22
21
  uriEscapePath?: boolean;
23
22
  }, input: PutObjectInput) => Promise<PutObjectOutput>;
@@ -21,8 +21,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
21
21
  });
22
22
  };
23
23
  var __generator = (this && this.__generator) || function (thisArg, body) {
24
- var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
25
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
24
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
25
+ return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
26
26
  function verb(n) { return function (v) { return step([n, v]); }; }
27
27
  function step(op) {
28
28
  if (f) throw new TypeError("Generator is already executing.");
@@ -10,8 +10,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
10
10
  });
11
11
  };
12
12
  var __generator = (this && this.__generator) || function (thisArg, body) {
13
- var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
14
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
13
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
14
+ return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
15
15
  function verb(n) { return function (v) { return step([n, v]); }; }
16
16
  function step(op) {
17
17
  if (f) throw new TypeError("Generator is already executing.");
@@ -1,4 +1,3 @@
1
- /// <reference types="node" />
2
1
  import { HttpRequest, HttpResponse, TransferHandler } from '@aws-amplify/core/internals/aws-client-utils';
3
2
  import type { EventEmitter } from 'events';
4
3
  /**
@@ -1,4 +1,3 @@
1
- /// <reference types="node" />
2
1
  /**
3
2
  * Generated by scripts/dts-bundler/README.md
4
3
  * Manual change contained:
@@ -1,10 +1,9 @@
1
- /// <reference types="node" />
2
1
  import { Endpoint, HttpResponse } from '@aws-amplify/core/internals/aws-client-utils';
3
2
  import type { UploadPartCommandInput, UploadPartCommandOutput } from './types';
4
3
  export type UploadPartInput = Pick<UploadPartCommandInput, 'PartNumber' | 'Body' | 'UploadId' | 'Bucket' | 'Key' | 'ContentMD5' | 'SSECustomerAlgorithm' | 'SSECustomerKey' | 'SSECustomerKeyMD5'>;
5
4
  export type UploadPartOutput = Pick<UploadPartCommandOutput, '$metadata' | 'ETag'>;
6
5
  export declare const uploadPart: (config: Omit<import("@aws-amplify/core/internals/aws-client-utils").UserAgentOptions & import("@aws-amplify/core/internals/aws-client-utils").RetryOptions<HttpResponse> & import("@aws-amplify/core/internals/aws-client-utils").SigningOptions & import("./runtime/xhrTransferHandler").XhrTransferHandlerOptions & import("@aws-amplify/core/internals/aws-client-utils").ServiceClientOptions & Partial<import("@aws-amplify/core/internals/aws-client-utils").UserAgentOptions & import("@aws-amplify/core/internals/aws-client-utils").RetryOptions<HttpResponse> & import("@aws-amplify/core/internals/aws-client-utils").SigningOptions & import("./runtime/xhrTransferHandler").XhrTransferHandlerOptions & import("@aws-amplify/core/internals/aws-client-utils").ServiceClientOptions>, "emitter" | "responseType" | "abortSignal" | "computeDelay" | "region" | "endpointResolver" | "userAgentHeader" | "userAgentValue" | "retryDecider" | "maxAttempts" | "credentials" | "service" | "uriEscapePath"> & {
7
- emitter?: import("events").EventEmitter;
6
+ emitter?: import("events")<[never]>;
8
7
  responseType?: "text" | "blob";
9
8
  abortSignal?: AbortSignal;
10
9
  computeDelay?: (attempt: number) => number;
@@ -14,7 +13,7 @@ export declare const uploadPart: (config: Omit<import("@aws-amplify/core/interna
14
13
  userAgentValue?: string;
15
14
  retryDecider?: (response?: HttpResponse, error?: unknown) => Promise<boolean>;
16
15
  maxAttempts?: number;
17
- credentials?: import("@aws-sdk/types/types/credentials").Credentials | (() => Promise<import("@aws-sdk/types/types/credentials").Credentials>);
16
+ credentials?: import("@aws-amplify/core/internals/aws-client-utils").Credentials | (() => Promise<import("@aws-amplify/core/internals/aws-client-utils").Credentials>);
18
17
  service?: string;
19
18
  uriEscapePath?: boolean;
20
19
  }, input: UploadPartInput) => Promise<UploadPartOutput>;
@@ -21,8 +21,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
21
21
  });
22
22
  };
23
23
  var __generator = (this && this.__generator) || function (thisArg, body) {
24
- var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
25
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
24
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
25
+ return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
26
26
  function verb(n) { return function (v) { return step([n, v]); }; }
27
27
  function step(op) {
28
28
  if (f) throw new TypeError("Generator is already executing.");
@@ -37,7 +37,7 @@ type InferInstructionResultType<T extends Instruction<any>> = (T extends Propert
37
37
  */
38
38
  export declare const map: <Instructions extends {
39
39
  [key: string]: Instruction<any>;
40
- }>(obj: Record<string, any>, instructions: Instructions) => { [K in keyof Instructions]: Instructions[K] extends infer T ? T extends Instructions[K] ? T extends PropertyNameWithSubsequentDeserializer<infer R> ? R : string : never : never; };
40
+ }>(obj: Record<string, any>, instructions: Instructions) => { [K in keyof Instructions]: InferInstructionResultType<Instructions[K]>; };
41
41
  /**
42
42
  * Deserializes a string to a number. Returns undefined if input is undefined.
43
43
  *
@@ -70,7 +70,7 @@ export declare const deserializeTimestamp: (value: string) => Date | undefined;
70
70
  *
71
71
  * @internal
72
72
  */
73
- export declare const emptyArrayGuard: <T extends any[]>(value: any, deserializer: (value: any[]) => T) => T;
73
+ export declare const emptyArrayGuard: <T extends Array<any>>(value: any, deserializer: (value: any[]) => T) => T;
74
74
  /**
75
75
  * @internal
76
76
  */
@@ -10,8 +10,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
10
10
  });
11
11
  };
12
12
  var __generator = (this && this.__generator) || function (thisArg, body) {
13
- var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
14
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
13
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
14
+ return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
15
15
  function verb(n) { return function (v) { return step([n, v]); }; }
16
16
  function step(op) {
17
17
  if (f) throw new TypeError("Generator is already executing.");
@@ -19,8 +19,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
19
19
  });
20
20
  };
21
21
  var __generator = (this && this.__generator) || function (thisArg, body) {
22
- var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
23
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
22
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
23
+ return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
24
24
  function verb(n) { return function (v) { return step([n, v]); }; }
25
25
  function step(op) {
26
26
  if (f) throw new TypeError("Generator is already executing.");
@@ -10,8 +10,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
10
10
  });
11
11
  };
12
12
  var __generator = (this && this.__generator) || function (thisArg, body) {
13
- var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
14
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
13
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
14
+ return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
15
15
  function verb(n) { return function (v) { return step([n, v]); }; }
16
16
  function step(op) {
17
17
  if (f) throw new TypeError("Generator is already executing.");
@@ -10,8 +10,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
10
10
  });
11
11
  };
12
12
  var __generator = (this && this.__generator) || function (thisArg, body) {
13
- var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
14
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
13
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
14
+ return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
15
15
  function verb(n) { return function (v) { return step([n, v]); }; }
16
16
  function step(op) {
17
17
  if (f) throw new TypeError("Generator is already executing.");
@@ -1,4 +1,3 @@
1
- /// <reference types="node" />
2
1
  import { ICredentials, StorageAction } from '@aws-amplify/core';
3
2
  import type { Credentials as AwsCredentials } from '@aws-sdk/types';
4
3
  import type { EventEmitter } from 'events';
@@ -19,8 +19,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
19
19
  });
20
20
  };
21
21
  var __generator = (this && this.__generator) || function (thisArg, body) {
22
- var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
23
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
22
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
23
+ return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
24
24
  function verb(n) { return function (v) { return step([n, v]); }; }
25
25
  function step(op) {
26
26
  if (f) throw new TypeError("Generator is already executing.");
package/lib-esm/index.js CHANGED
@@ -4,3 +4,4 @@ import { Storage, StorageInstance } from './Storage';
4
4
  export { Storage as StorageClass, StorageInstance as Storage };
5
5
  export { AWSS3Provider } from './providers';
6
6
  export * from './types';
7
+ // chore: trigger v5-stable LTS release to complete partial publish (uuid-v11 RN fix, datastore). No functional change.