@sendly/cli 3.19.0 → 3.20.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.
@@ -901,153 +901,6 @@
901
901
  "update.js"
902
902
  ]
903
903
  },
904
- "config:get": {
905
- "aliases": [],
906
- "args": {
907
- "key": {
908
- "description": "Configuration key",
909
- "name": "key",
910
- "options": [
911
- "environment",
912
- "baseUrl",
913
- "defaultFormat",
914
- "colorEnabled"
915
- ],
916
- "required": true
917
- }
918
- },
919
- "description": "Get a configuration value",
920
- "examples": [
921
- "<%= config.bin %> config get environment",
922
- "<%= config.bin %> config get baseUrl"
923
- ],
924
- "flags": {
925
- "json": {
926
- "description": "Output in JSON format",
927
- "name": "json",
928
- "allowNo": false,
929
- "type": "boolean"
930
- },
931
- "quiet": {
932
- "char": "q",
933
- "description": "Minimal output",
934
- "name": "quiet",
935
- "allowNo": false,
936
- "type": "boolean"
937
- }
938
- },
939
- "hasDynamicHelp": false,
940
- "hiddenAliases": [],
941
- "id": "config:get",
942
- "pluginAlias": "@sendly/cli",
943
- "pluginName": "@sendly/cli",
944
- "pluginType": "core",
945
- "strict": true,
946
- "enableJsonFlag": false,
947
- "isESM": true,
948
- "relativePath": [
949
- "dist",
950
- "commands",
951
- "config",
952
- "get.js"
953
- ]
954
- },
955
- "config:list": {
956
- "aliases": [],
957
- "args": {},
958
- "description": "List all configuration values",
959
- "examples": [
960
- "<%= config.bin %> config list",
961
- "<%= config.bin %> config list --json"
962
- ],
963
- "flags": {
964
- "json": {
965
- "description": "Output in JSON format",
966
- "name": "json",
967
- "allowNo": false,
968
- "type": "boolean"
969
- },
970
- "quiet": {
971
- "char": "q",
972
- "description": "Minimal output",
973
- "name": "quiet",
974
- "allowNo": false,
975
- "type": "boolean"
976
- }
977
- },
978
- "hasDynamicHelp": false,
979
- "hiddenAliases": [],
980
- "id": "config:list",
981
- "pluginAlias": "@sendly/cli",
982
- "pluginName": "@sendly/cli",
983
- "pluginType": "core",
984
- "strict": true,
985
- "enableJsonFlag": false,
986
- "isESM": true,
987
- "relativePath": [
988
- "dist",
989
- "commands",
990
- "config",
991
- "list.js"
992
- ]
993
- },
994
- "config:set": {
995
- "aliases": [],
996
- "args": {
997
- "key": {
998
- "description": "Configuration key",
999
- "name": "key",
1000
- "options": [
1001
- "environment",
1002
- "baseUrl",
1003
- "defaultFormat",
1004
- "colorEnabled"
1005
- ],
1006
- "required": true
1007
- },
1008
- "value": {
1009
- "description": "Configuration value",
1010
- "name": "value",
1011
- "required": true
1012
- }
1013
- },
1014
- "description": "Set a configuration value",
1015
- "examples": [
1016
- "<%= config.bin %> config set environment live",
1017
- "<%= config.bin %> config set defaultFormat json",
1018
- "<%= config.bin %> config set baseUrl https://api.sendly.live"
1019
- ],
1020
- "flags": {
1021
- "json": {
1022
- "description": "Output in JSON format",
1023
- "name": "json",
1024
- "allowNo": false,
1025
- "type": "boolean"
1026
- },
1027
- "quiet": {
1028
- "char": "q",
1029
- "description": "Minimal output",
1030
- "name": "quiet",
1031
- "allowNo": false,
1032
- "type": "boolean"
1033
- }
1034
- },
1035
- "hasDynamicHelp": false,
1036
- "hiddenAliases": [],
1037
- "id": "config:set",
1038
- "pluginAlias": "@sendly/cli",
1039
- "pluginName": "@sendly/cli",
1040
- "pluginType": "core",
1041
- "strict": true,
1042
- "enableJsonFlag": false,
1043
- "isESM": true,
1044
- "relativePath": [
1045
- "dist",
1046
- "commands",
1047
- "config",
1048
- "set.js"
1049
- ]
1050
- },
1051
904
  "contacts:create": {
1052
905
  "aliases": [],
1053
906
  "args": {},
@@ -1542,14 +1395,25 @@
1542
1395
  "transfer.js"
1543
1396
  ]
1544
1397
  },
1545
- "enterprise:billing": {
1398
+ "config:get": {
1546
1399
  "aliases": [],
1547
- "args": {},
1548
- "description": "Get billing breakdown by workspace",
1400
+ "args": {
1401
+ "key": {
1402
+ "description": "Configuration key",
1403
+ "name": "key",
1404
+ "options": [
1405
+ "environment",
1406
+ "baseUrl",
1407
+ "defaultFormat",
1408
+ "colorEnabled"
1409
+ ],
1410
+ "required": true
1411
+ }
1412
+ },
1413
+ "description": "Get a configuration value",
1549
1414
  "examples": [
1550
- "<%= config.bin %> enterprise billing",
1551
- "<%= config.bin %> enterprise billing --page 2",
1552
- "<%= config.bin %> enterprise billing --json"
1415
+ "<%= config.bin %> config get environment",
1416
+ "<%= config.bin %> config get baseUrl"
1553
1417
  ],
1554
1418
  "flags": {
1555
1419
  "json": {
@@ -1564,52 +1428,31 @@
1564
1428
  "name": "quiet",
1565
1429
  "allowNo": false,
1566
1430
  "type": "boolean"
1567
- },
1568
- "page": {
1569
- "description": "Page number",
1570
- "name": "page",
1571
- "default": 1,
1572
- "hasDynamicHelp": false,
1573
- "multiple": false,
1574
- "type": "option"
1575
- },
1576
- "limit": {
1577
- "description": "Results per page",
1578
- "name": "limit",
1579
- "default": 20,
1580
- "hasDynamicHelp": false,
1581
- "multiple": false,
1582
- "type": "option"
1583
1431
  }
1584
1432
  },
1585
1433
  "hasDynamicHelp": false,
1586
1434
  "hiddenAliases": [],
1587
- "id": "enterprise:billing",
1435
+ "id": "config:get",
1588
1436
  "pluginAlias": "@sendly/cli",
1589
1437
  "pluginName": "@sendly/cli",
1590
1438
  "pluginType": "core",
1591
1439
  "strict": true,
1440
+ "enableJsonFlag": false,
1592
1441
  "isESM": true,
1593
1442
  "relativePath": [
1594
1443
  "dist",
1595
1444
  "commands",
1596
- "enterprise",
1597
- "billing.js"
1445
+ "config",
1446
+ "get.js"
1598
1447
  ]
1599
1448
  },
1600
- "enterprise:credits": {
1449
+ "config:list": {
1601
1450
  "aliases": [],
1602
- "args": {
1603
- "workspaceId": {
1604
- "description": "Workspace ID",
1605
- "name": "workspaceId",
1606
- "required": true
1607
- }
1608
- },
1609
- "description": "Check credit balance for an enterprise workspace",
1451
+ "args": {},
1452
+ "description": "List all configuration values",
1610
1453
  "examples": [
1611
- "<%= config.bin %> enterprise credits org_abc123",
1612
- "<%= config.bin %> enterprise credits org_abc123 --json"
1454
+ "<%= config.bin %> config list",
1455
+ "<%= config.bin %> config list --json"
1613
1456
  ],
1614
1457
  "flags": {
1615
1458
  "json": {
@@ -1628,27 +1471,45 @@
1628
1471
  },
1629
1472
  "hasDynamicHelp": false,
1630
1473
  "hiddenAliases": [],
1631
- "id": "enterprise:credits",
1474
+ "id": "config:list",
1632
1475
  "pluginAlias": "@sendly/cli",
1633
1476
  "pluginName": "@sendly/cli",
1634
1477
  "pluginType": "core",
1635
1478
  "strict": true,
1479
+ "enableJsonFlag": false,
1636
1480
  "isESM": true,
1637
1481
  "relativePath": [
1638
1482
  "dist",
1639
1483
  "commands",
1640
- "enterprise",
1641
- "credits.js"
1484
+ "config",
1485
+ "list.js"
1642
1486
  ]
1643
1487
  },
1644
- "enterprise:provision": {
1488
+ "config:set": {
1645
1489
  "aliases": [],
1646
- "args": {},
1647
- "description": "Provision a new workspace with full setup, or bulk provision from a JSON file",
1490
+ "args": {
1491
+ "key": {
1492
+ "description": "Configuration key",
1493
+ "name": "key",
1494
+ "options": [
1495
+ "environment",
1496
+ "baseUrl",
1497
+ "defaultFormat",
1498
+ "colorEnabled"
1499
+ ],
1500
+ "required": true
1501
+ },
1502
+ "value": {
1503
+ "description": "Configuration value",
1504
+ "name": "value",
1505
+ "required": true
1506
+ }
1507
+ },
1508
+ "description": "Set a configuration value",
1648
1509
  "examples": [
1649
- "<%= config.bin %> enterprise provision --name \"Acme Corp\" --credits 1000",
1650
- "<%= config.bin %> enterprise provision --name \"Acme Corp\" --credits 500 --inherit-from org_abc123 --webhook-url https://example.com/hook",
1651
- "<%= config.bin %> enterprise provision --bulk workspaces.json"
1510
+ "<%= config.bin %> config set environment live",
1511
+ "<%= config.bin %> config set defaultFormat json",
1512
+ "<%= config.bin %> config set baseUrl https://api.sendly.live"
1652
1513
  ],
1653
1514
  "flags": {
1654
1515
  "json": {
@@ -1663,17 +1524,156 @@
1663
1524
  "name": "quiet",
1664
1525
  "allowNo": false,
1665
1526
  "type": "boolean"
1666
- },
1667
- "name": {
1668
- "char": "n",
1669
- "description": "Workspace name (single provision)",
1670
- "name": "name",
1671
- "hasDynamicHelp": false,
1672
- "multiple": false,
1673
- "type": "option"
1674
- },
1675
- "credits": {
1676
- "char": "c",
1527
+ }
1528
+ },
1529
+ "hasDynamicHelp": false,
1530
+ "hiddenAliases": [],
1531
+ "id": "config:set",
1532
+ "pluginAlias": "@sendly/cli",
1533
+ "pluginName": "@sendly/cli",
1534
+ "pluginType": "core",
1535
+ "strict": true,
1536
+ "enableJsonFlag": false,
1537
+ "isESM": true,
1538
+ "relativePath": [
1539
+ "dist",
1540
+ "commands",
1541
+ "config",
1542
+ "set.js"
1543
+ ]
1544
+ },
1545
+ "enterprise:billing": {
1546
+ "aliases": [],
1547
+ "args": {},
1548
+ "description": "Get billing breakdown by workspace",
1549
+ "examples": [
1550
+ "<%= config.bin %> enterprise billing",
1551
+ "<%= config.bin %> enterprise billing --page 2",
1552
+ "<%= config.bin %> enterprise billing --json"
1553
+ ],
1554
+ "flags": {
1555
+ "json": {
1556
+ "description": "Output in JSON format",
1557
+ "name": "json",
1558
+ "allowNo": false,
1559
+ "type": "boolean"
1560
+ },
1561
+ "quiet": {
1562
+ "char": "q",
1563
+ "description": "Minimal output",
1564
+ "name": "quiet",
1565
+ "allowNo": false,
1566
+ "type": "boolean"
1567
+ },
1568
+ "page": {
1569
+ "description": "Page number",
1570
+ "name": "page",
1571
+ "default": 1,
1572
+ "hasDynamicHelp": false,
1573
+ "multiple": false,
1574
+ "type": "option"
1575
+ },
1576
+ "limit": {
1577
+ "description": "Results per page",
1578
+ "name": "limit",
1579
+ "default": 20,
1580
+ "hasDynamicHelp": false,
1581
+ "multiple": false,
1582
+ "type": "option"
1583
+ }
1584
+ },
1585
+ "hasDynamicHelp": false,
1586
+ "hiddenAliases": [],
1587
+ "id": "enterprise:billing",
1588
+ "pluginAlias": "@sendly/cli",
1589
+ "pluginName": "@sendly/cli",
1590
+ "pluginType": "core",
1591
+ "strict": true,
1592
+ "isESM": true,
1593
+ "relativePath": [
1594
+ "dist",
1595
+ "commands",
1596
+ "enterprise",
1597
+ "billing.js"
1598
+ ]
1599
+ },
1600
+ "enterprise:credits": {
1601
+ "aliases": [],
1602
+ "args": {
1603
+ "workspaceId": {
1604
+ "description": "Workspace ID",
1605
+ "name": "workspaceId",
1606
+ "required": true
1607
+ }
1608
+ },
1609
+ "description": "Check credit balance for an enterprise workspace",
1610
+ "examples": [
1611
+ "<%= config.bin %> enterprise credits org_abc123",
1612
+ "<%= config.bin %> enterprise credits org_abc123 --json"
1613
+ ],
1614
+ "flags": {
1615
+ "json": {
1616
+ "description": "Output in JSON format",
1617
+ "name": "json",
1618
+ "allowNo": false,
1619
+ "type": "boolean"
1620
+ },
1621
+ "quiet": {
1622
+ "char": "q",
1623
+ "description": "Minimal output",
1624
+ "name": "quiet",
1625
+ "allowNo": false,
1626
+ "type": "boolean"
1627
+ }
1628
+ },
1629
+ "hasDynamicHelp": false,
1630
+ "hiddenAliases": [],
1631
+ "id": "enterprise:credits",
1632
+ "pluginAlias": "@sendly/cli",
1633
+ "pluginName": "@sendly/cli",
1634
+ "pluginType": "core",
1635
+ "strict": true,
1636
+ "isESM": true,
1637
+ "relativePath": [
1638
+ "dist",
1639
+ "commands",
1640
+ "enterprise",
1641
+ "credits.js"
1642
+ ]
1643
+ },
1644
+ "enterprise:provision": {
1645
+ "aliases": [],
1646
+ "args": {},
1647
+ "description": "Provision a new workspace with full setup, or bulk provision from a JSON file",
1648
+ "examples": [
1649
+ "<%= config.bin %> enterprise provision --name \"Acme Corp\" --credits 1000",
1650
+ "<%= config.bin %> enterprise provision --name \"Acme Corp\" --credits 500 --inherit-from org_abc123 --webhook-url https://example.com/hook",
1651
+ "<%= config.bin %> enterprise provision --bulk workspaces.json"
1652
+ ],
1653
+ "flags": {
1654
+ "json": {
1655
+ "description": "Output in JSON format",
1656
+ "name": "json",
1657
+ "allowNo": false,
1658
+ "type": "boolean"
1659
+ },
1660
+ "quiet": {
1661
+ "char": "q",
1662
+ "description": "Minimal output",
1663
+ "name": "quiet",
1664
+ "allowNo": false,
1665
+ "type": "boolean"
1666
+ },
1667
+ "name": {
1668
+ "char": "n",
1669
+ "description": "Workspace name (single provision)",
1670
+ "name": "name",
1671
+ "hasDynamicHelp": false,
1672
+ "multiple": false,
1673
+ "type": "option"
1674
+ },
1675
+ "credits": {
1676
+ "char": "c",
1677
1677
  "description": "Initial credits to allocate",
1678
1678
  "name": "credits",
1679
1679
  "hasDynamicHelp": false,
@@ -2781,13 +2781,20 @@
2781
2781
  "send.js"
2782
2782
  ]
2783
2783
  },
2784
- "teams:create": {
2784
+ "templates:clone": {
2785
2785
  "aliases": [],
2786
- "args": {},
2787
- "description": "Create a new team",
2786
+ "args": {
2787
+ "id": {
2788
+ "description": "Template ID to clone",
2789
+ "name": "id",
2790
+ "required": true
2791
+ }
2792
+ },
2793
+ "description": "Clone a template",
2788
2794
  "examples": [
2789
- "<%= config.bin %> teams create --name \"Acme Corp\"",
2790
- "<%= config.bin %> teams create --name \"Acme Corp\" --description \"Our main team\""
2795
+ "<%= config.bin %> templates clone tpl_preset_otp",
2796
+ "<%= config.bin %> templates clone tpl_preset_otp --name \"My Custom OTP\"",
2797
+ "<%= config.bin %> templates clone tpl_xxx --json"
2791
2798
  ],
2792
2799
  "flags": {
2793
2800
  "json": {
@@ -2805,17 +2812,8 @@
2805
2812
  },
2806
2813
  "name": {
2807
2814
  "char": "n",
2808
- "description": "Team name",
2815
+ "description": "Name for the cloned template",
2809
2816
  "name": "name",
2810
- "required": true,
2811
- "hasDynamicHelp": false,
2812
- "multiple": false,
2813
- "type": "option"
2814
- },
2815
- "description": {
2816
- "char": "d",
2817
- "description": "Team description",
2818
- "name": "description",
2819
2817
  "hasDynamicHelp": false,
2820
2818
  "multiple": false,
2821
2819
  "type": "option"
@@ -2823,7 +2821,7 @@
2823
2821
  },
2824
2822
  "hasDynamicHelp": false,
2825
2823
  "hiddenAliases": [],
2826
- "id": "teams:create",
2824
+ "id": "templates:clone",
2827
2825
  "pluginAlias": "@sendly/cli",
2828
2826
  "pluginName": "@sendly/cli",
2829
2827
  "pluginType": "core",
@@ -2832,17 +2830,17 @@
2832
2830
  "relativePath": [
2833
2831
  "dist",
2834
2832
  "commands",
2835
- "teams",
2836
- "create.js"
2833
+ "templates",
2834
+ "clone.js"
2837
2835
  ]
2838
2836
  },
2839
- "teams:current": {
2837
+ "templates:create": {
2840
2838
  "aliases": [],
2841
2839
  "args": {},
2842
- "description": "Show the currently active team",
2840
+ "description": "Create a new SMS template",
2843
2841
  "examples": [
2844
- "<%= config.bin %> teams current",
2845
- "<%= config.bin %> teams current --json"
2842
+ "<%= config.bin %> templates create --name \"My OTP\" --text \"Your code is {{code}}\"",
2843
+ "<%= config.bin %> templates create --name \"Login\" --text \"{{code}} is your {{app_name}} login code\""
2846
2844
  ],
2847
2845
  "flags": {
2848
2846
  "json": {
@@ -2857,11 +2855,29 @@
2857
2855
  "name": "quiet",
2858
2856
  "allowNo": false,
2859
2857
  "type": "boolean"
2858
+ },
2859
+ "name": {
2860
+ "char": "n",
2861
+ "description": "Template name",
2862
+ "name": "name",
2863
+ "required": true,
2864
+ "hasDynamicHelp": false,
2865
+ "multiple": false,
2866
+ "type": "option"
2867
+ },
2868
+ "text": {
2869
+ "char": "t",
2870
+ "description": "Message text (use {{code}} and {{app_name}} variables)",
2871
+ "name": "text",
2872
+ "required": true,
2873
+ "hasDynamicHelp": false,
2874
+ "multiple": false,
2875
+ "type": "option"
2860
2876
  }
2861
2877
  },
2862
2878
  "hasDynamicHelp": false,
2863
2879
  "hiddenAliases": [],
2864
- "id": "teams:current",
2880
+ "id": "templates:create",
2865
2881
  "pluginAlias": "@sendly/cli",
2866
2882
  "pluginName": "@sendly/cli",
2867
2883
  "pluginType": "core",
@@ -2870,23 +2886,23 @@
2870
2886
  "relativePath": [
2871
2887
  "dist",
2872
2888
  "commands",
2873
- "teams",
2874
- "current.js"
2889
+ "templates",
2890
+ "create.js"
2875
2891
  ]
2876
2892
  },
2877
- "teams:invite": {
2893
+ "templates:delete": {
2878
2894
  "aliases": [],
2879
2895
  "args": {
2880
- "email": {
2881
- "description": "Email address to invite",
2882
- "name": "email",
2896
+ "id": {
2897
+ "description": "Template ID",
2898
+ "name": "id",
2883
2899
  "required": true
2884
2900
  }
2885
2901
  },
2886
- "description": "Invite a member to the current team",
2902
+ "description": "Delete a template",
2887
2903
  "examples": [
2888
- "<%= config.bin %> teams invite user@example.com",
2889
- "<%= config.bin %> teams invite user@example.com --role admin"
2904
+ "<%= config.bin %> templates delete tpl_xxx",
2905
+ "<%= config.bin %> templates delete tpl_xxx --force"
2890
2906
  ],
2891
2907
  "flags": {
2892
2908
  "json": {
@@ -2902,24 +2918,17 @@
2902
2918
  "allowNo": false,
2903
2919
  "type": "boolean"
2904
2920
  },
2905
- "role": {
2906
- "char": "r",
2907
- "description": "Role to assign (admin, member, viewer)",
2908
- "name": "role",
2909
- "default": "member",
2910
- "hasDynamicHelp": false,
2911
- "multiple": false,
2912
- "options": [
2913
- "admin",
2914
- "member",
2915
- "viewer"
2916
- ],
2917
- "type": "option"
2921
+ "force": {
2922
+ "char": "f",
2923
+ "description": "Skip confirmation",
2924
+ "name": "force",
2925
+ "allowNo": false,
2926
+ "type": "boolean"
2918
2927
  }
2919
2928
  },
2920
2929
  "hasDynamicHelp": false,
2921
2930
  "hiddenAliases": [],
2922
- "id": "teams:invite",
2931
+ "id": "templates:delete",
2923
2932
  "pluginAlias": "@sendly/cli",
2924
2933
  "pluginName": "@sendly/cli",
2925
2934
  "pluginType": "core",
@@ -2928,17 +2937,23 @@
2928
2937
  "relativePath": [
2929
2938
  "dist",
2930
2939
  "commands",
2931
- "teams",
2932
- "invite.js"
2940
+ "templates",
2941
+ "delete.js"
2933
2942
  ]
2934
2943
  },
2935
- "teams:list": {
2944
+ "templates:get": {
2936
2945
  "aliases": [],
2937
- "args": {},
2938
- "description": "List your teams",
2946
+ "args": {
2947
+ "id": {
2948
+ "description": "Template ID",
2949
+ "name": "id",
2950
+ "required": true
2951
+ }
2952
+ },
2953
+ "description": "Get template details",
2939
2954
  "examples": [
2940
- "<%= config.bin %> teams list",
2941
- "<%= config.bin %> teams list --json"
2955
+ "<%= config.bin %> templates get tpl_xxx",
2956
+ "<%= config.bin %> templates get tpl_preset_2fa"
2942
2957
  ],
2943
2958
  "flags": {
2944
2959
  "json": {
@@ -2957,7 +2972,7 @@
2957
2972
  },
2958
2973
  "hasDynamicHelp": false,
2959
2974
  "hiddenAliases": [],
2960
- "id": "teams:list",
2975
+ "id": "templates:get",
2961
2976
  "pluginAlias": "@sendly/cli",
2962
2977
  "pluginName": "@sendly/cli",
2963
2978
  "pluginType": "core",
@@ -2966,17 +2981,17 @@
2966
2981
  "relativePath": [
2967
2982
  "dist",
2968
2983
  "commands",
2969
- "teams",
2970
- "list.js"
2984
+ "templates",
2985
+ "get.js"
2971
2986
  ]
2972
2987
  },
2973
- "teams:members": {
2988
+ "templates:list": {
2974
2989
  "aliases": [],
2975
2990
  "args": {},
2976
- "description": "List members of the current team",
2991
+ "description": "List your SMS templates",
2977
2992
  "examples": [
2978
- "<%= config.bin %> teams members",
2979
- "<%= config.bin %> teams members --json"
2993
+ "<%= config.bin %> templates list",
2994
+ "<%= config.bin %> templates list --json"
2980
2995
  ],
2981
2996
  "flags": {
2982
2997
  "json": {
@@ -2995,7 +3010,7 @@
2995
3010
  },
2996
3011
  "hasDynamicHelp": false,
2997
3012
  "hiddenAliases": [],
2998
- "id": "teams:members",
3013
+ "id": "templates:list",
2999
3014
  "pluginAlias": "@sendly/cli",
3000
3015
  "pluginName": "@sendly/cli",
3001
3016
  "pluginType": "core",
@@ -3004,24 +3019,17 @@
3004
3019
  "relativePath": [
3005
3020
  "dist",
3006
3021
  "commands",
3007
- "teams",
3008
- "members.js"
3022
+ "templates",
3023
+ "list.js"
3009
3024
  ]
3010
3025
  },
3011
- "teams:switch": {
3026
+ "templates:presets": {
3012
3027
  "aliases": [],
3013
- "args": {
3014
- "org": {
3015
- "description": "Organization ID or slug to switch to",
3016
- "name": "org",
3017
- "required": false
3018
- }
3019
- },
3020
- "description": "Switch the active team",
3028
+ "args": {},
3029
+ "description": "List available preset templates",
3021
3030
  "examples": [
3022
- "<%= config.bin %> teams switch",
3023
- "<%= config.bin %> teams switch <org-id-or-slug>",
3024
- "<%= config.bin %> teams switch --clear"
3031
+ "<%= config.bin %> templates presets",
3032
+ "<%= config.bin %> templates presets --json"
3025
3033
  ],
3026
3034
  "flags": {
3027
3035
  "json": {
@@ -3040,7 +3048,7 @@
3040
3048
  },
3041
3049
  "hasDynamicHelp": false,
3042
3050
  "hiddenAliases": [],
3043
- "id": "teams:switch",
3051
+ "id": "templates:presets",
3044
3052
  "pluginAlias": "@sendly/cli",
3045
3053
  "pluginName": "@sendly/cli",
3046
3054
  "pluginType": "core",
@@ -3049,24 +3057,22 @@
3049
3057
  "relativePath": [
3050
3058
  "dist",
3051
3059
  "commands",
3052
- "teams",
3053
- "switch.js"
3060
+ "templates",
3061
+ "presets.js"
3054
3062
  ]
3055
3063
  },
3056
- "templates:clone": {
3064
+ "templates:publish": {
3057
3065
  "aliases": [],
3058
3066
  "args": {
3059
3067
  "id": {
3060
- "description": "Template ID to clone",
3068
+ "description": "Template ID",
3061
3069
  "name": "id",
3062
3070
  "required": true
3063
3071
  }
3064
3072
  },
3065
- "description": "Clone a template",
3073
+ "description": "Publish a draft template (locks it for use)",
3066
3074
  "examples": [
3067
- "<%= config.bin %> templates clone tpl_preset_otp",
3068
- "<%= config.bin %> templates clone tpl_preset_otp --name \"My Custom OTP\"",
3069
- "<%= config.bin %> templates clone tpl_xxx --json"
3075
+ "<%= config.bin %> templates publish tpl_xxx"
3070
3076
  ],
3071
3077
  "flags": {
3072
3078
  "json": {
@@ -3081,19 +3087,11 @@
3081
3087
  "name": "quiet",
3082
3088
  "allowNo": false,
3083
3089
  "type": "boolean"
3084
- },
3085
- "name": {
3086
- "char": "n",
3087
- "description": "Name for the cloned template",
3088
- "name": "name",
3089
- "hasDynamicHelp": false,
3090
- "multiple": false,
3091
- "type": "option"
3092
3090
  }
3093
3091
  },
3094
3092
  "hasDynamicHelp": false,
3095
3093
  "hiddenAliases": [],
3096
- "id": "templates:clone",
3094
+ "id": "templates:publish",
3097
3095
  "pluginAlias": "@sendly/cli",
3098
3096
  "pluginName": "@sendly/cli",
3099
3097
  "pluginType": "core",
@@ -3103,16 +3101,16 @@
3103
3101
  "dist",
3104
3102
  "commands",
3105
3103
  "templates",
3106
- "clone.js"
3104
+ "publish.js"
3107
3105
  ]
3108
3106
  },
3109
- "templates:create": {
3107
+ "teams:create": {
3110
3108
  "aliases": [],
3111
3109
  "args": {},
3112
- "description": "Create a new SMS template",
3110
+ "description": "Create a new team",
3113
3111
  "examples": [
3114
- "<%= config.bin %> templates create --name \"My OTP\" --text \"Your code is {{code}}\"",
3115
- "<%= config.bin %> templates create --name \"Login\" --text \"{{code}} is your {{app_name}} login code\""
3112
+ "<%= config.bin %> teams create --name \"Acme Corp\"",
3113
+ "<%= config.bin %> teams create --name \"Acme Corp\" --description \"Our main team\""
3116
3114
  ],
3117
3115
  "flags": {
3118
3116
  "json": {
@@ -3130,18 +3128,17 @@
3130
3128
  },
3131
3129
  "name": {
3132
3130
  "char": "n",
3133
- "description": "Template name",
3131
+ "description": "Team name",
3134
3132
  "name": "name",
3135
3133
  "required": true,
3136
3134
  "hasDynamicHelp": false,
3137
3135
  "multiple": false,
3138
3136
  "type": "option"
3139
3137
  },
3140
- "text": {
3141
- "char": "t",
3142
- "description": "Message text (use {{code}} and {{app_name}} variables)",
3143
- "name": "text",
3144
- "required": true,
3138
+ "description": {
3139
+ "char": "d",
3140
+ "description": "Team description",
3141
+ "name": "description",
3145
3142
  "hasDynamicHelp": false,
3146
3143
  "multiple": false,
3147
3144
  "type": "option"
@@ -3149,7 +3146,7 @@
3149
3146
  },
3150
3147
  "hasDynamicHelp": false,
3151
3148
  "hiddenAliases": [],
3152
- "id": "templates:create",
3149
+ "id": "teams:create",
3153
3150
  "pluginAlias": "@sendly/cli",
3154
3151
  "pluginName": "@sendly/cli",
3155
3152
  "pluginType": "core",
@@ -3158,23 +3155,17 @@
3158
3155
  "relativePath": [
3159
3156
  "dist",
3160
3157
  "commands",
3161
- "templates",
3158
+ "teams",
3162
3159
  "create.js"
3163
3160
  ]
3164
3161
  },
3165
- "templates:delete": {
3162
+ "teams:current": {
3166
3163
  "aliases": [],
3167
- "args": {
3168
- "id": {
3169
- "description": "Template ID",
3170
- "name": "id",
3171
- "required": true
3172
- }
3173
- },
3174
- "description": "Delete a template",
3164
+ "args": {},
3165
+ "description": "Show the currently active team",
3175
3166
  "examples": [
3176
- "<%= config.bin %> templates delete tpl_xxx",
3177
- "<%= config.bin %> templates delete tpl_xxx --force"
3167
+ "<%= config.bin %> teams current",
3168
+ "<%= config.bin %> teams current --json"
3178
3169
  ],
3179
3170
  "flags": {
3180
3171
  "json": {
@@ -3189,18 +3180,11 @@
3189
3180
  "name": "quiet",
3190
3181
  "allowNo": false,
3191
3182
  "type": "boolean"
3192
- },
3193
- "force": {
3194
- "char": "f",
3195
- "description": "Skip confirmation",
3196
- "name": "force",
3197
- "allowNo": false,
3198
- "type": "boolean"
3199
3183
  }
3200
3184
  },
3201
3185
  "hasDynamicHelp": false,
3202
3186
  "hiddenAliases": [],
3203
- "id": "templates:delete",
3187
+ "id": "teams:current",
3204
3188
  "pluginAlias": "@sendly/cli",
3205
3189
  "pluginName": "@sendly/cli",
3206
3190
  "pluginType": "core",
@@ -3209,23 +3193,23 @@
3209
3193
  "relativePath": [
3210
3194
  "dist",
3211
3195
  "commands",
3212
- "templates",
3213
- "delete.js"
3196
+ "teams",
3197
+ "current.js"
3214
3198
  ]
3215
3199
  },
3216
- "templates:get": {
3200
+ "teams:invite": {
3217
3201
  "aliases": [],
3218
3202
  "args": {
3219
- "id": {
3220
- "description": "Template ID",
3221
- "name": "id",
3203
+ "email": {
3204
+ "description": "Email address to invite",
3205
+ "name": "email",
3222
3206
  "required": true
3223
3207
  }
3224
3208
  },
3225
- "description": "Get template details",
3209
+ "description": "Invite a member to the current team",
3226
3210
  "examples": [
3227
- "<%= config.bin %> templates get tpl_xxx",
3228
- "<%= config.bin %> templates get tpl_preset_2fa"
3211
+ "<%= config.bin %> teams invite user@example.com",
3212
+ "<%= config.bin %> teams invite user@example.com --role admin"
3229
3213
  ],
3230
3214
  "flags": {
3231
3215
  "json": {
@@ -3240,11 +3224,25 @@
3240
3224
  "name": "quiet",
3241
3225
  "allowNo": false,
3242
3226
  "type": "boolean"
3227
+ },
3228
+ "role": {
3229
+ "char": "r",
3230
+ "description": "Role to assign (admin, member, viewer)",
3231
+ "name": "role",
3232
+ "default": "member",
3233
+ "hasDynamicHelp": false,
3234
+ "multiple": false,
3235
+ "options": [
3236
+ "admin",
3237
+ "member",
3238
+ "viewer"
3239
+ ],
3240
+ "type": "option"
3243
3241
  }
3244
3242
  },
3245
3243
  "hasDynamicHelp": false,
3246
3244
  "hiddenAliases": [],
3247
- "id": "templates:get",
3245
+ "id": "teams:invite",
3248
3246
  "pluginAlias": "@sendly/cli",
3249
3247
  "pluginName": "@sendly/cli",
3250
3248
  "pluginType": "core",
@@ -3253,17 +3251,17 @@
3253
3251
  "relativePath": [
3254
3252
  "dist",
3255
3253
  "commands",
3256
- "templates",
3257
- "get.js"
3254
+ "teams",
3255
+ "invite.js"
3258
3256
  ]
3259
3257
  },
3260
- "templates:list": {
3258
+ "teams:list": {
3261
3259
  "aliases": [],
3262
3260
  "args": {},
3263
- "description": "List your SMS templates",
3261
+ "description": "List your teams",
3264
3262
  "examples": [
3265
- "<%= config.bin %> templates list",
3266
- "<%= config.bin %> templates list --json"
3263
+ "<%= config.bin %> teams list",
3264
+ "<%= config.bin %> teams list --json"
3267
3265
  ],
3268
3266
  "flags": {
3269
3267
  "json": {
@@ -3282,7 +3280,7 @@
3282
3280
  },
3283
3281
  "hasDynamicHelp": false,
3284
3282
  "hiddenAliases": [],
3285
- "id": "templates:list",
3283
+ "id": "teams:list",
3286
3284
  "pluginAlias": "@sendly/cli",
3287
3285
  "pluginName": "@sendly/cli",
3288
3286
  "pluginType": "core",
@@ -3291,17 +3289,17 @@
3291
3289
  "relativePath": [
3292
3290
  "dist",
3293
3291
  "commands",
3294
- "templates",
3292
+ "teams",
3295
3293
  "list.js"
3296
3294
  ]
3297
3295
  },
3298
- "templates:presets": {
3296
+ "teams:members": {
3299
3297
  "aliases": [],
3300
3298
  "args": {},
3301
- "description": "List available preset templates",
3299
+ "description": "List members of the current team",
3302
3300
  "examples": [
3303
- "<%= config.bin %> templates presets",
3304
- "<%= config.bin %> templates presets --json"
3301
+ "<%= config.bin %> teams members",
3302
+ "<%= config.bin %> teams members --json"
3305
3303
  ],
3306
3304
  "flags": {
3307
3305
  "json": {
@@ -3320,7 +3318,7 @@
3320
3318
  },
3321
3319
  "hasDynamicHelp": false,
3322
3320
  "hiddenAliases": [],
3323
- "id": "templates:presets",
3321
+ "id": "teams:members",
3324
3322
  "pluginAlias": "@sendly/cli",
3325
3323
  "pluginName": "@sendly/cli",
3326
3324
  "pluginType": "core",
@@ -3329,22 +3327,24 @@
3329
3327
  "relativePath": [
3330
3328
  "dist",
3331
3329
  "commands",
3332
- "templates",
3333
- "presets.js"
3330
+ "teams",
3331
+ "members.js"
3334
3332
  ]
3335
3333
  },
3336
- "templates:publish": {
3334
+ "teams:switch": {
3337
3335
  "aliases": [],
3338
3336
  "args": {
3339
- "id": {
3340
- "description": "Template ID",
3341
- "name": "id",
3342
- "required": true
3337
+ "org": {
3338
+ "description": "Organization ID or slug to switch to",
3339
+ "name": "org",
3340
+ "required": false
3343
3341
  }
3344
3342
  },
3345
- "description": "Publish a draft template (locks it for use)",
3343
+ "description": "Switch the active team",
3346
3344
  "examples": [
3347
- "<%= config.bin %> templates publish tpl_xxx"
3345
+ "<%= config.bin %> teams switch",
3346
+ "<%= config.bin %> teams switch <org-id-or-slug>",
3347
+ "<%= config.bin %> teams switch --clear"
3348
3348
  ],
3349
3349
  "flags": {
3350
3350
  "json": {
@@ -3363,7 +3363,7 @@
3363
3363
  },
3364
3364
  "hasDynamicHelp": false,
3365
3365
  "hiddenAliases": [],
3366
- "id": "templates:publish",
3366
+ "id": "teams:switch",
3367
3367
  "pluginAlias": "@sendly/cli",
3368
3368
  "pluginName": "@sendly/cli",
3369
3369
  "pluginType": "core",
@@ -3372,8 +3372,8 @@
3372
3372
  "relativePath": [
3373
3373
  "dist",
3374
3374
  "commands",
3375
- "templates",
3376
- "publish.js"
3375
+ "teams",
3376
+ "switch.js"
3377
3377
  ]
3378
3378
  },
3379
3379
  "verify:check": {
@@ -5012,13 +5012,13 @@
5012
5012
  "set.js"
5013
5013
  ]
5014
5014
  },
5015
- "enterprise:webhooks:delete": {
5015
+ "enterprise:workspaces:create": {
5016
5016
  "aliases": [],
5017
5017
  "args": {},
5018
- "description": "Delete the enterprise webhook",
5018
+ "description": "Create a new enterprise workspace",
5019
5019
  "examples": [
5020
- "<%= config.bin %> enterprise webhooks delete",
5021
- "<%= config.bin %> enterprise webhooks delete --yes"
5020
+ "<%= config.bin %> enterprise workspaces create --name \"Acme Corp\"",
5021
+ "<%= config.bin %> enterprise workspaces create --name \"Acme Corp\" --json"
5022
5022
  ],
5023
5023
  "flags": {
5024
5024
  "json": {
@@ -5034,17 +5034,19 @@
5034
5034
  "allowNo": false,
5035
5035
  "type": "boolean"
5036
5036
  },
5037
- "yes": {
5038
- "char": "y",
5039
- "description": "Skip confirmation prompt",
5040
- "name": "yes",
5041
- "allowNo": false,
5042
- "type": "boolean"
5037
+ "name": {
5038
+ "char": "n",
5039
+ "description": "Workspace name",
5040
+ "name": "name",
5041
+ "required": true,
5042
+ "hasDynamicHelp": false,
5043
+ "multiple": false,
5044
+ "type": "option"
5043
5045
  }
5044
5046
  },
5045
5047
  "hasDynamicHelp": false,
5046
5048
  "hiddenAliases": [],
5047
- "id": "enterprise:webhooks:delete",
5049
+ "id": "enterprise:workspaces:create",
5048
5050
  "pluginAlias": "@sendly/cli",
5049
5051
  "pluginName": "@sendly/cli",
5050
5052
  "pluginType": "core",
@@ -5054,17 +5056,23 @@
5054
5056
  "dist",
5055
5057
  "commands",
5056
5058
  "enterprise",
5057
- "webhooks",
5058
- "delete.js"
5059
+ "workspaces",
5060
+ "create.js"
5059
5061
  ]
5060
5062
  },
5061
- "enterprise:webhooks:get": {
5063
+ "enterprise:workspaces:delete": {
5062
5064
  "aliases": [],
5063
- "args": {},
5064
- "description": "Get the enterprise webhook configuration",
5065
+ "args": {
5066
+ "workspaceId": {
5067
+ "description": "Workspace ID",
5068
+ "name": "workspaceId",
5069
+ "required": true
5070
+ }
5071
+ },
5072
+ "description": "Delete an enterprise workspace",
5065
5073
  "examples": [
5066
- "<%= config.bin %> enterprise webhooks get",
5067
- "<%= config.bin %> enterprise webhooks get --json"
5074
+ "<%= config.bin %> enterprise workspaces delete org_abc123",
5075
+ "<%= config.bin %> enterprise workspaces delete org_abc123 --yes"
5068
5076
  ],
5069
5077
  "flags": {
5070
5078
  "json": {
@@ -5079,11 +5087,18 @@
5079
5087
  "name": "quiet",
5080
5088
  "allowNo": false,
5081
5089
  "type": "boolean"
5090
+ },
5091
+ "yes": {
5092
+ "char": "y",
5093
+ "description": "Skip confirmation prompt",
5094
+ "name": "yes",
5095
+ "allowNo": false,
5096
+ "type": "boolean"
5082
5097
  }
5083
5098
  },
5084
5099
  "hasDynamicHelp": false,
5085
5100
  "hiddenAliases": [],
5086
- "id": "enterprise:webhooks:get",
5101
+ "id": "enterprise:workspaces:delete",
5087
5102
  "pluginAlias": "@sendly/cli",
5088
5103
  "pluginName": "@sendly/cli",
5089
5104
  "pluginType": "core",
@@ -5093,17 +5108,23 @@
5093
5108
  "dist",
5094
5109
  "commands",
5095
5110
  "enterprise",
5096
- "webhooks",
5097
- "get.js"
5111
+ "workspaces",
5112
+ "delete.js"
5098
5113
  ]
5099
5114
  },
5100
- "enterprise:webhooks:set": {
5115
+ "enterprise:workspaces:get": {
5101
5116
  "aliases": [],
5102
- "args": {},
5103
- "description": "Create or update the enterprise-level webhook",
5117
+ "args": {
5118
+ "workspaceId": {
5119
+ "description": "Workspace ID",
5120
+ "name": "workspaceId",
5121
+ "required": true
5122
+ }
5123
+ },
5124
+ "description": "Get details of an enterprise workspace",
5104
5125
  "examples": [
5105
- "<%= config.bin %> enterprise webhooks set --url https://example.com/webhook",
5106
- "<%= config.bin %> enterprise webhooks set --url https://example.com/webhook --events \"message.sent,message.delivered\""
5126
+ "<%= config.bin %> enterprise workspaces get org_abc123",
5127
+ "<%= config.bin %> enterprise workspaces get org_abc123 --json"
5107
5128
  ],
5108
5129
  "flags": {
5109
5130
  "json": {
@@ -5118,26 +5139,11 @@
5118
5139
  "name": "quiet",
5119
5140
  "allowNo": false,
5120
5141
  "type": "boolean"
5121
- },
5122
- "url": {
5123
- "description": "Webhook endpoint URL",
5124
- "name": "url",
5125
- "required": true,
5126
- "hasDynamicHelp": false,
5127
- "multiple": false,
5128
- "type": "option"
5129
- },
5130
- "events": {
5131
- "description": "Comma-separated list of event types to subscribe to",
5132
- "name": "events",
5133
- "hasDynamicHelp": false,
5134
- "multiple": false,
5135
- "type": "option"
5136
5142
  }
5137
5143
  },
5138
5144
  "hasDynamicHelp": false,
5139
5145
  "hiddenAliases": [],
5140
- "id": "enterprise:webhooks:set",
5146
+ "id": "enterprise:workspaces:get",
5141
5147
  "pluginAlias": "@sendly/cli",
5142
5148
  "pluginName": "@sendly/cli",
5143
5149
  "pluginType": "core",
@@ -5147,17 +5153,17 @@
5147
5153
  "dist",
5148
5154
  "commands",
5149
5155
  "enterprise",
5150
- "webhooks",
5151
- "set.js"
5156
+ "workspaces",
5157
+ "get.js"
5152
5158
  ]
5153
5159
  },
5154
- "enterprise:webhooks:test": {
5160
+ "enterprise:workspaces:list": {
5155
5161
  "aliases": [],
5156
5162
  "args": {},
5157
- "description": "Send a test event to the enterprise webhook",
5163
+ "description": "List all enterprise workspaces",
5158
5164
  "examples": [
5159
- "<%= config.bin %> enterprise webhooks test",
5160
- "<%= config.bin %> enterprise webhooks test --json"
5165
+ "<%= config.bin %> enterprise workspaces list",
5166
+ "<%= config.bin %> enterprise workspaces list --json"
5161
5167
  ],
5162
5168
  "flags": {
5163
5169
  "json": {
@@ -5176,7 +5182,7 @@
5176
5182
  },
5177
5183
  "hasDynamicHelp": false,
5178
5184
  "hiddenAliases": [],
5179
- "id": "enterprise:webhooks:test",
5185
+ "id": "enterprise:workspaces:list",
5180
5186
  "pluginAlias": "@sendly/cli",
5181
5187
  "pluginName": "@sendly/cli",
5182
5188
  "pluginType": "core",
@@ -5186,17 +5192,22 @@
5186
5192
  "dist",
5187
5193
  "commands",
5188
5194
  "enterprise",
5189
- "webhooks",
5190
- "test.js"
5195
+ "workspaces",
5196
+ "list.js"
5191
5197
  ]
5192
5198
  },
5193
- "enterprise:workspaces:create": {
5199
+ "enterprise:workspaces:resume": {
5194
5200
  "aliases": [],
5195
- "args": {},
5196
- "description": "Create a new enterprise workspace",
5201
+ "args": {
5202
+ "workspaceId": {
5203
+ "description": "Workspace ID",
5204
+ "name": "workspaceId",
5205
+ "required": true
5206
+ }
5207
+ },
5208
+ "description": "Resume a suspended enterprise workspace",
5197
5209
  "examples": [
5198
- "<%= config.bin %> enterprise workspaces create --name \"Acme Corp\"",
5199
- "<%= config.bin %> enterprise workspaces create --name \"Acme Corp\" --json"
5210
+ "<%= config.bin %> enterprise workspaces resume org_abc123"
5200
5211
  ],
5201
5212
  "flags": {
5202
5213
  "json": {
@@ -5211,20 +5222,11 @@
5211
5222
  "name": "quiet",
5212
5223
  "allowNo": false,
5213
5224
  "type": "boolean"
5214
- },
5215
- "name": {
5216
- "char": "n",
5217
- "description": "Workspace name",
5218
- "name": "name",
5219
- "required": true,
5220
- "hasDynamicHelp": false,
5221
- "multiple": false,
5222
- "type": "option"
5223
5225
  }
5224
5226
  },
5225
5227
  "hasDynamicHelp": false,
5226
5228
  "hiddenAliases": [],
5227
- "id": "enterprise:workspaces:create",
5229
+ "id": "enterprise:workspaces:resume",
5228
5230
  "pluginAlias": "@sendly/cli",
5229
5231
  "pluginName": "@sendly/cli",
5230
5232
  "pluginType": "core",
@@ -5235,10 +5237,10 @@
5235
5237
  "commands",
5236
5238
  "enterprise",
5237
5239
  "workspaces",
5238
- "create.js"
5240
+ "resume.js"
5239
5241
  ]
5240
5242
  },
5241
- "enterprise:workspaces:delete": {
5243
+ "enterprise:workspaces:suspend": {
5242
5244
  "aliases": [],
5243
5245
  "args": {
5244
5246
  "workspaceId": {
@@ -5247,10 +5249,10 @@
5247
5249
  "required": true
5248
5250
  }
5249
5251
  },
5250
- "description": "Delete an enterprise workspace",
5252
+ "description": "Suspend an enterprise workspace",
5251
5253
  "examples": [
5252
- "<%= config.bin %> enterprise workspaces delete org_abc123",
5253
- "<%= config.bin %> enterprise workspaces delete org_abc123 --yes"
5254
+ "<%= config.bin %> enterprise workspaces suspend org_abc123",
5255
+ "<%= config.bin %> enterprise workspaces suspend org_abc123 --reason \"Policy violation\""
5254
5256
  ],
5255
5257
  "flags": {
5256
5258
  "json": {
@@ -5266,6 +5268,14 @@
5266
5268
  "allowNo": false,
5267
5269
  "type": "boolean"
5268
5270
  },
5271
+ "reason": {
5272
+ "char": "r",
5273
+ "description": "Reason for suspension",
5274
+ "name": "reason",
5275
+ "hasDynamicHelp": false,
5276
+ "multiple": false,
5277
+ "type": "option"
5278
+ },
5269
5279
  "yes": {
5270
5280
  "char": "y",
5271
5281
  "description": "Skip confirmation prompt",
@@ -5276,7 +5286,7 @@
5276
5286
  },
5277
5287
  "hasDynamicHelp": false,
5278
5288
  "hiddenAliases": [],
5279
- "id": "enterprise:workspaces:delete",
5289
+ "id": "enterprise:workspaces:suspend",
5280
5290
  "pluginAlias": "@sendly/cli",
5281
5291
  "pluginName": "@sendly/cli",
5282
5292
  "pluginType": "core",
@@ -5287,22 +5297,16 @@
5287
5297
  "commands",
5288
5298
  "enterprise",
5289
5299
  "workspaces",
5290
- "delete.js"
5300
+ "suspend.js"
5291
5301
  ]
5292
5302
  },
5293
- "enterprise:workspaces:get": {
5303
+ "enterprise:webhooks:delete": {
5294
5304
  "aliases": [],
5295
- "args": {
5296
- "workspaceId": {
5297
- "description": "Workspace ID",
5298
- "name": "workspaceId",
5299
- "required": true
5300
- }
5301
- },
5302
- "description": "Get details of an enterprise workspace",
5305
+ "args": {},
5306
+ "description": "Delete the enterprise webhook",
5303
5307
  "examples": [
5304
- "<%= config.bin %> enterprise workspaces get org_abc123",
5305
- "<%= config.bin %> enterprise workspaces get org_abc123 --json"
5308
+ "<%= config.bin %> enterprise webhooks delete",
5309
+ "<%= config.bin %> enterprise webhooks delete --yes"
5306
5310
  ],
5307
5311
  "flags": {
5308
5312
  "json": {
@@ -5317,11 +5321,18 @@
5317
5321
  "name": "quiet",
5318
5322
  "allowNo": false,
5319
5323
  "type": "boolean"
5324
+ },
5325
+ "yes": {
5326
+ "char": "y",
5327
+ "description": "Skip confirmation prompt",
5328
+ "name": "yes",
5329
+ "allowNo": false,
5330
+ "type": "boolean"
5320
5331
  }
5321
5332
  },
5322
5333
  "hasDynamicHelp": false,
5323
5334
  "hiddenAliases": [],
5324
- "id": "enterprise:workspaces:get",
5335
+ "id": "enterprise:webhooks:delete",
5325
5336
  "pluginAlias": "@sendly/cli",
5326
5337
  "pluginName": "@sendly/cli",
5327
5338
  "pluginType": "core",
@@ -5331,17 +5342,17 @@
5331
5342
  "dist",
5332
5343
  "commands",
5333
5344
  "enterprise",
5334
- "workspaces",
5335
- "get.js"
5345
+ "webhooks",
5346
+ "delete.js"
5336
5347
  ]
5337
5348
  },
5338
- "enterprise:workspaces:list": {
5349
+ "enterprise:webhooks:get": {
5339
5350
  "aliases": [],
5340
5351
  "args": {},
5341
- "description": "List all enterprise workspaces",
5352
+ "description": "Get the enterprise webhook configuration",
5342
5353
  "examples": [
5343
- "<%= config.bin %> enterprise workspaces list",
5344
- "<%= config.bin %> enterprise workspaces list --json"
5354
+ "<%= config.bin %> enterprise webhooks get",
5355
+ "<%= config.bin %> enterprise webhooks get --json"
5345
5356
  ],
5346
5357
  "flags": {
5347
5358
  "json": {
@@ -5360,7 +5371,7 @@
5360
5371
  },
5361
5372
  "hasDynamicHelp": false,
5362
5373
  "hiddenAliases": [],
5363
- "id": "enterprise:workspaces:list",
5374
+ "id": "enterprise:webhooks:get",
5364
5375
  "pluginAlias": "@sendly/cli",
5365
5376
  "pluginName": "@sendly/cli",
5366
5377
  "pluginType": "core",
@@ -5370,22 +5381,17 @@
5370
5381
  "dist",
5371
5382
  "commands",
5372
5383
  "enterprise",
5373
- "workspaces",
5374
- "list.js"
5384
+ "webhooks",
5385
+ "get.js"
5375
5386
  ]
5376
5387
  },
5377
- "enterprise:workspaces:resume": {
5388
+ "enterprise:webhooks:set": {
5378
5389
  "aliases": [],
5379
- "args": {
5380
- "workspaceId": {
5381
- "description": "Workspace ID",
5382
- "name": "workspaceId",
5383
- "required": true
5384
- }
5385
- },
5386
- "description": "Resume a suspended enterprise workspace",
5390
+ "args": {},
5391
+ "description": "Create or update the enterprise-level webhook",
5387
5392
  "examples": [
5388
- "<%= config.bin %> enterprise workspaces resume org_abc123"
5393
+ "<%= config.bin %> enterprise webhooks set --url https://example.com/webhook",
5394
+ "<%= config.bin %> enterprise webhooks set --url https://example.com/webhook --events \"message.sent,message.delivered\""
5389
5395
  ],
5390
5396
  "flags": {
5391
5397
  "json": {
@@ -5400,11 +5406,26 @@
5400
5406
  "name": "quiet",
5401
5407
  "allowNo": false,
5402
5408
  "type": "boolean"
5409
+ },
5410
+ "url": {
5411
+ "description": "Webhook endpoint URL",
5412
+ "name": "url",
5413
+ "required": true,
5414
+ "hasDynamicHelp": false,
5415
+ "multiple": false,
5416
+ "type": "option"
5417
+ },
5418
+ "events": {
5419
+ "description": "Comma-separated list of event types to subscribe to",
5420
+ "name": "events",
5421
+ "hasDynamicHelp": false,
5422
+ "multiple": false,
5423
+ "type": "option"
5403
5424
  }
5404
5425
  },
5405
5426
  "hasDynamicHelp": false,
5406
5427
  "hiddenAliases": [],
5407
- "id": "enterprise:workspaces:resume",
5428
+ "id": "enterprise:webhooks:set",
5408
5429
  "pluginAlias": "@sendly/cli",
5409
5430
  "pluginName": "@sendly/cli",
5410
5431
  "pluginType": "core",
@@ -5414,23 +5435,17 @@
5414
5435
  "dist",
5415
5436
  "commands",
5416
5437
  "enterprise",
5417
- "workspaces",
5418
- "resume.js"
5438
+ "webhooks",
5439
+ "set.js"
5419
5440
  ]
5420
5441
  },
5421
- "enterprise:workspaces:suspend": {
5442
+ "enterprise:webhooks:test": {
5422
5443
  "aliases": [],
5423
- "args": {
5424
- "workspaceId": {
5425
- "description": "Workspace ID",
5426
- "name": "workspaceId",
5427
- "required": true
5428
- }
5429
- },
5430
- "description": "Suspend an enterprise workspace",
5444
+ "args": {},
5445
+ "description": "Send a test event to the enterprise webhook",
5431
5446
  "examples": [
5432
- "<%= config.bin %> enterprise workspaces suspend org_abc123",
5433
- "<%= config.bin %> enterprise workspaces suspend org_abc123 --reason \"Policy violation\""
5447
+ "<%= config.bin %> enterprise webhooks test",
5448
+ "<%= config.bin %> enterprise webhooks test --json"
5434
5449
  ],
5435
5450
  "flags": {
5436
5451
  "json": {
@@ -5445,26 +5460,11 @@
5445
5460
  "name": "quiet",
5446
5461
  "allowNo": false,
5447
5462
  "type": "boolean"
5448
- },
5449
- "reason": {
5450
- "char": "r",
5451
- "description": "Reason for suspension",
5452
- "name": "reason",
5453
- "hasDynamicHelp": false,
5454
- "multiple": false,
5455
- "type": "option"
5456
- },
5457
- "yes": {
5458
- "char": "y",
5459
- "description": "Skip confirmation prompt",
5460
- "name": "yes",
5461
- "allowNo": false,
5462
- "type": "boolean"
5463
5463
  }
5464
5464
  },
5465
5465
  "hasDynamicHelp": false,
5466
5466
  "hiddenAliases": [],
5467
- "id": "enterprise:workspaces:suspend",
5467
+ "id": "enterprise:webhooks:test",
5468
5468
  "pluginAlias": "@sendly/cli",
5469
5469
  "pluginName": "@sendly/cli",
5470
5470
  "pluginType": "core",
@@ -5474,10 +5474,10 @@
5474
5474
  "dist",
5475
5475
  "commands",
5476
5476
  "enterprise",
5477
- "workspaces",
5478
- "suspend.js"
5477
+ "webhooks",
5478
+ "test.js"
5479
5479
  ]
5480
5480
  }
5481
5481
  },
5482
- "version": "3.19.0"
5482
+ "version": "3.20.0"
5483
5483
  }