@digipair/skill-s3 0.98.0 → 0.98.1
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/package.json +1 -1
- package/schema.fr.json +244 -206
- package/schema.json +223 -243
- /package/{libs/skill-s3/src → src}/index.d.ts +0 -0
- /package/{libs/skill-s3/src → src}/lib/skill-s3.d.ts +0 -0
package/package.json
CHANGED
package/schema.fr.json
CHANGED
|
@@ -72,241 +72,279 @@
|
|
|
72
72
|
"VersionId": {
|
|
73
73
|
"type": "string",
|
|
74
74
|
"description": "ID de version de l'objet (si le versioning est activé)"
|
|
75
|
+
},
|
|
76
|
+
"SSECustomerAlgorithm": {
|
|
77
|
+
"type": "string",
|
|
78
|
+
"description": "Algorithme de chiffrement fourni par le client"
|
|
79
|
+
},
|
|
80
|
+
"SSECustomerKeyMD5": {
|
|
81
|
+
"type": "string",
|
|
82
|
+
"description": "MD5 digest de la clé de chiffrement fournie par le client"
|
|
83
|
+
},
|
|
84
|
+
"SSEKMSKeyId": {
|
|
85
|
+
"type": "string",
|
|
86
|
+
"description": "ID de clé AWS KMS utilisé pour le chiffrement"
|
|
87
|
+
},
|
|
88
|
+
"BucketKeyEnabled": {
|
|
89
|
+
"type": "boolean",
|
|
90
|
+
"description": "Indique si la clé de bucket est activée"
|
|
91
|
+
},
|
|
92
|
+
"RequestCharged": {
|
|
93
|
+
"type": "string",
|
|
94
|
+
"description": "Indicateur de facturation de la requête"
|
|
75
95
|
}
|
|
76
96
|
}
|
|
77
|
-
"ETag": "\"1234567890abcdef1234567890abcdef\"",
|
|
78
|
-
"ServerSideEncryption": "AES256",
|
|
79
|
-
"VersionId": "abc123def456"
|
|
80
97
|
}
|
|
81
98
|
}
|
|
82
99
|
}
|
|
83
100
|
}
|
|
84
|
-
}
|
|
85
|
-
},
|
|
86
|
-
"x-events": []
|
|
87
|
-
}
|
|
88
|
-
},
|
|
89
|
-
"/download": {
|
|
90
|
-
"post": {
|
|
91
|
-
"tags": [
|
|
92
|
-
"service"
|
|
93
|
-
],
|
|
94
|
-
"summary": "Télécharger un fichier",
|
|
95
|
-
"description": "Télécharge un fichier depuis un bucket S3",
|
|
96
|
-
"parameters": [
|
|
97
|
-
{
|
|
98
|
-
"name": "bucket",
|
|
99
|
-
"summary": "Nom du bucket",
|
|
100
|
-
"required": true,
|
|
101
|
-
"description": "Nom du bucket S3",
|
|
102
|
-
"schema": {
|
|
103
|
-
"type": "string"
|
|
104
|
-
}
|
|
105
101
|
},
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
"
|
|
102
|
+
"x-events": []
|
|
103
|
+
}
|
|
104
|
+
},
|
|
105
|
+
"/download": {
|
|
106
|
+
"post": {
|
|
107
|
+
"tags": [
|
|
108
|
+
"service"
|
|
109
|
+
],
|
|
110
|
+
"summary": "Télécharger un fichier",
|
|
111
|
+
"description": "Télécharge un fichier depuis un bucket S3",
|
|
112
|
+
"parameters": [
|
|
113
|
+
{
|
|
114
|
+
"name": "bucket",
|
|
115
|
+
"summary": "Nom du bucket",
|
|
116
|
+
"required": true,
|
|
117
|
+
"description": "Nom du bucket S3",
|
|
118
|
+
"schema": {
|
|
119
|
+
"type": "string"
|
|
120
|
+
}
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
"name": "key",
|
|
124
|
+
"summary": "Clé de l'objet",
|
|
125
|
+
"required": true,
|
|
126
|
+
"description": "Clé (chemin) du fichier à télécharger",
|
|
127
|
+
"schema": {
|
|
128
|
+
"type": "string"
|
|
129
|
+
}
|
|
130
|
+
},
|
|
131
|
+
{
|
|
132
|
+
"name": "range",
|
|
133
|
+
"summary": "Plage de contenu",
|
|
134
|
+
"required": false,
|
|
135
|
+
"description": "La plage de contenu du fichier à télécharger",
|
|
136
|
+
"schema": {
|
|
137
|
+
"type": "string"
|
|
138
|
+
}
|
|
139
|
+
},
|
|
140
|
+
{
|
|
141
|
+
"name": "config",
|
|
142
|
+
"summary": "Configuration AWS",
|
|
143
|
+
"required": false,
|
|
144
|
+
"description": "Configuration du client AWS SDK (optionnelle)",
|
|
145
|
+
"schema": {
|
|
146
|
+
"type": "object"
|
|
147
|
+
}
|
|
122
148
|
}
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
149
|
+
],
|
|
150
|
+
"responses": {
|
|
151
|
+
"200": {
|
|
152
|
+
"description": "Fichier téléchargé en data URL base64",
|
|
153
|
+
"content": {
|
|
154
|
+
"application/json": {
|
|
155
|
+
"schema": {
|
|
156
|
+
"type": "string",
|
|
157
|
+
"description": "Contenu du fichier en data URL base64 avec type MIME"
|
|
158
|
+
}
|
|
133
159
|
}
|
|
134
160
|
}
|
|
135
161
|
}
|
|
136
|
-
}
|
|
137
|
-
},
|
|
138
|
-
"x-events": []
|
|
139
|
-
}
|
|
140
|
-
},
|
|
141
|
-
"/delete": {
|
|
142
|
-
"post": {
|
|
143
|
-
"tags": [
|
|
144
|
-
"service"
|
|
145
|
-
],
|
|
146
|
-
"summary": "Supprimer un fichier",
|
|
147
|
-
"description": "Supprime un fichier d’un bucket S3",
|
|
148
|
-
"parameters": [
|
|
149
|
-
{
|
|
150
|
-
"name": "bucket",
|
|
151
|
-
"summary": "Nom du bucket",
|
|
152
|
-
"required": true,
|
|
153
|
-
"description": "Nom du bucket S3",
|
|
154
|
-
"schema": {
|
|
155
|
-
"type": "string"
|
|
156
|
-
}
|
|
157
|
-
},
|
|
158
|
-
{
|
|
159
|
-
"name": "key",
|
|
160
|
-
"summary": "Clé de l'objet",
|
|
161
|
-
"required": true,
|
|
162
|
-
"description": "Clé (chemin) du fichier à supprimer",
|
|
163
|
-
"schema": {
|
|
164
|
-
"type": "string"
|
|
165
|
-
}
|
|
166
162
|
},
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
163
|
+
"x-events": []
|
|
164
|
+
}
|
|
165
|
+
},
|
|
166
|
+
"/delete": {
|
|
167
|
+
"post": {
|
|
168
|
+
"tags": [
|
|
169
|
+
"service"
|
|
170
|
+
],
|
|
171
|
+
"summary": "Supprimer un fichier",
|
|
172
|
+
"description": "Supprime un fichier d’un bucket S3",
|
|
173
|
+
"parameters": [
|
|
174
|
+
{
|
|
175
|
+
"name": "bucket",
|
|
176
|
+
"summary": "Nom du bucket",
|
|
177
|
+
"required": true,
|
|
178
|
+
"description": "Nom du bucket S3",
|
|
179
|
+
"schema": {
|
|
180
|
+
"type": "string"
|
|
181
|
+
}
|
|
182
|
+
},
|
|
183
|
+
{
|
|
184
|
+
"name": "key",
|
|
185
|
+
"summary": "Clé de l'objet",
|
|
186
|
+
"required": true,
|
|
187
|
+
"description": "Clé (chemin) du fichier à supprimer",
|
|
188
|
+
"schema": {
|
|
189
|
+
"type": "string"
|
|
190
|
+
}
|
|
191
|
+
},
|
|
192
|
+
{
|
|
193
|
+
"name": "config",
|
|
194
|
+
"summary": "Configuration AWS",
|
|
195
|
+
"required": false,
|
|
196
|
+
"description": "Configuration du client AWS SDK (optionnelle)",
|
|
197
|
+
"schema": {
|
|
198
|
+
"type": "object"
|
|
199
|
+
}
|
|
174
200
|
}
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
201
|
+
],
|
|
202
|
+
"responses": {
|
|
203
|
+
"200": {
|
|
204
|
+
"description": "Réponse AWS S3 DeleteObjectCommand",
|
|
205
|
+
"content": {
|
|
206
|
+
"application/json": {
|
|
207
|
+
"schema": {
|
|
208
|
+
"type": "object",
|
|
209
|
+
"properties": {
|
|
210
|
+
"DeleteMarker": {
|
|
211
|
+
"type": "boolean",
|
|
212
|
+
"description": "Si un marqueur de suppression a été créé"
|
|
213
|
+
},
|
|
214
|
+
"VersionId": {
|
|
215
|
+
"type": "string",
|
|
216
|
+
"description": "ID de version du marqueur de suppression"
|
|
217
|
+
},
|
|
218
|
+
"RequestCharged": {
|
|
219
|
+
"type": "string",
|
|
220
|
+
"description": "Indicateur de facturation de la requête"
|
|
221
|
+
}
|
|
192
222
|
}
|
|
193
223
|
}
|
|
194
|
-
"DeleteMarker": false,
|
|
195
|
-
"VersionId": "abc123def456"
|
|
196
224
|
}
|
|
197
225
|
}
|
|
198
226
|
}
|
|
199
|
-
}
|
|
227
|
+
},
|
|
228
|
+
"x-events": []
|
|
200
229
|
}
|
|
201
230
|
},
|
|
202
|
-
"
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
"
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
"summary": "Nom du bucket",
|
|
216
|
-
"required": true,
|
|
217
|
-
"description": "Nom du bucket S3",
|
|
218
|
-
"schema": {
|
|
219
|
-
"type": "string"
|
|
220
|
-
}
|
|
221
|
-
},
|
|
222
|
-
{
|
|
223
|
-
"name": "prefix",
|
|
224
|
-
"summary": "Préfixe",
|
|
225
|
-
"required": false,
|
|
226
|
-
"description": "Préfixe (dossier) pour filtrer les objets",
|
|
227
|
-
"schema": {
|
|
228
|
-
"type": "string"
|
|
229
|
-
}
|
|
230
|
-
},
|
|
231
|
-
{
|
|
232
|
-
"name": "config",
|
|
233
|
-
"summary": "Configuration AWS",
|
|
234
|
-
"required": false,
|
|
235
|
-
"description": "Configuration du client AWS SDK (optionnelle)",
|
|
236
|
-
"schema": {
|
|
237
|
-
"type": "object"
|
|
238
|
-
}
|
|
239
|
-
}
|
|
240
|
-
],
|
|
241
|
-
"responses": {
|
|
242
|
-
"200": {
|
|
243
|
-
"description": "Réponse AWS S3 ListObjectsV2Command",
|
|
244
|
-
"content": {
|
|
245
|
-
"application/json": {
|
|
231
|
+
"/list": {
|
|
232
|
+
"post": {
|
|
233
|
+
"tags": [
|
|
234
|
+
"service"
|
|
235
|
+
],
|
|
236
|
+
"summary": "Lister les fichiers",
|
|
237
|
+
"description": "Liste les fichiers d’un bucket S3, avec un préfixe éventuel",
|
|
238
|
+
"parameters": [
|
|
239
|
+
{
|
|
240
|
+
"name": "bucket",
|
|
241
|
+
"summary": "Nom du bucket",
|
|
242
|
+
"required": true,
|
|
243
|
+
"description": "Nom du bucket S3",
|
|
246
244
|
"schema": {
|
|
247
|
-
"type": "
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
245
|
+
"type": "string"
|
|
246
|
+
}
|
|
247
|
+
},
|
|
248
|
+
{
|
|
249
|
+
"name": "prefix",
|
|
250
|
+
"summary": "Préfixe",
|
|
251
|
+
"required": false,
|
|
252
|
+
"description": "Préfixe (dossier) pour filtrer les objets",
|
|
253
|
+
"schema": {
|
|
254
|
+
"type": "string"
|
|
255
|
+
}
|
|
256
|
+
},
|
|
257
|
+
{
|
|
258
|
+
"name": "config",
|
|
259
|
+
"summary": "Configuration AWS",
|
|
260
|
+
"required": false,
|
|
261
|
+
"description": "Configuration du client AWS SDK (optionnelle)",
|
|
262
|
+
"schema": {
|
|
263
|
+
"type": "object"
|
|
264
|
+
}
|
|
265
|
+
}
|
|
266
|
+
],
|
|
267
|
+
"responses": {
|
|
268
|
+
"200": {
|
|
269
|
+
"description": "Réponse AWS S3 ListObjectsV2Command",
|
|
270
|
+
"content": {
|
|
271
|
+
"application/json": {
|
|
272
|
+
"schema": {
|
|
273
|
+
"type": "object",
|
|
274
|
+
"properties": {
|
|
275
|
+
"IsTruncated": {
|
|
276
|
+
"type": "boolean",
|
|
277
|
+
"description": "Si la réponse est tronquée"
|
|
278
|
+
},
|
|
279
|
+
"Contents": {
|
|
280
|
+
"type": "array",
|
|
281
|
+
"description": "Liste des objets dans le bucket",
|
|
282
|
+
"items": {
|
|
283
|
+
"type": "object",
|
|
284
|
+
"properties": {
|
|
285
|
+
"Key": {
|
|
286
|
+
"type": "string",
|
|
287
|
+
"description": "Clé de l'objet (chemin)"
|
|
288
|
+
},
|
|
289
|
+
"LastModified": {
|
|
290
|
+
"type": "string",
|
|
291
|
+
"format": "date-time",
|
|
292
|
+
"description": "Date de dernière modification"
|
|
293
|
+
},
|
|
294
|
+
"ETag": {
|
|
295
|
+
"type": "string",
|
|
296
|
+
"description": "Étiquette d'entité"
|
|
297
|
+
},
|
|
298
|
+
"Size": {
|
|
299
|
+
"type": "number",
|
|
300
|
+
"description": "Taille de l'objet en octets"
|
|
301
|
+
},
|
|
302
|
+
"StorageClass": {
|
|
303
|
+
"type": "string",
|
|
304
|
+
"description": "Classe de stockage"
|
|
305
|
+
},
|
|
306
|
+
"Owner": {
|
|
307
|
+
"type": "object",
|
|
308
|
+
"description": "Informations sur le propriétaire de l'objet"
|
|
309
|
+
}
|
|
310
|
+
}
|
|
279
311
|
}
|
|
312
|
+
},
|
|
313
|
+
"Name": {
|
|
314
|
+
"type": "string",
|
|
315
|
+
"description": "Nom du bucket"
|
|
316
|
+
},
|
|
317
|
+
"Prefix": {
|
|
318
|
+
"type": "string",
|
|
319
|
+
"description": "Préfixe utilisé pour le filtrage"
|
|
320
|
+
},
|
|
321
|
+
"MaxKeys": {
|
|
322
|
+
"type": "number",
|
|
323
|
+
"description": "Nombre maximum de clés retournées"
|
|
324
|
+
},
|
|
325
|
+
"KeyCount": {
|
|
326
|
+
"type": "number",
|
|
327
|
+
"description": "Nombre de clés retournées"
|
|
328
|
+
},
|
|
329
|
+
"ContinuationToken": {
|
|
330
|
+
"type": "string",
|
|
331
|
+
"description": "Token de pagination"
|
|
332
|
+
},
|
|
333
|
+
"NextContinuationToken": {
|
|
334
|
+
"type": "string",
|
|
335
|
+
"description": "Token de continuation suivant pour la pagination"
|
|
280
336
|
}
|
|
281
337
|
}
|
|
282
|
-
},
|
|
283
|
-
"KeyCount": {
|
|
284
|
-
"type": "number",
|
|
285
|
-
"description": "Nombre de clés retournées"
|
|
286
338
|
}
|
|
287
339
|
}
|
|
288
|
-
"IsTruncated": false,
|
|
289
|
-
"Contents": [
|
|
290
|
-
{
|
|
291
|
-
"Key": "dossier/image.jpg",
|
|
292
|
-
"LastModified": "2023-01-15T10:30:00Z",
|
|
293
|
-
"ETag": "\"abc123def456\"",
|
|
294
|
-
"Size": 2048,
|
|
295
|
-
"StorageClass": "STANDARD"
|
|
296
|
-
}
|
|
297
|
-
],
|
|
298
|
-
"KeyCount": 1
|
|
299
340
|
}
|
|
300
341
|
}
|
|
301
|
-
}
|
|
342
|
+
},
|
|
343
|
+
"x-events": []
|
|
302
344
|
}
|
|
303
345
|
}
|
|
304
346
|
},
|
|
305
|
-
"
|
|
306
|
-
}
|
|
307
|
-
}
|
|
308
|
-
},
|
|
309
|
-
"components": {
|
|
310
|
-
"schemas": {}
|
|
311
|
-
}
|
|
347
|
+
"components": {
|
|
348
|
+
"schemas": {}
|
|
349
|
+
}
|
|
312
350
|
}
|
package/schema.json
CHANGED
|
@@ -94,277 +94,257 @@
|
|
|
94
94
|
"description": "Request charged indicator"
|
|
95
95
|
}
|
|
96
96
|
}
|
|
97
|
-
"ETag": "\"1234567890abcdef1234567890abcdef\"",
|
|
98
|
-
"ServerSideEncryption": "AES256",
|
|
99
|
-
"VersionId": "abc123def456"
|
|
100
97
|
}
|
|
101
98
|
}
|
|
102
99
|
}
|
|
103
100
|
}
|
|
104
|
-
}
|
|
105
|
-
},
|
|
106
|
-
"x-events": []
|
|
107
|
-
}
|
|
108
|
-
},
|
|
109
|
-
"/download": {
|
|
110
|
-
"post": {
|
|
111
|
-
"tags": [
|
|
112
|
-
"service"
|
|
113
|
-
],
|
|
114
|
-
"summary": "Download File",
|
|
115
|
-
"description": "Download a file from an S3 bucket",
|
|
116
|
-
"parameters": [
|
|
117
|
-
{
|
|
118
|
-
"name": "bucket",
|
|
119
|
-
"summary": "Bucket Name",
|
|
120
|
-
"required": true,
|
|
121
|
-
"description": "The name of the S3 bucket",
|
|
122
|
-
"schema": {
|
|
123
|
-
"type": "string"
|
|
124
|
-
}
|
|
125
101
|
},
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
"
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
"
|
|
102
|
+
"x-events": []
|
|
103
|
+
}
|
|
104
|
+
},
|
|
105
|
+
"/download": {
|
|
106
|
+
"post": {
|
|
107
|
+
"tags": [
|
|
108
|
+
"service"
|
|
109
|
+
],
|
|
110
|
+
"summary": "Download File",
|
|
111
|
+
"description": "Download a file from an S3 bucket",
|
|
112
|
+
"parameters": [
|
|
113
|
+
{
|
|
114
|
+
"name": "bucket",
|
|
115
|
+
"summary": "Bucket Name",
|
|
116
|
+
"required": true,
|
|
117
|
+
"description": "The name of the S3 bucket",
|
|
118
|
+
"schema": {
|
|
119
|
+
"type": "string"
|
|
120
|
+
}
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
"name": "key",
|
|
124
|
+
"summary": "Object Key",
|
|
125
|
+
"required": true,
|
|
126
|
+
"description": "The key (path) of the file to download",
|
|
127
|
+
"schema": {
|
|
128
|
+
"type": "string"
|
|
129
|
+
}
|
|
130
|
+
},
|
|
131
|
+
{
|
|
132
|
+
"name": "range",
|
|
133
|
+
"summary": "Content range",
|
|
134
|
+
"required": false,
|
|
135
|
+
"description": "The content range of the file to download",
|
|
136
|
+
"schema": {
|
|
137
|
+
"type": "string"
|
|
138
|
+
}
|
|
139
|
+
},
|
|
140
|
+
{
|
|
141
|
+
"name": "config",
|
|
142
|
+
"summary": "AWS Config",
|
|
143
|
+
"required": false,
|
|
144
|
+
"description": "AWS SDK client configuration (optional)",
|
|
145
|
+
"schema": {
|
|
146
|
+
"type": "object"
|
|
147
|
+
}
|
|
151
148
|
}
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
149
|
+
],
|
|
150
|
+
"responses": {
|
|
151
|
+
"200": {
|
|
152
|
+
"description": "Downloaded file as base64-encoded data URL",
|
|
153
|
+
"content": {
|
|
154
|
+
"application/json": {
|
|
155
|
+
"schema": {
|
|
156
|
+
"type": "string",
|
|
157
|
+
"description": "File content as base64-encoded data URL with MIME type"
|
|
158
|
+
}
|
|
162
159
|
}
|
|
163
160
|
}
|
|
164
161
|
}
|
|
165
|
-
}
|
|
166
|
-
},
|
|
167
|
-
"x-events": []
|
|
168
|
-
}
|
|
169
|
-
},
|
|
170
|
-
"/delete": {
|
|
171
|
-
"post": {
|
|
172
|
-
"tags": [
|
|
173
|
-
"service"
|
|
174
|
-
],
|
|
175
|
-
"summary": "Delete File",
|
|
176
|
-
"description": "Delete a file from an S3 bucket",
|
|
177
|
-
"parameters": [
|
|
178
|
-
{
|
|
179
|
-
"name": "bucket",
|
|
180
|
-
"summary": "Bucket Name",
|
|
181
|
-
"required": true,
|
|
182
|
-
"description": "The name of the S3 bucket",
|
|
183
|
-
"schema": {
|
|
184
|
-
"type": "string"
|
|
185
|
-
}
|
|
186
|
-
},
|
|
187
|
-
{
|
|
188
|
-
"name": "key",
|
|
189
|
-
"summary": "Object Key",
|
|
190
|
-
"required": true,
|
|
191
|
-
"description": "The key (path) of the file to delete",
|
|
192
|
-
"schema": {
|
|
193
|
-
"type": "string"
|
|
194
|
-
}
|
|
195
162
|
},
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
163
|
+
"x-events": []
|
|
164
|
+
}
|
|
165
|
+
},
|
|
166
|
+
"/delete": {
|
|
167
|
+
"post": {
|
|
168
|
+
"tags": [
|
|
169
|
+
"service"
|
|
170
|
+
],
|
|
171
|
+
"summary": "Delete File",
|
|
172
|
+
"description": "Delete a file from an S3 bucket",
|
|
173
|
+
"parameters": [
|
|
174
|
+
{
|
|
175
|
+
"name": "bucket",
|
|
176
|
+
"summary": "Bucket Name",
|
|
177
|
+
"required": true,
|
|
178
|
+
"description": "The name of the S3 bucket",
|
|
179
|
+
"schema": {
|
|
180
|
+
"type": "string"
|
|
181
|
+
}
|
|
182
|
+
},
|
|
183
|
+
{
|
|
184
|
+
"name": "key",
|
|
185
|
+
"summary": "Object Key",
|
|
186
|
+
"required": true,
|
|
187
|
+
"description": "The key (path) of the file to delete",
|
|
188
|
+
"schema": {
|
|
189
|
+
"type": "string"
|
|
190
|
+
}
|
|
191
|
+
},
|
|
192
|
+
{
|
|
193
|
+
"name": "config",
|
|
194
|
+
"summary": "AWS Config",
|
|
195
|
+
"required": false,
|
|
196
|
+
"description": "AWS SDK client configuration (optional)",
|
|
197
|
+
"schema": {
|
|
198
|
+
"type": "object"
|
|
199
|
+
}
|
|
203
200
|
}
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
201
|
+
],
|
|
202
|
+
"responses": {
|
|
203
|
+
"200": {
|
|
204
|
+
"description": "AWS S3 DeleteObjectCommand response",
|
|
205
|
+
"content": {
|
|
206
|
+
"application/json": {
|
|
207
|
+
"schema": {
|
|
208
|
+
"type": "object",
|
|
209
|
+
"properties": {
|
|
210
|
+
"DeleteMarker": {
|
|
211
|
+
"type": "boolean",
|
|
212
|
+
"description": "Whether a delete marker was created"
|
|
213
|
+
},
|
|
214
|
+
"VersionId": {
|
|
215
|
+
"type": "string",
|
|
216
|
+
"description": "Version ID of the delete marker"
|
|
217
|
+
},
|
|
218
|
+
"RequestCharged": {
|
|
219
|
+
"type": "string",
|
|
220
|
+
"description": "Request charged indicator"
|
|
221
|
+
}
|
|
225
222
|
}
|
|
226
223
|
}
|
|
227
|
-
"DeleteMarker": false,
|
|
228
|
-
"VersionId": "abc123def456"
|
|
229
224
|
}
|
|
230
225
|
}
|
|
231
226
|
}
|
|
232
|
-
}
|
|
227
|
+
},
|
|
228
|
+
"x-events": []
|
|
233
229
|
}
|
|
234
230
|
},
|
|
235
|
-
"
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
"
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
"summary": "Bucket Name",
|
|
249
|
-
"required": true,
|
|
250
|
-
"description": "The name of the S3 bucket",
|
|
251
|
-
"schema": {
|
|
252
|
-
"type": "string"
|
|
253
|
-
}
|
|
254
|
-
},
|
|
255
|
-
{
|
|
256
|
-
"name": "prefix",
|
|
257
|
-
"summary": "Prefix",
|
|
258
|
-
"required": false,
|
|
259
|
-
"description": "The prefix (folder) to filter objects",
|
|
260
|
-
"schema": {
|
|
261
|
-
"type": "string"
|
|
262
|
-
}
|
|
263
|
-
},
|
|
264
|
-
{
|
|
265
|
-
"name": "config",
|
|
266
|
-
"summary": "AWS Config",
|
|
267
|
-
"required": false,
|
|
268
|
-
"description": "AWS SDK client configuration (optional)",
|
|
269
|
-
"schema": {
|
|
270
|
-
"type": "object"
|
|
271
|
-
}
|
|
272
|
-
}
|
|
273
|
-
],
|
|
274
|
-
"responses": {
|
|
275
|
-
"200": {
|
|
276
|
-
"description": "AWS S3 ListObjectsV2Command response",
|
|
277
|
-
"content": {
|
|
278
|
-
"application/json": {
|
|
231
|
+
"/list": {
|
|
232
|
+
"post": {
|
|
233
|
+
"tags": [
|
|
234
|
+
"service"
|
|
235
|
+
],
|
|
236
|
+
"summary": "List Files",
|
|
237
|
+
"description": "List files in an S3 bucket, optionally by prefix",
|
|
238
|
+
"parameters": [
|
|
239
|
+
{
|
|
240
|
+
"name": "bucket",
|
|
241
|
+
"summary": "Bucket Name",
|
|
242
|
+
"required": true,
|
|
243
|
+
"description": "The name of the S3 bucket",
|
|
279
244
|
"schema": {
|
|
280
|
-
"type": "
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
245
|
+
"type": "string"
|
|
246
|
+
}
|
|
247
|
+
},
|
|
248
|
+
{
|
|
249
|
+
"name": "prefix",
|
|
250
|
+
"summary": "Prefix",
|
|
251
|
+
"required": false,
|
|
252
|
+
"description": "The prefix (folder) to filter objects",
|
|
253
|
+
"schema": {
|
|
254
|
+
"type": "string"
|
|
255
|
+
}
|
|
256
|
+
},
|
|
257
|
+
{
|
|
258
|
+
"name": "config",
|
|
259
|
+
"summary": "AWS Config",
|
|
260
|
+
"required": false,
|
|
261
|
+
"description": "AWS SDK client configuration (optional)",
|
|
262
|
+
"schema": {
|
|
263
|
+
"type": "object"
|
|
264
|
+
}
|
|
265
|
+
}
|
|
266
|
+
],
|
|
267
|
+
"responses": {
|
|
268
|
+
"200": {
|
|
269
|
+
"description": "AWS S3 ListObjectsV2Command response",
|
|
270
|
+
"content": {
|
|
271
|
+
"application/json": {
|
|
272
|
+
"schema": {
|
|
273
|
+
"type": "object",
|
|
274
|
+
"properties": {
|
|
275
|
+
"IsTruncated": {
|
|
276
|
+
"type": "boolean",
|
|
277
|
+
"description": "Whether the response is truncated"
|
|
278
|
+
},
|
|
279
|
+
"Contents": {
|
|
280
|
+
"type": "array",
|
|
281
|
+
"description": "List of objects in the bucket",
|
|
282
|
+
"items": {
|
|
314
283
|
"type": "object",
|
|
315
|
-
"
|
|
284
|
+
"properties": {
|
|
285
|
+
"Key": {
|
|
286
|
+
"type": "string",
|
|
287
|
+
"description": "Object key (path)"
|
|
288
|
+
},
|
|
289
|
+
"LastModified": {
|
|
290
|
+
"type": "string",
|
|
291
|
+
"format": "date-time",
|
|
292
|
+
"description": "Last modification date"
|
|
293
|
+
},
|
|
294
|
+
"ETag": {
|
|
295
|
+
"type": "string",
|
|
296
|
+
"description": "Entity tag"
|
|
297
|
+
},
|
|
298
|
+
"Size": {
|
|
299
|
+
"type": "number",
|
|
300
|
+
"description": "Object size in bytes"
|
|
301
|
+
},
|
|
302
|
+
"StorageClass": {
|
|
303
|
+
"type": "string",
|
|
304
|
+
"description": "Storage class"
|
|
305
|
+
},
|
|
306
|
+
"Owner": {
|
|
307
|
+
"type": "object",
|
|
308
|
+
"description": "Object owner information"
|
|
309
|
+
}
|
|
310
|
+
}
|
|
316
311
|
}
|
|
312
|
+
},
|
|
313
|
+
"Name": {
|
|
314
|
+
"type": "string",
|
|
315
|
+
"description": "Bucket name"
|
|
316
|
+
},
|
|
317
|
+
"Prefix": {
|
|
318
|
+
"type": "string",
|
|
319
|
+
"description": "Prefix used for filtering"
|
|
320
|
+
},
|
|
321
|
+
"MaxKeys": {
|
|
322
|
+
"type": "number",
|
|
323
|
+
"description": "Maximum number of keys returned"
|
|
324
|
+
},
|
|
325
|
+
"KeyCount": {
|
|
326
|
+
"type": "number",
|
|
327
|
+
"description": "Number of keys returned"
|
|
328
|
+
},
|
|
329
|
+
"ContinuationToken": {
|
|
330
|
+
"type": "string",
|
|
331
|
+
"description": "Token for pagination"
|
|
332
|
+
},
|
|
333
|
+
"NextContinuationToken": {
|
|
334
|
+
"type": "string",
|
|
335
|
+
"description": "Next continuation token for pagination"
|
|
317
336
|
}
|
|
318
337
|
}
|
|
319
|
-
},
|
|
320
|
-
"Name": {
|
|
321
|
-
"type": "string",
|
|
322
|
-
"description": "Bucket name"
|
|
323
|
-
},
|
|
324
|
-
"Prefix": {
|
|
325
|
-
"type": "string",
|
|
326
|
-
"description": "Prefix used for filtering"
|
|
327
|
-
},
|
|
328
|
-
"MaxKeys": {
|
|
329
|
-
"type": "number",
|
|
330
|
-
"description": "Maximum number of keys returned"
|
|
331
|
-
},
|
|
332
|
-
"KeyCount": {
|
|
333
|
-
"type": "number",
|
|
334
|
-
"description": "Number of keys returned"
|
|
335
|
-
},
|
|
336
|
-
"ContinuationToken": {
|
|
337
|
-
"type": "string",
|
|
338
|
-
"description": "Token for pagination"
|
|
339
|
-
},
|
|
340
|
-
"NextContinuationToken": {
|
|
341
|
-
"type": "string",
|
|
342
|
-
"description": "Next continuation token for pagination"
|
|
343
338
|
}
|
|
344
339
|
}
|
|
345
|
-
"IsTruncated": false,
|
|
346
|
-
"Contents": [
|
|
347
|
-
{
|
|
348
|
-
"Key": "folder/image.jpg",
|
|
349
|
-
"LastModified": "2023-01-15T10:30:00Z",
|
|
350
|
-
"ETag": "\"abc123def456\"",
|
|
351
|
-
"Size": 2048,
|
|
352
|
-
"StorageClass": "STANDARD"
|
|
353
|
-
}
|
|
354
|
-
],
|
|
355
|
-
"KeyCount": 1,
|
|
356
|
-
"MaxKeys": 1000
|
|
357
340
|
}
|
|
358
341
|
}
|
|
359
|
-
}
|
|
342
|
+
},
|
|
343
|
+
"x-events": []
|
|
360
344
|
}
|
|
361
345
|
}
|
|
362
346
|
},
|
|
363
|
-
"
|
|
364
|
-
}
|
|
365
|
-
}
|
|
366
|
-
},
|
|
367
|
-
"components": {
|
|
368
|
-
"schemas": {}
|
|
369
|
-
}
|
|
347
|
+
"components": {
|
|
348
|
+
"schemas": {}
|
|
349
|
+
}
|
|
370
350
|
}
|
|
File without changes
|
|
File without changes
|