@superdurable/connector-amazon-s3 0.1.1 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,19 @@
1
- import { CredentialProvider, SecretString, Query, Mutation, ConnectionRef } from '@superdurable/connectors-sdk';
1
+ import { SecretString, CredentialProvider, Query, Mutation, ConnectionRef } from '@superdurable/connectors-sdk';
2
2
  import { z } from 'zod';
3
+ import { Codec } from '@superdurable/dex';
3
4
 
5
+ /** A signed 64-bit JSON integer. Values outside the safe number range retain their decimal token. */
6
+ type SignedInteger = number | Readonly<{
7
+ rawJSON: string;
8
+ }>;
9
+ /** Decode one signed Go integer from a safe number or a native raw JSON number token. */
10
+ declare function decodeSignedInteger(value: unknown): SignedInteger;
11
+ /** Read provider JSON with the original syntax of every numeric token for typed field validation. */
12
+ declare function parseJSONNumberTokens(text: string): unknown;
13
+ /** Decode JSON while retaining exact decimal tokens for integers outside JavaScript's safe range. */
14
+ declare function parseExactIntegerJSON(text: string): unknown;
15
+ /** JSON-wire codec for records with signed integer fields. An optional decoder validates the application type. */
16
+ declare function exactIntegerJSONCodec<T>(decode?: (value: unknown) => T): Codec<T>;
4
17
  /** Connector configuration; omitted fields use manifest defaults. */
5
18
  interface Config {
6
19
  /** Signing Region of the bucket, written as a Region code such as eu-west-1. Amazon S3: open https://console.aws.amazon.com/s3/buckets and read the AWS Region column beside the bucket. Cloudflare R2 uses auto. MinIO uses its configured server Region, which a default server does not change. Not secret. A wrong Region selects providerRejected, and an Amazon S3 rejection names the bucket's Region when S3 reports it. Blank uses the displayed default. */
@@ -13,7 +26,7 @@ interface Config {
13
26
  defaultBucket?: string;
14
27
  /** Number of keys and common prefixes listObjects requests per page when its input leaves maxKeys at zero, as a whole number from 1 up to the Amazon S3 page limit of 1,000. Smaller pages keep each Result small; larger pages need fewer Steps. Blank uses the displayed default. */
15
28
  listPageSize?: number;
16
- /** Maximum complete listObjects response in bytes, as a positive integer. A larger page selects invalidResponse; lower maxKeys before raising this, because a page is stored in Dex Flow state. Blank uses the displayed default. */
29
+ /** Maximum complete listObjects/listFolders/deleteFolder page or getObjectBytes payload in bytes, as a positive integer. A larger list page selects invalidResponse; a larger binary object selects tooLarge. Lower maxKeys or use smaller objects before raising this, because content is stored in Dex Flow state. Blank uses the displayed default. */
17
30
  maxResponseBytes?: number;
18
31
  /** Maximum object size in bytes that getObjectText returns as text, as a positive integer. A larger object selects tooLarge without reading its content. Text is stored in Dex Flow state, so raise it cautiously. Blank uses the displayed default. */
19
32
  maxTextBytes?: number;
@@ -40,8 +53,115 @@ interface Credentials {
40
53
  /** Secret session token, only for temporary AWS credentials whose access key ID starts with ASIA, such as the output of aws sts get-session-token or aws sts assume-role (https://docs.aws.amazon.com/STS/latest/APIReference/API_GetSessionToken.html). Temporary credentials expire, usually within hours, and this connector cannot renew them: replace all three values before they expire, or an expired token selects providerRejected. Blank means long-term credentials, which Amazon S3 IAM user keys, Cloudflare R2, and MinIO use. */
41
54
  sessionToken?: SecretString;
42
55
  }
56
+ /** Stored credential material that fails the connector credential checks, so no retry can succeed. */
57
+ declare class CredentialMaterialError extends TypeError {
58
+ constructor(message: string);
59
+ }
60
+ /** Report malformed stored credential material, also behind the SDK provider's decoding TypeError. */
61
+ declare function isCredentialMaterialError(error: unknown): boolean;
62
+ /** Decode private credential fields for the connector. */
63
+ declare function decodeCredentials(value: unknown): Credentials;
43
64
  /** Host-owned source of private connector credentials. */
44
65
  type CredentialSource = CredentialProvider<Credentials>;
66
+ /** ListBucketsInput selects one bounded page of bucket names. */
67
+ interface ListBucketsInput {
68
+ /** Prefix filters names by their leading characters; blank lists all names. */
69
+ "prefix"?: string | undefined;
70
+ /** ContinuationToken is the opaque token from an earlier page; blank starts at the beginning. */
71
+ "continuationToken"?: string | undefined;
72
+ /** MaxBuckets is the page size from 1 to 10000; zero uses 100. */
73
+ "maxBuckets"?: number | undefined;
74
+ }
75
+ /** BucketSummary names a bucket owned by the connection's AWS account. */
76
+ interface BucketSummary {
77
+ /** Name is the bucket name. */
78
+ "name": string;
79
+ /** CreationDate is the bucket creation time. */
80
+ "creationDate": string;
81
+ /** Region is the bucket's AWS Region when S3 includes it. */
82
+ "region"?: string | undefined;
83
+ }
84
+ /** ListBucketsOutput contains one page and its continuation token. */
85
+ interface ListBucketsOutput {
86
+ /** Buckets are the bucket summaries in the response. */
87
+ "buckets": Array<BucketSummary> | null;
88
+ /** NextContinuationToken resumes the listing when S3 returned another page. */
89
+ "nextContinuationToken"?: string | undefined;
90
+ }
91
+ /** CreateBucketInput names a new general purpose bucket in the connection's Region. */
92
+ interface CreateBucketInput {
93
+ /** Bucket is a globally unique bucket name. */
94
+ "bucket": string;
95
+ }
96
+ /** CreatedBucket identifies a bucket accepted by S3. */
97
+ interface CreatedBucket {
98
+ /** Bucket is the new bucket name. */
99
+ "bucket": string;
100
+ /** Region is the Region selected by the connection. */
101
+ "region": string;
102
+ }
103
+ /** DeleteBucketInput names an empty bucket to delete. */
104
+ interface DeleteBucketInput {
105
+ /** Bucket is the bucket name; blank uses the connection default. */
106
+ "bucket"?: string | undefined;
107
+ }
108
+ /** DeletedBucket names a bucket S3 accepted for deletion. */
109
+ interface DeletedBucket {
110
+ /** Bucket is the bucket name. */
111
+ "bucket": string;
112
+ }
113
+ /** CreateFolderInput names a zero-byte folder marker. */
114
+ interface CreateFolderInput {
115
+ /** Bucket is the bucket; blank uses the connection default. */
116
+ "bucket"?: string | undefined;
117
+ /** Prefix is the folder path; the connector adds a trailing slash when absent. */
118
+ "prefix": string;
119
+ }
120
+ /** CreatedFolder identifies a folder marker stored in S3. */
121
+ interface CreatedFolder {
122
+ /** Bucket is the bucket. */
123
+ "bucket": string;
124
+ /** Prefix ends with a slash. */
125
+ "prefix": string;
126
+ }
127
+ /** DeleteFolderInput names a prefix whose current objects should be removed. */
128
+ interface DeleteFolderInput {
129
+ /** Bucket is the bucket; blank uses the connection default. */
130
+ "bucket"?: string | undefined;
131
+ /** Prefix is the folder path; the connector adds a trailing slash when absent. */
132
+ "prefix": string;
133
+ }
134
+ /** DeletedFolder identifies a folder prefix after its current objects are absent. */
135
+ interface DeletedFolder {
136
+ /** Bucket is the bucket. */
137
+ "bucket": string;
138
+ /** Prefix ends with a slash. */
139
+ "prefix": string;
140
+ }
141
+ /** ListFoldersInput selects one page of immediate child prefixes in a bucket. */
142
+ interface ListFoldersInput {
143
+ /** Bucket is the bucket; blank uses the connection default. */
144
+ "bucket"?: string | undefined;
145
+ /** ParentPrefix is the parent folder path, ending in a slash; blank lists the root. */
146
+ "parentPrefix"?: string | undefined;
147
+ /** ContinuationToken resumes a prior page; blank begins at the start. */
148
+ "continuationToken"?: string | undefined;
149
+ /** MaxKeys is 1 to 1000; zero uses the connection listPageSize. */
150
+ "maxKeys"?: number | undefined;
151
+ }
152
+ /** ListFoldersOutput contains immediate child folder prefixes and the next page token. */
153
+ interface ListFoldersOutput {
154
+ /** Bucket is the bucket. */
155
+ "bucket": string;
156
+ /** ParentPrefix is the requested parent prefix. */
157
+ "parentPrefix"?: string | undefined;
158
+ /** Folders are complete child prefixes ending in a slash. */
159
+ "folders"?: Array<string> | undefined;
160
+ /** NextContinuationToken resumes a truncated page. */
161
+ "nextContinuationToken"?: string | undefined;
162
+ /** IsTruncated reports that more pages remain. */
163
+ "isTruncated": boolean;
164
+ }
45
165
  /** ListObjectsInput selects one page of a bucket listing. Keys are listed in UTF-8 binary order. */
46
166
  interface ListObjectsInput {
47
167
  /** Bucket is the bucket name; blank uses the connection's defaultBucket. */
@@ -160,6 +280,32 @@ interface ObjectText {
160
280
  /** Text is the complete object content, unchanged, including any byte order mark. */
161
281
  "text"?: string | undefined;
162
282
  }
283
+ /** GetObjectBytesInput identifies an object whose complete bytes fit the connection response limit. */
284
+ interface GetObjectBytesInput {
285
+ /** Bucket is the bucket; blank uses the connection default. */
286
+ "bucket"?: string | undefined;
287
+ /** Key is the object key. */
288
+ "key": string;
289
+ }
290
+ /** ObjectBytes contains one bounded binary object, encoded as base64 in Flow JSON state. */
291
+ interface ObjectBytes {
292
+ /** Bucket is the object's bucket. */
293
+ "bucket": string;
294
+ /** Key is the object key. */
295
+ "key": string;
296
+ /** ContentType is the stored media type. */
297
+ "contentType"?: string | undefined;
298
+ /** ETag is S3's quoted entity tag. */
299
+ "eTag"?: string | undefined;
300
+ /** VersionID is set for a versioned object. */
301
+ "versionId"?: string | undefined;
302
+ /** LastModified is the last modification time when supplied. */
303
+ "lastModified"?: string | undefined;
304
+ /** SizeBytes is the full object size. */
305
+ "sizeBytes": SignedInteger;
306
+ /** Bytes are the complete object content; nil on non-success branches. */
307
+ "bytes"?: string | undefined;
308
+ }
163
309
  /** PutObjectInput describes one object to store. Set at most one of TextContent and ByteContent; leaving
164
310
  * both empty stores an empty object. */
165
311
  interface PutObjectInput {
@@ -203,6 +349,129 @@ interface StoredObject {
203
349
  * Step execution stored, so this attempt wrote nothing. */
204
350
  "isFromEarlierAttempt"?: boolean | undefined;
205
351
  }
352
+ /** CopyObjectInput copies one source object to a destination key, replacing its metadata. */
353
+ interface CopyObjectInput {
354
+ /** SourceBucket is the source bucket; blank uses the connection default. */
355
+ "sourceBucket"?: string | undefined;
356
+ /** SourceKey is the source object key. */
357
+ "sourceKey": string;
358
+ /** DestinationBucket is the destination bucket; blank uses the connection default. */
359
+ "destinationBucket"?: string | undefined;
360
+ /** DestinationKey is the key that receives the copy. */
361
+ "destinationKey": string;
362
+ /** ContentType is the media type of the copied object; other source metadata is not retained. */
363
+ "contentType": string;
364
+ /** SourceETag, when set, makes S3 copy only the source version with that ETag. */
365
+ "sourceETag"?: string | undefined;
366
+ /** Metadata replaces source user metadata; the connector also adds its idempotency marker. */
367
+ "metadata"?: {
368
+ [key: string]: string;
369
+ } | undefined;
370
+ }
371
+ /** CopiedObject identifies the destination after S3 accepted or a read-back confirmed the copy. */
372
+ interface CopiedObject {
373
+ /** SourceBucket is the source bucket. */
374
+ "sourceBucket": string;
375
+ /** SourceKey is the source key. */
376
+ "sourceKey": string;
377
+ /** DestinationBucket is the destination bucket. */
378
+ "destinationBucket": string;
379
+ /** DestinationKey is the destination key. */
380
+ "destinationKey": string;
381
+ /** ETag is the destination ETag, including quotes when supplied. */
382
+ "eTag"?: string | undefined;
383
+ /** VersionID is the destination version when versioning is enabled. */
384
+ "versionId"?: string | undefined;
385
+ /** IsFromEarlierAttempt reports that a destination marker confirmed an earlier send. */
386
+ "isFromEarlierAttempt"?: boolean | undefined;
387
+ }
388
+ /** DeleteObjectInput identifies the current object to remove. */
389
+ interface DeleteObjectInput {
390
+ /** Bucket is the bucket name; blank uses the connection's defaultBucket. */
391
+ "bucket"?: string | undefined;
392
+ /** Key is the object key to remove. */
393
+ "key": string;
394
+ }
395
+ /** DeletedObject identifies the key whose deletion S3 accepted. */
396
+ interface DeletedObject {
397
+ /** Bucket is the bucket containing the key. */
398
+ "bucket": string;
399
+ /** Key is the removed object's key. */
400
+ "key": string;
401
+ }
402
+ /** Runtime validator for ListBucketsInput. */
403
+ declare const ListBucketsInputSchema: z.ZodObject<{
404
+ prefix: z.ZodOptional<z.ZodString>;
405
+ continuationToken: z.ZodOptional<z.ZodString>;
406
+ maxBuckets: z.ZodOptional<z.ZodNumber>;
407
+ }, z.core.$strict>;
408
+ /** Runtime validator for BucketSummary. */
409
+ declare const BucketSummarySchema: z.ZodObject<{
410
+ name: z.ZodString;
411
+ creationDate: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
412
+ region: z.ZodOptional<z.ZodString>;
413
+ }, z.core.$strict>;
414
+ /** Runtime validator for ListBucketsOutput. */
415
+ declare const ListBucketsOutputSchema: z.ZodObject<{
416
+ buckets: z.ZodNullable<z.ZodArray<z.ZodObject<{
417
+ name: z.ZodString;
418
+ creationDate: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
419
+ region: z.ZodOptional<z.ZodString>;
420
+ }, z.core.$strict>>>;
421
+ nextContinuationToken: z.ZodOptional<z.ZodString>;
422
+ }, z.core.$strict>;
423
+ /** Runtime validator for CreateBucketInput. */
424
+ declare const CreateBucketInputSchema: z.ZodObject<{
425
+ bucket: z.ZodString;
426
+ }, z.core.$strict>;
427
+ /** Runtime validator for CreatedBucket. */
428
+ declare const CreatedBucketSchema: z.ZodObject<{
429
+ bucket: z.ZodString;
430
+ region: z.ZodString;
431
+ }, z.core.$strict>;
432
+ /** Runtime validator for DeleteBucketInput. */
433
+ declare const DeleteBucketInputSchema: z.ZodObject<{
434
+ bucket: z.ZodOptional<z.ZodString>;
435
+ }, z.core.$strict>;
436
+ /** Runtime validator for DeletedBucket. */
437
+ declare const DeletedBucketSchema: z.ZodObject<{
438
+ bucket: z.ZodString;
439
+ }, z.core.$strict>;
440
+ /** Runtime validator for CreateFolderInput. */
441
+ declare const CreateFolderInputSchema: z.ZodObject<{
442
+ bucket: z.ZodOptional<z.ZodString>;
443
+ prefix: z.ZodString;
444
+ }, z.core.$strict>;
445
+ /** Runtime validator for CreatedFolder. */
446
+ declare const CreatedFolderSchema: z.ZodObject<{
447
+ bucket: z.ZodString;
448
+ prefix: z.ZodString;
449
+ }, z.core.$strict>;
450
+ /** Runtime validator for DeleteFolderInput. */
451
+ declare const DeleteFolderInputSchema: z.ZodObject<{
452
+ bucket: z.ZodOptional<z.ZodString>;
453
+ prefix: z.ZodString;
454
+ }, z.core.$strict>;
455
+ /** Runtime validator for DeletedFolder. */
456
+ declare const DeletedFolderSchema: z.ZodObject<{
457
+ bucket: z.ZodString;
458
+ prefix: z.ZodString;
459
+ }, z.core.$strict>;
460
+ /** Runtime validator for ListFoldersInput. */
461
+ declare const ListFoldersInputSchema: z.ZodObject<{
462
+ bucket: z.ZodOptional<z.ZodString>;
463
+ parentPrefix: z.ZodOptional<z.ZodString>;
464
+ continuationToken: z.ZodOptional<z.ZodString>;
465
+ maxKeys: z.ZodOptional<z.ZodNumber>;
466
+ }, z.core.$strict>;
467
+ /** Runtime validator for ListFoldersOutput. */
468
+ declare const ListFoldersOutputSchema: z.ZodObject<{
469
+ bucket: z.ZodString;
470
+ parentPrefix: z.ZodOptional<z.ZodString>;
471
+ folders: z.ZodOptional<z.ZodArray<z.ZodString>>;
472
+ nextContinuationToken: z.ZodOptional<z.ZodString>;
473
+ isTruncated: z.ZodBoolean;
474
+ }, z.core.$strict>;
206
475
  /** Runtime validator for ListObjectsInput. */
207
476
  declare const ListObjectsInputSchema: z.ZodObject<{
208
477
  bucket: z.ZodOptional<z.ZodString>;
@@ -217,7 +486,7 @@ declare const ObjectSummarySchema: z.ZodObject<{
217
486
  key: z.ZodString;
218
487
  sizeBytes: z.ZodNumber;
219
488
  eTag: z.ZodOptional<z.ZodString>;
220
- lastModified: z.ZodOptional<z.ZodISODateTime>;
489
+ lastModified: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>;
221
490
  storageClass: z.ZodOptional<z.ZodString>;
222
491
  }, z.core.$strict>;
223
492
  /** Runtime validator for ListObjectsOutput. */
@@ -229,7 +498,7 @@ declare const ListObjectsOutputSchema: z.ZodObject<{
229
498
  key: z.ZodString;
230
499
  sizeBytes: z.ZodNumber;
231
500
  eTag: z.ZodOptional<z.ZodString>;
232
- lastModified: z.ZodOptional<z.ZodISODateTime>;
501
+ lastModified: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>;
233
502
  storageClass: z.ZodOptional<z.ZodString>;
234
503
  }, z.core.$strict>>>;
235
504
  commonPrefixes: z.ZodOptional<z.ZodArray<z.ZodString>>;
@@ -252,7 +521,7 @@ declare const ObjectMetadataSchema: z.ZodObject<{
252
521
  contentLanguage: z.ZodOptional<z.ZodString>;
253
522
  contentDisposition: z.ZodOptional<z.ZodString>;
254
523
  cacheControl: z.ZodOptional<z.ZodString>;
255
- lastModified: z.ZodOptional<z.ZodISODateTime>;
524
+ lastModified: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>;
256
525
  versionId: z.ZodOptional<z.ZodString>;
257
526
  storageClass: z.ZodOptional<z.ZodString>;
258
527
  serverSideEncryption: z.ZodOptional<z.ZodString>;
@@ -271,10 +540,28 @@ declare const ObjectTextSchema: z.ZodObject<{
271
540
  contentType: z.ZodOptional<z.ZodString>;
272
541
  eTag: z.ZodOptional<z.ZodString>;
273
542
  versionId: z.ZodOptional<z.ZodString>;
274
- lastModified: z.ZodOptional<z.ZodISODateTime>;
543
+ lastModified: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>;
275
544
  sizeBytes: z.ZodNumber;
276
545
  text: z.ZodOptional<z.ZodString>;
277
546
  }, z.core.$strict>;
547
+ /** Runtime validator for GetObjectBytesInput. */
548
+ declare const GetObjectBytesInputSchema: z.ZodObject<{
549
+ bucket: z.ZodOptional<z.ZodString>;
550
+ key: z.ZodString;
551
+ }, z.core.$strict>;
552
+ /** Runtime validator for ObjectBytes. */
553
+ declare const ObjectBytesSchema: z.ZodObject<{
554
+ bucket: z.ZodString;
555
+ key: z.ZodString;
556
+ contentType: z.ZodOptional<z.ZodString>;
557
+ eTag: z.ZodOptional<z.ZodString>;
558
+ versionId: z.ZodOptional<z.ZodString>;
559
+ lastModified: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>;
560
+ sizeBytes: z.ZodPipe<z.ZodUnknown, z.ZodTransform<number | Readonly<{
561
+ rawJSON: string;
562
+ }>, unknown>>;
563
+ bytes: z.ZodOptional<z.ZodBase64>;
564
+ }, z.core.$strict>;
278
565
  /** Runtime validator for PutObjectInput. */
279
566
  declare const PutObjectInputSchema: z.ZodObject<{
280
567
  bucket: z.ZodOptional<z.ZodString>;
@@ -293,20 +580,68 @@ declare const StoredObjectSchema: z.ZodObject<{
293
580
  versionId: z.ZodOptional<z.ZodString>;
294
581
  sizeBytes: z.ZodNumber;
295
582
  contentType: z.ZodOptional<z.ZodString>;
296
- lastModified: z.ZodOptional<z.ZodISODateTime>;
583
+ lastModified: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>;
584
+ isFromEarlierAttempt: z.ZodOptional<z.ZodBoolean>;
585
+ }, z.core.$strict>;
586
+ /** Runtime validator for CopyObjectInput. */
587
+ declare const CopyObjectInputSchema: z.ZodObject<{
588
+ sourceBucket: z.ZodOptional<z.ZodString>;
589
+ sourceKey: z.ZodString;
590
+ destinationBucket: z.ZodOptional<z.ZodString>;
591
+ destinationKey: z.ZodString;
592
+ contentType: z.ZodString;
593
+ sourceETag: z.ZodOptional<z.ZodString>;
594
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
595
+ }, z.core.$strict>;
596
+ /** Runtime validator for CopiedObject. */
597
+ declare const CopiedObjectSchema: z.ZodObject<{
598
+ sourceBucket: z.ZodString;
599
+ sourceKey: z.ZodString;
600
+ destinationBucket: z.ZodString;
601
+ destinationKey: z.ZodString;
602
+ eTag: z.ZodOptional<z.ZodString>;
603
+ versionId: z.ZodOptional<z.ZodString>;
297
604
  isFromEarlierAttempt: z.ZodOptional<z.ZodBoolean>;
298
605
  }, z.core.$strict>;
606
+ /** Runtime validator for DeleteObjectInput. */
607
+ declare const DeleteObjectInputSchema: z.ZodObject<{
608
+ bucket: z.ZodOptional<z.ZodString>;
609
+ key: z.ZodString;
610
+ }, z.core.$strict>;
611
+ /** Runtime validator for DeletedObject. */
612
+ declare const DeletedObjectSchema: z.ZodObject<{
613
+ bucket: z.ZodString;
614
+ key: z.ZodString;
615
+ }, z.core.$strict>;
299
616
 
300
617
  /** Typed operations supplied by a client or mock. */
301
618
  interface Operations {
619
+ /** Invoke listBuckets through this connection. */
620
+ listBuckets(): Query<ListBucketsInput, ListBucketsOutput>;
621
+ /** Invoke createBucket through this connection. */
622
+ createBucket(): Mutation<CreateBucketInput, CreatedBucket>;
623
+ /** Invoke deleteBucket through this connection. */
624
+ deleteBucket(): Mutation<DeleteBucketInput, DeletedBucket>;
625
+ /** Invoke createFolder through this connection. */
626
+ createFolder(): Mutation<CreateFolderInput, CreatedFolder>;
627
+ /** Invoke deleteFolder through this connection. */
628
+ deleteFolder(): Mutation<DeleteFolderInput, DeletedFolder>;
629
+ /** Invoke listFolders through this connection. */
630
+ listFolders(): Query<ListFoldersInput, ListFoldersOutput>;
302
631
  /** Invoke listObjects through this connection. */
303
632
  listObjects(): Query<ListObjectsInput, ListObjectsOutput>;
304
633
  /** Invoke headObject through this connection. */
305
634
  headObject(): Query<HeadObjectInput, ObjectMetadata>;
306
635
  /** Invoke getObjectText through this connection. */
307
636
  getObjectText(): Query<GetObjectTextInput, ObjectText>;
637
+ /** Invoke getObjectBytes through this connection. */
638
+ getObjectBytes(): Query<GetObjectBytesInput, ObjectBytes>;
308
639
  /** Invoke putObject through this connection. */
309
640
  putObject(): Mutation<PutObjectInput, StoredObject>;
641
+ /** Invoke copyObject through this connection. */
642
+ copyObject(): Mutation<CopyObjectInput, CopiedObject>;
643
+ /** Invoke deleteObject through this connection. */
644
+ deleteObject(): Mutation<DeleteObjectInput, DeletedObject>;
310
645
  }
311
646
  /** Named connector connection kept outside Flow state. */
312
647
  declare class Connection<BoundOperations = Operations> {
@@ -324,4 +659,4 @@ declare function newConnectionWithOperations(operations: Operations, reference:
324
659
  /** Provider expected by named connections. */
325
660
  declare const ConnectionNameProvider = "amazon-s3";
326
661
 
327
- export { type Config as C, type GetObjectTextInput as G, type HeadObjectInput as H, type ListObjectsInput as L, type ObjectText as O, type PutObjectInput as P, type StoredObject as S, type ListObjectsOutput as a, type ObjectMetadata as b, type Credentials as c, Connection as d, type Operations as e, ConfigSchema as f, ConnectionNameProvider as g, type CredentialSource as h, GetObjectTextInputSchema as i, HeadObjectInputSchema as j, ListObjectsInputSchema as k, ListObjectsOutputSchema as l, ObjectMetadataSchema as m, type ObjectSummary as n, ObjectSummarySchema as o, ObjectTextSchema as p, PutObjectInputSchema as q, StoredObjectSchema as r, newConnection as s, newConnectionWithOperations as t };
662
+ export { ListFoldersInputSchema as $, CopyObjectInputSchema as A, type BucketSummary as B, type CreateFolderInput as C, type DeleteBucketInput as D, CreateBucketInputSchema as E, CreateFolderInputSchema as F, type GetObjectTextInput as G, type HeadObjectInput as H, CreatedBucketSchema as I, CreatedFolderSchema as J, CredentialMaterialError as K, type ListObjectsInput as L, type CredentialSource as M, DeleteBucketInputSchema as N, type ObjectMetadata as O, type PutObjectInput as P, DeleteFolderInputSchema as Q, DeleteObjectInputSchema as R, type StoredObject as S, DeletedBucketSchema as T, DeletedFolderSchema as U, DeletedObjectSchema as V, GetObjectBytesInputSchema as W, GetObjectTextInputSchema as X, HeadObjectInputSchema as Y, ListBucketsInputSchema as Z, ListBucketsOutputSchema as _, type ListObjectsOutput as a, ListFoldersOutputSchema as a0, ListObjectsInputSchema as a1, ListObjectsOutputSchema as a2, ObjectBytesSchema as a3, ObjectMetadataSchema as a4, type ObjectSummary as a5, ObjectSummarySchema as a6, ObjectTextSchema as a7, PutObjectInputSchema as a8, type SignedInteger as a9, StoredObjectSchema as aa, decodeCredentials as ab, decodeSignedInteger as ac, exactIntegerJSONCodec as ad, isCredentialMaterialError as ae, newConnection as af, newConnectionWithOperations as ag, parseExactIntegerJSON as ah, parseJSONNumberTokens as ai, type ObjectText as b, type ListBucketsInput as c, type ListBucketsOutput as d, type DeletedBucket as e, type CreatedFolder as f, type DeleteFolderInput as g, type DeletedFolder as h, type ListFoldersInput as i, type ListFoldersOutput as j, type GetObjectBytesInput as k, type ObjectBytes as l, type DeleteObjectInput as m, type DeletedObject as n, type CreateBucketInput as o, type CreatedBucket as p, type CopyObjectInput as q, type CopiedObject as r, type Config as s, type Credentials as t, Connection as u, type Operations as v, BucketSummarySchema as w, ConfigSchema as x, ConnectionNameProvider as y, CopiedObjectSchema as z };