@twilio-labs/plugin-assets 2.0.5 → 2.0.6

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
@@ -56,24 +56,24 @@ Create a new assets service to use as a bucket
56
56
 
57
57
  ```
58
58
  USAGE
59
- $ twilio assets:init [-l debug|info|warn|error|none] [-o columns|json|tsv|none] [--silent] [-p <value>]
59
+ $ twilio assets:init [-l (debug|info|warn|error|none)] [-o (columns|json|tsv|none)] [--silent] [-p <value>]
60
60
  [--service-name <value>] [--properties <value>]
61
61
 
62
62
  FLAGS
63
63
  -l=(debug|info|warn|error|none) [default: info] Level of logging messages.
64
64
  -o=(columns|json|tsv|none) [default: columns] Format of command output.
65
65
  -p, --profile=<value> Shorthand identifier for your profile.
66
- --properties=<value> [default: service_sid, sid, domain_name] The asset service environment properties you
66
+ --properties=<value> [default: service_sid, sid, domain_name] The asset service environment properties you
67
67
  would like to display (JSON output always shows all properties).
68
- --service-name=<value> A unique name for your asset service. May only contain alphanumeric characters and
68
+ --service-name=<value> A unique name for your asset service. May only contain alphanumeric characters and
69
69
  hyphens.
70
- --silent Suppress output and logs. This is a shorthand for "-l none -o none".
70
+ --silent Suppress output and logs. This is a shorthand for "-l none -o none".
71
71
 
72
72
  DESCRIPTION
73
73
  Create a new assets service to use as a bucket
74
74
  ```
75
75
 
76
- _See code: [src/commands/assets/init.js](https://github.com/twilio-labs/serverless-toolkit/blob/v2.0.5/src/commands/assets/init.js)_
76
+ _See code: [src/commands/assets/init.js](https://github.com/twilio-labs/serverless-toolkit/blob/v2.0.6/src/commands/assets/init.js)_
77
77
 
78
78
  ## `twilio assets:list`
79
79
 
@@ -81,22 +81,22 @@ List all the assets in the service
81
81
 
82
82
  ```
83
83
  USAGE
84
- $ twilio assets:list [-l debug|info|warn|error|none] [-o columns|json|tsv|none] [--silent] [-p <value>]
84
+ $ twilio assets:list [-l (debug|info|warn|error|none)] [-o (columns|json|tsv|none)] [--silent] [-p <value>]
85
85
  [--properties <value>]
86
86
 
87
87
  FLAGS
88
88
  -l=(debug|info|warn|error|none) [default: info] Level of logging messages.
89
89
  -o=(columns|json|tsv|none) [default: columns] Format of command output.
90
90
  -p, --profile=<value> Shorthand identifier for your profile.
91
- --properties=<value> [default: sid, path, url, visibility] The asset properties you would like to display
91
+ --properties=<value> [default: sid, path, url, visibility] The asset properties you would like to display
92
92
  (JSON output always shows all properties).
93
- --silent Suppress output and logs. This is a shorthand for "-l none -o none".
93
+ --silent Suppress output and logs. This is a shorthand for "-l none -o none".
94
94
 
95
95
  DESCRIPTION
96
96
  List all the assets in the service
97
97
  ```
98
98
 
99
- _See code: [src/commands/assets/list.js](https://github.com/twilio-labs/serverless-toolkit/blob/v2.0.5/src/commands/assets/list.js)_
99
+ _See code: [src/commands/assets/list.js](https://github.com/twilio-labs/serverless-toolkit/blob/v2.0.6/src/commands/assets/list.js)_
100
100
 
101
101
  ## `twilio assets:upload FILE`
102
102
 
@@ -104,8 +104,8 @@ Upload a new asset to the Assets service
104
104
 
105
105
  ```
106
106
  USAGE
107
- $ twilio assets:upload [FILE] [-l debug|info|warn|error|none] [-o columns|json|tsv|none] [--silent] [-p <value>]
108
- [--protected] [--properties <value>]
107
+ $ twilio assets:upload FILE [-l (debug|info|warn|error|none)] [-o (columns|json|tsv|none)] [--silent] [-p
108
+ <value>] [--protected] [--properties <value>]
109
109
 
110
110
  ARGUMENTS
111
111
  FILE The path to the file you want to upload
@@ -114,16 +114,16 @@ FLAGS
114
114
  -l=(debug|info|warn|error|none) [default: info] Level of logging messages.
115
115
  -o=(columns|json|tsv|none) [default: columns] Format of command output.
116
116
  -p, --profile=<value> Shorthand identifier for your profile.
117
- --properties=<value> [default: sid, path, url, visibility] The asset properties you would like to display
117
+ --properties=<value> [default: sid, path, url, visibility] The asset properties you would like to display
118
118
  (JSON output always shows all properties).
119
- --protected Sets the uploaded asset's visibility to 'protected'
120
- --silent Suppress output and logs. This is a shorthand for "-l none -o none".
119
+ --protected Sets the uploaded asset's visibility to 'protected'
120
+ --silent Suppress output and logs. This is a shorthand for "-l none -o none".
121
121
 
122
122
  DESCRIPTION
123
123
  Upload a new asset to the Assets service
124
124
  ```
125
125
 
126
- _See code: [src/commands/assets/upload.js](https://github.com/twilio-labs/serverless-toolkit/blob/v2.0.5/src/commands/assets/upload.js)_
126
+ _See code: [src/commands/assets/upload.js](https://github.com/twilio-labs/serverless-toolkit/blob/v2.0.6/src/commands/assets/upload.js)_
127
127
  <!-- commandsstop -->
128
128
 
129
129
  ## Contributing
@@ -1 +1,372 @@
1
- {"version":"2.0.5","commands":{"assets:init":{"id":"assets:init","description":"Create a new assets service to use as a bucket","strict":true,"pluginName":"@twilio-labs/plugin-assets","pluginAlias":"@twilio-labs/plugin-assets","pluginType":"core","aliases":[],"flags":{"cli-log-level":{"name":"cli-log-level","type":"option","char":"l","description":"Level of logging messages.","helpLabel":"-l","helpValue":"(debug|info|warn|error|none)","multiple":false,"options":["debug","info","warn","error","none"],"default":"info"},"cli-output-format":{"name":"cli-output-format","type":"option","char":"o","description":"Format of command output.","helpLabel":"-o","helpValue":"(columns|json|tsv|none)","multiple":false,"options":["columns","json","tsv","none"],"default":"columns"},"silent":{"name":"silent","type":"boolean","description":"Suppress output and logs. This is a shorthand for \"-l none -o none\".","allowNo":false},"profile":{"name":"profile","type":"option","char":"p","description":"Shorthand identifier for your profile.","multiple":false},"service-name":{"name":"service-name","type":"option","description":"A unique name for your asset service. May only contain alphanumeric characters and hyphens.","multiple":false},"properties":{"name":"properties","type":"option","description":"The asset service environment properties you would like to display (JSON output always shows all properties).","multiple":false,"default":"service_sid, sid, domain_name"}},"args":[]},"assets:list":{"id":"assets:list","description":"List all the assets in the service","strict":true,"pluginName":"@twilio-labs/plugin-assets","pluginAlias":"@twilio-labs/plugin-assets","pluginType":"core","aliases":[],"flags":{"cli-log-level":{"name":"cli-log-level","type":"option","char":"l","description":"Level of logging messages.","helpLabel":"-l","helpValue":"(debug|info|warn|error|none)","multiple":false,"options":["debug","info","warn","error","none"],"default":"info"},"cli-output-format":{"name":"cli-output-format","type":"option","char":"o","description":"Format of command output.","helpLabel":"-o","helpValue":"(columns|json|tsv|none)","multiple":false,"options":["columns","json","tsv","none"],"default":"columns"},"silent":{"name":"silent","type":"boolean","description":"Suppress output and logs. This is a shorthand for \"-l none -o none\".","allowNo":false},"profile":{"name":"profile","type":"option","char":"p","description":"Shorthand identifier for your profile.","multiple":false},"properties":{"name":"properties","type":"option","description":"The asset properties you would like to display (JSON output always shows all properties).","multiple":false,"default":"sid, path, url, visibility"}},"args":[]},"assets:upload":{"id":"assets:upload","description":"Upload a new asset to the Assets service","strict":true,"pluginName":"@twilio-labs/plugin-assets","pluginAlias":"@twilio-labs/plugin-assets","pluginType":"core","aliases":[],"flags":{"cli-log-level":{"name":"cli-log-level","type":"option","char":"l","description":"Level of logging messages.","helpLabel":"-l","helpValue":"(debug|info|warn|error|none)","multiple":false,"options":["debug","info","warn","error","none"],"default":"info"},"cli-output-format":{"name":"cli-output-format","type":"option","char":"o","description":"Format of command output.","helpLabel":"-o","helpValue":"(columns|json|tsv|none)","multiple":false,"options":["columns","json","tsv","none"],"default":"columns"},"silent":{"name":"silent","type":"boolean","description":"Suppress output and logs. This is a shorthand for \"-l none -o none\".","allowNo":false},"profile":{"name":"profile","type":"option","char":"p","description":"Shorthand identifier for your profile.","multiple":false},"protected":{"name":"protected","type":"boolean","description":"Sets the uploaded asset's visibility to 'protected'","allowNo":false},"properties":{"name":"properties","type":"option","description":"The asset properties you would like to display (JSON output always shows all properties).","multiple":false,"default":"sid, path, url, visibility"}},"args":[{"name":"file","description":"The path to the file you want to upload","required":true}]}}}
1
+ {
2
+ "commands": {
3
+ "assets:init": {
4
+ "aliases": [],
5
+ "args": {},
6
+ "description": "Create a new assets service to use as a bucket",
7
+ "flags": {
8
+ "cli-log-level": {
9
+ "char": "l",
10
+ "description": "Level of logging messages.",
11
+ "helpLabel": "-l",
12
+ "name": "cli-log-level",
13
+ "default": "info",
14
+ "hasDynamicHelp": false,
15
+ "helpValue": "(debug|info|warn|error|none)",
16
+ "multiple": false,
17
+ "options": [
18
+ "debug",
19
+ "info",
20
+ "warn",
21
+ "error",
22
+ "none"
23
+ ],
24
+ "type": "option"
25
+ },
26
+ "cli-output-format": {
27
+ "char": "o",
28
+ "description": "Format of command output.",
29
+ "helpLabel": "-o",
30
+ "name": "cli-output-format",
31
+ "default": "columns",
32
+ "hasDynamicHelp": false,
33
+ "helpValue": "(columns|json|tsv|none)",
34
+ "multiple": false,
35
+ "options": [
36
+ "columns",
37
+ "json",
38
+ "tsv",
39
+ "none"
40
+ ],
41
+ "type": "option"
42
+ },
43
+ "silent": {
44
+ "description": "Suppress output and logs. This is a shorthand for \"-l none -o none\".",
45
+ "name": "silent",
46
+ "allowNo": false,
47
+ "type": "boolean"
48
+ },
49
+ "profile": {
50
+ "char": "p",
51
+ "description": "Shorthand identifier for your profile.",
52
+ "name": "profile",
53
+ "hasDynamicHelp": false,
54
+ "multiple": false,
55
+ "type": "option"
56
+ },
57
+ "service-name": {
58
+ "description": "A unique name for your asset service. May only contain alphanumeric characters and hyphens.",
59
+ "name": "service-name",
60
+ "hasDynamicHelp": false,
61
+ "multiple": false,
62
+ "type": "option"
63
+ },
64
+ "properties": {
65
+ "description": "The asset service environment properties you would like to display (JSON output always shows all properties).",
66
+ "name": "properties",
67
+ "default": "service_sid, sid, domain_name",
68
+ "hasDynamicHelp": false,
69
+ "multiple": false,
70
+ "type": "option"
71
+ }
72
+ },
73
+ "hasDynamicHelp": false,
74
+ "hiddenAliases": [],
75
+ "id": "assets:init",
76
+ "pluginAlias": "@twilio-labs/plugin-assets",
77
+ "pluginName": "@twilio-labs/plugin-assets",
78
+ "pluginType": "core",
79
+ "strict": true,
80
+ "parse": true,
81
+ "parserOptions": {},
82
+ "accountSidFlag": {
83
+ "account-sid": {
84
+ "description": "Access resources for the specified account.",
85
+ "input": [],
86
+ "multiple": false,
87
+ "type": "option"
88
+ }
89
+ },
90
+ "limitFlags": {
91
+ "limit": {
92
+ "description": "The maximum number of resources to return. Use '--no-limit' to disable.",
93
+ "default": 50,
94
+ "exclusive": [
95
+ "no-limit"
96
+ ],
97
+ "input": [],
98
+ "multiple": false,
99
+ "type": "option"
100
+ },
101
+ "no-limit": {
102
+ "default": false,
103
+ "hidden": true,
104
+ "exclusive": [
105
+ "limit"
106
+ ],
107
+ "allowNo": false,
108
+ "type": "boolean"
109
+ }
110
+ },
111
+ "noHeader": {
112
+ "no-header": {
113
+ "description": "Skip including of headers while listing the data.",
114
+ "allowNo": false,
115
+ "type": "boolean"
116
+ }
117
+ },
118
+ "isESM": false,
119
+ "relativePath": [
120
+ "src",
121
+ "commands",
122
+ "assets",
123
+ "init.js"
124
+ ]
125
+ },
126
+ "assets:list": {
127
+ "aliases": [],
128
+ "args": {},
129
+ "description": "List all the assets in the service",
130
+ "flags": {
131
+ "cli-log-level": {
132
+ "char": "l",
133
+ "description": "Level of logging messages.",
134
+ "helpLabel": "-l",
135
+ "name": "cli-log-level",
136
+ "default": "info",
137
+ "hasDynamicHelp": false,
138
+ "helpValue": "(debug|info|warn|error|none)",
139
+ "multiple": false,
140
+ "options": [
141
+ "debug",
142
+ "info",
143
+ "warn",
144
+ "error",
145
+ "none"
146
+ ],
147
+ "type": "option"
148
+ },
149
+ "cli-output-format": {
150
+ "char": "o",
151
+ "description": "Format of command output.",
152
+ "helpLabel": "-o",
153
+ "name": "cli-output-format",
154
+ "default": "columns",
155
+ "hasDynamicHelp": false,
156
+ "helpValue": "(columns|json|tsv|none)",
157
+ "multiple": false,
158
+ "options": [
159
+ "columns",
160
+ "json",
161
+ "tsv",
162
+ "none"
163
+ ],
164
+ "type": "option"
165
+ },
166
+ "silent": {
167
+ "description": "Suppress output and logs. This is a shorthand for \"-l none -o none\".",
168
+ "name": "silent",
169
+ "allowNo": false,
170
+ "type": "boolean"
171
+ },
172
+ "profile": {
173
+ "char": "p",
174
+ "description": "Shorthand identifier for your profile.",
175
+ "name": "profile",
176
+ "hasDynamicHelp": false,
177
+ "multiple": false,
178
+ "type": "option"
179
+ },
180
+ "properties": {
181
+ "description": "The asset properties you would like to display (JSON output always shows all properties).",
182
+ "name": "properties",
183
+ "default": "sid, path, url, visibility",
184
+ "hasDynamicHelp": false,
185
+ "multiple": false,
186
+ "type": "option"
187
+ }
188
+ },
189
+ "hasDynamicHelp": false,
190
+ "hiddenAliases": [],
191
+ "id": "assets:list",
192
+ "pluginAlias": "@twilio-labs/plugin-assets",
193
+ "pluginName": "@twilio-labs/plugin-assets",
194
+ "pluginType": "core",
195
+ "strict": true,
196
+ "parse": true,
197
+ "parserOptions": {},
198
+ "accountSidFlag": {
199
+ "account-sid": {
200
+ "description": "Access resources for the specified account.",
201
+ "input": [],
202
+ "multiple": false,
203
+ "type": "option"
204
+ }
205
+ },
206
+ "limitFlags": {
207
+ "limit": {
208
+ "description": "The maximum number of resources to return. Use '--no-limit' to disable.",
209
+ "default": 50,
210
+ "exclusive": [
211
+ "no-limit"
212
+ ],
213
+ "input": [],
214
+ "multiple": false,
215
+ "type": "option"
216
+ },
217
+ "no-limit": {
218
+ "default": false,
219
+ "hidden": true,
220
+ "exclusive": [
221
+ "limit"
222
+ ],
223
+ "allowNo": false,
224
+ "type": "boolean"
225
+ }
226
+ },
227
+ "noHeader": {
228
+ "no-header": {
229
+ "description": "Skip including of headers while listing the data.",
230
+ "allowNo": false,
231
+ "type": "boolean"
232
+ }
233
+ },
234
+ "isESM": false,
235
+ "relativePath": [
236
+ "src",
237
+ "commands",
238
+ "assets",
239
+ "list.js"
240
+ ]
241
+ },
242
+ "assets:upload": {
243
+ "aliases": [],
244
+ "args": {
245
+ "file": {
246
+ "description": "The path to the file you want to upload",
247
+ "name": "file",
248
+ "required": true
249
+ }
250
+ },
251
+ "description": "Upload a new asset to the Assets service",
252
+ "flags": {
253
+ "cli-log-level": {
254
+ "char": "l",
255
+ "description": "Level of logging messages.",
256
+ "helpLabel": "-l",
257
+ "name": "cli-log-level",
258
+ "default": "info",
259
+ "hasDynamicHelp": false,
260
+ "helpValue": "(debug|info|warn|error|none)",
261
+ "multiple": false,
262
+ "options": [
263
+ "debug",
264
+ "info",
265
+ "warn",
266
+ "error",
267
+ "none"
268
+ ],
269
+ "type": "option"
270
+ },
271
+ "cli-output-format": {
272
+ "char": "o",
273
+ "description": "Format of command output.",
274
+ "helpLabel": "-o",
275
+ "name": "cli-output-format",
276
+ "default": "columns",
277
+ "hasDynamicHelp": false,
278
+ "helpValue": "(columns|json|tsv|none)",
279
+ "multiple": false,
280
+ "options": [
281
+ "columns",
282
+ "json",
283
+ "tsv",
284
+ "none"
285
+ ],
286
+ "type": "option"
287
+ },
288
+ "silent": {
289
+ "description": "Suppress output and logs. This is a shorthand for \"-l none -o none\".",
290
+ "name": "silent",
291
+ "allowNo": false,
292
+ "type": "boolean"
293
+ },
294
+ "profile": {
295
+ "char": "p",
296
+ "description": "Shorthand identifier for your profile.",
297
+ "name": "profile",
298
+ "hasDynamicHelp": false,
299
+ "multiple": false,
300
+ "type": "option"
301
+ },
302
+ "protected": {
303
+ "description": "Sets the uploaded asset's visibility to 'protected'",
304
+ "name": "protected",
305
+ "allowNo": false,
306
+ "type": "boolean"
307
+ },
308
+ "properties": {
309
+ "description": "The asset properties you would like to display (JSON output always shows all properties).",
310
+ "name": "properties",
311
+ "default": "sid, path, url, visibility",
312
+ "hasDynamicHelp": false,
313
+ "multiple": false,
314
+ "type": "option"
315
+ }
316
+ },
317
+ "hasDynamicHelp": false,
318
+ "hiddenAliases": [],
319
+ "id": "assets:upload",
320
+ "pluginAlias": "@twilio-labs/plugin-assets",
321
+ "pluginName": "@twilio-labs/plugin-assets",
322
+ "pluginType": "core",
323
+ "strict": true,
324
+ "parse": true,
325
+ "parserOptions": {},
326
+ "accountSidFlag": {
327
+ "account-sid": {
328
+ "description": "Access resources for the specified account.",
329
+ "input": [],
330
+ "multiple": false,
331
+ "type": "option"
332
+ }
333
+ },
334
+ "limitFlags": {
335
+ "limit": {
336
+ "description": "The maximum number of resources to return. Use '--no-limit' to disable.",
337
+ "default": 50,
338
+ "exclusive": [
339
+ "no-limit"
340
+ ],
341
+ "input": [],
342
+ "multiple": false,
343
+ "type": "option"
344
+ },
345
+ "no-limit": {
346
+ "default": false,
347
+ "hidden": true,
348
+ "exclusive": [
349
+ "limit"
350
+ ],
351
+ "allowNo": false,
352
+ "type": "boolean"
353
+ }
354
+ },
355
+ "noHeader": {
356
+ "no-header": {
357
+ "description": "Skip including of headers while listing the data.",
358
+ "allowNo": false,
359
+ "type": "boolean"
360
+ }
361
+ },
362
+ "isESM": false,
363
+ "relativePath": [
364
+ "src",
365
+ "commands",
366
+ "assets",
367
+ "upload.js"
368
+ ]
369
+ }
370
+ },
371
+ "version": "2.0.6"
372
+ }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@twilio-labs/plugin-assets",
3
3
  "description": "Easily upload assets to a Twilio Assets service",
4
- "version": "2.0.5",
4
+ "version": "2.0.6",
5
5
  "author": "Twilio Inc. <open-source@twilio.com> (https://www.twilio.com/labs)",
6
6
  "contributors": [
7
7
  "Phil Nash <philnash@twilio.com>"
@@ -9,7 +9,7 @@
9
9
  "main": "src/index.js",
10
10
  "dependencies": {
11
11
  "@oclif/core": "^1.14.2",
12
- "@twilio-labs/serverless-api": "^5.5.0",
12
+ "@twilio-labs/serverless-api": "^5.6.0",
13
13
  "@twilio/cli-core": "^7.0.0",
14
14
  "inquirer": "^8.0.0",
15
15
  "ora": "^5.4.0",
@@ -19,12 +19,11 @@
19
19
  "@oclif/plugin-help": "^5.1.12",
20
20
  "@oclif/test": "^1.2.5",
21
21
  "@twilio/cli-test": "^2.1.1",
22
- "jest": "^26.6.3",
23
- "oclif": "^3",
24
- "rimraf": "^3.0.2"
22
+ "oclif": "^4.5.4",
23
+ "rimraf": "^5.0.5"
25
24
  },
26
25
  "engines": {
27
- "node": ">=14"
26
+ "node": ">=18"
28
27
  },
29
28
  "files": [
30
29
  "/oclif.manifest.json",
@@ -76,8 +75,7 @@
76
75
  "scripts": {
77
76
  "postpack": "rm -f oclif.manifest.json",
78
77
  "prepack": "oclif manifest && oclif readme",
79
- "version": "oclif readme && git add README.md",
80
- "test": "jest"
78
+ "version-package": "oclif readme && git add README.md && git commit -m \"chore(@twilio-labs/plugin-assets): version update in readme\" || echo 'Nothing to commit'"
81
79
  },
82
- "gitHead": "12a1f7ee4b24a42ad7b665a3d169f67dc8f43092"
80
+ "gitHead": "6db273648ed19474f4125042556b10c051529912"
83
81
  }
package/LICENSE DELETED
@@ -1,21 +0,0 @@
1
- MIT License
2
-
3
- Copyright (c) 2018 Twilio Inc.
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.