@superdurable/connector-amazon-s3 0.1.2 → 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 +5 -16
- package/dex-connector.json +499 -2
- package/dist/chunk-6LKGFP44.js +755 -0
- package/dist/{connection-BXFHjy1h.d.ts → connection-CmMVOLxi.d.ts} +330 -3
- package/dist/index.d.ts +494 -8
- package/dist/index.js +923 -21
- package/dist/mock.d.ts +182 -2
- package/dist/mock.js +454 -12
- package/package.json +2 -2
- package/dist/chunk-IGAKQPN2.js +0 -326
package/README.md
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
# Amazon S3 TypeScript connector
|
|
2
2
|
|
|
3
|
-
`@superdurable/connector-amazon-s3` implements
|
|
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
|
|
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
|
|
32
|
-
local tests. The default bucket is optional.
|
|
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/)
|
|
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
|
package/dex-connector.json
CHANGED
|
@@ -1,12 +1,320 @@
|
|
|
1
1
|
{
|
|
2
2
|
"connectorId": "amazon-s3",
|
|
3
|
-
"releaseTag": "connectors/amazon/s3/go/v0.
|
|
3
|
+
"releaseTag": "connectors/amazon/s3/go/v0.24.0",
|
|
4
4
|
"package": {
|
|
5
5
|
"ecosystem": "npm",
|
|
6
6
|
"name": "@superdurable/connector-amazon-s3",
|
|
7
|
-
"version": "0.
|
|
7
|
+
"version": "0.2.0"
|
|
8
8
|
},
|
|
9
9
|
"factories": [
|
|
10
|
+
{
|
|
11
|
+
"name": "newListBucketsStep",
|
|
12
|
+
"kind": "query",
|
|
13
|
+
"operationId": "listBuckets",
|
|
14
|
+
"inputType": "ListBucketsInput",
|
|
15
|
+
"description": "List one bounded page of buckets owned by the signing account.",
|
|
16
|
+
"fields": {
|
|
17
|
+
"stepType": "stepType",
|
|
18
|
+
"annotations": "annotations",
|
|
19
|
+
"connectionName": "connectionName",
|
|
20
|
+
"resultAttribute": "resultAttribute"
|
|
21
|
+
},
|
|
22
|
+
"branches": [
|
|
23
|
+
{
|
|
24
|
+
"id": "listed",
|
|
25
|
+
"field": "listed",
|
|
26
|
+
"optional": false
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"id": "providerRejected",
|
|
30
|
+
"field": "providerRejected",
|
|
31
|
+
"optional": true
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
"id": "invalidResponse",
|
|
35
|
+
"field": "invalidResponse",
|
|
36
|
+
"optional": true
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"id": "defect",
|
|
40
|
+
"field": "defect",
|
|
41
|
+
"optional": true
|
|
42
|
+
}
|
|
43
|
+
],
|
|
44
|
+
"inputSchema": {
|
|
45
|
+
"additionalProperties": false,
|
|
46
|
+
"description": "ListBucketsInput selects one bounded page of bucket names.",
|
|
47
|
+
"properties": {
|
|
48
|
+
"continuationToken": {
|
|
49
|
+
"description": "ContinuationToken is the opaque token from an earlier page; blank starts at the beginning.",
|
|
50
|
+
"type": "string"
|
|
51
|
+
},
|
|
52
|
+
"maxBuckets": {
|
|
53
|
+
"description": "MaxBuckets is the page size from 1 to 10000; zero uses 100.",
|
|
54
|
+
"type": "integer"
|
|
55
|
+
},
|
|
56
|
+
"prefix": {
|
|
57
|
+
"description": "Prefix filters names by their leading characters; blank lists all names.",
|
|
58
|
+
"type": "string"
|
|
59
|
+
}
|
|
60
|
+
},
|
|
61
|
+
"type": "object"
|
|
62
|
+
}
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
"name": "newCreateBucketStep",
|
|
66
|
+
"kind": "mutation",
|
|
67
|
+
"operationId": "createBucket",
|
|
68
|
+
"inputType": "CreateBucketInput",
|
|
69
|
+
"description": "Create a general purpose bucket in the connection Region with bounded sends after an unknown outcome.",
|
|
70
|
+
"fields": {
|
|
71
|
+
"stepType": "stepType",
|
|
72
|
+
"annotations": "annotations",
|
|
73
|
+
"connectionName": "connectionName",
|
|
74
|
+
"resultAttribute": "resultAttribute"
|
|
75
|
+
},
|
|
76
|
+
"branches": [
|
|
77
|
+
{
|
|
78
|
+
"id": "created",
|
|
79
|
+
"field": "created",
|
|
80
|
+
"optional": false
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
"id": "providerRejected",
|
|
84
|
+
"field": "providerRejected",
|
|
85
|
+
"optional": true
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
"id": "defect",
|
|
89
|
+
"field": "defect",
|
|
90
|
+
"optional": true
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
"id": "uncertain",
|
|
94
|
+
"field": "uncertain",
|
|
95
|
+
"optional": true
|
|
96
|
+
}
|
|
97
|
+
],
|
|
98
|
+
"inputSchema": {
|
|
99
|
+
"additionalProperties": false,
|
|
100
|
+
"description": "CreateBucketInput names a new general purpose bucket in the connection's Region.",
|
|
101
|
+
"properties": {
|
|
102
|
+
"bucket": {
|
|
103
|
+
"description": "Bucket is a globally unique bucket name.",
|
|
104
|
+
"type": "string"
|
|
105
|
+
}
|
|
106
|
+
},
|
|
107
|
+
"required": [
|
|
108
|
+
"bucket"
|
|
109
|
+
],
|
|
110
|
+
"type": "object"
|
|
111
|
+
}
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
"name": "newDeleteBucketStep",
|
|
115
|
+
"kind": "mutation",
|
|
116
|
+
"operationId": "deleteBucket",
|
|
117
|
+
"inputType": "DeleteBucketInput",
|
|
118
|
+
"description": "Delete an empty bucket; an already absent bucket is considered deleted.",
|
|
119
|
+
"fields": {
|
|
120
|
+
"stepType": "stepType",
|
|
121
|
+
"annotations": "annotations",
|
|
122
|
+
"connectionName": "connectionName",
|
|
123
|
+
"resultAttribute": "resultAttribute"
|
|
124
|
+
},
|
|
125
|
+
"branches": [
|
|
126
|
+
{
|
|
127
|
+
"id": "deleted",
|
|
128
|
+
"field": "deleted",
|
|
129
|
+
"optional": false
|
|
130
|
+
},
|
|
131
|
+
{
|
|
132
|
+
"id": "providerRejected",
|
|
133
|
+
"field": "providerRejected",
|
|
134
|
+
"optional": true
|
|
135
|
+
},
|
|
136
|
+
{
|
|
137
|
+
"id": "defect",
|
|
138
|
+
"field": "defect",
|
|
139
|
+
"optional": true
|
|
140
|
+
}
|
|
141
|
+
],
|
|
142
|
+
"inputSchema": {
|
|
143
|
+
"additionalProperties": false,
|
|
144
|
+
"description": "DeleteBucketInput names an empty bucket to delete.",
|
|
145
|
+
"properties": {
|
|
146
|
+
"bucket": {
|
|
147
|
+
"description": "Bucket is the bucket name; blank uses the connection default.",
|
|
148
|
+
"type": "string"
|
|
149
|
+
}
|
|
150
|
+
},
|
|
151
|
+
"type": "object"
|
|
152
|
+
}
|
|
153
|
+
},
|
|
154
|
+
{
|
|
155
|
+
"name": "newCreateFolderStep",
|
|
156
|
+
"kind": "mutation",
|
|
157
|
+
"operationId": "createFolder",
|
|
158
|
+
"inputType": "CreateFolderInput",
|
|
159
|
+
"description": "Create or replace a zero-byte folder marker at a key ending in a slash.",
|
|
160
|
+
"fields": {
|
|
161
|
+
"stepType": "stepType",
|
|
162
|
+
"annotations": "annotations",
|
|
163
|
+
"connectionName": "connectionName",
|
|
164
|
+
"resultAttribute": "resultAttribute"
|
|
165
|
+
},
|
|
166
|
+
"branches": [
|
|
167
|
+
{
|
|
168
|
+
"id": "created",
|
|
169
|
+
"field": "created",
|
|
170
|
+
"optional": false
|
|
171
|
+
},
|
|
172
|
+
{
|
|
173
|
+
"id": "providerRejected",
|
|
174
|
+
"field": "providerRejected",
|
|
175
|
+
"optional": true
|
|
176
|
+
},
|
|
177
|
+
{
|
|
178
|
+
"id": "defect",
|
|
179
|
+
"field": "defect",
|
|
180
|
+
"optional": true
|
|
181
|
+
}
|
|
182
|
+
],
|
|
183
|
+
"inputSchema": {
|
|
184
|
+
"additionalProperties": false,
|
|
185
|
+
"description": "CreateFolderInput names a zero-byte folder marker.",
|
|
186
|
+
"properties": {
|
|
187
|
+
"bucket": {
|
|
188
|
+
"description": "Bucket is the bucket; blank uses the connection default.",
|
|
189
|
+
"type": "string"
|
|
190
|
+
},
|
|
191
|
+
"prefix": {
|
|
192
|
+
"description": "Prefix is the folder path; the connector adds a trailing slash when absent.",
|
|
193
|
+
"type": "string"
|
|
194
|
+
}
|
|
195
|
+
},
|
|
196
|
+
"required": [
|
|
197
|
+
"prefix"
|
|
198
|
+
],
|
|
199
|
+
"type": "object"
|
|
200
|
+
}
|
|
201
|
+
},
|
|
202
|
+
{
|
|
203
|
+
"name": "newDeleteFolderStep",
|
|
204
|
+
"kind": "mutation",
|
|
205
|
+
"operationId": "deleteFolder",
|
|
206
|
+
"inputType": "DeleteFolderInput",
|
|
207
|
+
"description": "Repeatedly list and delete all current objects under a folder prefix in bounded pages.",
|
|
208
|
+
"fields": {
|
|
209
|
+
"stepType": "stepType",
|
|
210
|
+
"annotations": "annotations",
|
|
211
|
+
"connectionName": "connectionName",
|
|
212
|
+
"resultAttribute": "resultAttribute"
|
|
213
|
+
},
|
|
214
|
+
"branches": [
|
|
215
|
+
{
|
|
216
|
+
"id": "deleted",
|
|
217
|
+
"field": "deleted",
|
|
218
|
+
"optional": false
|
|
219
|
+
},
|
|
220
|
+
{
|
|
221
|
+
"id": "providerRejected",
|
|
222
|
+
"field": "providerRejected",
|
|
223
|
+
"optional": true
|
|
224
|
+
},
|
|
225
|
+
{
|
|
226
|
+
"id": "invalidResponse",
|
|
227
|
+
"field": "invalidResponse",
|
|
228
|
+
"optional": true
|
|
229
|
+
},
|
|
230
|
+
{
|
|
231
|
+
"id": "defect",
|
|
232
|
+
"field": "defect",
|
|
233
|
+
"optional": true
|
|
234
|
+
}
|
|
235
|
+
],
|
|
236
|
+
"inputSchema": {
|
|
237
|
+
"additionalProperties": false,
|
|
238
|
+
"description": "DeleteFolderInput names a prefix whose current objects should be removed.",
|
|
239
|
+
"properties": {
|
|
240
|
+
"bucket": {
|
|
241
|
+
"description": "Bucket is the bucket; blank uses the connection default.",
|
|
242
|
+
"type": "string"
|
|
243
|
+
},
|
|
244
|
+
"prefix": {
|
|
245
|
+
"description": "Prefix is the folder path; the connector adds a trailing slash when absent.",
|
|
246
|
+
"type": "string"
|
|
247
|
+
}
|
|
248
|
+
},
|
|
249
|
+
"required": [
|
|
250
|
+
"prefix"
|
|
251
|
+
],
|
|
252
|
+
"type": "object"
|
|
253
|
+
}
|
|
254
|
+
},
|
|
255
|
+
{
|
|
256
|
+
"name": "newListFoldersStep",
|
|
257
|
+
"kind": "query",
|
|
258
|
+
"operationId": "listFolders",
|
|
259
|
+
"inputType": "ListFoldersInput",
|
|
260
|
+
"description": "List one bounded page of immediate child folder prefixes beneath a parent prefix.",
|
|
261
|
+
"fields": {
|
|
262
|
+
"stepType": "stepType",
|
|
263
|
+
"annotations": "annotations",
|
|
264
|
+
"connectionName": "connectionName",
|
|
265
|
+
"resultAttribute": "resultAttribute"
|
|
266
|
+
},
|
|
267
|
+
"branches": [
|
|
268
|
+
{
|
|
269
|
+
"id": "listed",
|
|
270
|
+
"field": "listed",
|
|
271
|
+
"optional": false
|
|
272
|
+
},
|
|
273
|
+
{
|
|
274
|
+
"id": "notFound",
|
|
275
|
+
"field": "notFound",
|
|
276
|
+
"optional": true
|
|
277
|
+
},
|
|
278
|
+
{
|
|
279
|
+
"id": "providerRejected",
|
|
280
|
+
"field": "providerRejected",
|
|
281
|
+
"optional": true
|
|
282
|
+
},
|
|
283
|
+
{
|
|
284
|
+
"id": "invalidResponse",
|
|
285
|
+
"field": "invalidResponse",
|
|
286
|
+
"optional": true
|
|
287
|
+
},
|
|
288
|
+
{
|
|
289
|
+
"id": "defect",
|
|
290
|
+
"field": "defect",
|
|
291
|
+
"optional": true
|
|
292
|
+
}
|
|
293
|
+
],
|
|
294
|
+
"inputSchema": {
|
|
295
|
+
"additionalProperties": false,
|
|
296
|
+
"description": "ListFoldersInput selects one page of immediate child prefixes in a bucket.",
|
|
297
|
+
"properties": {
|
|
298
|
+
"bucket": {
|
|
299
|
+
"description": "Bucket is the bucket; blank uses the connection default.",
|
|
300
|
+
"type": "string"
|
|
301
|
+
},
|
|
302
|
+
"continuationToken": {
|
|
303
|
+
"description": "ContinuationToken resumes a prior page; blank begins at the start.",
|
|
304
|
+
"type": "string"
|
|
305
|
+
},
|
|
306
|
+
"maxKeys": {
|
|
307
|
+
"description": "MaxKeys is 1 to 1000; zero uses the connection listPageSize.",
|
|
308
|
+
"type": "integer"
|
|
309
|
+
},
|
|
310
|
+
"parentPrefix": {
|
|
311
|
+
"description": "ParentPrefix is the parent folder path, ending in a slash; blank lists the root.",
|
|
312
|
+
"type": "string"
|
|
313
|
+
}
|
|
314
|
+
},
|
|
315
|
+
"type": "object"
|
|
316
|
+
}
|
|
317
|
+
},
|
|
10
318
|
{
|
|
11
319
|
"name": "newListObjectsStep",
|
|
12
320
|
"kind": "query",
|
|
@@ -204,6 +512,69 @@
|
|
|
204
512
|
"type": "object"
|
|
205
513
|
}
|
|
206
514
|
},
|
|
515
|
+
{
|
|
516
|
+
"name": "newGetObjectBytesStep",
|
|
517
|
+
"kind": "query",
|
|
518
|
+
"operationId": "getObjectBytes",
|
|
519
|
+
"inputType": "GetObjectBytesInput",
|
|
520
|
+
"description": "Read one complete bounded object as bytes, including non-text media types, storing base64-encoded bytes in Flow state.",
|
|
521
|
+
"fields": {
|
|
522
|
+
"stepType": "stepType",
|
|
523
|
+
"annotations": "annotations",
|
|
524
|
+
"connectionName": "connectionName",
|
|
525
|
+
"resultAttribute": "resultAttribute"
|
|
526
|
+
},
|
|
527
|
+
"branches": [
|
|
528
|
+
{
|
|
529
|
+
"id": "read",
|
|
530
|
+
"field": "read",
|
|
531
|
+
"optional": false
|
|
532
|
+
},
|
|
533
|
+
{
|
|
534
|
+
"id": "notFound",
|
|
535
|
+
"field": "notFound",
|
|
536
|
+
"optional": true
|
|
537
|
+
},
|
|
538
|
+
{
|
|
539
|
+
"id": "tooLarge",
|
|
540
|
+
"field": "tooLarge",
|
|
541
|
+
"optional": true
|
|
542
|
+
},
|
|
543
|
+
{
|
|
544
|
+
"id": "invalidResponse",
|
|
545
|
+
"field": "invalidResponse",
|
|
546
|
+
"optional": true
|
|
547
|
+
},
|
|
548
|
+
{
|
|
549
|
+
"id": "providerRejected",
|
|
550
|
+
"field": "providerRejected",
|
|
551
|
+
"optional": true
|
|
552
|
+
},
|
|
553
|
+
{
|
|
554
|
+
"id": "defect",
|
|
555
|
+
"field": "defect",
|
|
556
|
+
"optional": true
|
|
557
|
+
}
|
|
558
|
+
],
|
|
559
|
+
"inputSchema": {
|
|
560
|
+
"additionalProperties": false,
|
|
561
|
+
"description": "GetObjectBytesInput identifies an object whose complete bytes fit the connection response limit.",
|
|
562
|
+
"properties": {
|
|
563
|
+
"bucket": {
|
|
564
|
+
"description": "Bucket is the bucket; blank uses the connection default.",
|
|
565
|
+
"type": "string"
|
|
566
|
+
},
|
|
567
|
+
"key": {
|
|
568
|
+
"description": "Key is the object key.",
|
|
569
|
+
"type": "string"
|
|
570
|
+
}
|
|
571
|
+
},
|
|
572
|
+
"required": [
|
|
573
|
+
"key"
|
|
574
|
+
],
|
|
575
|
+
"type": "object"
|
|
576
|
+
}
|
|
577
|
+
},
|
|
207
578
|
{
|
|
208
579
|
"name": "newPutObjectStep",
|
|
209
580
|
"kind": "mutation",
|
|
@@ -281,6 +652,132 @@
|
|
|
281
652
|
],
|
|
282
653
|
"type": "object"
|
|
283
654
|
}
|
|
655
|
+
},
|
|
656
|
+
{
|
|
657
|
+
"name": "newCopyObjectStep",
|
|
658
|
+
"kind": "mutation",
|
|
659
|
+
"operationId": "copyObject",
|
|
660
|
+
"inputType": "CopyObjectInput",
|
|
661
|
+
"description": "Copy an object to a destination key with bounded sends, replacement metadata, and read-back by a Dex marker after an unknown result.",
|
|
662
|
+
"fields": {
|
|
663
|
+
"stepType": "stepType",
|
|
664
|
+
"annotations": "annotations",
|
|
665
|
+
"connectionName": "connectionName",
|
|
666
|
+
"resultAttribute": "resultAttribute"
|
|
667
|
+
},
|
|
668
|
+
"branches": [
|
|
669
|
+
{
|
|
670
|
+
"id": "copied",
|
|
671
|
+
"field": "copied",
|
|
672
|
+
"optional": false
|
|
673
|
+
},
|
|
674
|
+
{
|
|
675
|
+
"id": "providerRejected",
|
|
676
|
+
"field": "providerRejected",
|
|
677
|
+
"optional": true
|
|
678
|
+
},
|
|
679
|
+
{
|
|
680
|
+
"id": "defect",
|
|
681
|
+
"field": "defect",
|
|
682
|
+
"optional": true
|
|
683
|
+
},
|
|
684
|
+
{
|
|
685
|
+
"id": "uncertain",
|
|
686
|
+
"field": "uncertain",
|
|
687
|
+
"optional": true
|
|
688
|
+
}
|
|
689
|
+
],
|
|
690
|
+
"inputSchema": {
|
|
691
|
+
"additionalProperties": false,
|
|
692
|
+
"description": "CopyObjectInput copies one source object to a destination key, replacing its metadata.",
|
|
693
|
+
"properties": {
|
|
694
|
+
"contentType": {
|
|
695
|
+
"description": "ContentType is the media type of the copied object; other source metadata is not retained.",
|
|
696
|
+
"type": "string"
|
|
697
|
+
},
|
|
698
|
+
"destinationBucket": {
|
|
699
|
+
"description": "DestinationBucket is the destination bucket; blank uses the connection default.",
|
|
700
|
+
"type": "string"
|
|
701
|
+
},
|
|
702
|
+
"destinationKey": {
|
|
703
|
+
"description": "DestinationKey is the key that receives the copy.",
|
|
704
|
+
"type": "string"
|
|
705
|
+
},
|
|
706
|
+
"metadata": {
|
|
707
|
+
"additionalProperties": {
|
|
708
|
+
"type": "string"
|
|
709
|
+
},
|
|
710
|
+
"description": "Metadata replaces source user metadata; the connector also adds its idempotency marker.",
|
|
711
|
+
"type": "object"
|
|
712
|
+
},
|
|
713
|
+
"sourceBucket": {
|
|
714
|
+
"description": "SourceBucket is the source bucket; blank uses the connection default.",
|
|
715
|
+
"type": "string"
|
|
716
|
+
},
|
|
717
|
+
"sourceETag": {
|
|
718
|
+
"description": "SourceETag, when set, makes S3 copy only the source version with that ETag.",
|
|
719
|
+
"type": "string"
|
|
720
|
+
},
|
|
721
|
+
"sourceKey": {
|
|
722
|
+
"description": "SourceKey is the source object key.",
|
|
723
|
+
"type": "string"
|
|
724
|
+
}
|
|
725
|
+
},
|
|
726
|
+
"required": [
|
|
727
|
+
"contentType",
|
|
728
|
+
"destinationKey",
|
|
729
|
+
"sourceKey"
|
|
730
|
+
],
|
|
731
|
+
"type": "object"
|
|
732
|
+
}
|
|
733
|
+
},
|
|
734
|
+
{
|
|
735
|
+
"name": "newDeleteObjectStep",
|
|
736
|
+
"kind": "mutation",
|
|
737
|
+
"operationId": "deleteObject",
|
|
738
|
+
"inputType": "DeleteObjectInput",
|
|
739
|
+
"description": "Delete the current object at a key; repeating the same deletion leaves the key absent.",
|
|
740
|
+
"fields": {
|
|
741
|
+
"stepType": "stepType",
|
|
742
|
+
"annotations": "annotations",
|
|
743
|
+
"connectionName": "connectionName",
|
|
744
|
+
"resultAttribute": "resultAttribute"
|
|
745
|
+
},
|
|
746
|
+
"branches": [
|
|
747
|
+
{
|
|
748
|
+
"id": "deleted",
|
|
749
|
+
"field": "deleted",
|
|
750
|
+
"optional": false
|
|
751
|
+
},
|
|
752
|
+
{
|
|
753
|
+
"id": "providerRejected",
|
|
754
|
+
"field": "providerRejected",
|
|
755
|
+
"optional": true
|
|
756
|
+
},
|
|
757
|
+
{
|
|
758
|
+
"id": "defect",
|
|
759
|
+
"field": "defect",
|
|
760
|
+
"optional": true
|
|
761
|
+
}
|
|
762
|
+
],
|
|
763
|
+
"inputSchema": {
|
|
764
|
+
"additionalProperties": false,
|
|
765
|
+
"description": "DeleteObjectInput identifies the current object to remove.",
|
|
766
|
+
"properties": {
|
|
767
|
+
"bucket": {
|
|
768
|
+
"description": "Bucket is the bucket name; blank uses the connection's defaultBucket.",
|
|
769
|
+
"type": "string"
|
|
770
|
+
},
|
|
771
|
+
"key": {
|
|
772
|
+
"description": "Key is the object key to remove.",
|
|
773
|
+
"type": "string"
|
|
774
|
+
}
|
|
775
|
+
},
|
|
776
|
+
"required": [
|
|
777
|
+
"key"
|
|
778
|
+
],
|
|
779
|
+
"type": "object"
|
|
780
|
+
}
|
|
284
781
|
}
|
|
285
782
|
]
|
|
286
783
|
}
|