@sendly/cli 2.2.0 → 3.0.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.
@@ -1039,6 +1039,228 @@
1039
1039
  "send.js"
1040
1040
  ]
1041
1041
  },
1042
+ "webhooks:create": {
1043
+ "aliases": [],
1044
+ "args": {},
1045
+ "description": "Create a webhook",
1046
+ "examples": [
1047
+ "<%= config.bin %> webhooks create --url https://myapp.com/webhook --events message.delivered",
1048
+ "<%= config.bin %> webhooks create --url https://myapp.com/webhook --events message.delivered,message.failed --description \"Production webhook\"",
1049
+ "<%= config.bin %> webhooks create --url https://webhook.site/abc123 --events message.sent --json"
1050
+ ],
1051
+ "flags": {
1052
+ "json": {
1053
+ "description": "Output in JSON format",
1054
+ "name": "json",
1055
+ "allowNo": false,
1056
+ "type": "boolean"
1057
+ },
1058
+ "quiet": {
1059
+ "char": "q",
1060
+ "description": "Minimal output",
1061
+ "name": "quiet",
1062
+ "allowNo": false,
1063
+ "type": "boolean"
1064
+ },
1065
+ "url": {
1066
+ "char": "u",
1067
+ "description": "Webhook URL (must be HTTPS)",
1068
+ "name": "url",
1069
+ "required": true,
1070
+ "hasDynamicHelp": false,
1071
+ "multiple": false,
1072
+ "type": "option"
1073
+ },
1074
+ "events": {
1075
+ "char": "e",
1076
+ "description": "Comma-separated list of events to listen for",
1077
+ "name": "events",
1078
+ "required": true,
1079
+ "hasDynamicHelp": false,
1080
+ "multiple": false,
1081
+ "type": "option"
1082
+ },
1083
+ "description": {
1084
+ "char": "d",
1085
+ "description": "Description for the webhook",
1086
+ "name": "description",
1087
+ "hasDynamicHelp": false,
1088
+ "multiple": false,
1089
+ "type": "option"
1090
+ }
1091
+ },
1092
+ "hasDynamicHelp": false,
1093
+ "hiddenAliases": [],
1094
+ "id": "webhooks:create",
1095
+ "pluginAlias": "@sendly/cli",
1096
+ "pluginName": "@sendly/cli",
1097
+ "pluginType": "core",
1098
+ "strict": true,
1099
+ "isESM": true,
1100
+ "relativePath": [
1101
+ "dist",
1102
+ "commands",
1103
+ "webhooks",
1104
+ "create.js"
1105
+ ]
1106
+ },
1107
+ "webhooks:delete": {
1108
+ "aliases": [],
1109
+ "args": {
1110
+ "id": {
1111
+ "description": "Webhook ID to delete",
1112
+ "name": "id",
1113
+ "required": true
1114
+ }
1115
+ },
1116
+ "description": "Delete a webhook",
1117
+ "examples": [
1118
+ "<%= config.bin %> webhooks delete whk_abc123",
1119
+ "<%= config.bin %> webhooks delete whk_abc123 --yes",
1120
+ "<%= config.bin %> webhooks delete whk_abc123 --json"
1121
+ ],
1122
+ "flags": {
1123
+ "json": {
1124
+ "description": "Output in JSON format",
1125
+ "name": "json",
1126
+ "allowNo": false,
1127
+ "type": "boolean"
1128
+ },
1129
+ "quiet": {
1130
+ "char": "q",
1131
+ "description": "Minimal output",
1132
+ "name": "quiet",
1133
+ "allowNo": false,
1134
+ "type": "boolean"
1135
+ },
1136
+ "yes": {
1137
+ "char": "y",
1138
+ "description": "Skip confirmation prompt",
1139
+ "name": "yes",
1140
+ "allowNo": false,
1141
+ "type": "boolean"
1142
+ }
1143
+ },
1144
+ "hasDynamicHelp": false,
1145
+ "hiddenAliases": [],
1146
+ "id": "webhooks:delete",
1147
+ "pluginAlias": "@sendly/cli",
1148
+ "pluginName": "@sendly/cli",
1149
+ "pluginType": "core",
1150
+ "strict": true,
1151
+ "isESM": true,
1152
+ "relativePath": [
1153
+ "dist",
1154
+ "commands",
1155
+ "webhooks",
1156
+ "delete.js"
1157
+ ]
1158
+ },
1159
+ "webhooks:deliveries": {
1160
+ "aliases": [],
1161
+ "args": {
1162
+ "id": {
1163
+ "description": "Webhook ID",
1164
+ "name": "id",
1165
+ "required": true
1166
+ }
1167
+ },
1168
+ "description": "View webhook delivery history",
1169
+ "examples": [
1170
+ "<%= config.bin %> webhooks deliveries whk_abc123",
1171
+ "<%= config.bin %> webhooks deliveries whk_abc123 --limit 20",
1172
+ "<%= config.bin %> webhooks deliveries whk_abc123 --failed-only",
1173
+ "<%= config.bin %> webhooks deliveries whk_abc123 --json"
1174
+ ],
1175
+ "flags": {
1176
+ "json": {
1177
+ "description": "Output in JSON format",
1178
+ "name": "json",
1179
+ "allowNo": false,
1180
+ "type": "boolean"
1181
+ },
1182
+ "quiet": {
1183
+ "char": "q",
1184
+ "description": "Minimal output",
1185
+ "name": "quiet",
1186
+ "allowNo": false,
1187
+ "type": "boolean"
1188
+ },
1189
+ "limit": {
1190
+ "char": "l",
1191
+ "description": "Number of deliveries to show",
1192
+ "name": "limit",
1193
+ "default": 10,
1194
+ "hasDynamicHelp": false,
1195
+ "multiple": false,
1196
+ "type": "option"
1197
+ },
1198
+ "failed-only": {
1199
+ "description": "Show only failed deliveries",
1200
+ "name": "failed-only",
1201
+ "allowNo": false,
1202
+ "type": "boolean"
1203
+ }
1204
+ },
1205
+ "hasDynamicHelp": false,
1206
+ "hiddenAliases": [],
1207
+ "id": "webhooks:deliveries",
1208
+ "pluginAlias": "@sendly/cli",
1209
+ "pluginName": "@sendly/cli",
1210
+ "pluginType": "core",
1211
+ "strict": true,
1212
+ "isESM": true,
1213
+ "relativePath": [
1214
+ "dist",
1215
+ "commands",
1216
+ "webhooks",
1217
+ "deliveries.js"
1218
+ ]
1219
+ },
1220
+ "webhooks:get": {
1221
+ "aliases": [],
1222
+ "args": {
1223
+ "id": {
1224
+ "description": "Webhook ID",
1225
+ "name": "id",
1226
+ "required": true
1227
+ }
1228
+ },
1229
+ "description": "Get webhook details",
1230
+ "examples": [
1231
+ "<%= config.bin %> webhooks get whk_abc123",
1232
+ "<%= config.bin %> webhooks get whk_abc123 --json"
1233
+ ],
1234
+ "flags": {
1235
+ "json": {
1236
+ "description": "Output in JSON format",
1237
+ "name": "json",
1238
+ "allowNo": false,
1239
+ "type": "boolean"
1240
+ },
1241
+ "quiet": {
1242
+ "char": "q",
1243
+ "description": "Minimal output",
1244
+ "name": "quiet",
1245
+ "allowNo": false,
1246
+ "type": "boolean"
1247
+ }
1248
+ },
1249
+ "hasDynamicHelp": false,
1250
+ "hiddenAliases": [],
1251
+ "id": "webhooks:get",
1252
+ "pluginAlias": "@sendly/cli",
1253
+ "pluginName": "@sendly/cli",
1254
+ "pluginType": "core",
1255
+ "strict": true,
1256
+ "isESM": true,
1257
+ "relativePath": [
1258
+ "dist",
1259
+ "commands",
1260
+ "webhooks",
1261
+ "get.js"
1262
+ ]
1263
+ },
1042
1264
  "webhooks:list": {
1043
1265
  "aliases": [],
1044
1266
  "args": {},
@@ -1141,7 +1363,181 @@
1141
1363
  "webhooks",
1142
1364
  "listen.js"
1143
1365
  ]
1366
+ },
1367
+ "webhooks:rotate-secret": {
1368
+ "aliases": [],
1369
+ "args": {
1370
+ "id": {
1371
+ "description": "Webhook ID",
1372
+ "name": "id",
1373
+ "required": true
1374
+ }
1375
+ },
1376
+ "description": "Rotate webhook secret",
1377
+ "examples": [
1378
+ "<%= config.bin %> webhooks rotate-secret whk_abc123",
1379
+ "<%= config.bin %> webhooks rotate-secret whk_abc123 --yes",
1380
+ "<%= config.bin %> webhooks rotate-secret whk_abc123 --json"
1381
+ ],
1382
+ "flags": {
1383
+ "json": {
1384
+ "description": "Output in JSON format",
1385
+ "name": "json",
1386
+ "allowNo": false,
1387
+ "type": "boolean"
1388
+ },
1389
+ "quiet": {
1390
+ "char": "q",
1391
+ "description": "Minimal output",
1392
+ "name": "quiet",
1393
+ "allowNo": false,
1394
+ "type": "boolean"
1395
+ },
1396
+ "yes": {
1397
+ "char": "y",
1398
+ "description": "Skip confirmation prompt",
1399
+ "name": "yes",
1400
+ "allowNo": false,
1401
+ "type": "boolean"
1402
+ }
1403
+ },
1404
+ "hasDynamicHelp": false,
1405
+ "hiddenAliases": [],
1406
+ "id": "webhooks:rotate-secret",
1407
+ "pluginAlias": "@sendly/cli",
1408
+ "pluginName": "@sendly/cli",
1409
+ "pluginType": "core",
1410
+ "strict": true,
1411
+ "isESM": true,
1412
+ "relativePath": [
1413
+ "dist",
1414
+ "commands",
1415
+ "webhooks",
1416
+ "rotate-secret.js"
1417
+ ]
1418
+ },
1419
+ "webhooks:test": {
1420
+ "aliases": [],
1421
+ "args": {
1422
+ "id": {
1423
+ "description": "Webhook ID to test",
1424
+ "name": "id",
1425
+ "required": true
1426
+ }
1427
+ },
1428
+ "description": "Send a test event to a webhook",
1429
+ "examples": [
1430
+ "<%= config.bin %> webhooks test whk_abc123",
1431
+ "<%= config.bin %> webhooks test whk_abc123 --json"
1432
+ ],
1433
+ "flags": {
1434
+ "json": {
1435
+ "description": "Output in JSON format",
1436
+ "name": "json",
1437
+ "allowNo": false,
1438
+ "type": "boolean"
1439
+ },
1440
+ "quiet": {
1441
+ "char": "q",
1442
+ "description": "Minimal output",
1443
+ "name": "quiet",
1444
+ "allowNo": false,
1445
+ "type": "boolean"
1446
+ }
1447
+ },
1448
+ "hasDynamicHelp": false,
1449
+ "hiddenAliases": [],
1450
+ "id": "webhooks:test",
1451
+ "pluginAlias": "@sendly/cli",
1452
+ "pluginName": "@sendly/cli",
1453
+ "pluginType": "core",
1454
+ "strict": true,
1455
+ "isESM": true,
1456
+ "relativePath": [
1457
+ "dist",
1458
+ "commands",
1459
+ "webhooks",
1460
+ "test.js"
1461
+ ]
1462
+ },
1463
+ "webhooks:update": {
1464
+ "aliases": [],
1465
+ "args": {
1466
+ "id": {
1467
+ "description": "Webhook ID to update",
1468
+ "name": "id",
1469
+ "required": true
1470
+ }
1471
+ },
1472
+ "description": "Update a webhook",
1473
+ "examples": [
1474
+ "<%= config.bin %> webhooks update whk_abc123 --url https://newdomain.com/webhook",
1475
+ "<%= config.bin %> webhooks update whk_abc123 --events message.delivered,message.failed",
1476
+ "<%= config.bin %> webhooks update whk_abc123 --description \"Updated production webhook\"",
1477
+ "<%= config.bin %> webhooks update whk_abc123 --active false",
1478
+ "<%= config.bin %> webhooks update whk_abc123 --url https://newdomain.com/webhook --events message.sent --json"
1479
+ ],
1480
+ "flags": {
1481
+ "json": {
1482
+ "description": "Output in JSON format",
1483
+ "name": "json",
1484
+ "allowNo": false,
1485
+ "type": "boolean"
1486
+ },
1487
+ "quiet": {
1488
+ "char": "q",
1489
+ "description": "Minimal output",
1490
+ "name": "quiet",
1491
+ "allowNo": false,
1492
+ "type": "boolean"
1493
+ },
1494
+ "url": {
1495
+ "char": "u",
1496
+ "description": "Update webhook URL (must be HTTPS)",
1497
+ "name": "url",
1498
+ "hasDynamicHelp": false,
1499
+ "multiple": false,
1500
+ "type": "option"
1501
+ },
1502
+ "events": {
1503
+ "char": "e",
1504
+ "description": "Update events list (comma-separated)",
1505
+ "name": "events",
1506
+ "hasDynamicHelp": false,
1507
+ "multiple": false,
1508
+ "type": "option"
1509
+ },
1510
+ "description": {
1511
+ "char": "d",
1512
+ "description": "Update description",
1513
+ "name": "description",
1514
+ "hasDynamicHelp": false,
1515
+ "multiple": false,
1516
+ "type": "option"
1517
+ },
1518
+ "active": {
1519
+ "char": "a",
1520
+ "description": "Enable or disable the webhook",
1521
+ "name": "active",
1522
+ "allowNo": true,
1523
+ "type": "boolean"
1524
+ }
1525
+ },
1526
+ "hasDynamicHelp": false,
1527
+ "hiddenAliases": [],
1528
+ "id": "webhooks:update",
1529
+ "pluginAlias": "@sendly/cli",
1530
+ "pluginName": "@sendly/cli",
1531
+ "pluginType": "core",
1532
+ "strict": true,
1533
+ "isESM": true,
1534
+ "relativePath": [
1535
+ "dist",
1536
+ "commands",
1537
+ "webhooks",
1538
+ "update.js"
1539
+ ]
1144
1540
  }
1145
1541
  },
1146
- "version": "2.2.0"
1542
+ "version": "3.0.0"
1147
1543
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sendly/cli",
3
- "version": "2.2.0",
3
+ "version": "3.0.0",
4
4
  "type": "module",
5
5
  "description": "Sendly CLI - Send SMS from your terminal",
6
6
  "author": "Sendly <support@sendly.live>",