@sendly/cli 3.9.0 → 3.12.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 +176 -0
- package/dist/commands/webhooks/get.js +4 -2
- package/oclif.manifest.json +460 -460
- package/package.json +1 -1
package/oclif.manifest.json
CHANGED
|
@@ -1313,99 +1313,19 @@
|
|
|
1313
1313
|
"send.js"
|
|
1314
1314
|
]
|
|
1315
1315
|
},
|
|
1316
|
-
"
|
|
1317
|
-
"aliases": [],
|
|
1318
|
-
"args": {},
|
|
1319
|
-
"description": "Create a webhook",
|
|
1320
|
-
"examples": [
|
|
1321
|
-
"<%= config.bin %> webhooks create --url https://myapp.com/webhook --events message.delivered",
|
|
1322
|
-
"<%= config.bin %> webhooks create --url https://myapp.com/webhook --events message.delivered,message.failed --description \"Production webhook\"",
|
|
1323
|
-
"<%= config.bin %> webhooks create --url https://webhook.site/abc123 --events message.sent --json"
|
|
1324
|
-
],
|
|
1325
|
-
"flags": {
|
|
1326
|
-
"json": {
|
|
1327
|
-
"description": "Output in JSON format",
|
|
1328
|
-
"name": "json",
|
|
1329
|
-
"allowNo": false,
|
|
1330
|
-
"type": "boolean"
|
|
1331
|
-
},
|
|
1332
|
-
"quiet": {
|
|
1333
|
-
"char": "q",
|
|
1334
|
-
"description": "Minimal output",
|
|
1335
|
-
"name": "quiet",
|
|
1336
|
-
"allowNo": false,
|
|
1337
|
-
"type": "boolean"
|
|
1338
|
-
},
|
|
1339
|
-
"url": {
|
|
1340
|
-
"char": "u",
|
|
1341
|
-
"description": "Webhook URL (must be HTTPS)",
|
|
1342
|
-
"name": "url",
|
|
1343
|
-
"required": true,
|
|
1344
|
-
"hasDynamicHelp": false,
|
|
1345
|
-
"multiple": false,
|
|
1346
|
-
"type": "option"
|
|
1347
|
-
},
|
|
1348
|
-
"events": {
|
|
1349
|
-
"char": "e",
|
|
1350
|
-
"description": "Comma-separated list of events to listen for",
|
|
1351
|
-
"name": "events",
|
|
1352
|
-
"required": true,
|
|
1353
|
-
"hasDynamicHelp": false,
|
|
1354
|
-
"multiple": false,
|
|
1355
|
-
"type": "option"
|
|
1356
|
-
},
|
|
1357
|
-
"description": {
|
|
1358
|
-
"char": "d",
|
|
1359
|
-
"description": "Description for the webhook",
|
|
1360
|
-
"name": "description",
|
|
1361
|
-
"hasDynamicHelp": false,
|
|
1362
|
-
"multiple": false,
|
|
1363
|
-
"type": "option"
|
|
1364
|
-
},
|
|
1365
|
-
"mode": {
|
|
1366
|
-
"char": "m",
|
|
1367
|
-
"description": "Event mode filter: all (default), test (sandbox only), live (production only)",
|
|
1368
|
-
"name": "mode",
|
|
1369
|
-
"default": "all",
|
|
1370
|
-
"hasDynamicHelp": false,
|
|
1371
|
-
"multiple": false,
|
|
1372
|
-
"options": [
|
|
1373
|
-
"all",
|
|
1374
|
-
"test",
|
|
1375
|
-
"live"
|
|
1376
|
-
],
|
|
1377
|
-
"type": "option"
|
|
1378
|
-
}
|
|
1379
|
-
},
|
|
1380
|
-
"hasDynamicHelp": false,
|
|
1381
|
-
"hiddenAliases": [],
|
|
1382
|
-
"id": "webhooks:create",
|
|
1383
|
-
"pluginAlias": "@sendly/cli",
|
|
1384
|
-
"pluginName": "@sendly/cli",
|
|
1385
|
-
"pluginType": "core",
|
|
1386
|
-
"strict": true,
|
|
1387
|
-
"isESM": true,
|
|
1388
|
-
"relativePath": [
|
|
1389
|
-
"dist",
|
|
1390
|
-
"commands",
|
|
1391
|
-
"webhooks",
|
|
1392
|
-
"create.js"
|
|
1393
|
-
]
|
|
1394
|
-
},
|
|
1395
|
-
"webhooks:delete": {
|
|
1316
|
+
"verify:check": {
|
|
1396
1317
|
"aliases": [],
|
|
1397
1318
|
"args": {
|
|
1398
1319
|
"id": {
|
|
1399
|
-
"description": "
|
|
1320
|
+
"description": "Verification ID",
|
|
1400
1321
|
"name": "id",
|
|
1401
1322
|
"required": true
|
|
1402
1323
|
}
|
|
1403
1324
|
},
|
|
1404
|
-
"description": "
|
|
1325
|
+
"description": "Verify an OTP code",
|
|
1405
1326
|
"examples": [
|
|
1406
|
-
"<%= config.bin %>
|
|
1407
|
-
"<%= config.bin %>
|
|
1408
|
-
"<%= config.bin %> webhooks delete whk_abc123 --json"
|
|
1327
|
+
"<%= config.bin %> verify check ver_xxx --code 123456",
|
|
1328
|
+
"<%= config.bin %> verify check ver_xxx -c 123456"
|
|
1409
1329
|
],
|
|
1410
1330
|
"flags": {
|
|
1411
1331
|
"json": {
|
|
@@ -1421,17 +1341,19 @@
|
|
|
1421
1341
|
"allowNo": false,
|
|
1422
1342
|
"type": "boolean"
|
|
1423
1343
|
},
|
|
1424
|
-
"
|
|
1425
|
-
"char": "
|
|
1426
|
-
"description": "
|
|
1427
|
-
"name": "
|
|
1428
|
-
"
|
|
1429
|
-
"
|
|
1344
|
+
"code": {
|
|
1345
|
+
"char": "c",
|
|
1346
|
+
"description": "The OTP code to verify",
|
|
1347
|
+
"name": "code",
|
|
1348
|
+
"required": true,
|
|
1349
|
+
"hasDynamicHelp": false,
|
|
1350
|
+
"multiple": false,
|
|
1351
|
+
"type": "option"
|
|
1430
1352
|
}
|
|
1431
1353
|
},
|
|
1432
1354
|
"hasDynamicHelp": false,
|
|
1433
1355
|
"hiddenAliases": [],
|
|
1434
|
-
"id": "
|
|
1356
|
+
"id": "verify:check",
|
|
1435
1357
|
"pluginAlias": "@sendly/cli",
|
|
1436
1358
|
"pluginName": "@sendly/cli",
|
|
1437
1359
|
"pluginType": "core",
|
|
@@ -1440,25 +1362,18 @@
|
|
|
1440
1362
|
"relativePath": [
|
|
1441
1363
|
"dist",
|
|
1442
1364
|
"commands",
|
|
1443
|
-
"
|
|
1444
|
-
"
|
|
1365
|
+
"verify",
|
|
1366
|
+
"check.js"
|
|
1445
1367
|
]
|
|
1446
1368
|
},
|
|
1447
|
-
"
|
|
1369
|
+
"verify:list": {
|
|
1448
1370
|
"aliases": [],
|
|
1449
|
-
"args": {
|
|
1450
|
-
|
|
1451
|
-
"description": "Webhook ID",
|
|
1452
|
-
"name": "id",
|
|
1453
|
-
"required": true
|
|
1454
|
-
}
|
|
1455
|
-
},
|
|
1456
|
-
"description": "View webhook delivery history",
|
|
1371
|
+
"args": {},
|
|
1372
|
+
"description": "List recent verifications",
|
|
1457
1373
|
"examples": [
|
|
1458
|
-
"<%= config.bin %>
|
|
1459
|
-
"<%= config.bin %>
|
|
1460
|
-
"<%= config.bin %>
|
|
1461
|
-
"<%= config.bin %> webhooks deliveries whk_abc123 --json"
|
|
1374
|
+
"<%= config.bin %> verify list",
|
|
1375
|
+
"<%= config.bin %> verify list --limit 10",
|
|
1376
|
+
"<%= config.bin %> verify list --json"
|
|
1462
1377
|
],
|
|
1463
1378
|
"flags": {
|
|
1464
1379
|
"json": {
|
|
@@ -1475,24 +1390,18 @@
|
|
|
1475
1390
|
"type": "boolean"
|
|
1476
1391
|
},
|
|
1477
1392
|
"limit": {
|
|
1478
|
-
"char": "
|
|
1479
|
-
"description": "Number of
|
|
1393
|
+
"char": "n",
|
|
1394
|
+
"description": "Number of verifications to show",
|
|
1480
1395
|
"name": "limit",
|
|
1481
|
-
"default":
|
|
1396
|
+
"default": 20,
|
|
1482
1397
|
"hasDynamicHelp": false,
|
|
1483
1398
|
"multiple": false,
|
|
1484
1399
|
"type": "option"
|
|
1485
|
-
},
|
|
1486
|
-
"failed-only": {
|
|
1487
|
-
"description": "Show only failed deliveries",
|
|
1488
|
-
"name": "failed-only",
|
|
1489
|
-
"allowNo": false,
|
|
1490
|
-
"type": "boolean"
|
|
1491
1400
|
}
|
|
1492
1401
|
},
|
|
1493
1402
|
"hasDynamicHelp": false,
|
|
1494
1403
|
"hiddenAliases": [],
|
|
1495
|
-
"id": "
|
|
1404
|
+
"id": "verify:list",
|
|
1496
1405
|
"pluginAlias": "@sendly/cli",
|
|
1497
1406
|
"pluginName": "@sendly/cli",
|
|
1498
1407
|
"pluginType": "core",
|
|
@@ -1501,23 +1410,23 @@
|
|
|
1501
1410
|
"relativePath": [
|
|
1502
1411
|
"dist",
|
|
1503
1412
|
"commands",
|
|
1504
|
-
"
|
|
1505
|
-
"
|
|
1413
|
+
"verify",
|
|
1414
|
+
"list.js"
|
|
1506
1415
|
]
|
|
1507
1416
|
},
|
|
1508
|
-
"
|
|
1417
|
+
"verify:resend": {
|
|
1509
1418
|
"aliases": [],
|
|
1510
1419
|
"args": {
|
|
1511
1420
|
"id": {
|
|
1512
|
-
"description": "
|
|
1421
|
+
"description": "Verification ID",
|
|
1513
1422
|
"name": "id",
|
|
1514
1423
|
"required": true
|
|
1515
1424
|
}
|
|
1516
1425
|
},
|
|
1517
|
-
"description": "
|
|
1426
|
+
"description": "Resend an OTP verification code",
|
|
1518
1427
|
"examples": [
|
|
1519
|
-
"<%= config.bin %>
|
|
1520
|
-
"<%= config.bin %>
|
|
1428
|
+
"<%= config.bin %> verify resend ver_xxx",
|
|
1429
|
+
"<%= config.bin %> verify resend ver_xxx --json"
|
|
1521
1430
|
],
|
|
1522
1431
|
"flags": {
|
|
1523
1432
|
"json": {
|
|
@@ -1536,7 +1445,7 @@
|
|
|
1536
1445
|
},
|
|
1537
1446
|
"hasDynamicHelp": false,
|
|
1538
1447
|
"hiddenAliases": [],
|
|
1539
|
-
"id": "
|
|
1448
|
+
"id": "verify:resend",
|
|
1540
1449
|
"pluginAlias": "@sendly/cli",
|
|
1541
1450
|
"pluginName": "@sendly/cli",
|
|
1542
1451
|
"pluginType": "core",
|
|
@@ -1545,17 +1454,20 @@
|
|
|
1545
1454
|
"relativePath": [
|
|
1546
1455
|
"dist",
|
|
1547
1456
|
"commands",
|
|
1548
|
-
"
|
|
1549
|
-
"
|
|
1457
|
+
"verify",
|
|
1458
|
+
"resend.js"
|
|
1550
1459
|
]
|
|
1551
1460
|
},
|
|
1552
|
-
"
|
|
1461
|
+
"verify:send": {
|
|
1553
1462
|
"aliases": [],
|
|
1554
1463
|
"args": {},
|
|
1555
|
-
"description": "
|
|
1464
|
+
"description": "Send an OTP verification code",
|
|
1556
1465
|
"examples": [
|
|
1557
|
-
"<%= config.bin %>
|
|
1558
|
-
"<%= config.bin %>
|
|
1466
|
+
"<%= config.bin %> verify send --to \"+1234567890\"",
|
|
1467
|
+
"<%= config.bin %> verify send --to \"+1234567890\" --app-name \"MyApp\"",
|
|
1468
|
+
"<%= config.bin %> verify send --to \"+1234567890\" --template tpl_preset_2fa",
|
|
1469
|
+
"<%= config.bin %> verify send --to \"+1234567890\" --profile vp_xxx",
|
|
1470
|
+
"<%= config.bin %> verify send --to \"+1234567890\" --code-length 8 --timeout 120"
|
|
1559
1471
|
],
|
|
1560
1472
|
"flags": {
|
|
1561
1473
|
"json": {
|
|
@@ -1570,164 +1482,57 @@
|
|
|
1570
1482
|
"name": "quiet",
|
|
1571
1483
|
"allowNo": false,
|
|
1572
1484
|
"type": "boolean"
|
|
1573
|
-
}
|
|
1574
|
-
},
|
|
1575
|
-
"hasDynamicHelp": false,
|
|
1576
|
-
"hiddenAliases": [],
|
|
1577
|
-
"id": "webhooks:list",
|
|
1578
|
-
"pluginAlias": "@sendly/cli",
|
|
1579
|
-
"pluginName": "@sendly/cli",
|
|
1580
|
-
"pluginType": "core",
|
|
1581
|
-
"strict": true,
|
|
1582
|
-
"isESM": true,
|
|
1583
|
-
"relativePath": [
|
|
1584
|
-
"dist",
|
|
1585
|
-
"commands",
|
|
1586
|
-
"webhooks",
|
|
1587
|
-
"list.js"
|
|
1588
|
-
]
|
|
1589
|
-
},
|
|
1590
|
-
"webhooks:listen": {
|
|
1591
|
-
"aliases": [],
|
|
1592
|
-
"args": {},
|
|
1593
|
-
"description": "Listen for webhooks locally. Receives events in real-time via WebSocket and forwards them to your local server.",
|
|
1594
|
-
"examples": [
|
|
1595
|
-
"<%= config.bin %> webhooks listen",
|
|
1596
|
-
"<%= config.bin %> webhooks listen --forward http://localhost:3000/webhook",
|
|
1597
|
-
"<%= config.bin %> webhooks listen --events message.delivered,message.failed"
|
|
1598
|
-
],
|
|
1599
|
-
"flags": {
|
|
1600
|
-
"json": {
|
|
1601
|
-
"description": "Output in JSON format",
|
|
1602
|
-
"name": "json",
|
|
1603
|
-
"allowNo": false,
|
|
1604
|
-
"type": "boolean"
|
|
1605
1485
|
},
|
|
1606
|
-
"
|
|
1607
|
-
"char": "
|
|
1608
|
-
"description": "
|
|
1609
|
-
"name": "
|
|
1610
|
-
"
|
|
1611
|
-
"
|
|
1486
|
+
"to": {
|
|
1487
|
+
"char": "t",
|
|
1488
|
+
"description": "Recipient phone number (E.164 format)",
|
|
1489
|
+
"name": "to",
|
|
1490
|
+
"required": true,
|
|
1491
|
+
"hasDynamicHelp": false,
|
|
1492
|
+
"multiple": false,
|
|
1493
|
+
"type": "option"
|
|
1612
1494
|
},
|
|
1613
|
-
"
|
|
1614
|
-
"char": "
|
|
1615
|
-
"description": "
|
|
1616
|
-
"name": "
|
|
1617
|
-
"default": "http://localhost:3000/webhook",
|
|
1495
|
+
"app-name": {
|
|
1496
|
+
"char": "a",
|
|
1497
|
+
"description": "App name shown in message (defaults to your business name)",
|
|
1498
|
+
"name": "app-name",
|
|
1618
1499
|
"hasDynamicHelp": false,
|
|
1619
1500
|
"multiple": false,
|
|
1620
1501
|
"type": "option"
|
|
1621
1502
|
},
|
|
1622
|
-
"
|
|
1623
|
-
"
|
|
1624
|
-
"
|
|
1625
|
-
"name": "events",
|
|
1626
|
-
"default": "message.sent,message.delivered,message.failed,message.bounced",
|
|
1503
|
+
"template": {
|
|
1504
|
+
"description": "Template ID to use (defaults to tpl_preset_otp)",
|
|
1505
|
+
"name": "template",
|
|
1627
1506
|
"hasDynamicHelp": false,
|
|
1628
1507
|
"multiple": false,
|
|
1629
1508
|
"type": "option"
|
|
1630
|
-
}
|
|
1631
|
-
},
|
|
1632
|
-
"hasDynamicHelp": false,
|
|
1633
|
-
"hiddenAliases": [],
|
|
1634
|
-
"id": "webhooks:listen",
|
|
1635
|
-
"pluginAlias": "@sendly/cli",
|
|
1636
|
-
"pluginName": "@sendly/cli",
|
|
1637
|
-
"pluginType": "core",
|
|
1638
|
-
"strict": true,
|
|
1639
|
-
"isESM": true,
|
|
1640
|
-
"relativePath": [
|
|
1641
|
-
"dist",
|
|
1642
|
-
"commands",
|
|
1643
|
-
"webhooks",
|
|
1644
|
-
"listen.js"
|
|
1645
|
-
]
|
|
1646
|
-
},
|
|
1647
|
-
"webhooks:rotate-secret": {
|
|
1648
|
-
"aliases": [],
|
|
1649
|
-
"args": {
|
|
1650
|
-
"id": {
|
|
1651
|
-
"description": "Webhook ID",
|
|
1652
|
-
"name": "id",
|
|
1653
|
-
"required": true
|
|
1654
|
-
}
|
|
1655
|
-
},
|
|
1656
|
-
"description": "Rotate webhook secret",
|
|
1657
|
-
"examples": [
|
|
1658
|
-
"<%= config.bin %> webhooks rotate-secret whk_abc123",
|
|
1659
|
-
"<%= config.bin %> webhooks rotate-secret whk_abc123 --yes",
|
|
1660
|
-
"<%= config.bin %> webhooks rotate-secret whk_abc123 --json"
|
|
1661
|
-
],
|
|
1662
|
-
"flags": {
|
|
1663
|
-
"json": {
|
|
1664
|
-
"description": "Output in JSON format",
|
|
1665
|
-
"name": "json",
|
|
1666
|
-
"allowNo": false,
|
|
1667
|
-
"type": "boolean"
|
|
1668
1509
|
},
|
|
1669
|
-
"
|
|
1670
|
-
"char": "
|
|
1671
|
-
"description": "
|
|
1672
|
-
"name": "
|
|
1673
|
-
"
|
|
1674
|
-
"
|
|
1510
|
+
"profile": {
|
|
1511
|
+
"char": "p",
|
|
1512
|
+
"description": "Verify profile ID for preconfigured settings",
|
|
1513
|
+
"name": "profile",
|
|
1514
|
+
"hasDynamicHelp": false,
|
|
1515
|
+
"multiple": false,
|
|
1516
|
+
"type": "option"
|
|
1675
1517
|
},
|
|
1676
|
-
"
|
|
1677
|
-
"
|
|
1678
|
-
"
|
|
1679
|
-
"
|
|
1680
|
-
"
|
|
1681
|
-
"type": "
|
|
1682
|
-
}
|
|
1683
|
-
},
|
|
1684
|
-
"hasDynamicHelp": false,
|
|
1685
|
-
"hiddenAliases": [],
|
|
1686
|
-
"id": "webhooks:rotate-secret",
|
|
1687
|
-
"pluginAlias": "@sendly/cli",
|
|
1688
|
-
"pluginName": "@sendly/cli",
|
|
1689
|
-
"pluginType": "core",
|
|
1690
|
-
"strict": true,
|
|
1691
|
-
"isESM": true,
|
|
1692
|
-
"relativePath": [
|
|
1693
|
-
"dist",
|
|
1694
|
-
"commands",
|
|
1695
|
-
"webhooks",
|
|
1696
|
-
"rotate-secret.js"
|
|
1697
|
-
]
|
|
1698
|
-
},
|
|
1699
|
-
"webhooks:test": {
|
|
1700
|
-
"aliases": [],
|
|
1701
|
-
"args": {
|
|
1702
|
-
"id": {
|
|
1703
|
-
"description": "Webhook ID to test",
|
|
1704
|
-
"name": "id",
|
|
1705
|
-
"required": true
|
|
1706
|
-
}
|
|
1707
|
-
},
|
|
1708
|
-
"description": "Send a test event to a webhook",
|
|
1709
|
-
"examples": [
|
|
1710
|
-
"<%= config.bin %> webhooks test whk_abc123",
|
|
1711
|
-
"<%= config.bin %> webhooks test whk_abc123 --json"
|
|
1712
|
-
],
|
|
1713
|
-
"flags": {
|
|
1714
|
-
"json": {
|
|
1715
|
-
"description": "Output in JSON format",
|
|
1716
|
-
"name": "json",
|
|
1717
|
-
"allowNo": false,
|
|
1718
|
-
"type": "boolean"
|
|
1518
|
+
"code-length": {
|
|
1519
|
+
"description": "Length of OTP code (4-10, default: 6)",
|
|
1520
|
+
"name": "code-length",
|
|
1521
|
+
"hasDynamicHelp": false,
|
|
1522
|
+
"multiple": false,
|
|
1523
|
+
"type": "option"
|
|
1719
1524
|
},
|
|
1720
|
-
"
|
|
1721
|
-
"
|
|
1722
|
-
"
|
|
1723
|
-
"
|
|
1724
|
-
"
|
|
1725
|
-
"type": "
|
|
1525
|
+
"timeout": {
|
|
1526
|
+
"description": "Code validity in seconds (60-3600, default: 300)",
|
|
1527
|
+
"name": "timeout",
|
|
1528
|
+
"hasDynamicHelp": false,
|
|
1529
|
+
"multiple": false,
|
|
1530
|
+
"type": "option"
|
|
1726
1531
|
}
|
|
1727
1532
|
},
|
|
1728
1533
|
"hasDynamicHelp": false,
|
|
1729
1534
|
"hiddenAliases": [],
|
|
1730
|
-
"id": "
|
|
1535
|
+
"id": "verify:send",
|
|
1731
1536
|
"pluginAlias": "@sendly/cli",
|
|
1732
1537
|
"pluginName": "@sendly/cli",
|
|
1733
1538
|
"pluginType": "core",
|
|
@@ -1736,26 +1541,23 @@
|
|
|
1736
1541
|
"relativePath": [
|
|
1737
1542
|
"dist",
|
|
1738
1543
|
"commands",
|
|
1739
|
-
"
|
|
1740
|
-
"
|
|
1544
|
+
"verify",
|
|
1545
|
+
"send.js"
|
|
1741
1546
|
]
|
|
1742
1547
|
},
|
|
1743
|
-
"
|
|
1548
|
+
"verify:status": {
|
|
1744
1549
|
"aliases": [],
|
|
1745
1550
|
"args": {
|
|
1746
1551
|
"id": {
|
|
1747
|
-
"description": "
|
|
1552
|
+
"description": "Verification ID",
|
|
1748
1553
|
"name": "id",
|
|
1749
1554
|
"required": true
|
|
1750
1555
|
}
|
|
1751
1556
|
},
|
|
1752
|
-
"description": "
|
|
1557
|
+
"description": "Get verification status",
|
|
1753
1558
|
"examples": [
|
|
1754
|
-
"<%= config.bin %>
|
|
1755
|
-
"<%= config.bin %>
|
|
1756
|
-
"<%= config.bin %> webhooks update whk_abc123 --description \"Updated production webhook\"",
|
|
1757
|
-
"<%= config.bin %> webhooks update whk_abc123 --active false",
|
|
1758
|
-
"<%= config.bin %> webhooks update whk_abc123 --url https://newdomain.com/webhook --events message.sent --json"
|
|
1559
|
+
"<%= config.bin %> verify status ver_xxx",
|
|
1560
|
+
"<%= config.bin %> verify status ver_xxx --json"
|
|
1759
1561
|
],
|
|
1760
1562
|
"flags": {
|
|
1761
1563
|
"json": {
|
|
@@ -1764,61 +1566,17 @@
|
|
|
1764
1566
|
"allowNo": false,
|
|
1765
1567
|
"type": "boolean"
|
|
1766
1568
|
},
|
|
1767
|
-
"quiet": {
|
|
1768
|
-
"char": "q",
|
|
1769
|
-
"description": "Minimal output",
|
|
1770
|
-
"name": "quiet",
|
|
1771
|
-
"allowNo": false,
|
|
1772
|
-
"type": "boolean"
|
|
1773
|
-
},
|
|
1774
|
-
"url": {
|
|
1775
|
-
"char": "u",
|
|
1776
|
-
"description": "Update webhook URL (must be HTTPS)",
|
|
1777
|
-
"name": "url",
|
|
1778
|
-
"hasDynamicHelp": false,
|
|
1779
|
-
"multiple": false,
|
|
1780
|
-
"type": "option"
|
|
1781
|
-
},
|
|
1782
|
-
"events": {
|
|
1783
|
-
"char": "e",
|
|
1784
|
-
"description": "Update events list (comma-separated)",
|
|
1785
|
-
"name": "events",
|
|
1786
|
-
"hasDynamicHelp": false,
|
|
1787
|
-
"multiple": false,
|
|
1788
|
-
"type": "option"
|
|
1789
|
-
},
|
|
1790
|
-
"description": {
|
|
1791
|
-
"char": "d",
|
|
1792
|
-
"description": "Update description",
|
|
1793
|
-
"name": "description",
|
|
1794
|
-
"hasDynamicHelp": false,
|
|
1795
|
-
"multiple": false,
|
|
1796
|
-
"type": "option"
|
|
1797
|
-
},
|
|
1798
|
-
"active": {
|
|
1799
|
-
"char": "a",
|
|
1800
|
-
"description": "Enable or disable the webhook",
|
|
1801
|
-
"name": "active",
|
|
1802
|
-
"allowNo": true,
|
|
1803
|
-
"type": "boolean"
|
|
1804
|
-
},
|
|
1805
|
-
"mode": {
|
|
1806
|
-
"char": "m",
|
|
1807
|
-
"description": "Update event mode filter: all, test (sandbox only), live (production only)",
|
|
1808
|
-
"name": "mode",
|
|
1809
|
-
"hasDynamicHelp": false,
|
|
1810
|
-
"multiple": false,
|
|
1811
|
-
"options": [
|
|
1812
|
-
"all",
|
|
1813
|
-
"test",
|
|
1814
|
-
"live"
|
|
1815
|
-
],
|
|
1816
|
-
"type": "option"
|
|
1569
|
+
"quiet": {
|
|
1570
|
+
"char": "q",
|
|
1571
|
+
"description": "Minimal output",
|
|
1572
|
+
"name": "quiet",
|
|
1573
|
+
"allowNo": false,
|
|
1574
|
+
"type": "boolean"
|
|
1817
1575
|
}
|
|
1818
1576
|
},
|
|
1819
1577
|
"hasDynamicHelp": false,
|
|
1820
1578
|
"hiddenAliases": [],
|
|
1821
|
-
"id": "
|
|
1579
|
+
"id": "verify:status",
|
|
1822
1580
|
"pluginAlias": "@sendly/cli",
|
|
1823
1581
|
"pluginName": "@sendly/cli",
|
|
1824
1582
|
"pluginType": "core",
|
|
@@ -1827,8 +1585,8 @@
|
|
|
1827
1585
|
"relativePath": [
|
|
1828
1586
|
"dist",
|
|
1829
1587
|
"commands",
|
|
1830
|
-
"
|
|
1831
|
-
"
|
|
1588
|
+
"verify",
|
|
1589
|
+
"status.js"
|
|
1832
1590
|
]
|
|
1833
1591
|
},
|
|
1834
1592
|
"templates:create": {
|
|
@@ -2035,17 +1793,252 @@
|
|
|
2035
1793
|
"allowNo": false,
|
|
2036
1794
|
"type": "boolean"
|
|
2037
1795
|
},
|
|
2038
|
-
"quiet": {
|
|
2039
|
-
"char": "q",
|
|
2040
|
-
"description": "Minimal output",
|
|
2041
|
-
"name": "quiet",
|
|
1796
|
+
"quiet": {
|
|
1797
|
+
"char": "q",
|
|
1798
|
+
"description": "Minimal output",
|
|
1799
|
+
"name": "quiet",
|
|
1800
|
+
"allowNo": false,
|
|
1801
|
+
"type": "boolean"
|
|
1802
|
+
}
|
|
1803
|
+
},
|
|
1804
|
+
"hasDynamicHelp": false,
|
|
1805
|
+
"hiddenAliases": [],
|
|
1806
|
+
"id": "templates:presets",
|
|
1807
|
+
"pluginAlias": "@sendly/cli",
|
|
1808
|
+
"pluginName": "@sendly/cli",
|
|
1809
|
+
"pluginType": "core",
|
|
1810
|
+
"strict": true,
|
|
1811
|
+
"isESM": true,
|
|
1812
|
+
"relativePath": [
|
|
1813
|
+
"dist",
|
|
1814
|
+
"commands",
|
|
1815
|
+
"templates",
|
|
1816
|
+
"presets.js"
|
|
1817
|
+
]
|
|
1818
|
+
},
|
|
1819
|
+
"templates:publish": {
|
|
1820
|
+
"aliases": [],
|
|
1821
|
+
"args": {
|
|
1822
|
+
"id": {
|
|
1823
|
+
"description": "Template ID",
|
|
1824
|
+
"name": "id",
|
|
1825
|
+
"required": true
|
|
1826
|
+
}
|
|
1827
|
+
},
|
|
1828
|
+
"description": "Publish a draft template (locks it for use)",
|
|
1829
|
+
"examples": [
|
|
1830
|
+
"<%= config.bin %> templates publish tpl_xxx"
|
|
1831
|
+
],
|
|
1832
|
+
"flags": {
|
|
1833
|
+
"json": {
|
|
1834
|
+
"description": "Output in JSON format",
|
|
1835
|
+
"name": "json",
|
|
1836
|
+
"allowNo": false,
|
|
1837
|
+
"type": "boolean"
|
|
1838
|
+
},
|
|
1839
|
+
"quiet": {
|
|
1840
|
+
"char": "q",
|
|
1841
|
+
"description": "Minimal output",
|
|
1842
|
+
"name": "quiet",
|
|
1843
|
+
"allowNo": false,
|
|
1844
|
+
"type": "boolean"
|
|
1845
|
+
}
|
|
1846
|
+
},
|
|
1847
|
+
"hasDynamicHelp": false,
|
|
1848
|
+
"hiddenAliases": [],
|
|
1849
|
+
"id": "templates:publish",
|
|
1850
|
+
"pluginAlias": "@sendly/cli",
|
|
1851
|
+
"pluginName": "@sendly/cli",
|
|
1852
|
+
"pluginType": "core",
|
|
1853
|
+
"strict": true,
|
|
1854
|
+
"isESM": true,
|
|
1855
|
+
"relativePath": [
|
|
1856
|
+
"dist",
|
|
1857
|
+
"commands",
|
|
1858
|
+
"templates",
|
|
1859
|
+
"publish.js"
|
|
1860
|
+
]
|
|
1861
|
+
},
|
|
1862
|
+
"webhooks:create": {
|
|
1863
|
+
"aliases": [],
|
|
1864
|
+
"args": {},
|
|
1865
|
+
"description": "Create a webhook",
|
|
1866
|
+
"examples": [
|
|
1867
|
+
"<%= config.bin %> webhooks create --url https://myapp.com/webhook --events message.delivered",
|
|
1868
|
+
"<%= config.bin %> webhooks create --url https://myapp.com/webhook --events message.delivered,message.failed --description \"Production webhook\"",
|
|
1869
|
+
"<%= config.bin %> webhooks create --url https://webhook.site/abc123 --events message.sent --json"
|
|
1870
|
+
],
|
|
1871
|
+
"flags": {
|
|
1872
|
+
"json": {
|
|
1873
|
+
"description": "Output in JSON format",
|
|
1874
|
+
"name": "json",
|
|
1875
|
+
"allowNo": false,
|
|
1876
|
+
"type": "boolean"
|
|
1877
|
+
},
|
|
1878
|
+
"quiet": {
|
|
1879
|
+
"char": "q",
|
|
1880
|
+
"description": "Minimal output",
|
|
1881
|
+
"name": "quiet",
|
|
1882
|
+
"allowNo": false,
|
|
1883
|
+
"type": "boolean"
|
|
1884
|
+
},
|
|
1885
|
+
"url": {
|
|
1886
|
+
"char": "u",
|
|
1887
|
+
"description": "Webhook URL (must be HTTPS)",
|
|
1888
|
+
"name": "url",
|
|
1889
|
+
"required": true,
|
|
1890
|
+
"hasDynamicHelp": false,
|
|
1891
|
+
"multiple": false,
|
|
1892
|
+
"type": "option"
|
|
1893
|
+
},
|
|
1894
|
+
"events": {
|
|
1895
|
+
"char": "e",
|
|
1896
|
+
"description": "Comma-separated list of events to listen for",
|
|
1897
|
+
"name": "events",
|
|
1898
|
+
"required": true,
|
|
1899
|
+
"hasDynamicHelp": false,
|
|
1900
|
+
"multiple": false,
|
|
1901
|
+
"type": "option"
|
|
1902
|
+
},
|
|
1903
|
+
"description": {
|
|
1904
|
+
"char": "d",
|
|
1905
|
+
"description": "Description for the webhook",
|
|
1906
|
+
"name": "description",
|
|
1907
|
+
"hasDynamicHelp": false,
|
|
1908
|
+
"multiple": false,
|
|
1909
|
+
"type": "option"
|
|
1910
|
+
},
|
|
1911
|
+
"mode": {
|
|
1912
|
+
"char": "m",
|
|
1913
|
+
"description": "Event mode filter: all (default), test (sandbox only), live (production only)",
|
|
1914
|
+
"name": "mode",
|
|
1915
|
+
"default": "all",
|
|
1916
|
+
"hasDynamicHelp": false,
|
|
1917
|
+
"multiple": false,
|
|
1918
|
+
"options": [
|
|
1919
|
+
"all",
|
|
1920
|
+
"test",
|
|
1921
|
+
"live"
|
|
1922
|
+
],
|
|
1923
|
+
"type": "option"
|
|
1924
|
+
}
|
|
1925
|
+
},
|
|
1926
|
+
"hasDynamicHelp": false,
|
|
1927
|
+
"hiddenAliases": [],
|
|
1928
|
+
"id": "webhooks:create",
|
|
1929
|
+
"pluginAlias": "@sendly/cli",
|
|
1930
|
+
"pluginName": "@sendly/cli",
|
|
1931
|
+
"pluginType": "core",
|
|
1932
|
+
"strict": true,
|
|
1933
|
+
"isESM": true,
|
|
1934
|
+
"relativePath": [
|
|
1935
|
+
"dist",
|
|
1936
|
+
"commands",
|
|
1937
|
+
"webhooks",
|
|
1938
|
+
"create.js"
|
|
1939
|
+
]
|
|
1940
|
+
},
|
|
1941
|
+
"webhooks:delete": {
|
|
1942
|
+
"aliases": [],
|
|
1943
|
+
"args": {
|
|
1944
|
+
"id": {
|
|
1945
|
+
"description": "Webhook ID to delete",
|
|
1946
|
+
"name": "id",
|
|
1947
|
+
"required": true
|
|
1948
|
+
}
|
|
1949
|
+
},
|
|
1950
|
+
"description": "Delete a webhook",
|
|
1951
|
+
"examples": [
|
|
1952
|
+
"<%= config.bin %> webhooks delete whk_abc123",
|
|
1953
|
+
"<%= config.bin %> webhooks delete whk_abc123 --yes",
|
|
1954
|
+
"<%= config.bin %> webhooks delete whk_abc123 --json"
|
|
1955
|
+
],
|
|
1956
|
+
"flags": {
|
|
1957
|
+
"json": {
|
|
1958
|
+
"description": "Output in JSON format",
|
|
1959
|
+
"name": "json",
|
|
1960
|
+
"allowNo": false,
|
|
1961
|
+
"type": "boolean"
|
|
1962
|
+
},
|
|
1963
|
+
"quiet": {
|
|
1964
|
+
"char": "q",
|
|
1965
|
+
"description": "Minimal output",
|
|
1966
|
+
"name": "quiet",
|
|
1967
|
+
"allowNo": false,
|
|
1968
|
+
"type": "boolean"
|
|
1969
|
+
},
|
|
1970
|
+
"yes": {
|
|
1971
|
+
"char": "y",
|
|
1972
|
+
"description": "Skip confirmation prompt",
|
|
1973
|
+
"name": "yes",
|
|
1974
|
+
"allowNo": false,
|
|
1975
|
+
"type": "boolean"
|
|
1976
|
+
}
|
|
1977
|
+
},
|
|
1978
|
+
"hasDynamicHelp": false,
|
|
1979
|
+
"hiddenAliases": [],
|
|
1980
|
+
"id": "webhooks:delete",
|
|
1981
|
+
"pluginAlias": "@sendly/cli",
|
|
1982
|
+
"pluginName": "@sendly/cli",
|
|
1983
|
+
"pluginType": "core",
|
|
1984
|
+
"strict": true,
|
|
1985
|
+
"isESM": true,
|
|
1986
|
+
"relativePath": [
|
|
1987
|
+
"dist",
|
|
1988
|
+
"commands",
|
|
1989
|
+
"webhooks",
|
|
1990
|
+
"delete.js"
|
|
1991
|
+
]
|
|
1992
|
+
},
|
|
1993
|
+
"webhooks:deliveries": {
|
|
1994
|
+
"aliases": [],
|
|
1995
|
+
"args": {
|
|
1996
|
+
"id": {
|
|
1997
|
+
"description": "Webhook ID",
|
|
1998
|
+
"name": "id",
|
|
1999
|
+
"required": true
|
|
2000
|
+
}
|
|
2001
|
+
},
|
|
2002
|
+
"description": "View webhook delivery history",
|
|
2003
|
+
"examples": [
|
|
2004
|
+
"<%= config.bin %> webhooks deliveries whk_abc123",
|
|
2005
|
+
"<%= config.bin %> webhooks deliveries whk_abc123 --limit 20",
|
|
2006
|
+
"<%= config.bin %> webhooks deliveries whk_abc123 --failed-only",
|
|
2007
|
+
"<%= config.bin %> webhooks deliveries whk_abc123 --json"
|
|
2008
|
+
],
|
|
2009
|
+
"flags": {
|
|
2010
|
+
"json": {
|
|
2011
|
+
"description": "Output in JSON format",
|
|
2012
|
+
"name": "json",
|
|
2013
|
+
"allowNo": false,
|
|
2014
|
+
"type": "boolean"
|
|
2015
|
+
},
|
|
2016
|
+
"quiet": {
|
|
2017
|
+
"char": "q",
|
|
2018
|
+
"description": "Minimal output",
|
|
2019
|
+
"name": "quiet",
|
|
2020
|
+
"allowNo": false,
|
|
2021
|
+
"type": "boolean"
|
|
2022
|
+
},
|
|
2023
|
+
"limit": {
|
|
2024
|
+
"char": "l",
|
|
2025
|
+
"description": "Number of deliveries to show",
|
|
2026
|
+
"name": "limit",
|
|
2027
|
+
"default": 10,
|
|
2028
|
+
"hasDynamicHelp": false,
|
|
2029
|
+
"multiple": false,
|
|
2030
|
+
"type": "option"
|
|
2031
|
+
},
|
|
2032
|
+
"failed-only": {
|
|
2033
|
+
"description": "Show only failed deliveries",
|
|
2034
|
+
"name": "failed-only",
|
|
2042
2035
|
"allowNo": false,
|
|
2043
2036
|
"type": "boolean"
|
|
2044
2037
|
}
|
|
2045
2038
|
},
|
|
2046
2039
|
"hasDynamicHelp": false,
|
|
2047
2040
|
"hiddenAliases": [],
|
|
2048
|
-
"id": "
|
|
2041
|
+
"id": "webhooks:deliveries",
|
|
2049
2042
|
"pluginAlias": "@sendly/cli",
|
|
2050
2043
|
"pluginName": "@sendly/cli",
|
|
2051
2044
|
"pluginType": "core",
|
|
@@ -2054,22 +2047,23 @@
|
|
|
2054
2047
|
"relativePath": [
|
|
2055
2048
|
"dist",
|
|
2056
2049
|
"commands",
|
|
2057
|
-
"
|
|
2058
|
-
"
|
|
2050
|
+
"webhooks",
|
|
2051
|
+
"deliveries.js"
|
|
2059
2052
|
]
|
|
2060
2053
|
},
|
|
2061
|
-
"
|
|
2054
|
+
"webhooks:get": {
|
|
2062
2055
|
"aliases": [],
|
|
2063
2056
|
"args": {
|
|
2064
2057
|
"id": {
|
|
2065
|
-
"description": "
|
|
2058
|
+
"description": "Webhook ID",
|
|
2066
2059
|
"name": "id",
|
|
2067
2060
|
"required": true
|
|
2068
2061
|
}
|
|
2069
2062
|
},
|
|
2070
|
-
"description": "
|
|
2063
|
+
"description": "Get webhook details",
|
|
2071
2064
|
"examples": [
|
|
2072
|
-
"<%= config.bin %>
|
|
2065
|
+
"<%= config.bin %> webhooks get whk_abc123",
|
|
2066
|
+
"<%= config.bin %> webhooks get whk_abc123 --json"
|
|
2073
2067
|
],
|
|
2074
2068
|
"flags": {
|
|
2075
2069
|
"json": {
|
|
@@ -2088,7 +2082,7 @@
|
|
|
2088
2082
|
},
|
|
2089
2083
|
"hasDynamicHelp": false,
|
|
2090
2084
|
"hiddenAliases": [],
|
|
2091
|
-
"id": "
|
|
2085
|
+
"id": "webhooks:get",
|
|
2092
2086
|
"pluginAlias": "@sendly/cli",
|
|
2093
2087
|
"pluginName": "@sendly/cli",
|
|
2094
2088
|
"pluginType": "core",
|
|
@@ -2097,23 +2091,17 @@
|
|
|
2097
2091
|
"relativePath": [
|
|
2098
2092
|
"dist",
|
|
2099
2093
|
"commands",
|
|
2100
|
-
"
|
|
2101
|
-
"
|
|
2094
|
+
"webhooks",
|
|
2095
|
+
"get.js"
|
|
2102
2096
|
]
|
|
2103
2097
|
},
|
|
2104
|
-
"
|
|
2098
|
+
"webhooks:list": {
|
|
2105
2099
|
"aliases": [],
|
|
2106
|
-
"args": {
|
|
2107
|
-
|
|
2108
|
-
"description": "Verification ID",
|
|
2109
|
-
"name": "id",
|
|
2110
|
-
"required": true
|
|
2111
|
-
}
|
|
2112
|
-
},
|
|
2113
|
-
"description": "Verify an OTP code",
|
|
2100
|
+
"args": {},
|
|
2101
|
+
"description": "List configured webhooks",
|
|
2114
2102
|
"examples": [
|
|
2115
|
-
"<%= config.bin %>
|
|
2116
|
-
"<%= config.bin %>
|
|
2103
|
+
"<%= config.bin %> webhooks list",
|
|
2104
|
+
"<%= config.bin %> webhooks list --json"
|
|
2117
2105
|
],
|
|
2118
2106
|
"flags": {
|
|
2119
2107
|
"json": {
|
|
@@ -2128,20 +2116,11 @@
|
|
|
2128
2116
|
"name": "quiet",
|
|
2129
2117
|
"allowNo": false,
|
|
2130
2118
|
"type": "boolean"
|
|
2131
|
-
},
|
|
2132
|
-
"code": {
|
|
2133
|
-
"char": "c",
|
|
2134
|
-
"description": "The OTP code to verify",
|
|
2135
|
-
"name": "code",
|
|
2136
|
-
"required": true,
|
|
2137
|
-
"hasDynamicHelp": false,
|
|
2138
|
-
"multiple": false,
|
|
2139
|
-
"type": "option"
|
|
2140
2119
|
}
|
|
2141
2120
|
},
|
|
2142
2121
|
"hasDynamicHelp": false,
|
|
2143
2122
|
"hiddenAliases": [],
|
|
2144
|
-
"id": "
|
|
2123
|
+
"id": "webhooks:list",
|
|
2145
2124
|
"pluginAlias": "@sendly/cli",
|
|
2146
2125
|
"pluginName": "@sendly/cli",
|
|
2147
2126
|
"pluginType": "core",
|
|
@@ -2150,18 +2129,18 @@
|
|
|
2150
2129
|
"relativePath": [
|
|
2151
2130
|
"dist",
|
|
2152
2131
|
"commands",
|
|
2153
|
-
"
|
|
2154
|
-
"
|
|
2132
|
+
"webhooks",
|
|
2133
|
+
"list.js"
|
|
2155
2134
|
]
|
|
2156
2135
|
},
|
|
2157
|
-
"
|
|
2136
|
+
"webhooks:listen": {
|
|
2158
2137
|
"aliases": [],
|
|
2159
2138
|
"args": {},
|
|
2160
|
-
"description": "
|
|
2139
|
+
"description": "Listen for webhooks locally. Receives events in real-time via WebSocket and forwards them to your local server.",
|
|
2161
2140
|
"examples": [
|
|
2162
|
-
"<%= config.bin %>
|
|
2163
|
-
"<%= config.bin %>
|
|
2164
|
-
"<%= config.bin %>
|
|
2141
|
+
"<%= config.bin %> webhooks listen",
|
|
2142
|
+
"<%= config.bin %> webhooks listen --forward http://localhost:3000/webhook",
|
|
2143
|
+
"<%= config.bin %> webhooks listen --events message.delivered,message.failed"
|
|
2165
2144
|
],
|
|
2166
2145
|
"flags": {
|
|
2167
2146
|
"json": {
|
|
@@ -2177,11 +2156,20 @@
|
|
|
2177
2156
|
"allowNo": false,
|
|
2178
2157
|
"type": "boolean"
|
|
2179
2158
|
},
|
|
2180
|
-
"
|
|
2181
|
-
"char": "
|
|
2182
|
-
"description": "
|
|
2183
|
-
"name": "
|
|
2184
|
-
"default":
|
|
2159
|
+
"forward": {
|
|
2160
|
+
"char": "f",
|
|
2161
|
+
"description": "Local URL to forward events to",
|
|
2162
|
+
"name": "forward",
|
|
2163
|
+
"default": "http://localhost:3000/webhook",
|
|
2164
|
+
"hasDynamicHelp": false,
|
|
2165
|
+
"multiple": false,
|
|
2166
|
+
"type": "option"
|
|
2167
|
+
},
|
|
2168
|
+
"events": {
|
|
2169
|
+
"char": "e",
|
|
2170
|
+
"description": "Comma-separated list of events to listen for",
|
|
2171
|
+
"name": "events",
|
|
2172
|
+
"default": "message.sent,message.delivered,message.failed,message.bounced",
|
|
2185
2173
|
"hasDynamicHelp": false,
|
|
2186
2174
|
"multiple": false,
|
|
2187
2175
|
"type": "option"
|
|
@@ -2189,7 +2177,7 @@
|
|
|
2189
2177
|
},
|
|
2190
2178
|
"hasDynamicHelp": false,
|
|
2191
2179
|
"hiddenAliases": [],
|
|
2192
|
-
"id": "
|
|
2180
|
+
"id": "webhooks:listen",
|
|
2193
2181
|
"pluginAlias": "@sendly/cli",
|
|
2194
2182
|
"pluginName": "@sendly/cli",
|
|
2195
2183
|
"pluginType": "core",
|
|
@@ -2198,23 +2186,24 @@
|
|
|
2198
2186
|
"relativePath": [
|
|
2199
2187
|
"dist",
|
|
2200
2188
|
"commands",
|
|
2201
|
-
"
|
|
2202
|
-
"
|
|
2189
|
+
"webhooks",
|
|
2190
|
+
"listen.js"
|
|
2203
2191
|
]
|
|
2204
2192
|
},
|
|
2205
|
-
"
|
|
2193
|
+
"webhooks:rotate-secret": {
|
|
2206
2194
|
"aliases": [],
|
|
2207
2195
|
"args": {
|
|
2208
2196
|
"id": {
|
|
2209
|
-
"description": "
|
|
2197
|
+
"description": "Webhook ID",
|
|
2210
2198
|
"name": "id",
|
|
2211
2199
|
"required": true
|
|
2212
2200
|
}
|
|
2213
2201
|
},
|
|
2214
|
-
"description": "
|
|
2202
|
+
"description": "Rotate webhook secret",
|
|
2215
2203
|
"examples": [
|
|
2216
|
-
"<%= config.bin %>
|
|
2217
|
-
"<%= config.bin %>
|
|
2204
|
+
"<%= config.bin %> webhooks rotate-secret whk_abc123",
|
|
2205
|
+
"<%= config.bin %> webhooks rotate-secret whk_abc123 --yes",
|
|
2206
|
+
"<%= config.bin %> webhooks rotate-secret whk_abc123 --json"
|
|
2218
2207
|
],
|
|
2219
2208
|
"flags": {
|
|
2220
2209
|
"json": {
|
|
@@ -2229,11 +2218,18 @@
|
|
|
2229
2218
|
"name": "quiet",
|
|
2230
2219
|
"allowNo": false,
|
|
2231
2220
|
"type": "boolean"
|
|
2221
|
+
},
|
|
2222
|
+
"yes": {
|
|
2223
|
+
"char": "y",
|
|
2224
|
+
"description": "Skip confirmation prompt",
|
|
2225
|
+
"name": "yes",
|
|
2226
|
+
"allowNo": false,
|
|
2227
|
+
"type": "boolean"
|
|
2232
2228
|
}
|
|
2233
2229
|
},
|
|
2234
2230
|
"hasDynamicHelp": false,
|
|
2235
2231
|
"hiddenAliases": [],
|
|
2236
|
-
"id": "
|
|
2232
|
+
"id": "webhooks:rotate-secret",
|
|
2237
2233
|
"pluginAlias": "@sendly/cli",
|
|
2238
2234
|
"pluginName": "@sendly/cli",
|
|
2239
2235
|
"pluginType": "core",
|
|
@@ -2242,20 +2238,23 @@
|
|
|
2242
2238
|
"relativePath": [
|
|
2243
2239
|
"dist",
|
|
2244
2240
|
"commands",
|
|
2245
|
-
"
|
|
2246
|
-
"
|
|
2241
|
+
"webhooks",
|
|
2242
|
+
"rotate-secret.js"
|
|
2247
2243
|
]
|
|
2248
2244
|
},
|
|
2249
|
-
"
|
|
2245
|
+
"webhooks:test": {
|
|
2250
2246
|
"aliases": [],
|
|
2251
|
-
"args": {
|
|
2252
|
-
|
|
2247
|
+
"args": {
|
|
2248
|
+
"id": {
|
|
2249
|
+
"description": "Webhook ID to test",
|
|
2250
|
+
"name": "id",
|
|
2251
|
+
"required": true
|
|
2252
|
+
}
|
|
2253
|
+
},
|
|
2254
|
+
"description": "Send a test event to a webhook",
|
|
2253
2255
|
"examples": [
|
|
2254
|
-
"<%= config.bin %>
|
|
2255
|
-
"<%= config.bin %>
|
|
2256
|
-
"<%= config.bin %> verify send --to \"+1234567890\" --template tpl_preset_2fa",
|
|
2257
|
-
"<%= config.bin %> verify send --to \"+1234567890\" --profile vp_xxx",
|
|
2258
|
-
"<%= config.bin %> verify send --to \"+1234567890\" --code-length 8 --timeout 120"
|
|
2256
|
+
"<%= config.bin %> webhooks test whk_abc123",
|
|
2257
|
+
"<%= config.bin %> webhooks test whk_abc123 --json"
|
|
2259
2258
|
],
|
|
2260
2259
|
"flags": {
|
|
2261
2260
|
"json": {
|
|
@@ -2270,57 +2269,11 @@
|
|
|
2270
2269
|
"name": "quiet",
|
|
2271
2270
|
"allowNo": false,
|
|
2272
2271
|
"type": "boolean"
|
|
2273
|
-
},
|
|
2274
|
-
"to": {
|
|
2275
|
-
"char": "t",
|
|
2276
|
-
"description": "Recipient phone number (E.164 format)",
|
|
2277
|
-
"name": "to",
|
|
2278
|
-
"required": true,
|
|
2279
|
-
"hasDynamicHelp": false,
|
|
2280
|
-
"multiple": false,
|
|
2281
|
-
"type": "option"
|
|
2282
|
-
},
|
|
2283
|
-
"app-name": {
|
|
2284
|
-
"char": "a",
|
|
2285
|
-
"description": "App name shown in message (defaults to your business name)",
|
|
2286
|
-
"name": "app-name",
|
|
2287
|
-
"hasDynamicHelp": false,
|
|
2288
|
-
"multiple": false,
|
|
2289
|
-
"type": "option"
|
|
2290
|
-
},
|
|
2291
|
-
"template": {
|
|
2292
|
-
"description": "Template ID to use (defaults to tpl_preset_otp)",
|
|
2293
|
-
"name": "template",
|
|
2294
|
-
"hasDynamicHelp": false,
|
|
2295
|
-
"multiple": false,
|
|
2296
|
-
"type": "option"
|
|
2297
|
-
},
|
|
2298
|
-
"profile": {
|
|
2299
|
-
"char": "p",
|
|
2300
|
-
"description": "Verify profile ID for preconfigured settings",
|
|
2301
|
-
"name": "profile",
|
|
2302
|
-
"hasDynamicHelp": false,
|
|
2303
|
-
"multiple": false,
|
|
2304
|
-
"type": "option"
|
|
2305
|
-
},
|
|
2306
|
-
"code-length": {
|
|
2307
|
-
"description": "Length of OTP code (4-10, default: 6)",
|
|
2308
|
-
"name": "code-length",
|
|
2309
|
-
"hasDynamicHelp": false,
|
|
2310
|
-
"multiple": false,
|
|
2311
|
-
"type": "option"
|
|
2312
|
-
},
|
|
2313
|
-
"timeout": {
|
|
2314
|
-
"description": "Code validity in seconds (60-3600, default: 300)",
|
|
2315
|
-
"name": "timeout",
|
|
2316
|
-
"hasDynamicHelp": false,
|
|
2317
|
-
"multiple": false,
|
|
2318
|
-
"type": "option"
|
|
2319
2272
|
}
|
|
2320
2273
|
},
|
|
2321
2274
|
"hasDynamicHelp": false,
|
|
2322
2275
|
"hiddenAliases": [],
|
|
2323
|
-
"id": "
|
|
2276
|
+
"id": "webhooks:test",
|
|
2324
2277
|
"pluginAlias": "@sendly/cli",
|
|
2325
2278
|
"pluginName": "@sendly/cli",
|
|
2326
2279
|
"pluginType": "core",
|
|
@@ -2329,23 +2282,26 @@
|
|
|
2329
2282
|
"relativePath": [
|
|
2330
2283
|
"dist",
|
|
2331
2284
|
"commands",
|
|
2332
|
-
"
|
|
2333
|
-
"
|
|
2285
|
+
"webhooks",
|
|
2286
|
+
"test.js"
|
|
2334
2287
|
]
|
|
2335
2288
|
},
|
|
2336
|
-
"
|
|
2289
|
+
"webhooks:update": {
|
|
2337
2290
|
"aliases": [],
|
|
2338
2291
|
"args": {
|
|
2339
2292
|
"id": {
|
|
2340
|
-
"description": "
|
|
2293
|
+
"description": "Webhook ID to update",
|
|
2341
2294
|
"name": "id",
|
|
2342
2295
|
"required": true
|
|
2343
2296
|
}
|
|
2344
2297
|
},
|
|
2345
|
-
"description": "
|
|
2298
|
+
"description": "Update a webhook",
|
|
2346
2299
|
"examples": [
|
|
2347
|
-
"<%= config.bin %>
|
|
2348
|
-
"<%= config.bin %>
|
|
2300
|
+
"<%= config.bin %> webhooks update whk_abc123 --url https://newdomain.com/webhook",
|
|
2301
|
+
"<%= config.bin %> webhooks update whk_abc123 --events message.delivered,message.failed",
|
|
2302
|
+
"<%= config.bin %> webhooks update whk_abc123 --description \"Updated production webhook\"",
|
|
2303
|
+
"<%= config.bin %> webhooks update whk_abc123 --active false",
|
|
2304
|
+
"<%= config.bin %> webhooks update whk_abc123 --url https://newdomain.com/webhook --events message.sent --json"
|
|
2349
2305
|
],
|
|
2350
2306
|
"flags": {
|
|
2351
2307
|
"json": {
|
|
@@ -2360,11 +2316,55 @@
|
|
|
2360
2316
|
"name": "quiet",
|
|
2361
2317
|
"allowNo": false,
|
|
2362
2318
|
"type": "boolean"
|
|
2319
|
+
},
|
|
2320
|
+
"url": {
|
|
2321
|
+
"char": "u",
|
|
2322
|
+
"description": "Update webhook URL (must be HTTPS)",
|
|
2323
|
+
"name": "url",
|
|
2324
|
+
"hasDynamicHelp": false,
|
|
2325
|
+
"multiple": false,
|
|
2326
|
+
"type": "option"
|
|
2327
|
+
},
|
|
2328
|
+
"events": {
|
|
2329
|
+
"char": "e",
|
|
2330
|
+
"description": "Update events list (comma-separated)",
|
|
2331
|
+
"name": "events",
|
|
2332
|
+
"hasDynamicHelp": false,
|
|
2333
|
+
"multiple": false,
|
|
2334
|
+
"type": "option"
|
|
2335
|
+
},
|
|
2336
|
+
"description": {
|
|
2337
|
+
"char": "d",
|
|
2338
|
+
"description": "Update description",
|
|
2339
|
+
"name": "description",
|
|
2340
|
+
"hasDynamicHelp": false,
|
|
2341
|
+
"multiple": false,
|
|
2342
|
+
"type": "option"
|
|
2343
|
+
},
|
|
2344
|
+
"active": {
|
|
2345
|
+
"char": "a",
|
|
2346
|
+
"description": "Enable or disable the webhook",
|
|
2347
|
+
"name": "active",
|
|
2348
|
+
"allowNo": true,
|
|
2349
|
+
"type": "boolean"
|
|
2350
|
+
},
|
|
2351
|
+
"mode": {
|
|
2352
|
+
"char": "m",
|
|
2353
|
+
"description": "Update event mode filter: all, test (sandbox only), live (production only)",
|
|
2354
|
+
"name": "mode",
|
|
2355
|
+
"hasDynamicHelp": false,
|
|
2356
|
+
"multiple": false,
|
|
2357
|
+
"options": [
|
|
2358
|
+
"all",
|
|
2359
|
+
"test",
|
|
2360
|
+
"live"
|
|
2361
|
+
],
|
|
2362
|
+
"type": "option"
|
|
2363
2363
|
}
|
|
2364
2364
|
},
|
|
2365
2365
|
"hasDynamicHelp": false,
|
|
2366
2366
|
"hiddenAliases": [],
|
|
2367
|
-
"id": "
|
|
2367
|
+
"id": "webhooks:update",
|
|
2368
2368
|
"pluginAlias": "@sendly/cli",
|
|
2369
2369
|
"pluginName": "@sendly/cli",
|
|
2370
2370
|
"pluginType": "core",
|
|
@@ -2373,10 +2373,10 @@
|
|
|
2373
2373
|
"relativePath": [
|
|
2374
2374
|
"dist",
|
|
2375
2375
|
"commands",
|
|
2376
|
-
"
|
|
2377
|
-
"
|
|
2376
|
+
"webhooks",
|
|
2377
|
+
"update.js"
|
|
2378
2378
|
]
|
|
2379
2379
|
}
|
|
2380
2380
|
},
|
|
2381
|
-
"version": "3.
|
|
2381
|
+
"version": "3.12.0"
|
|
2382
2382
|
}
|