@sendly/cli 3.0.1 → 3.0.3
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 +2 -3
- package/dist/commands/credits/history.js +4 -4
- package/dist/commands/keys/create.js +3 -3
- package/dist/commands/keys/revoke.js +13 -10
- package/dist/commands/send.d.ts +13 -0
- package/dist/commands/send.js +75 -0
- package/dist/commands/status.d.ts +10 -0
- package/dist/commands/status.js +112 -0
- package/dist/commands/webhooks/create.js +7 -5
- package/dist/commands/webhooks/deliveries.js +17 -15
- package/dist/commands/webhooks/get.js +17 -15
- package/dist/commands/webhooks/list.js +3 -3
- package/dist/commands/webhooks/listen.js +5 -18
- package/dist/commands/webhooks/rotate-secret.js +6 -6
- package/dist/commands/webhooks/test.js +17 -14
- package/dist/commands/webhooks/update.js +16 -11
- package/dist/commands/whoami.js +14 -10
- package/dist/hooks/command-not-found.d.ts +3 -0
- package/dist/hooks/command-not-found.js +142 -0
- package/dist/lib/api-client.js +66 -15
- package/oclif.manifest.json +173 -72
- package/package.json +4 -1
package/oclif.manifest.json
CHANGED
|
@@ -152,12 +152,14 @@
|
|
|
152
152
|
"onboarding.js"
|
|
153
153
|
]
|
|
154
154
|
},
|
|
155
|
-
"
|
|
155
|
+
"send": {
|
|
156
156
|
"aliases": [],
|
|
157
157
|
"args": {},
|
|
158
|
-
"description": "
|
|
158
|
+
"description": "Send an SMS message (shortcut for 'sms send')",
|
|
159
159
|
"examples": [
|
|
160
|
-
"<%= config.bin %>
|
|
160
|
+
"<%= config.bin %> send --to \"+1234567890\" --text \"Hello!\"",
|
|
161
|
+
"<%= config.bin %> send -t \"+1234567890\" -m \"Meeting at 3pm\"",
|
|
162
|
+
"<%= config.bin %> send --to \"+1234567890\" --text \"Hello!\" --json"
|
|
161
163
|
],
|
|
162
164
|
"flags": {
|
|
163
165
|
"json": {
|
|
@@ -172,42 +174,55 @@
|
|
|
172
174
|
"name": "quiet",
|
|
173
175
|
"allowNo": false,
|
|
174
176
|
"type": "boolean"
|
|
177
|
+
},
|
|
178
|
+
"to": {
|
|
179
|
+
"char": "t",
|
|
180
|
+
"description": "Recipient phone number (E.164 format)",
|
|
181
|
+
"name": "to",
|
|
182
|
+
"required": true,
|
|
183
|
+
"hasDynamicHelp": false,
|
|
184
|
+
"multiple": false,
|
|
185
|
+
"type": "option"
|
|
186
|
+
},
|
|
187
|
+
"text": {
|
|
188
|
+
"char": "m",
|
|
189
|
+
"description": "Message text",
|
|
190
|
+
"name": "text",
|
|
191
|
+
"required": true,
|
|
192
|
+
"hasDynamicHelp": false,
|
|
193
|
+
"multiple": false,
|
|
194
|
+
"type": "option"
|
|
195
|
+
},
|
|
196
|
+
"from": {
|
|
197
|
+
"char": "f",
|
|
198
|
+
"description": "Sender phone number (optional, uses default if not set)",
|
|
199
|
+
"name": "from",
|
|
200
|
+
"hasDynamicHelp": false,
|
|
201
|
+
"multiple": false,
|
|
202
|
+
"type": "option"
|
|
175
203
|
}
|
|
176
204
|
},
|
|
177
205
|
"hasDynamicHelp": false,
|
|
178
206
|
"hiddenAliases": [],
|
|
179
|
-
"id": "
|
|
207
|
+
"id": "send",
|
|
180
208
|
"pluginAlias": "@sendly/cli",
|
|
181
209
|
"pluginName": "@sendly/cli",
|
|
182
210
|
"pluginType": "core",
|
|
183
211
|
"strict": true,
|
|
184
|
-
"enableJsonFlag": false,
|
|
185
212
|
"isESM": true,
|
|
186
213
|
"relativePath": [
|
|
187
214
|
"dist",
|
|
188
215
|
"commands",
|
|
189
|
-
"
|
|
216
|
+
"send.js"
|
|
190
217
|
]
|
|
191
218
|
},
|
|
192
|
-
"
|
|
219
|
+
"status": {
|
|
193
220
|
"aliases": [],
|
|
194
|
-
"args": {
|
|
195
|
-
|
|
196
|
-
"description": "Configuration key",
|
|
197
|
-
"name": "key",
|
|
198
|
-
"options": [
|
|
199
|
-
"environment",
|
|
200
|
-
"baseUrl",
|
|
201
|
-
"defaultFormat",
|
|
202
|
-
"colorEnabled"
|
|
203
|
-
],
|
|
204
|
-
"required": true
|
|
205
|
-
}
|
|
206
|
-
},
|
|
207
|
-
"description": "Get a configuration value",
|
|
221
|
+
"args": {},
|
|
222
|
+
"description": "Show account status dashboard with credits, usage, and health",
|
|
208
223
|
"examples": [
|
|
209
|
-
"<%= config.bin %>
|
|
210
|
-
"<%= config.bin %>
|
|
224
|
+
"<%= config.bin %> status",
|
|
225
|
+
"<%= config.bin %> status --json"
|
|
211
226
|
],
|
|
212
227
|
"flags": {
|
|
213
228
|
"json": {
|
|
@@ -226,27 +241,24 @@
|
|
|
226
241
|
},
|
|
227
242
|
"hasDynamicHelp": false,
|
|
228
243
|
"hiddenAliases": [],
|
|
229
|
-
"id": "
|
|
244
|
+
"id": "status",
|
|
230
245
|
"pluginAlias": "@sendly/cli",
|
|
231
246
|
"pluginName": "@sendly/cli",
|
|
232
247
|
"pluginType": "core",
|
|
233
248
|
"strict": true,
|
|
234
|
-
"enableJsonFlag": false,
|
|
235
249
|
"isESM": true,
|
|
236
250
|
"relativePath": [
|
|
237
251
|
"dist",
|
|
238
252
|
"commands",
|
|
239
|
-
"
|
|
240
|
-
"get.js"
|
|
253
|
+
"status.js"
|
|
241
254
|
]
|
|
242
255
|
},
|
|
243
|
-
"
|
|
256
|
+
"whoami": {
|
|
244
257
|
"aliases": [],
|
|
245
258
|
"args": {},
|
|
246
|
-
"description": "
|
|
259
|
+
"description": "Show current authentication status",
|
|
247
260
|
"examples": [
|
|
248
|
-
"<%= config.bin %>
|
|
249
|
-
"<%= config.bin %> config list --json"
|
|
261
|
+
"<%= config.bin %> whoami"
|
|
250
262
|
],
|
|
251
263
|
"flags": {
|
|
252
264
|
"json": {
|
|
@@ -265,7 +277,7 @@
|
|
|
265
277
|
},
|
|
266
278
|
"hasDynamicHelp": false,
|
|
267
279
|
"hiddenAliases": [],
|
|
268
|
-
"id": "
|
|
280
|
+
"id": "whoami",
|
|
269
281
|
"pluginAlias": "@sendly/cli",
|
|
270
282
|
"pluginName": "@sendly/cli",
|
|
271
283
|
"pluginType": "core",
|
|
@@ -275,11 +287,10 @@
|
|
|
275
287
|
"relativePath": [
|
|
276
288
|
"dist",
|
|
277
289
|
"commands",
|
|
278
|
-
"
|
|
279
|
-
"list.js"
|
|
290
|
+
"whoami.js"
|
|
280
291
|
]
|
|
281
292
|
},
|
|
282
|
-
"config:
|
|
293
|
+
"config:get": {
|
|
283
294
|
"aliases": [],
|
|
284
295
|
"args": {
|
|
285
296
|
"key": {
|
|
@@ -292,18 +303,12 @@
|
|
|
292
303
|
"colorEnabled"
|
|
293
304
|
],
|
|
294
305
|
"required": true
|
|
295
|
-
},
|
|
296
|
-
"value": {
|
|
297
|
-
"description": "Configuration value",
|
|
298
|
-
"name": "value",
|
|
299
|
-
"required": true
|
|
300
306
|
}
|
|
301
307
|
},
|
|
302
|
-
"description": "
|
|
308
|
+
"description": "Get a configuration value",
|
|
303
309
|
"examples": [
|
|
304
|
-
"<%= config.bin %> config
|
|
305
|
-
"<%= config.bin %> config
|
|
306
|
-
"<%= config.bin %> config set baseUrl https://api.sendly.live"
|
|
310
|
+
"<%= config.bin %> config get environment",
|
|
311
|
+
"<%= config.bin %> config get baseUrl"
|
|
307
312
|
],
|
|
308
313
|
"flags": {
|
|
309
314
|
"json": {
|
|
@@ -322,7 +327,7 @@
|
|
|
322
327
|
},
|
|
323
328
|
"hasDynamicHelp": false,
|
|
324
329
|
"hiddenAliases": [],
|
|
325
|
-
"id": "config:
|
|
330
|
+
"id": "config:get",
|
|
326
331
|
"pluginAlias": "@sendly/cli",
|
|
327
332
|
"pluginName": "@sendly/cli",
|
|
328
333
|
"pluginType": "core",
|
|
@@ -333,16 +338,16 @@
|
|
|
333
338
|
"dist",
|
|
334
339
|
"commands",
|
|
335
340
|
"config",
|
|
336
|
-
"
|
|
341
|
+
"get.js"
|
|
337
342
|
]
|
|
338
343
|
},
|
|
339
|
-
"
|
|
344
|
+
"config:list": {
|
|
340
345
|
"aliases": [],
|
|
341
346
|
"args": {},
|
|
342
|
-
"description": "
|
|
347
|
+
"description": "List all configuration values",
|
|
343
348
|
"examples": [
|
|
344
|
-
"<%= config.bin %>
|
|
345
|
-
"<%= config.bin %>
|
|
349
|
+
"<%= config.bin %> config list",
|
|
350
|
+
"<%= config.bin %> config list --json"
|
|
346
351
|
],
|
|
347
352
|
"flags": {
|
|
348
353
|
"json": {
|
|
@@ -361,27 +366,45 @@
|
|
|
361
366
|
},
|
|
362
367
|
"hasDynamicHelp": false,
|
|
363
368
|
"hiddenAliases": [],
|
|
364
|
-
"id": "
|
|
369
|
+
"id": "config:list",
|
|
365
370
|
"pluginAlias": "@sendly/cli",
|
|
366
371
|
"pluginName": "@sendly/cli",
|
|
367
372
|
"pluginType": "core",
|
|
368
373
|
"strict": true,
|
|
374
|
+
"enableJsonFlag": false,
|
|
369
375
|
"isESM": true,
|
|
370
376
|
"relativePath": [
|
|
371
377
|
"dist",
|
|
372
378
|
"commands",
|
|
373
|
-
"
|
|
374
|
-
"
|
|
379
|
+
"config",
|
|
380
|
+
"list.js"
|
|
375
381
|
]
|
|
376
382
|
},
|
|
377
|
-
"
|
|
383
|
+
"config:set": {
|
|
378
384
|
"aliases": [],
|
|
379
|
-
"args": {
|
|
380
|
-
|
|
385
|
+
"args": {
|
|
386
|
+
"key": {
|
|
387
|
+
"description": "Configuration key",
|
|
388
|
+
"name": "key",
|
|
389
|
+
"options": [
|
|
390
|
+
"environment",
|
|
391
|
+
"baseUrl",
|
|
392
|
+
"defaultFormat",
|
|
393
|
+
"colorEnabled"
|
|
394
|
+
],
|
|
395
|
+
"required": true
|
|
396
|
+
},
|
|
397
|
+
"value": {
|
|
398
|
+
"description": "Configuration value",
|
|
399
|
+
"name": "value",
|
|
400
|
+
"required": true
|
|
401
|
+
}
|
|
402
|
+
},
|
|
403
|
+
"description": "Set a configuration value",
|
|
381
404
|
"examples": [
|
|
382
|
-
"<%= config.bin %>
|
|
383
|
-
"<%= config.bin %>
|
|
384
|
-
"<%= config.bin %>
|
|
405
|
+
"<%= config.bin %> config set environment live",
|
|
406
|
+
"<%= config.bin %> config set defaultFormat json",
|
|
407
|
+
"<%= config.bin %> config set baseUrl https://api.sendly.live"
|
|
385
408
|
],
|
|
386
409
|
"flags": {
|
|
387
410
|
"json": {
|
|
@@ -396,30 +419,22 @@
|
|
|
396
419
|
"name": "quiet",
|
|
397
420
|
"allowNo": false,
|
|
398
421
|
"type": "boolean"
|
|
399
|
-
},
|
|
400
|
-
"limit": {
|
|
401
|
-
"char": "l",
|
|
402
|
-
"description": "Number of transactions to show",
|
|
403
|
-
"name": "limit",
|
|
404
|
-
"default": 20,
|
|
405
|
-
"hasDynamicHelp": false,
|
|
406
|
-
"multiple": false,
|
|
407
|
-
"type": "option"
|
|
408
422
|
}
|
|
409
423
|
},
|
|
410
424
|
"hasDynamicHelp": false,
|
|
411
425
|
"hiddenAliases": [],
|
|
412
|
-
"id": "
|
|
426
|
+
"id": "config:set",
|
|
413
427
|
"pluginAlias": "@sendly/cli",
|
|
414
428
|
"pluginName": "@sendly/cli",
|
|
415
429
|
"pluginType": "core",
|
|
416
430
|
"strict": true,
|
|
431
|
+
"enableJsonFlag": false,
|
|
417
432
|
"isESM": true,
|
|
418
433
|
"relativePath": [
|
|
419
434
|
"dist",
|
|
420
435
|
"commands",
|
|
421
|
-
"
|
|
422
|
-
"
|
|
436
|
+
"config",
|
|
437
|
+
"set.js"
|
|
423
438
|
]
|
|
424
439
|
},
|
|
425
440
|
"keys:create": {
|
|
@@ -581,6 +596,92 @@
|
|
|
581
596
|
"revoke.js"
|
|
582
597
|
]
|
|
583
598
|
},
|
|
599
|
+
"credits:balance": {
|
|
600
|
+
"aliases": [],
|
|
601
|
+
"args": {},
|
|
602
|
+
"description": "Check your credit balance",
|
|
603
|
+
"examples": [
|
|
604
|
+
"<%= config.bin %> credits balance",
|
|
605
|
+
"<%= config.bin %> credits balance --json"
|
|
606
|
+
],
|
|
607
|
+
"flags": {
|
|
608
|
+
"json": {
|
|
609
|
+
"description": "Output in JSON format",
|
|
610
|
+
"name": "json",
|
|
611
|
+
"allowNo": false,
|
|
612
|
+
"type": "boolean"
|
|
613
|
+
},
|
|
614
|
+
"quiet": {
|
|
615
|
+
"char": "q",
|
|
616
|
+
"description": "Minimal output",
|
|
617
|
+
"name": "quiet",
|
|
618
|
+
"allowNo": false,
|
|
619
|
+
"type": "boolean"
|
|
620
|
+
}
|
|
621
|
+
},
|
|
622
|
+
"hasDynamicHelp": false,
|
|
623
|
+
"hiddenAliases": [],
|
|
624
|
+
"id": "credits:balance",
|
|
625
|
+
"pluginAlias": "@sendly/cli",
|
|
626
|
+
"pluginName": "@sendly/cli",
|
|
627
|
+
"pluginType": "core",
|
|
628
|
+
"strict": true,
|
|
629
|
+
"isESM": true,
|
|
630
|
+
"relativePath": [
|
|
631
|
+
"dist",
|
|
632
|
+
"commands",
|
|
633
|
+
"credits",
|
|
634
|
+
"balance.js"
|
|
635
|
+
]
|
|
636
|
+
},
|
|
637
|
+
"credits:history": {
|
|
638
|
+
"aliases": [],
|
|
639
|
+
"args": {},
|
|
640
|
+
"description": "View credit transaction history",
|
|
641
|
+
"examples": [
|
|
642
|
+
"<%= config.bin %> credits history",
|
|
643
|
+
"<%= config.bin %> credits history --limit 10",
|
|
644
|
+
"<%= config.bin %> credits history --json"
|
|
645
|
+
],
|
|
646
|
+
"flags": {
|
|
647
|
+
"json": {
|
|
648
|
+
"description": "Output in JSON format",
|
|
649
|
+
"name": "json",
|
|
650
|
+
"allowNo": false,
|
|
651
|
+
"type": "boolean"
|
|
652
|
+
},
|
|
653
|
+
"quiet": {
|
|
654
|
+
"char": "q",
|
|
655
|
+
"description": "Minimal output",
|
|
656
|
+
"name": "quiet",
|
|
657
|
+
"allowNo": false,
|
|
658
|
+
"type": "boolean"
|
|
659
|
+
},
|
|
660
|
+
"limit": {
|
|
661
|
+
"char": "l",
|
|
662
|
+
"description": "Number of transactions to show",
|
|
663
|
+
"name": "limit",
|
|
664
|
+
"default": 20,
|
|
665
|
+
"hasDynamicHelp": false,
|
|
666
|
+
"multiple": false,
|
|
667
|
+
"type": "option"
|
|
668
|
+
}
|
|
669
|
+
},
|
|
670
|
+
"hasDynamicHelp": false,
|
|
671
|
+
"hiddenAliases": [],
|
|
672
|
+
"id": "credits:history",
|
|
673
|
+
"pluginAlias": "@sendly/cli",
|
|
674
|
+
"pluginName": "@sendly/cli",
|
|
675
|
+
"pluginType": "core",
|
|
676
|
+
"strict": true,
|
|
677
|
+
"isESM": true,
|
|
678
|
+
"relativePath": [
|
|
679
|
+
"dist",
|
|
680
|
+
"commands",
|
|
681
|
+
"credits",
|
|
682
|
+
"history.js"
|
|
683
|
+
]
|
|
684
|
+
},
|
|
584
685
|
"logs:tail": {
|
|
585
686
|
"aliases": [],
|
|
586
687
|
"args": {},
|
|
@@ -1563,5 +1664,5 @@
|
|
|
1563
1664
|
]
|
|
1564
1665
|
}
|
|
1565
1666
|
},
|
|
1566
|
-
"version": "3.0.
|
|
1667
|
+
"version": "3.0.3"
|
|
1567
1668
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sendly/cli",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.3",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Sendly CLI - Send SMS from your terminal",
|
|
6
6
|
"author": "Sendly <support@sendly.live>",
|
|
@@ -30,6 +30,9 @@
|
|
|
30
30
|
"bin": "sendly",
|
|
31
31
|
"dirname": "sendly",
|
|
32
32
|
"commands": "./dist/commands",
|
|
33
|
+
"hooks": {
|
|
34
|
+
"command_not_found": "./dist/hooks/command-not-found"
|
|
35
|
+
},
|
|
33
36
|
"plugins": [
|
|
34
37
|
"@oclif/plugin-help",
|
|
35
38
|
"@oclif/plugin-plugins"
|