@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.
package/README.md CHANGED
@@ -1,7 +1,6 @@
1
1
  # Amazon S3 TypeScript connector
2
2
 
3
- `@superdurable/connector-amazon-s3` implements the Go connector's four S3 REST
4
- operations: `listObjects`, `headObject`, `getObjectText`, and `putObject`. The
3
+ `@superdurable/connector-amazon-s3` implements all 13 S3 operations. The
5
4
  manifest generates the operation-specific Step factories, typed models,
6
5
  connections, and mock cases. The provider client signs each request with AWS
7
6
  Signature Version 4 and limits response bodies. Dex owns retries; a create-only
@@ -17,27 +16,17 @@ The access key ID, secret access key, and optional session token remain in the
17
16
  private connection store and are resolved at each Invoke. Never put them in
18
17
  Flow input, Attributes, Results, receipts, logs, or fixture output.
19
18
 
20
- The [checked-in Worker](examples/report-archive/main.ts) loads its connection
21
- with these lines:
22
-
23
- ```ts
24
- const project = await loadFromEnvironment();
25
- const connection = newProjectConnection(project, ConnectionName);
26
- await runReportArchiveWorker(new ReportArchiveFlow(connection), stop.signal);
27
- ```
19
+ The [checked-in Worker](examples/report-archive/main.ts) loads the project connection and registers the archive and management Flows.
28
20
 
29
21
  `newConnection` also binds a directly constructed `S3Client` for tests or
30
22
  applications with their own secret provider. An omitted endpoint selects the
31
- Amazon S3 Regional API; a custom loopback HTTP endpoint is intended only for
32
- local tests. The default bucket is optional. Every operation except `putObject`
33
- is a Query. `putObject` is a repeat-safe Mutation and returns `stored` or the
34
- optional `alreadyExists` branch after create-only read-back. All non-happy
23
+ Amazon S3 Regional API. A custom loopback HTTP endpoint is intended for
24
+ local tests. The default bucket is optional. `putObject` returns `stored` or the optional `alreadyExists` branch after create-only read-back. Copying checks the destination marker before resending after an inconclusive attempt. Create-bucket and copy sends are bounded. All non-happy
35
25
  branches are optional and fail an example Flow when unwired.
36
26
 
37
27
  ## Example and verification
38
28
 
39
- The [report archive example](examples/report-archive/) uses all four Step
40
- factories and its static connection name. From this package directory:
29
+ The [report archive example](examples/report-archive/) includes the archive and management Flows using the same static connection. Run the local checks from this package directory.
41
30
 
42
31
  ```sh
43
32
  npm ci