@executioncontrolprotocol/azure-blob-storage 0.14.0 → 0.60.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 +3 -52
- package/dist/azure-client.d.ts +102 -0
- package/dist/azure-client.d.ts.map +1 -0
- package/dist/azure-client.js +133 -0
- package/dist/azure-client.js.map +1 -0
- package/dist/blob-name.d.ts +9 -0
- package/dist/blob-name.d.ts.map +1 -0
- package/dist/blob-name.js +41 -0
- package/dist/blob-name.js.map +1 -0
- package/dist/capabilities/delete.d.ts +8 -0
- package/dist/capabilities/delete.d.ts.map +1 -0
- package/dist/capabilities/delete.js +19 -0
- package/dist/capabilities/delete.js.map +1 -0
- package/dist/capabilities/download.d.ts +5 -6
- package/dist/capabilities/download.d.ts.map +1 -1
- package/dist/capabilities/download.js +15 -31
- package/dist/capabilities/download.js.map +1 -1
- package/dist/capabilities/sas.d.ts +8 -0
- package/dist/capabilities/sas.d.ts.map +1 -0
- package/dist/capabilities/sas.js +22 -0
- package/dist/capabilities/sas.js.map +1 -0
- package/dist/capabilities/upload.d.ts +5 -24
- package/dist/capabilities/upload.d.ts.map +1 -1
- package/dist/capabilities/upload.js +35 -100
- package/dist/capabilities/upload.js.map +1 -1
- package/dist/config.d.ts +17 -0
- package/dist/config.d.ts.map +1 -0
- package/dist/config.js +31 -0
- package/dist/config.js.map +1 -0
- package/dist/index.d.ts +208 -24
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +85 -36
- package/dist/index.js.map +1 -1
- package/dist/schemas.d.ts +204 -0
- package/dist/schemas.d.ts.map +1 -0
- package/dist/schemas.js +116 -0
- package/dist/schemas.js.map +1 -0
- package/ecp.manifest.json +87 -0
- package/ecp.schema.json +446 -0
- package/package.json +27 -17
- package/dist/capabilities/create-sas-url-schema.d.ts +0 -33
- package/dist/capabilities/create-sas-url-schema.d.ts.map +0 -1
- package/dist/capabilities/create-sas-url-schema.js +0 -16
- package/dist/capabilities/create-sas-url-schema.js.map +0 -1
- package/dist/capabilities/create-sas-url.d.ts +0 -9
- package/dist/capabilities/create-sas-url.d.ts.map +0 -1
- package/dist/capabilities/create-sas-url.js +0 -22
- package/dist/capabilities/create-sas-url.js.map +0 -1
- package/dist/capabilities/download-schema.d.ts +0 -28
- package/dist/capabilities/download-schema.d.ts.map +0 -1
- package/dist/capabilities/download-schema.js +0 -15
- package/dist/capabilities/download-schema.js.map +0 -1
- package/dist/capabilities/upload-mixed.d.ts +0 -8
- package/dist/capabilities/upload-mixed.d.ts.map +0 -1
- package/dist/capabilities/upload-mixed.js +0 -30
- package/dist/capabilities/upload-mixed.js.map +0 -1
- package/dist/capabilities/upload-schema.d.ts +0 -77
- package/dist/capabilities/upload-schema.d.ts.map +0 -1
- package/dist/capabilities/upload-schema.js +0 -33
- package/dist/capabilities/upload-schema.js.map +0 -1
- package/dist/capability-catalog.d.ts +0 -13
- package/dist/capability-catalog.d.ts.map +0 -1
- package/dist/capability-catalog.js +0 -65
- package/dist/capability-catalog.js.map +0 -1
- package/dist/client.d.ts +0 -54
- package/dist/client.d.ts.map +0 -1
- package/dist/client.js +0 -67
- package/dist/client.js.map +0 -1
- package/dist/index.browser.d.ts +0 -20
- package/dist/index.browser.d.ts.map +0 -1
- package/dist/index.browser.js +0 -34
- package/dist/index.browser.js.map +0 -1
- package/dist/permissions.d.ts +0 -5
- package/dist/permissions.d.ts.map +0 -1
- package/dist/permissions.js +0 -3
- package/dist/permissions.js.map +0 -1
- package/dist/sas.d.ts +0 -30
- package/dist/sas.d.ts.map +0 -1
- package/dist/sas.js +0 -32
- package/dist/sas.js.map +0 -1
- package/dist/shared.d.ts +0 -11
- package/dist/shared.d.ts.map +0 -1
- package/dist/shared.js +0 -41
- package/dist/shared.js.map +0 -1
package/ecp.schema.json
ADDED
|
@@ -0,0 +1,446 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$defs": {
|
|
3
|
+
"config": {
|
|
4
|
+
"anyOf": [
|
|
5
|
+
{
|
|
6
|
+
"properties": {
|
|
7
|
+
"connectionString": {
|
|
8
|
+
"minLength": 1,
|
|
9
|
+
"type": "string"
|
|
10
|
+
},
|
|
11
|
+
"defaultContainer": {
|
|
12
|
+
"minLength": 1,
|
|
13
|
+
"type": "string"
|
|
14
|
+
}
|
|
15
|
+
},
|
|
16
|
+
"required": [
|
|
17
|
+
"connectionString"
|
|
18
|
+
],
|
|
19
|
+
"type": "object"
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
"properties": {
|
|
23
|
+
"accountKey": {
|
|
24
|
+
"minLength": 1,
|
|
25
|
+
"type": "string"
|
|
26
|
+
},
|
|
27
|
+
"accountName": {
|
|
28
|
+
"minLength": 1,
|
|
29
|
+
"type": "string"
|
|
30
|
+
},
|
|
31
|
+
"defaultContainer": {
|
|
32
|
+
"minLength": 1,
|
|
33
|
+
"type": "string"
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
"required": [
|
|
37
|
+
"accountName",
|
|
38
|
+
"accountKey"
|
|
39
|
+
],
|
|
40
|
+
"type": "object"
|
|
41
|
+
}
|
|
42
|
+
]
|
|
43
|
+
},
|
|
44
|
+
"delete.accepts": {
|
|
45
|
+
"properties": {
|
|
46
|
+
"blobName": {
|
|
47
|
+
"minLength": 1,
|
|
48
|
+
"type": "string"
|
|
49
|
+
},
|
|
50
|
+
"container": {
|
|
51
|
+
"minLength": 1,
|
|
52
|
+
"type": "string"
|
|
53
|
+
},
|
|
54
|
+
"ifMissing": {
|
|
55
|
+
"default": "error",
|
|
56
|
+
"enum": [
|
|
57
|
+
"error",
|
|
58
|
+
"ignore"
|
|
59
|
+
],
|
|
60
|
+
"type": "string"
|
|
61
|
+
}
|
|
62
|
+
},
|
|
63
|
+
"required": [
|
|
64
|
+
"blobName"
|
|
65
|
+
],
|
|
66
|
+
"type": "object"
|
|
67
|
+
},
|
|
68
|
+
"delete.returns": {
|
|
69
|
+
"additionalProperties": false,
|
|
70
|
+
"properties": {
|
|
71
|
+
"blobName": {
|
|
72
|
+
"type": "string"
|
|
73
|
+
},
|
|
74
|
+
"container": {
|
|
75
|
+
"type": "string"
|
|
76
|
+
},
|
|
77
|
+
"deleted": {
|
|
78
|
+
"type": "boolean"
|
|
79
|
+
}
|
|
80
|
+
},
|
|
81
|
+
"required": [
|
|
82
|
+
"blobName",
|
|
83
|
+
"container",
|
|
84
|
+
"deleted"
|
|
85
|
+
],
|
|
86
|
+
"type": "object"
|
|
87
|
+
},
|
|
88
|
+
"download.accepts": {
|
|
89
|
+
"properties": {
|
|
90
|
+
"blobName": {
|
|
91
|
+
"minLength": 1,
|
|
92
|
+
"type": "string"
|
|
93
|
+
},
|
|
94
|
+
"container": {
|
|
95
|
+
"minLength": 1,
|
|
96
|
+
"type": "string"
|
|
97
|
+
}
|
|
98
|
+
},
|
|
99
|
+
"required": [
|
|
100
|
+
"blobName"
|
|
101
|
+
],
|
|
102
|
+
"type": "object"
|
|
103
|
+
},
|
|
104
|
+
"download.returns": {
|
|
105
|
+
"additionalProperties": false,
|
|
106
|
+
"properties": {
|
|
107
|
+
"file": {
|
|
108
|
+
"additionalProperties": false,
|
|
109
|
+
"properties": {
|
|
110
|
+
"kind": {
|
|
111
|
+
"const": "artifact",
|
|
112
|
+
"type": "string"
|
|
113
|
+
},
|
|
114
|
+
"mediaType": {
|
|
115
|
+
"type": "string"
|
|
116
|
+
},
|
|
117
|
+
"name": {
|
|
118
|
+
"type": "string"
|
|
119
|
+
},
|
|
120
|
+
"sizeBytes": {
|
|
121
|
+
"type": "number"
|
|
122
|
+
},
|
|
123
|
+
"uri": {
|
|
124
|
+
"type": "string"
|
|
125
|
+
}
|
|
126
|
+
},
|
|
127
|
+
"required": [
|
|
128
|
+
"kind",
|
|
129
|
+
"uri"
|
|
130
|
+
],
|
|
131
|
+
"type": "object"
|
|
132
|
+
}
|
|
133
|
+
},
|
|
134
|
+
"required": [
|
|
135
|
+
"file"
|
|
136
|
+
],
|
|
137
|
+
"type": "object"
|
|
138
|
+
},
|
|
139
|
+
"sas.accepts": {
|
|
140
|
+
"properties": {
|
|
141
|
+
"blobName": {
|
|
142
|
+
"minLength": 1,
|
|
143
|
+
"type": "string"
|
|
144
|
+
},
|
|
145
|
+
"container": {
|
|
146
|
+
"minLength": 1,
|
|
147
|
+
"type": "string"
|
|
148
|
+
},
|
|
149
|
+
"expiresInSeconds": {
|
|
150
|
+
"exclusiveMinimum": 0,
|
|
151
|
+
"maximum": 9007199254740991,
|
|
152
|
+
"type": "integer"
|
|
153
|
+
},
|
|
154
|
+
"permissions": {
|
|
155
|
+
"pattern": "^[racwd]+$",
|
|
156
|
+
"type": "string"
|
|
157
|
+
}
|
|
158
|
+
},
|
|
159
|
+
"required": [
|
|
160
|
+
"blobName"
|
|
161
|
+
],
|
|
162
|
+
"type": "object"
|
|
163
|
+
},
|
|
164
|
+
"sas.returns": {
|
|
165
|
+
"additionalProperties": false,
|
|
166
|
+
"properties": {
|
|
167
|
+
"expiresOn": {
|
|
168
|
+
"type": "string"
|
|
169
|
+
},
|
|
170
|
+
"file": {
|
|
171
|
+
"additionalProperties": false,
|
|
172
|
+
"properties": {
|
|
173
|
+
"headers": {
|
|
174
|
+
"additionalProperties": {
|
|
175
|
+
"type": "string"
|
|
176
|
+
},
|
|
177
|
+
"propertyNames": {
|
|
178
|
+
"type": "string"
|
|
179
|
+
},
|
|
180
|
+
"type": "object"
|
|
181
|
+
},
|
|
182
|
+
"kind": {
|
|
183
|
+
"const": "url",
|
|
184
|
+
"type": "string"
|
|
185
|
+
},
|
|
186
|
+
"mediaType": {
|
|
187
|
+
"type": "string"
|
|
188
|
+
},
|
|
189
|
+
"url": {
|
|
190
|
+
"format": "uri",
|
|
191
|
+
"type": "string"
|
|
192
|
+
}
|
|
193
|
+
},
|
|
194
|
+
"required": [
|
|
195
|
+
"kind",
|
|
196
|
+
"url"
|
|
197
|
+
],
|
|
198
|
+
"type": "object"
|
|
199
|
+
}
|
|
200
|
+
},
|
|
201
|
+
"required": [
|
|
202
|
+
"file",
|
|
203
|
+
"expiresOn"
|
|
204
|
+
],
|
|
205
|
+
"type": "object"
|
|
206
|
+
},
|
|
207
|
+
"upload.accepts": {
|
|
208
|
+
"properties": {
|
|
209
|
+
"blobName": {
|
|
210
|
+
"minLength": 1,
|
|
211
|
+
"type": "string"
|
|
212
|
+
},
|
|
213
|
+
"container": {
|
|
214
|
+
"minLength": 1,
|
|
215
|
+
"type": "string"
|
|
216
|
+
},
|
|
217
|
+
"contentType": {
|
|
218
|
+
"type": "string"
|
|
219
|
+
},
|
|
220
|
+
"createReadSas": {
|
|
221
|
+
"default": true,
|
|
222
|
+
"type": "boolean"
|
|
223
|
+
},
|
|
224
|
+
"file": {
|
|
225
|
+
"oneOf": [
|
|
226
|
+
{
|
|
227
|
+
"properties": {
|
|
228
|
+
"archive": {
|
|
229
|
+
"properties": {
|
|
230
|
+
"kind": {
|
|
231
|
+
"const": "artifact",
|
|
232
|
+
"type": "string"
|
|
233
|
+
},
|
|
234
|
+
"mediaType": {
|
|
235
|
+
"type": "string"
|
|
236
|
+
},
|
|
237
|
+
"name": {
|
|
238
|
+
"type": "string"
|
|
239
|
+
},
|
|
240
|
+
"sizeBytes": {
|
|
241
|
+
"maximum": 9007199254740991,
|
|
242
|
+
"minimum": 0,
|
|
243
|
+
"type": "integer"
|
|
244
|
+
},
|
|
245
|
+
"uri": {
|
|
246
|
+
"minLength": 1,
|
|
247
|
+
"type": "string"
|
|
248
|
+
}
|
|
249
|
+
},
|
|
250
|
+
"required": [
|
|
251
|
+
"kind",
|
|
252
|
+
"uri"
|
|
253
|
+
],
|
|
254
|
+
"type": "object"
|
|
255
|
+
},
|
|
256
|
+
"kind": {
|
|
257
|
+
"const": "file",
|
|
258
|
+
"type": "string"
|
|
259
|
+
},
|
|
260
|
+
"mediaType": {
|
|
261
|
+
"type": "string"
|
|
262
|
+
},
|
|
263
|
+
"path": {
|
|
264
|
+
"minLength": 1,
|
|
265
|
+
"type": "string"
|
|
266
|
+
}
|
|
267
|
+
},
|
|
268
|
+
"required": [
|
|
269
|
+
"kind",
|
|
270
|
+
"path"
|
|
271
|
+
],
|
|
272
|
+
"type": "object"
|
|
273
|
+
},
|
|
274
|
+
{
|
|
275
|
+
"properties": {
|
|
276
|
+
"archive": {
|
|
277
|
+
"properties": {
|
|
278
|
+
"kind": {
|
|
279
|
+
"const": "artifact",
|
|
280
|
+
"type": "string"
|
|
281
|
+
},
|
|
282
|
+
"mediaType": {
|
|
283
|
+
"type": "string"
|
|
284
|
+
},
|
|
285
|
+
"name": {
|
|
286
|
+
"type": "string"
|
|
287
|
+
},
|
|
288
|
+
"sizeBytes": {
|
|
289
|
+
"maximum": 9007199254740991,
|
|
290
|
+
"minimum": 0,
|
|
291
|
+
"type": "integer"
|
|
292
|
+
},
|
|
293
|
+
"uri": {
|
|
294
|
+
"minLength": 1,
|
|
295
|
+
"type": "string"
|
|
296
|
+
}
|
|
297
|
+
},
|
|
298
|
+
"required": [
|
|
299
|
+
"kind",
|
|
300
|
+
"uri"
|
|
301
|
+
],
|
|
302
|
+
"type": "object"
|
|
303
|
+
},
|
|
304
|
+
"headers": {
|
|
305
|
+
"additionalProperties": {
|
|
306
|
+
"type": "string"
|
|
307
|
+
},
|
|
308
|
+
"propertyNames": {
|
|
309
|
+
"type": "string"
|
|
310
|
+
},
|
|
311
|
+
"type": "object"
|
|
312
|
+
},
|
|
313
|
+
"kind": {
|
|
314
|
+
"const": "url",
|
|
315
|
+
"type": "string"
|
|
316
|
+
},
|
|
317
|
+
"mediaType": {
|
|
318
|
+
"type": "string"
|
|
319
|
+
},
|
|
320
|
+
"url": {
|
|
321
|
+
"format": "uri",
|
|
322
|
+
"type": "string"
|
|
323
|
+
}
|
|
324
|
+
},
|
|
325
|
+
"required": [
|
|
326
|
+
"kind",
|
|
327
|
+
"url"
|
|
328
|
+
],
|
|
329
|
+
"type": "object"
|
|
330
|
+
},
|
|
331
|
+
{
|
|
332
|
+
"properties": {
|
|
333
|
+
"archive": {
|
|
334
|
+
"properties": {
|
|
335
|
+
"kind": {
|
|
336
|
+
"const": "artifact",
|
|
337
|
+
"type": "string"
|
|
338
|
+
},
|
|
339
|
+
"mediaType": {
|
|
340
|
+
"type": "string"
|
|
341
|
+
},
|
|
342
|
+
"name": {
|
|
343
|
+
"type": "string"
|
|
344
|
+
},
|
|
345
|
+
"sizeBytes": {
|
|
346
|
+
"maximum": 9007199254740991,
|
|
347
|
+
"minimum": 0,
|
|
348
|
+
"type": "integer"
|
|
349
|
+
},
|
|
350
|
+
"uri": {
|
|
351
|
+
"minLength": 1,
|
|
352
|
+
"type": "string"
|
|
353
|
+
}
|
|
354
|
+
},
|
|
355
|
+
"required": [
|
|
356
|
+
"kind",
|
|
357
|
+
"uri"
|
|
358
|
+
],
|
|
359
|
+
"type": "object"
|
|
360
|
+
},
|
|
361
|
+
"kind": {
|
|
362
|
+
"const": "artifact",
|
|
363
|
+
"type": "string"
|
|
364
|
+
},
|
|
365
|
+
"mediaType": {
|
|
366
|
+
"type": "string"
|
|
367
|
+
},
|
|
368
|
+
"name": {
|
|
369
|
+
"type": "string"
|
|
370
|
+
},
|
|
371
|
+
"sizeBytes": {
|
|
372
|
+
"maximum": 9007199254740991,
|
|
373
|
+
"minimum": 0,
|
|
374
|
+
"type": "integer"
|
|
375
|
+
},
|
|
376
|
+
"uri": {
|
|
377
|
+
"minLength": 1,
|
|
378
|
+
"type": "string"
|
|
379
|
+
}
|
|
380
|
+
},
|
|
381
|
+
"required": [
|
|
382
|
+
"kind",
|
|
383
|
+
"uri"
|
|
384
|
+
],
|
|
385
|
+
"type": "object"
|
|
386
|
+
}
|
|
387
|
+
],
|
|
388
|
+
"x-ecp-file": {}
|
|
389
|
+
}
|
|
390
|
+
},
|
|
391
|
+
"required": [
|
|
392
|
+
"file"
|
|
393
|
+
],
|
|
394
|
+
"type": "object"
|
|
395
|
+
},
|
|
396
|
+
"upload.returns": {
|
|
397
|
+
"additionalProperties": false,
|
|
398
|
+
"properties": {
|
|
399
|
+
"blobName": {
|
|
400
|
+
"type": "string"
|
|
401
|
+
},
|
|
402
|
+
"container": {
|
|
403
|
+
"type": "string"
|
|
404
|
+
},
|
|
405
|
+
"file": {
|
|
406
|
+
"additionalProperties": false,
|
|
407
|
+
"properties": {
|
|
408
|
+
"headers": {
|
|
409
|
+
"additionalProperties": {
|
|
410
|
+
"type": "string"
|
|
411
|
+
},
|
|
412
|
+
"propertyNames": {
|
|
413
|
+
"type": "string"
|
|
414
|
+
},
|
|
415
|
+
"type": "object"
|
|
416
|
+
},
|
|
417
|
+
"kind": {
|
|
418
|
+
"const": "url",
|
|
419
|
+
"type": "string"
|
|
420
|
+
},
|
|
421
|
+
"mediaType": {
|
|
422
|
+
"type": "string"
|
|
423
|
+
},
|
|
424
|
+
"url": {
|
|
425
|
+
"format": "uri",
|
|
426
|
+
"type": "string"
|
|
427
|
+
}
|
|
428
|
+
},
|
|
429
|
+
"required": [
|
|
430
|
+
"kind",
|
|
431
|
+
"url"
|
|
432
|
+
],
|
|
433
|
+
"type": "object"
|
|
434
|
+
}
|
|
435
|
+
},
|
|
436
|
+
"required": [
|
|
437
|
+
"blobName",
|
|
438
|
+
"container",
|
|
439
|
+
"file"
|
|
440
|
+
],
|
|
441
|
+
"type": "object"
|
|
442
|
+
}
|
|
443
|
+
},
|
|
444
|
+
"$id": "ecp://plugins/@executioncontrolprotocol/azure-blob-storage/0.60.0/schema.json",
|
|
445
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema"
|
|
446
|
+
}
|
package/package.json
CHANGED
|
@@ -1,38 +1,48 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@executioncontrolprotocol/azure-blob-storage",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"description": "
|
|
5
|
-
"license": "Apache-2.0",
|
|
3
|
+
"version": "0.60.0",
|
|
4
|
+
"description": "Upload, download, delete and mint SAS URLs for Azure Blob Storage.",
|
|
6
5
|
"type": "module",
|
|
7
|
-
"
|
|
8
|
-
|
|
6
|
+
"engines": {
|
|
7
|
+
"node": ">=22.12"
|
|
8
|
+
},
|
|
9
|
+
"keywords": [
|
|
10
|
+
"ecosystem:ecp-plugin",
|
|
11
|
+
"oclif-plugin"
|
|
12
|
+
],
|
|
13
|
+
"oclif": {},
|
|
14
|
+
"ecp": {
|
|
15
|
+
"manifest": "./ecp.manifest.json",
|
|
16
|
+
"schema": "./ecp.schema.json"
|
|
17
|
+
},
|
|
9
18
|
"exports": {
|
|
10
19
|
".": {
|
|
11
20
|
"types": "./dist/index.d.ts",
|
|
12
|
-
"browser": "./dist/index.browser.js",
|
|
13
|
-
"node": "./dist/index.js",
|
|
14
21
|
"import": "./dist/index.js"
|
|
15
|
-
}
|
|
22
|
+
},
|
|
23
|
+
"./ecp.manifest.json": "./ecp.manifest.json",
|
|
24
|
+
"./ecp.schema.json": "./ecp.schema.json"
|
|
16
25
|
},
|
|
26
|
+
"types": "./dist/index.d.ts",
|
|
17
27
|
"files": [
|
|
18
28
|
"dist",
|
|
19
|
-
"
|
|
29
|
+
"ecp.manifest.json",
|
|
30
|
+
"ecp.schema.json"
|
|
20
31
|
],
|
|
21
32
|
"dependencies": {
|
|
22
33
|
"@azure/storage-blob": "^12.27.0"
|
|
23
34
|
},
|
|
24
35
|
"peerDependencies": {
|
|
25
|
-
"zod": "^
|
|
26
|
-
"@executioncontrolprotocol/
|
|
27
|
-
"@executioncontrolprotocol/types": "^0.14.0"
|
|
36
|
+
"zod": "^4.0.0",
|
|
37
|
+
"@executioncontrolprotocol/plugin-sdk": "0.60.0"
|
|
28
38
|
},
|
|
29
39
|
"devDependencies": {
|
|
30
|
-
"
|
|
31
|
-
"zod": "^
|
|
32
|
-
"@executioncontrolprotocol/
|
|
33
|
-
"@executioncontrolprotocol/types": "^0.14.0"
|
|
40
|
+
"@types/node": "^22.0.0",
|
|
41
|
+
"zod": "^4.0.0",
|
|
42
|
+
"@executioncontrolprotocol/plugin-sdk": "0.60.0"
|
|
34
43
|
},
|
|
35
44
|
"scripts": {
|
|
36
|
-
"build": "tsc -b"
|
|
45
|
+
"build": "tsc -b && node ../../packages/plugin-sdk/dist/bin/ecp-plugin-manifest.js",
|
|
46
|
+
"check:manifest": "node ../../packages/plugin-sdk/dist/bin/ecp-plugin-manifest.js --check"
|
|
37
47
|
}
|
|
38
48
|
}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
|
-
/** Create-SAS capability input. @category Azure */
|
|
3
|
-
export declare const createSasUrlInputSchema: z.ZodObject<{
|
|
4
|
-
container: z.ZodOptional<z.ZodString>;
|
|
5
|
-
blobName: z.ZodString;
|
|
6
|
-
permissions: z.ZodArray<z.ZodEnum<["r", "w", "c", "d", "l"]>, "many">;
|
|
7
|
-
expiresInSeconds: z.ZodOptional<z.ZodNumber>;
|
|
8
|
-
}, "strip", z.ZodTypeAny, {
|
|
9
|
-
blobName: string;
|
|
10
|
-
permissions: ("r" | "w" | "c" | "d" | "l")[];
|
|
11
|
-
container?: string | undefined;
|
|
12
|
-
expiresInSeconds?: number | undefined;
|
|
13
|
-
}, {
|
|
14
|
-
blobName: string;
|
|
15
|
-
permissions: ("r" | "w" | "c" | "d" | "l")[];
|
|
16
|
-
container?: string | undefined;
|
|
17
|
-
expiresInSeconds?: number | undefined;
|
|
18
|
-
}>;
|
|
19
|
-
/** Create-SAS capability output. @category Azure */
|
|
20
|
-
export declare const createSasUrlOutputSchema: z.ZodObject<{
|
|
21
|
-
sasUrl: z.ZodString;
|
|
22
|
-
expiresAt: z.ZodString;
|
|
23
|
-
permissions: z.ZodString;
|
|
24
|
-
}, "strip", z.ZodTypeAny, {
|
|
25
|
-
sasUrl: string;
|
|
26
|
-
permissions: string;
|
|
27
|
-
expiresAt: string;
|
|
28
|
-
}, {
|
|
29
|
-
sasUrl: string;
|
|
30
|
-
permissions: string;
|
|
31
|
-
expiresAt: string;
|
|
32
|
-
}>;
|
|
33
|
-
//# sourceMappingURL=create-sas-url-schema.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"create-sas-url-schema.d.ts","sourceRoot":"","sources":["../../src/capabilities/create-sas-url-schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAGvB,mDAAmD;AACnD,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;EAKlC,CAAA;AAEF,oDAAoD;AACpD,eAAO,MAAM,wBAAwB;;;;;;;;;;;;EAInC,CAAA"}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
|
-
import { SAS_PERMISSION_CHARS } from "../permissions.js";
|
|
3
|
-
/** Create-SAS capability input. @category Azure */
|
|
4
|
-
export const createSasUrlInputSchema = z.object({
|
|
5
|
-
container: z.string().min(1).optional(),
|
|
6
|
-
blobName: z.string().min(1),
|
|
7
|
-
permissions: z.array(z.enum(SAS_PERMISSION_CHARS)).min(1),
|
|
8
|
-
expiresInSeconds: z.number().int().positive().optional(),
|
|
9
|
-
});
|
|
10
|
-
/** Create-SAS capability output. @category Azure */
|
|
11
|
-
export const createSasUrlOutputSchema = z.object({
|
|
12
|
-
sasUrl: z.string(),
|
|
13
|
-
expiresAt: z.string(),
|
|
14
|
-
permissions: z.string(),
|
|
15
|
-
});
|
|
16
|
-
//# sourceMappingURL=create-sas-url-schema.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"create-sas-url-schema.js","sourceRoot":"","sources":["../../src/capabilities/create-sas-url-schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AACvB,OAAO,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAA;AAExD,mDAAmD;AACnD,MAAM,CAAC,MAAM,uBAAuB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC9C,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE;IACvC,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IAC3B,WAAW,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC,oBAAoB,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC;IACzD,gBAAgB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;CACzD,CAAC,CAAA;AAEF,oDAAoD;AACpD,MAAM,CAAC,MAAM,wBAAwB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC/C,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE;IAClB,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE;IACrB,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE;CACxB,CAAC,CAAA"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
|
-
import { createSasUrlInputSchema, createSasUrlOutputSchema } from "./create-sas-url-schema.js";
|
|
3
|
-
export { createSasUrlInputSchema, createSasUrlOutputSchema };
|
|
4
|
-
/**
|
|
5
|
-
* Mint a blob SAS URL.
|
|
6
|
-
* @category Azure
|
|
7
|
-
*/
|
|
8
|
-
export declare function handleCreateSasUrl(input: unknown, ctx: unknown): Promise<z.infer<typeof createSasUrlOutputSchema>>;
|
|
9
|
-
//# sourceMappingURL=create-sas-url.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"create-sas-url.d.ts","sourceRoot":"","sources":["../../src/capabilities/create-sas-url.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAOvB,OAAO,EAAE,uBAAuB,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAA;AAE9F,OAAO,EAAE,uBAAuB,EAAE,wBAAwB,EAAE,CAAA;AAE5D;;;GAGG;AACH,wBAAsB,kBAAkB,CACtC,KAAK,EAAE,OAAO,EACd,GAAG,EAAE,OAAO,GACX,OAAO,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC,CAgBnD"}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { createAzureBlobCredentials, readAzureConfig, resolveContainer, } from "../client.js";
|
|
2
|
-
import { createBlobSasUrl } from "../sas.js";
|
|
3
|
-
import { createSasUrlInputSchema, createSasUrlOutputSchema } from "./create-sas-url-schema.js";
|
|
4
|
-
export { createSasUrlInputSchema, createSasUrlOutputSchema };
|
|
5
|
-
/**
|
|
6
|
-
* Mint a blob SAS URL.
|
|
7
|
-
* @category Azure
|
|
8
|
-
*/
|
|
9
|
-
export async function handleCreateSasUrl(input, ctx) {
|
|
10
|
-
const parsed = createSasUrlInputSchema.parse(input);
|
|
11
|
-
const credentials = createAzureBlobCredentials(readAzureConfig(ctx));
|
|
12
|
-
const container = resolveContainer(credentials, parsed.container);
|
|
13
|
-
const expiresInSeconds = parsed.expiresInSeconds ?? credentials.defaultSasExpiresInSeconds;
|
|
14
|
-
return createSasUrlOutputSchema.parse(createBlobSasUrl({
|
|
15
|
-
credentials,
|
|
16
|
-
container,
|
|
17
|
-
blobName: parsed.blobName,
|
|
18
|
-
permissions: parsed.permissions,
|
|
19
|
-
expiresInSeconds,
|
|
20
|
-
}));
|
|
21
|
-
}
|
|
22
|
-
//# sourceMappingURL=create-sas-url.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"create-sas-url.js","sourceRoot":"","sources":["../../src/capabilities/create-sas-url.ts"],"names":[],"mappings":"AACA,OAAO,EACL,0BAA0B,EAC1B,eAAe,EACf,gBAAgB,GACjB,MAAM,cAAc,CAAA;AACrB,OAAO,EAAE,gBAAgB,EAAE,MAAM,WAAW,CAAA;AAC5C,OAAO,EAAE,uBAAuB,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAA;AAE9F,OAAO,EAAE,uBAAuB,EAAE,wBAAwB,EAAE,CAAA;AAE5D;;;GAGG;AACH,MAAM,CAAC,KAAK,UAAU,kBAAkB,CACtC,KAAc,EACd,GAAY;IAEZ,MAAM,MAAM,GAAG,uBAAuB,CAAC,KAAK,CAAC,KAAK,CAAC,CAAA;IACnD,MAAM,WAAW,GAAG,0BAA0B,CAAC,eAAe,CAAC,GAAG,CAAC,CAAC,CAAA;IACpE,MAAM,SAAS,GAAG,gBAAgB,CAAC,WAAW,EAAE,MAAM,CAAC,SAAS,CAAC,CAAA;IACjE,MAAM,gBAAgB,GACpB,MAAM,CAAC,gBAAgB,IAAI,WAAW,CAAC,0BAA0B,CAAA;IAEnE,OAAO,wBAAwB,CAAC,KAAK,CACnC,gBAAgB,CAAC;QACf,WAAW;QACX,SAAS;QACT,QAAQ,EAAE,MAAM,CAAC,QAAQ;QACzB,WAAW,EAAE,MAAM,CAAC,WAAW;QAC/B,gBAAgB;KACjB,CAAC,CACH,CAAA;AACH,CAAC"}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
|
-
/** Download capability input. @category Azure */
|
|
3
|
-
export declare const downloadInputSchema: z.ZodObject<{
|
|
4
|
-
container: z.ZodOptional<z.ZodString>;
|
|
5
|
-
blobName: z.ZodString;
|
|
6
|
-
}, "strip", z.ZodTypeAny, {
|
|
7
|
-
blobName: string;
|
|
8
|
-
container?: string | undefined;
|
|
9
|
-
}, {
|
|
10
|
-
blobName: string;
|
|
11
|
-
container?: string | undefined;
|
|
12
|
-
}>;
|
|
13
|
-
/** Download capability output. @category Azure */
|
|
14
|
-
export declare const downloadOutputSchema: z.ZodObject<{
|
|
15
|
-
/** Artifact {@link FileRef} written via core {@link writeMediaArtifact}. */
|
|
16
|
-
file: z.ZodType<import("@executioncontrolprotocol/types").FileRef, z.ZodTypeDef, import("@executioncontrolprotocol/types").FileRef>;
|
|
17
|
-
contentType: z.ZodString;
|
|
18
|
-
blobName: z.ZodString;
|
|
19
|
-
}, "strip", z.ZodTypeAny, {
|
|
20
|
-
blobName: string;
|
|
21
|
-
contentType: string;
|
|
22
|
-
file: import("@executioncontrolprotocol/types").FileRef;
|
|
23
|
-
}, {
|
|
24
|
-
blobName: string;
|
|
25
|
-
contentType: string;
|
|
26
|
-
file: import("@executioncontrolprotocol/types").FileRef;
|
|
27
|
-
}>;
|
|
28
|
-
//# sourceMappingURL=download-schema.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"download-schema.d.ts","sourceRoot":"","sources":["../../src/capabilities/download-schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAGvB,iDAAiD;AACjD,eAAO,MAAM,mBAAmB;;;;;;;;;EAG9B,CAAA;AAEF,kDAAkD;AAClD,eAAO,MAAM,oBAAoB;IAC/B,4EAA4E;;;;;;;;;;;;EAI5E,CAAA"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
|
-
import { fileRefSchema } from "@executioncontrolprotocol/types";
|
|
3
|
-
/** Download capability input. @category Azure */
|
|
4
|
-
export const downloadInputSchema = z.object({
|
|
5
|
-
container: z.string().min(1).optional(),
|
|
6
|
-
blobName: z.string().min(1),
|
|
7
|
-
});
|
|
8
|
-
/** Download capability output. @category Azure */
|
|
9
|
-
export const downloadOutputSchema = z.object({
|
|
10
|
-
/** Artifact {@link FileRef} written via core {@link writeMediaArtifact}. */
|
|
11
|
-
file: fileRefSchema(),
|
|
12
|
-
contentType: z.string(),
|
|
13
|
-
blobName: z.string(),
|
|
14
|
-
});
|
|
15
|
-
//# sourceMappingURL=download-schema.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"download-schema.js","sourceRoot":"","sources":["../../src/capabilities/download-schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AACvB,OAAO,EAAE,aAAa,EAAE,MAAM,iCAAiC,CAAA;AAE/D,iDAAiD;AACjD,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC1C,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE;IACvC,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;CAC5B,CAAC,CAAA;AAEF,kDAAkD;AAClD,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC3C,4EAA4E;IAC5E,IAAI,EAAE,aAAa,EAAE;IACrB,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE;IACvB,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE;CACrB,CAAC,CAAA"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
|
-
import { uploadOutputSchema } from "./upload-schema.js";
|
|
3
|
-
/**
|
|
4
|
-
* Mixed browser upload: hop create-sas-url, PUT from the tab. No Azure SDK.
|
|
5
|
-
* @category Azure
|
|
6
|
-
*/
|
|
7
|
-
export declare function handleMixedUpload(input: unknown, ctx: unknown): Promise<z.infer<typeof uploadOutputSchema>>;
|
|
8
|
-
//# sourceMappingURL=upload-mixed.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"upload-mixed.d.ts","sourceRoot":"","sources":["../../src/capabilities/upload-mixed.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAMvB,OAAO,EAAqB,kBAAkB,EAAE,MAAM,oBAAoB,CAAA;AAU1E;;;GAGG;AACH,wBAAsB,iBAAiB,CACrC,KAAK,EAAE,OAAO,EACd,GAAG,EAAE,OAAO,GACX,OAAO,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC,CAsB7C"}
|