@instantkom/cli 3.143.1 → 3.144.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.
@@ -1073,40 +1073,6 @@
1073
1073
  "reply.js"
1074
1074
  ]
1075
1075
  },
1076
- "autocomplete:script": {
1077
- "aliases": [],
1078
- "args": {
1079
- "shell": {
1080
- "description": "Shell type",
1081
- "name": "shell",
1082
- "options": [
1083
- "zsh",
1084
- "bash",
1085
- "fish",
1086
- "powershell"
1087
- ],
1088
- "required": false
1089
- }
1090
- },
1091
- "description": "outputs autocomplete config script for shells",
1092
- "flags": {},
1093
- "hasDynamicHelp": false,
1094
- "hidden": true,
1095
- "hiddenAliases": [],
1096
- "id": "autocomplete:script",
1097
- "pluginAlias": "@instantkom/cli",
1098
- "pluginName": "@instantkom/cli",
1099
- "pluginType": "core",
1100
- "strict": true,
1101
- "enableJsonFlag": false,
1102
- "isESM": true,
1103
- "relativePath": [
1104
- "dist",
1105
- "commands",
1106
- "autocomplete",
1107
- "script.js"
1108
- ]
1109
- },
1110
1076
  "auth:login": {
1111
1077
  "aliases": [],
1112
1078
  "args": {},
@@ -1289,6 +1255,40 @@
1289
1255
  "logout.js"
1290
1256
  ]
1291
1257
  },
1258
+ "autocomplete:script": {
1259
+ "aliases": [],
1260
+ "args": {
1261
+ "shell": {
1262
+ "description": "Shell type",
1263
+ "name": "shell",
1264
+ "options": [
1265
+ "zsh",
1266
+ "bash",
1267
+ "fish",
1268
+ "powershell"
1269
+ ],
1270
+ "required": false
1271
+ }
1272
+ },
1273
+ "description": "outputs autocomplete config script for shells",
1274
+ "flags": {},
1275
+ "hasDynamicHelp": false,
1276
+ "hidden": true,
1277
+ "hiddenAliases": [],
1278
+ "id": "autocomplete:script",
1279
+ "pluginAlias": "@instantkom/cli",
1280
+ "pluginName": "@instantkom/cli",
1281
+ "pluginType": "core",
1282
+ "strict": true,
1283
+ "enableJsonFlag": false,
1284
+ "isESM": true,
1285
+ "relativePath": [
1286
+ "dist",
1287
+ "commands",
1288
+ "autocomplete",
1289
+ "script.js"
1290
+ ]
1291
+ },
1292
1292
  "bots:create": {
1293
1293
  "aliases": [],
1294
1294
  "args": {},
@@ -2015,10 +2015,10 @@
2015
2015
  "update.js"
2016
2016
  ]
2017
2017
  },
2018
- "broadcast:create": {
2018
+ "channels:create": {
2019
2019
  "aliases": [],
2020
2020
  "args": {},
2021
- "description": "Create a broadcast for channels or segments",
2021
+ "description": "Create a channel",
2022
2022
  "flags": {
2023
2023
  "api-key": {
2024
2024
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -2082,92 +2082,47 @@
2082
2082
  "multiple": false,
2083
2083
  "type": "option"
2084
2084
  },
2085
- "channel": {
2086
- "description": "Channel ID target",
2087
- "name": "channel",
2088
- "hasDynamicHelp": false,
2089
- "multiple": false,
2090
- "type": "option"
2091
- },
2092
- "segment": {
2093
- "description": "Segment ID within --channel",
2094
- "name": "segment",
2095
- "hasDynamicHelp": false,
2096
- "multiple": false,
2097
- "type": "option"
2098
- },
2099
- "target": {
2100
- "description": "Target as channelId or channelId:segmentId; may be repeated",
2101
- "name": "target",
2102
- "hasDynamicHelp": false,
2103
- "multiple": true,
2104
- "type": "option"
2105
- },
2106
- "text": {
2107
- "description": "Broadcast message text",
2108
- "name": "text",
2085
+ "name": {
2086
+ "description": "Channel name",
2087
+ "name": "name",
2109
2088
  "required": true,
2110
2089
  "hasDynamicHelp": false,
2111
2090
  "multiple": false,
2112
2091
  "type": "option"
2113
2092
  },
2114
- "send-at": {
2115
- "description": "Schedule send for an ISO-8601 date-time",
2116
- "name": "send-at",
2093
+ "gateway-type": {
2094
+ "description": "Gateway type ID",
2095
+ "name": "gateway-type",
2096
+ "required": true,
2117
2097
  "hasDynamicHelp": false,
2118
2098
  "multiple": false,
2119
2099
  "type": "option"
2120
2100
  },
2121
- "dry-run": {
2122
- "description": "Validate and print the broadcast payload without mutating API calls",
2123
- "name": "dry-run",
2124
- "allowNo": false,
2125
- "type": "boolean"
2126
- },
2127
- "idempotency-key": {
2128
- "description": "Idempotency key forwarded as Idempotency-Key",
2129
- "name": "idempotency-key",
2101
+ "status": {
2102
+ "description": "Channel lifecycle status",
2103
+ "name": "status",
2130
2104
  "hasDynamicHelp": false,
2131
2105
  "multiple": false,
2132
2106
  "type": "option"
2133
2107
  },
2134
- "media": {
2135
- "description": "Media file path to upload",
2136
- "name": "media",
2137
- "hasDynamicHelp": false,
2138
- "multiple": true,
2139
- "type": "option"
2140
- },
2141
- "template-id": {
2142
- "description": "WhatsApp template ID",
2143
- "name": "template-id",
2108
+ "description": {
2109
+ "description": "Channel description",
2110
+ "name": "description",
2144
2111
  "hasDynamicHelp": false,
2145
2112
  "multiple": false,
2146
2113
  "type": "option"
2147
2114
  },
2148
- "send-status": {
2149
- "description": "Initial broadcast send status",
2150
- "name": "send-status",
2151
- "default": "draft",
2115
+ "data": {
2116
+ "description": "Additional JSON object payload",
2117
+ "name": "data",
2152
2118
  "hasDynamicHelp": false,
2153
2119
  "multiple": false,
2154
- "options": [
2155
- "draft",
2156
- "scheduled",
2157
- "sending"
2158
- ],
2159
2120
  "type": "option"
2160
- },
2161
- "auto-approve": {
2162
- "description": "Auto-approve broadcast when allowed by API permissions",
2163
- "name": "auto-approve",
2164
- "allowNo": false,
2165
- "type": "boolean"
2166
2121
  }
2167
2122
  },
2168
2123
  "hasDynamicHelp": false,
2169
2124
  "hiddenAliases": [],
2170
- "id": "broadcast:create",
2125
+ "id": "channels:create",
2171
2126
  "pluginAlias": "@instantkom/cli",
2172
2127
  "pluginName": "@instantkom/cli",
2173
2128
  "pluginType": "core",
@@ -2177,20 +2132,20 @@
2177
2132
  "relativePath": [
2178
2133
  "dist",
2179
2134
  "commands",
2180
- "broadcast",
2135
+ "channels",
2181
2136
  "create.js"
2182
2137
  ]
2183
2138
  },
2184
- "broadcast:delete": {
2139
+ "channels:get": {
2185
2140
  "aliases": [],
2186
2141
  "args": {
2187
2142
  "id": {
2188
- "description": "broadcast ID",
2143
+ "description": "Channel ID",
2189
2144
  "name": "id",
2190
2145
  "required": true
2191
2146
  }
2192
2147
  },
2193
- "description": "Delete broadcast",
2148
+ "description": "Get a channel by ID",
2194
2149
  "flags": {
2195
2150
  "api-key": {
2196
2151
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -2257,7 +2212,7 @@
2257
2212
  },
2258
2213
  "hasDynamicHelp": false,
2259
2214
  "hiddenAliases": [],
2260
- "id": "broadcast:delete",
2215
+ "id": "channels:get",
2261
2216
  "pluginAlias": "@instantkom/cli",
2262
2217
  "pluginName": "@instantkom/cli",
2263
2218
  "pluginType": "core",
@@ -2267,20 +2222,20 @@
2267
2222
  "relativePath": [
2268
2223
  "dist",
2269
2224
  "commands",
2270
- "broadcast",
2271
- "delete.js"
2225
+ "channels",
2226
+ "get.js"
2272
2227
  ]
2273
2228
  },
2274
- "broadcast:get": {
2229
+ "channels:kpis": {
2275
2230
  "aliases": [],
2276
2231
  "args": {
2277
2232
  "id": {
2278
- "description": "broadcast ID",
2233
+ "description": "Optional channel ID; omit for aggregated channel KPIs",
2279
2234
  "name": "id",
2280
- "required": true
2235
+ "required": false
2281
2236
  }
2282
2237
  },
2283
- "description": "Get broadcast by ID",
2238
+ "description": "Get channel KPIs",
2284
2239
  "flags": {
2285
2240
  "api-key": {
2286
2241
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -2343,11 +2298,18 @@
2343
2298
  "hasDynamicHelp": false,
2344
2299
  "multiple": false,
2345
2300
  "type": "option"
2301
+ },
2302
+ "period": {
2303
+ "description": "KPI period",
2304
+ "name": "period",
2305
+ "hasDynamicHelp": false,
2306
+ "multiple": false,
2307
+ "type": "option"
2346
2308
  }
2347
2309
  },
2348
2310
  "hasDynamicHelp": false,
2349
2311
  "hiddenAliases": [],
2350
- "id": "broadcast:get",
2312
+ "id": "channels:kpis",
2351
2313
  "pluginAlias": "@instantkom/cli",
2352
2314
  "pluginName": "@instantkom/cli",
2353
2315
  "pluginType": "core",
@@ -2357,14 +2319,14 @@
2357
2319
  "relativePath": [
2358
2320
  "dist",
2359
2321
  "commands",
2360
- "broadcast",
2361
- "get.js"
2322
+ "channels",
2323
+ "kpis.js"
2362
2324
  ]
2363
2325
  },
2364
- "broadcast:list": {
2326
+ "channels:list": {
2365
2327
  "aliases": [],
2366
2328
  "args": {},
2367
- "description": "List broadcasts",
2329
+ "description": "List channels",
2368
2330
  "flags": {
2369
2331
  "api-key": {
2370
2332
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -2444,56 +2406,31 @@
2444
2406
  "multiple": false,
2445
2407
  "type": "option"
2446
2408
  },
2447
- "channel": {
2448
- "description": "Filter by channel ID",
2449
- "name": "channel",
2450
- "hasDynamicHelp": false,
2451
- "multiple": false,
2452
- "type": "option"
2453
- },
2454
- "send-status": {
2455
- "description": "Filter by send status",
2456
- "name": "send-status",
2409
+ "status": {
2410
+ "description": "Filter by channel status",
2411
+ "name": "status",
2457
2412
  "hasDynamicHelp": false,
2458
2413
  "multiple": false,
2459
2414
  "type": "option"
2460
2415
  },
2461
- "type": {
2462
- "description": "Broadcast type",
2463
- "name": "type",
2416
+ "gateway-type": {
2417
+ "description": "Filter by gateway type ID",
2418
+ "name": "gateway-type",
2464
2419
  "hasDynamicHelp": false,
2465
2420
  "multiple": false,
2466
- "options": [
2467
- "text",
2468
- "image",
2469
- "video",
2470
- "audio",
2471
- "document"
2472
- ],
2473
2421
  "type": "option"
2474
2422
  },
2475
2423
  "search": {
2476
- "description": "Search broadcasts",
2424
+ "description": "Search by channel name",
2477
2425
  "name": "search",
2478
2426
  "hasDynamicHelp": false,
2479
2427
  "multiple": false,
2480
2428
  "type": "option"
2481
- },
2482
- "test": {
2483
- "description": "Filter test flag: 0 or 1",
2484
- "name": "test",
2485
- "hasDynamicHelp": false,
2486
- "multiple": false,
2487
- "options": [
2488
- "0",
2489
- "1"
2490
- ],
2491
- "type": "option"
2492
2429
  }
2493
2430
  },
2494
2431
  "hasDynamicHelp": false,
2495
2432
  "hiddenAliases": [],
2496
- "id": "broadcast:list",
2433
+ "id": "channels:list",
2497
2434
  "pluginAlias": "@instantkom/cli",
2498
2435
  "pluginName": "@instantkom/cli",
2499
2436
  "pluginType": "core",
@@ -2503,20 +2440,20 @@
2503
2440
  "relativePath": [
2504
2441
  "dist",
2505
2442
  "commands",
2506
- "broadcast",
2443
+ "channels",
2507
2444
  "list.js"
2508
2445
  ]
2509
2446
  },
2510
- "broadcast:send": {
2447
+ "channels:update": {
2511
2448
  "aliases": [],
2512
2449
  "args": {
2513
2450
  "id": {
2514
- "description": "Broadcast ID",
2451
+ "description": "Channel ID",
2515
2452
  "name": "id",
2516
2453
  "required": true
2517
2454
  }
2518
2455
  },
2519
- "description": "Send a broadcast immediately",
2456
+ "description": "Update a channel",
2520
2457
  "flags": {
2521
2458
  "api-key": {
2522
2459
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -2579,34 +2516,62 @@
2579
2516
  "hasDynamicHelp": false,
2580
2517
  "multiple": false,
2581
2518
  "type": "option"
2582
- }
2583
- },
2584
- "hasDynamicHelp": false,
2585
- "hiddenAliases": [],
2586
- "id": "broadcast:send",
2587
- "pluginAlias": "@instantkom/cli",
2588
- "pluginName": "@instantkom/cli",
2589
- "pluginType": "core",
2590
- "strict": true,
2591
- "enableJsonFlag": false,
2592
- "isESM": true,
2593
- "relativePath": [
2594
- "dist",
2595
- "commands",
2596
- "broadcast",
2597
- "send.js"
2598
- ]
2519
+ },
2520
+ "name": {
2521
+ "description": "Channel name",
2522
+ "name": "name",
2523
+ "hasDynamicHelp": false,
2524
+ "multiple": false,
2525
+ "type": "option"
2526
+ },
2527
+ "status": {
2528
+ "description": "Channel lifecycle status",
2529
+ "name": "status",
2530
+ "hasDynamicHelp": false,
2531
+ "multiple": false,
2532
+ "type": "option"
2533
+ },
2534
+ "description": {
2535
+ "description": "Channel description",
2536
+ "name": "description",
2537
+ "hasDynamicHelp": false,
2538
+ "multiple": false,
2539
+ "type": "option"
2540
+ },
2541
+ "data": {
2542
+ "description": "Additional JSON object payload",
2543
+ "name": "data",
2544
+ "hasDynamicHelp": false,
2545
+ "multiple": false,
2546
+ "type": "option"
2547
+ }
2548
+ },
2549
+ "hasDynamicHelp": false,
2550
+ "hiddenAliases": [],
2551
+ "id": "channels:update",
2552
+ "pluginAlias": "@instantkom/cli",
2553
+ "pluginName": "@instantkom/cli",
2554
+ "pluginType": "core",
2555
+ "strict": true,
2556
+ "enableJsonFlag": false,
2557
+ "isESM": true,
2558
+ "relativePath": [
2559
+ "dist",
2560
+ "commands",
2561
+ "channels",
2562
+ "update.js"
2563
+ ]
2599
2564
  },
2600
- "broadcast:status": {
2565
+ "chats:get": {
2601
2566
  "aliases": [],
2602
2567
  "args": {
2603
2568
  "id": {
2604
- "description": "Broadcast ID",
2569
+ "description": "chat ID",
2605
2570
  "name": "id",
2606
2571
  "required": true
2607
2572
  }
2608
2573
  },
2609
- "description": "Show broadcast send status",
2574
+ "description": "Get chat by ID",
2610
2575
  "flags": {
2611
2576
  "api-key": {
2612
2577
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -2673,7 +2638,7 @@
2673
2638
  },
2674
2639
  "hasDynamicHelp": false,
2675
2640
  "hiddenAliases": [],
2676
- "id": "broadcast:status",
2641
+ "id": "chats:get",
2677
2642
  "pluginAlias": "@instantkom/cli",
2678
2643
  "pluginName": "@instantkom/cli",
2679
2644
  "pluginType": "core",
@@ -2683,20 +2648,14 @@
2683
2648
  "relativePath": [
2684
2649
  "dist",
2685
2650
  "commands",
2686
- "broadcast",
2687
- "status.js"
2651
+ "chats",
2652
+ "get.js"
2688
2653
  ]
2689
2654
  },
2690
- "broadcast:update": {
2655
+ "chats:list": {
2691
2656
  "aliases": [],
2692
- "args": {
2693
- "id": {
2694
- "description": "Broadcast ID",
2695
- "name": "id",
2696
- "required": true
2697
- }
2698
- },
2699
- "description": "Update a broadcast",
2657
+ "args": {},
2658
+ "description": "List chats",
2700
2659
  "flags": {
2701
2660
  "api-key": {
2702
2661
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -2760,76 +2719,72 @@
2760
2719
  "multiple": false,
2761
2720
  "type": "option"
2762
2721
  },
2763
- "text": {
2764
- "description": "Broadcast message text",
2765
- "name": "text",
2722
+ "page": {
2723
+ "description": "Page number",
2724
+ "name": "page",
2725
+ "default": 1,
2766
2726
  "hasDynamicHelp": false,
2767
2727
  "multiple": false,
2768
2728
  "type": "option"
2769
2729
  },
2770
- "send-status": {
2771
- "description": "Send status",
2772
- "name": "send-status",
2730
+ "limit": {
2731
+ "description": "Items per page",
2732
+ "name": "limit",
2733
+ "default": 20,
2773
2734
  "hasDynamicHelp": false,
2774
2735
  "multiple": false,
2775
2736
  "type": "option"
2776
2737
  },
2777
- "scheduled-at": {
2778
- "description": "Unix timestamp for scheduled send",
2779
- "name": "scheduled-at",
2738
+ "channel": {
2739
+ "description": "Filter by channel ID",
2740
+ "name": "channel",
2780
2741
  "hasDynamicHelp": false,
2781
2742
  "multiple": false,
2782
2743
  "type": "option"
2783
2744
  },
2784
- "approved": {
2785
- "description": "Mark as approved",
2786
- "name": "approved",
2787
- "allowNo": false,
2788
- "type": "boolean"
2789
- },
2790
- "locked": {
2791
- "description": "Mark as locked",
2792
- "name": "locked",
2793
- "allowNo": false,
2794
- "type": "boolean"
2795
- },
2796
- "test": {
2797
- "description": "Mark as test broadcast",
2798
- "name": "test",
2799
- "allowNo": false,
2800
- "type": "boolean"
2801
- },
2802
- "template-id": {
2803
- "description": "Template ID",
2804
- "name": "template-id",
2745
+ "channels": {
2746
+ "description": "Comma-separated channel IDs",
2747
+ "name": "channels",
2805
2748
  "hasDynamicHelp": false,
2806
2749
  "multiple": false,
2807
2750
  "type": "option"
2808
2751
  },
2809
- "remove-media": {
2810
- "description": "Remove existing media",
2811
- "name": "remove-media",
2812
- "allowNo": false,
2813
- "type": "boolean"
2814
- },
2815
- "header-footer": {
2816
- "description": "Header/footer JSON array",
2817
- "name": "header-footer",
2752
+ "search": {
2753
+ "description": "Search chats",
2754
+ "name": "search",
2818
2755
  "hasDynamicHelp": false,
2819
2756
  "multiple": false,
2820
2757
  "type": "option"
2821
2758
  },
2822
- "data": {
2823
- "description": "Additional JSON object payload",
2824
- "name": "data",
2759
+ "status": {
2760
+ "description": "Chat status",
2761
+ "name": "status",
2825
2762
  "hasDynamicHelp": false,
2826
2763
  "multiple": false,
2764
+ "options": [
2765
+ "all",
2766
+ "unread",
2767
+ "read",
2768
+ "archived"
2769
+ ],
2827
2770
  "type": "option"
2771
+ },
2772
+ "unread-only": {
2773
+ "description": "Only unread chats",
2774
+ "name": "unread-only",
2775
+ "allowNo": false,
2776
+ "type": "boolean"
2777
+ },
2778
+ "include-archived": {
2779
+ "description": "Include archived chats",
2780
+ "name": "include-archived",
2781
+ "allowNo": false,
2782
+ "type": "boolean"
2828
2783
  }
2829
2784
  },
2830
2785
  "hasDynamicHelp": false,
2831
2786
  "hiddenAliases": [],
2832
- "id": "broadcast:update",
2787
+ "id": "chats:list",
2833
2788
  "pluginAlias": "@instantkom/cli",
2834
2789
  "pluginName": "@instantkom/cli",
2835
2790
  "pluginType": "core",
@@ -2839,14 +2794,20 @@
2839
2794
  "relativePath": [
2840
2795
  "dist",
2841
2796
  "commands",
2842
- "broadcast",
2843
- "update.js"
2797
+ "chats",
2798
+ "list.js"
2844
2799
  ]
2845
2800
  },
2846
- "channels:create": {
2801
+ "chats:reply": {
2847
2802
  "aliases": [],
2848
- "args": {},
2849
- "description": "Create a channel",
2803
+ "args": {
2804
+ "id": {
2805
+ "description": "Chat ID",
2806
+ "name": "id",
2807
+ "required": true
2808
+ }
2809
+ },
2810
+ "description": "Reply in a chat",
2850
2811
  "flags": {
2851
2812
  "api-key": {
2852
2813
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -2910,39 +2871,100 @@
2910
2871
  "multiple": false,
2911
2872
  "type": "option"
2912
2873
  },
2913
- "name": {
2914
- "description": "Channel name",
2915
- "name": "name",
2874
+ "text": {
2875
+ "description": "Reply text",
2876
+ "name": "text",
2916
2877
  "required": true,
2917
2878
  "hasDynamicHelp": false,
2918
2879
  "multiple": false,
2919
2880
  "type": "option"
2920
- },
2921
- "gateway-type": {
2922
- "description": "Gateway type ID",
2923
- "name": "gateway-type",
2924
- "required": true,
2881
+ }
2882
+ },
2883
+ "hasDynamicHelp": false,
2884
+ "hiddenAliases": [],
2885
+ "id": "chats:reply",
2886
+ "pluginAlias": "@instantkom/cli",
2887
+ "pluginName": "@instantkom/cli",
2888
+ "pluginType": "core",
2889
+ "strict": true,
2890
+ "enableJsonFlag": false,
2891
+ "isESM": true,
2892
+ "relativePath": [
2893
+ "dist",
2894
+ "commands",
2895
+ "chats",
2896
+ "reply.js"
2897
+ ]
2898
+ },
2899
+ "config:get": {
2900
+ "aliases": [],
2901
+ "args": {
2902
+ "key": {
2903
+ "description": "Configuration key to retrieve",
2904
+ "name": "key",
2905
+ "required": true
2906
+ }
2907
+ },
2908
+ "description": "Get a configuration value for the current profile",
2909
+ "flags": {
2910
+ "api-key": {
2911
+ "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
2912
+ "env": "IKM_API_KEY",
2913
+ "helpGroup": "GLOBAL",
2914
+ "name": "api-key",
2925
2915
  "hasDynamicHelp": false,
2926
2916
  "multiple": false,
2927
2917
  "type": "option"
2928
2918
  },
2929
- "status": {
2930
- "description": "Channel lifecycle status",
2931
- "name": "status",
2919
+ "format": {
2920
+ "description": "Output format: text, json, yaml, or table",
2921
+ "helpGroup": "GLOBAL",
2922
+ "name": "format",
2923
+ "default": "text",
2932
2924
  "hasDynamicHelp": false,
2933
2925
  "multiple": false,
2926
+ "options": [
2927
+ "text",
2928
+ "json",
2929
+ "yaml",
2930
+ "table"
2931
+ ],
2934
2932
  "type": "option"
2935
2933
  },
2936
- "description": {
2937
- "description": "Channel description",
2938
- "name": "description",
2934
+ "json": {
2935
+ "description": "Output in JSON format (alias for --format=json)",
2936
+ "helpGroup": "GLOBAL",
2937
+ "name": "json",
2938
+ "allowNo": false,
2939
+ "type": "boolean"
2940
+ },
2941
+ "quiet": {
2942
+ "description": "Suppress all output except errors",
2943
+ "helpGroup": "GLOBAL",
2944
+ "name": "quiet",
2945
+ "allowNo": false,
2946
+ "type": "boolean"
2947
+ },
2948
+ "no-color": {
2949
+ "description": "Disable color output",
2950
+ "helpGroup": "GLOBAL",
2951
+ "name": "no-color",
2952
+ "allowNo": false,
2953
+ "type": "boolean"
2954
+ },
2955
+ "profile": {
2956
+ "description": "Named configuration profile to use",
2957
+ "helpGroup": "GLOBAL",
2958
+ "name": "profile",
2959
+ "default": "default",
2939
2960
  "hasDynamicHelp": false,
2940
2961
  "multiple": false,
2941
2962
  "type": "option"
2942
2963
  },
2943
- "data": {
2944
- "description": "Additional JSON object payload",
2945
- "name": "data",
2964
+ "api-url": {
2965
+ "description": "Override the API base URL (e.g. for staging)",
2966
+ "helpGroup": "GLOBAL",
2967
+ "name": "api-url",
2946
2968
  "hasDynamicHelp": false,
2947
2969
  "multiple": false,
2948
2970
  "type": "option"
@@ -2950,7 +2972,7 @@
2950
2972
  },
2951
2973
  "hasDynamicHelp": false,
2952
2974
  "hiddenAliases": [],
2953
- "id": "channels:create",
2975
+ "id": "config:get",
2954
2976
  "pluginAlias": "@instantkom/cli",
2955
2977
  "pluginName": "@instantkom/cli",
2956
2978
  "pluginType": "core",
@@ -2960,20 +2982,25 @@
2960
2982
  "relativePath": [
2961
2983
  "dist",
2962
2984
  "commands",
2963
- "channels",
2964
- "create.js"
2985
+ "config",
2986
+ "get.js"
2965
2987
  ]
2966
2988
  },
2967
- "channels:get": {
2989
+ "config:set": {
2968
2990
  "aliases": [],
2969
2991
  "args": {
2970
- "id": {
2971
- "description": "Channel ID",
2972
- "name": "id",
2992
+ "key": {
2993
+ "description": "Configuration key to set",
2994
+ "name": "key",
2995
+ "required": true
2996
+ },
2997
+ "value": {
2998
+ "description": "Value to assign",
2999
+ "name": "value",
2973
3000
  "required": true
2974
3001
  }
2975
3002
  },
2976
- "description": "Get a channel by ID",
3003
+ "description": "Set a configuration value for the current profile",
2977
3004
  "flags": {
2978
3005
  "api-key": {
2979
3006
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -3040,7 +3067,7 @@
3040
3067
  },
3041
3068
  "hasDynamicHelp": false,
3042
3069
  "hiddenAliases": [],
3043
- "id": "channels:get",
3070
+ "id": "config:set",
3044
3071
  "pluginAlias": "@instantkom/cli",
3045
3072
  "pluginName": "@instantkom/cli",
3046
3073
  "pluginType": "core",
@@ -3050,20 +3077,20 @@
3050
3077
  "relativePath": [
3051
3078
  "dist",
3052
3079
  "commands",
3053
- "channels",
3054
- "get.js"
3080
+ "config",
3081
+ "set.js"
3055
3082
  ]
3056
3083
  },
3057
- "channels:kpis": {
3084
+ "config:unset": {
3058
3085
  "aliases": [],
3059
3086
  "args": {
3060
- "id": {
3061
- "description": "Optional channel ID; omit for aggregated channel KPIs",
3062
- "name": "id",
3063
- "required": false
3087
+ "key": {
3088
+ "description": "Configuration key to remove",
3089
+ "name": "key",
3090
+ "required": true
3064
3091
  }
3065
3092
  },
3066
- "description": "Get channel KPIs",
3093
+ "description": "Remove a configuration key from the current profile",
3067
3094
  "flags": {
3068
3095
  "api-key": {
3069
3096
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -3126,18 +3153,11 @@
3126
3153
  "hasDynamicHelp": false,
3127
3154
  "multiple": false,
3128
3155
  "type": "option"
3129
- },
3130
- "period": {
3131
- "description": "KPI period",
3132
- "name": "period",
3133
- "hasDynamicHelp": false,
3134
- "multiple": false,
3135
- "type": "option"
3136
3156
  }
3137
3157
  },
3138
3158
  "hasDynamicHelp": false,
3139
3159
  "hiddenAliases": [],
3140
- "id": "channels:kpis",
3160
+ "id": "config:unset",
3141
3161
  "pluginAlias": "@instantkom/cli",
3142
3162
  "pluginName": "@instantkom/cli",
3143
3163
  "pluginType": "core",
@@ -3147,14 +3167,14 @@
3147
3167
  "relativePath": [
3148
3168
  "dist",
3149
3169
  "commands",
3150
- "channels",
3151
- "kpis.js"
3170
+ "config",
3171
+ "unset.js"
3152
3172
  ]
3153
3173
  },
3154
- "channels:list": {
3174
+ "broadcast:create": {
3155
3175
  "aliases": [],
3156
3176
  "args": {},
3157
- "description": "List channels",
3177
+ "description": "Create a broadcast for channels or segments",
3158
3178
  "flags": {
3159
3179
  "api-key": {
3160
3180
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -3218,47 +3238,92 @@
3218
3238
  "multiple": false,
3219
3239
  "type": "option"
3220
3240
  },
3221
- "page": {
3222
- "description": "Page number",
3223
- "name": "page",
3224
- "default": 1,
3241
+ "channel": {
3242
+ "description": "Channel ID target",
3243
+ "name": "channel",
3225
3244
  "hasDynamicHelp": false,
3226
3245
  "multiple": false,
3227
3246
  "type": "option"
3228
3247
  },
3229
- "limit": {
3230
- "description": "Items per page",
3231
- "name": "limit",
3232
- "default": 20,
3248
+ "segment": {
3249
+ "description": "Segment ID within --channel",
3250
+ "name": "segment",
3233
3251
  "hasDynamicHelp": false,
3234
3252
  "multiple": false,
3235
3253
  "type": "option"
3236
3254
  },
3237
- "status": {
3238
- "description": "Filter by channel status",
3239
- "name": "status",
3255
+ "target": {
3256
+ "description": "Target as channelId or channelId:segmentId; may be repeated",
3257
+ "name": "target",
3258
+ "hasDynamicHelp": false,
3259
+ "multiple": true,
3260
+ "type": "option"
3261
+ },
3262
+ "text": {
3263
+ "description": "Broadcast message text",
3264
+ "name": "text",
3265
+ "required": true,
3240
3266
  "hasDynamicHelp": false,
3241
3267
  "multiple": false,
3242
3268
  "type": "option"
3243
3269
  },
3244
- "gateway-type": {
3245
- "description": "Filter by gateway type ID",
3246
- "name": "gateway-type",
3270
+ "send-at": {
3271
+ "description": "Schedule send for an ISO-8601 date-time",
3272
+ "name": "send-at",
3247
3273
  "hasDynamicHelp": false,
3248
3274
  "multiple": false,
3249
3275
  "type": "option"
3250
3276
  },
3251
- "search": {
3252
- "description": "Search by channel name",
3253
- "name": "search",
3277
+ "dry-run": {
3278
+ "description": "Validate and print the broadcast payload without mutating API calls",
3279
+ "name": "dry-run",
3280
+ "allowNo": false,
3281
+ "type": "boolean"
3282
+ },
3283
+ "idempotency-key": {
3284
+ "description": "Idempotency key forwarded as Idempotency-Key",
3285
+ "name": "idempotency-key",
3254
3286
  "hasDynamicHelp": false,
3255
3287
  "multiple": false,
3256
3288
  "type": "option"
3289
+ },
3290
+ "media": {
3291
+ "description": "Media file path to upload",
3292
+ "name": "media",
3293
+ "hasDynamicHelp": false,
3294
+ "multiple": true,
3295
+ "type": "option"
3296
+ },
3297
+ "template-id": {
3298
+ "description": "WhatsApp template ID",
3299
+ "name": "template-id",
3300
+ "hasDynamicHelp": false,
3301
+ "multiple": false,
3302
+ "type": "option"
3303
+ },
3304
+ "send-status": {
3305
+ "description": "Initial broadcast send status",
3306
+ "name": "send-status",
3307
+ "default": "draft",
3308
+ "hasDynamicHelp": false,
3309
+ "multiple": false,
3310
+ "options": [
3311
+ "draft",
3312
+ "scheduled",
3313
+ "sending"
3314
+ ],
3315
+ "type": "option"
3316
+ },
3317
+ "auto-approve": {
3318
+ "description": "Auto-approve broadcast when allowed by API permissions",
3319
+ "name": "auto-approve",
3320
+ "allowNo": false,
3321
+ "type": "boolean"
3257
3322
  }
3258
3323
  },
3259
3324
  "hasDynamicHelp": false,
3260
3325
  "hiddenAliases": [],
3261
- "id": "channels:list",
3326
+ "id": "broadcast:create",
3262
3327
  "pluginAlias": "@instantkom/cli",
3263
3328
  "pluginName": "@instantkom/cli",
3264
3329
  "pluginType": "core",
@@ -3268,20 +3333,20 @@
3268
3333
  "relativePath": [
3269
3334
  "dist",
3270
3335
  "commands",
3271
- "channels",
3272
- "list.js"
3336
+ "broadcast",
3337
+ "create.js"
3273
3338
  ]
3274
3339
  },
3275
- "channels:update": {
3340
+ "broadcast:delete": {
3276
3341
  "aliases": [],
3277
3342
  "args": {
3278
3343
  "id": {
3279
- "description": "Channel ID",
3344
+ "description": "broadcast ID",
3280
3345
  "name": "id",
3281
3346
  "required": true
3282
3347
  }
3283
3348
  },
3284
- "description": "Update a channel",
3349
+ "description": "Delete broadcast",
3285
3350
  "flags": {
3286
3351
  "api-key": {
3287
3352
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -3344,39 +3409,11 @@
3344
3409
  "hasDynamicHelp": false,
3345
3410
  "multiple": false,
3346
3411
  "type": "option"
3347
- },
3348
- "name": {
3349
- "description": "Channel name",
3350
- "name": "name",
3351
- "hasDynamicHelp": false,
3352
- "multiple": false,
3353
- "type": "option"
3354
- },
3355
- "status": {
3356
- "description": "Channel lifecycle status",
3357
- "name": "status",
3358
- "hasDynamicHelp": false,
3359
- "multiple": false,
3360
- "type": "option"
3361
- },
3362
- "description": {
3363
- "description": "Channel description",
3364
- "name": "description",
3365
- "hasDynamicHelp": false,
3366
- "multiple": false,
3367
- "type": "option"
3368
- },
3369
- "data": {
3370
- "description": "Additional JSON object payload",
3371
- "name": "data",
3372
- "hasDynamicHelp": false,
3373
- "multiple": false,
3374
- "type": "option"
3375
3412
  }
3376
3413
  },
3377
3414
  "hasDynamicHelp": false,
3378
3415
  "hiddenAliases": [],
3379
- "id": "channels:update",
3416
+ "id": "broadcast:delete",
3380
3417
  "pluginAlias": "@instantkom/cli",
3381
3418
  "pluginName": "@instantkom/cli",
3382
3419
  "pluginType": "core",
@@ -3386,20 +3423,20 @@
3386
3423
  "relativePath": [
3387
3424
  "dist",
3388
3425
  "commands",
3389
- "channels",
3390
- "update.js"
3426
+ "broadcast",
3427
+ "delete.js"
3391
3428
  ]
3392
3429
  },
3393
- "chats:get": {
3430
+ "broadcast:get": {
3394
3431
  "aliases": [],
3395
3432
  "args": {
3396
3433
  "id": {
3397
- "description": "chat ID",
3434
+ "description": "broadcast ID",
3398
3435
  "name": "id",
3399
3436
  "required": true
3400
3437
  }
3401
3438
  },
3402
- "description": "Get chat by ID",
3439
+ "description": "Get broadcast by ID",
3403
3440
  "flags": {
3404
3441
  "api-key": {
3405
3442
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -3466,7 +3503,7 @@
3466
3503
  },
3467
3504
  "hasDynamicHelp": false,
3468
3505
  "hiddenAliases": [],
3469
- "id": "chats:get",
3506
+ "id": "broadcast:get",
3470
3507
  "pluginAlias": "@instantkom/cli",
3471
3508
  "pluginName": "@instantkom/cli",
3472
3509
  "pluginType": "core",
@@ -3476,14 +3513,14 @@
3476
3513
  "relativePath": [
3477
3514
  "dist",
3478
3515
  "commands",
3479
- "chats",
3516
+ "broadcast",
3480
3517
  "get.js"
3481
3518
  ]
3482
3519
  },
3483
- "chats:list": {
3520
+ "broadcast:list": {
3484
3521
  "aliases": [],
3485
3522
  "args": {},
3486
- "description": "List chats",
3523
+ "description": "List broadcasts",
3487
3524
  "flags": {
3488
3525
  "api-key": {
3489
3526
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -3570,49 +3607,49 @@
3570
3607
  "multiple": false,
3571
3608
  "type": "option"
3572
3609
  },
3573
- "channels": {
3574
- "description": "Comma-separated channel IDs",
3575
- "name": "channels",
3610
+ "send-status": {
3611
+ "description": "Filter by send status",
3612
+ "name": "send-status",
3613
+ "hasDynamicHelp": false,
3614
+ "multiple": false,
3615
+ "type": "option"
3616
+ },
3617
+ "type": {
3618
+ "description": "Broadcast type",
3619
+ "name": "type",
3576
3620
  "hasDynamicHelp": false,
3577
3621
  "multiple": false,
3622
+ "options": [
3623
+ "text",
3624
+ "image",
3625
+ "video",
3626
+ "audio",
3627
+ "document"
3628
+ ],
3578
3629
  "type": "option"
3579
3630
  },
3580
3631
  "search": {
3581
- "description": "Search chats",
3632
+ "description": "Search broadcasts",
3582
3633
  "name": "search",
3583
3634
  "hasDynamicHelp": false,
3584
3635
  "multiple": false,
3585
3636
  "type": "option"
3586
3637
  },
3587
- "status": {
3588
- "description": "Chat status",
3589
- "name": "status",
3638
+ "test": {
3639
+ "description": "Filter test flag: 0 or 1",
3640
+ "name": "test",
3590
3641
  "hasDynamicHelp": false,
3591
3642
  "multiple": false,
3592
3643
  "options": [
3593
- "all",
3594
- "unread",
3595
- "read",
3596
- "archived"
3644
+ "0",
3645
+ "1"
3597
3646
  ],
3598
3647
  "type": "option"
3599
- },
3600
- "unread-only": {
3601
- "description": "Only unread chats",
3602
- "name": "unread-only",
3603
- "allowNo": false,
3604
- "type": "boolean"
3605
- },
3606
- "include-archived": {
3607
- "description": "Include archived chats",
3608
- "name": "include-archived",
3609
- "allowNo": false,
3610
- "type": "boolean"
3611
3648
  }
3612
3649
  },
3613
3650
  "hasDynamicHelp": false,
3614
3651
  "hiddenAliases": [],
3615
- "id": "chats:list",
3652
+ "id": "broadcast:list",
3616
3653
  "pluginAlias": "@instantkom/cli",
3617
3654
  "pluginName": "@instantkom/cli",
3618
3655
  "pluginType": "core",
@@ -3622,20 +3659,20 @@
3622
3659
  "relativePath": [
3623
3660
  "dist",
3624
3661
  "commands",
3625
- "chats",
3662
+ "broadcast",
3626
3663
  "list.js"
3627
3664
  ]
3628
3665
  },
3629
- "chats:reply": {
3666
+ "broadcast:send": {
3630
3667
  "aliases": [],
3631
3668
  "args": {
3632
3669
  "id": {
3633
- "description": "Chat ID",
3670
+ "description": "Broadcast ID",
3634
3671
  "name": "id",
3635
3672
  "required": true
3636
3673
  }
3637
3674
  },
3638
- "description": "Reply in a chat",
3675
+ "description": "Send a broadcast immediately",
3639
3676
  "flags": {
3640
3677
  "api-key": {
3641
3678
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -3698,19 +3735,11 @@
3698
3735
  "hasDynamicHelp": false,
3699
3736
  "multiple": false,
3700
3737
  "type": "option"
3701
- },
3702
- "text": {
3703
- "description": "Reply text",
3704
- "name": "text",
3705
- "required": true,
3706
- "hasDynamicHelp": false,
3707
- "multiple": false,
3708
- "type": "option"
3709
3738
  }
3710
3739
  },
3711
3740
  "hasDynamicHelp": false,
3712
3741
  "hiddenAliases": [],
3713
- "id": "chats:reply",
3742
+ "id": "broadcast:send",
3714
3743
  "pluginAlias": "@instantkom/cli",
3715
3744
  "pluginName": "@instantkom/cli",
3716
3745
  "pluginType": "core",
@@ -3720,20 +3749,20 @@
3720
3749
  "relativePath": [
3721
3750
  "dist",
3722
3751
  "commands",
3723
- "chats",
3724
- "reply.js"
3752
+ "broadcast",
3753
+ "send.js"
3725
3754
  ]
3726
3755
  },
3727
- "config:get": {
3756
+ "broadcast:status": {
3728
3757
  "aliases": [],
3729
3758
  "args": {
3730
- "key": {
3731
- "description": "Configuration key to retrieve",
3732
- "name": "key",
3759
+ "id": {
3760
+ "description": "Broadcast ID",
3761
+ "name": "id",
3733
3762
  "required": true
3734
3763
  }
3735
3764
  },
3736
- "description": "Get a configuration value for the current profile",
3765
+ "description": "Show broadcast send status",
3737
3766
  "flags": {
3738
3767
  "api-key": {
3739
3768
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -3800,7 +3829,7 @@
3800
3829
  },
3801
3830
  "hasDynamicHelp": false,
3802
3831
  "hiddenAliases": [],
3803
- "id": "config:get",
3832
+ "id": "broadcast:status",
3804
3833
  "pluginAlias": "@instantkom/cli",
3805
3834
  "pluginName": "@instantkom/cli",
3806
3835
  "pluginType": "core",
@@ -3810,25 +3839,20 @@
3810
3839
  "relativePath": [
3811
3840
  "dist",
3812
3841
  "commands",
3813
- "config",
3814
- "get.js"
3842
+ "broadcast",
3843
+ "status.js"
3815
3844
  ]
3816
3845
  },
3817
- "config:set": {
3846
+ "broadcast:update": {
3818
3847
  "aliases": [],
3819
3848
  "args": {
3820
- "key": {
3821
- "description": "Configuration key to set",
3822
- "name": "key",
3823
- "required": true
3824
- },
3825
- "value": {
3826
- "description": "Value to assign",
3827
- "name": "value",
3849
+ "id": {
3850
+ "description": "Broadcast ID",
3851
+ "name": "id",
3828
3852
  "required": true
3829
3853
  }
3830
3854
  },
3831
- "description": "Set a configuration value for the current profile",
3855
+ "description": "Update a broadcast",
3832
3856
  "flags": {
3833
3857
  "api-key": {
3834
3858
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -3891,93 +3915,69 @@
3891
3915
  "hasDynamicHelp": false,
3892
3916
  "multiple": false,
3893
3917
  "type": "option"
3894
- }
3895
- },
3896
- "hasDynamicHelp": false,
3897
- "hiddenAliases": [],
3898
- "id": "config:set",
3899
- "pluginAlias": "@instantkom/cli",
3900
- "pluginName": "@instantkom/cli",
3901
- "pluginType": "core",
3902
- "strict": true,
3903
- "enableJsonFlag": false,
3904
- "isESM": true,
3905
- "relativePath": [
3906
- "dist",
3907
- "commands",
3908
- "config",
3909
- "set.js"
3910
- ]
3911
- },
3912
- "config:unset": {
3913
- "aliases": [],
3914
- "args": {
3915
- "key": {
3916
- "description": "Configuration key to remove",
3917
- "name": "key",
3918
- "required": true
3919
- }
3920
- },
3921
- "description": "Remove a configuration key from the current profile",
3922
- "flags": {
3923
- "api-key": {
3924
- "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
3925
- "env": "IKM_API_KEY",
3926
- "helpGroup": "GLOBAL",
3927
- "name": "api-key",
3918
+ },
3919
+ "text": {
3920
+ "description": "Broadcast message text",
3921
+ "name": "text",
3928
3922
  "hasDynamicHelp": false,
3929
3923
  "multiple": false,
3930
3924
  "type": "option"
3931
3925
  },
3932
- "format": {
3933
- "description": "Output format: text, json, yaml, or table",
3934
- "helpGroup": "GLOBAL",
3935
- "name": "format",
3936
- "default": "text",
3926
+ "send-status": {
3927
+ "description": "Send status",
3928
+ "name": "send-status",
3937
3929
  "hasDynamicHelp": false,
3938
3930
  "multiple": false,
3939
- "options": [
3940
- "text",
3941
- "json",
3942
- "yaml",
3943
- "table"
3944
- ],
3945
3931
  "type": "option"
3946
3932
  },
3947
- "json": {
3948
- "description": "Output in JSON format (alias for --format=json)",
3949
- "helpGroup": "GLOBAL",
3950
- "name": "json",
3933
+ "scheduled-at": {
3934
+ "description": "Unix timestamp for scheduled send",
3935
+ "name": "scheduled-at",
3936
+ "hasDynamicHelp": false,
3937
+ "multiple": false,
3938
+ "type": "option"
3939
+ },
3940
+ "approved": {
3941
+ "description": "Mark as approved",
3942
+ "name": "approved",
3951
3943
  "allowNo": false,
3952
3944
  "type": "boolean"
3953
3945
  },
3954
- "quiet": {
3955
- "description": "Suppress all output except errors",
3956
- "helpGroup": "GLOBAL",
3957
- "name": "quiet",
3946
+ "locked": {
3947
+ "description": "Mark as locked",
3948
+ "name": "locked",
3958
3949
  "allowNo": false,
3959
3950
  "type": "boolean"
3960
3951
  },
3961
- "no-color": {
3962
- "description": "Disable color output",
3963
- "helpGroup": "GLOBAL",
3964
- "name": "no-color",
3952
+ "test": {
3953
+ "description": "Mark as test broadcast",
3954
+ "name": "test",
3965
3955
  "allowNo": false,
3966
3956
  "type": "boolean"
3967
3957
  },
3968
- "profile": {
3969
- "description": "Named configuration profile to use",
3970
- "helpGroup": "GLOBAL",
3971
- "name": "profile",
3972
- "default": "default",
3958
+ "template-id": {
3959
+ "description": "Template ID",
3960
+ "name": "template-id",
3961
+ "hasDynamicHelp": false,
3962
+ "multiple": false,
3963
+ "type": "option"
3964
+ },
3965
+ "remove-media": {
3966
+ "description": "Remove existing media",
3967
+ "name": "remove-media",
3968
+ "allowNo": false,
3969
+ "type": "boolean"
3970
+ },
3971
+ "header-footer": {
3972
+ "description": "Header/footer JSON array",
3973
+ "name": "header-footer",
3973
3974
  "hasDynamicHelp": false,
3974
3975
  "multiple": false,
3975
3976
  "type": "option"
3976
3977
  },
3977
- "api-url": {
3978
- "description": "Override the API base URL (e.g. for staging)",
3979
- "helpGroup": "GLOBAL",
3980
- "name": "api-url",
3978
+ "data": {
3979
+ "description": "Additional JSON object payload",
3980
+ "name": "data",
3981
3981
  "hasDynamicHelp": false,
3982
3982
  "multiple": false,
3983
3983
  "type": "option"
@@ -3985,7 +3985,7 @@
3985
3985
  },
3986
3986
  "hasDynamicHelp": false,
3987
3987
  "hiddenAliases": [],
3988
- "id": "config:unset",
3988
+ "id": "broadcast:update",
3989
3989
  "pluginAlias": "@instantkom/cli",
3990
3990
  "pluginName": "@instantkom/cli",
3991
3991
  "pluginType": "core",
@@ -3995,8 +3995,8 @@
3995
3995
  "relativePath": [
3996
3996
  "dist",
3997
3997
  "commands",
3998
- "config",
3999
- "unset.js"
3998
+ "broadcast",
3999
+ "update.js"
4000
4000
  ]
4001
4001
  },
4002
4002
  "contacts:create": {
@@ -10321,10 +10321,10 @@
10321
10321
  "validate-import.js"
10322
10322
  ]
10323
10323
  },
10324
- "tickets:create": {
10324
+ "webhooks:add": {
10325
10325
  "aliases": [],
10326
10326
  "args": {},
10327
- "description": "Create a ticket",
10327
+ "description": "Add a webhook subscription",
10328
10328
  "flags": {
10329
10329
  "api-key": {
10330
10330
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -10388,68 +10388,33 @@
10388
10388
  "multiple": false,
10389
10389
  "type": "option"
10390
10390
  },
10391
- "channel": {
10392
- "description": "Channel ID",
10393
- "name": "channel",
10391
+ "event": {
10392
+ "description": "Webhook event to subscribe to",
10393
+ "name": "event",
10394
10394
  "required": true,
10395
10395
  "hasDynamicHelp": false,
10396
10396
  "multiple": false,
10397
+ "options": [
10398
+ "new_contact",
10399
+ "new_message",
10400
+ "broadcast_sent",
10401
+ "contact_updated",
10402
+ "contact_opted_out"
10403
+ ],
10397
10404
  "type": "option"
10398
10405
  },
10399
- "subject": {
10400
- "description": "Ticket subject",
10401
- "name": "subject",
10406
+ "url": {
10407
+ "description": "HTTPS target URL that receives webhook POSTs",
10408
+ "name": "url",
10402
10409
  "required": true,
10403
10410
  "hasDynamicHelp": false,
10404
10411
  "multiple": false,
10405
10412
  "type": "option"
10406
- },
10407
- "recipient": {
10408
- "description": "Existing recipient ID",
10409
- "name": "recipient",
10410
- "hasDynamicHelp": false,
10411
- "multiple": false,
10412
- "type": "option"
10413
- },
10414
- "email": {
10415
- "description": "Customer email",
10416
- "name": "email",
10417
- "hasDynamicHelp": false,
10418
- "multiple": false,
10419
- "type": "option"
10420
- },
10421
- "name": {
10422
- "description": "Customer name",
10423
- "name": "name",
10424
- "hasDynamicHelp": false,
10425
- "multiple": false,
10426
- "type": "option"
10427
- },
10428
- "priority": {
10429
- "description": "Ticket priority",
10430
- "name": "priority",
10431
- "hasDynamicHelp": false,
10432
- "multiple": false,
10433
- "type": "option"
10434
- },
10435
- "source": {
10436
- "description": "Ticket source",
10437
- "name": "source",
10438
- "hasDynamicHelp": false,
10439
- "multiple": false,
10440
- "type": "option"
10441
- },
10442
- "data": {
10443
- "description": "Additional JSON object payload",
10444
- "name": "data",
10445
- "hasDynamicHelp": false,
10446
- "multiple": false,
10447
- "type": "option"
10448
10413
  }
10449
10414
  },
10450
10415
  "hasDynamicHelp": false,
10451
10416
  "hiddenAliases": [],
10452
- "id": "tickets:create",
10417
+ "id": "webhooks:add",
10453
10418
  "pluginAlias": "@instantkom/cli",
10454
10419
  "pluginName": "@instantkom/cli",
10455
10420
  "pluginType": "core",
@@ -10459,20 +10424,14 @@
10459
10424
  "relativePath": [
10460
10425
  "dist",
10461
10426
  "commands",
10462
- "tickets",
10463
- "create.js"
10427
+ "webhooks",
10428
+ "add.js"
10464
10429
  ]
10465
10430
  },
10466
- "tickets:delete": {
10431
+ "webhooks:events": {
10467
10432
  "aliases": [],
10468
- "args": {
10469
- "id": {
10470
- "description": "Ticket ID",
10471
- "name": "id",
10472
- "required": true
10473
- }
10474
- },
10475
- "description": "Delete a ticket",
10433
+ "args": {},
10434
+ "description": "List supported webhook event names",
10476
10435
  "flags": {
10477
10436
  "api-key": {
10478
10437
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -10535,19 +10494,11 @@
10535
10494
  "hasDynamicHelp": false,
10536
10495
  "multiple": false,
10537
10496
  "type": "option"
10538
- },
10539
- "channel": {
10540
- "description": "Channel ID",
10541
- "name": "channel",
10542
- "required": true,
10543
- "hasDynamicHelp": false,
10544
- "multiple": false,
10545
- "type": "option"
10546
10497
  }
10547
10498
  },
10548
10499
  "hasDynamicHelp": false,
10549
10500
  "hiddenAliases": [],
10550
- "id": "tickets:delete",
10501
+ "id": "webhooks:events",
10551
10502
  "pluginAlias": "@instantkom/cli",
10552
10503
  "pluginName": "@instantkom/cli",
10553
10504
  "pluginType": "core",
@@ -10557,20 +10508,14 @@
10557
10508
  "relativePath": [
10558
10509
  "dist",
10559
10510
  "commands",
10560
- "tickets",
10561
- "delete.js"
10511
+ "webhooks",
10512
+ "events.js"
10562
10513
  ]
10563
10514
  },
10564
- "tickets:get": {
10515
+ "webhooks:list": {
10565
10516
  "aliases": [],
10566
- "args": {
10567
- "id": {
10568
- "description": "Ticket ID",
10569
- "name": "id",
10570
- "required": true
10571
- }
10572
- },
10573
- "description": "Get a ticket by ID",
10517
+ "args": {},
10518
+ "description": "List webhook subscriptions",
10574
10519
  "flags": {
10575
10520
  "api-key": {
10576
10521
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -10633,19 +10578,11 @@
10633
10578
  "hasDynamicHelp": false,
10634
10579
  "multiple": false,
10635
10580
  "type": "option"
10636
- },
10637
- "channel": {
10638
- "description": "Channel ID",
10639
- "name": "channel",
10640
- "required": true,
10641
- "hasDynamicHelp": false,
10642
- "multiple": false,
10643
- "type": "option"
10644
10581
  }
10645
10582
  },
10646
10583
  "hasDynamicHelp": false,
10647
10584
  "hiddenAliases": [],
10648
- "id": "tickets:get",
10585
+ "id": "webhooks:list",
10649
10586
  "pluginAlias": "@instantkom/cli",
10650
10587
  "pluginName": "@instantkom/cli",
10651
10588
  "pluginType": "core",
@@ -10655,14 +10592,14 @@
10655
10592
  "relativePath": [
10656
10593
  "dist",
10657
10594
  "commands",
10658
- "tickets",
10659
- "get.js"
10595
+ "webhooks",
10596
+ "list.js"
10660
10597
  ]
10661
10598
  },
10662
- "tickets:list": {
10599
+ "webhooks:logs": {
10663
10600
  "aliases": [],
10664
10601
  "args": {},
10665
- "description": "List tickets for a channel",
10602
+ "description": "Explain webhook log availability",
10666
10603
  "flags": {
10667
10604
  "api-key": {
10668
10605
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -10725,35 +10662,11 @@
10725
10662
  "hasDynamicHelp": false,
10726
10663
  "multiple": false,
10727
10664
  "type": "option"
10728
- },
10729
- "channel": {
10730
- "description": "Channel ID",
10731
- "name": "channel",
10732
- "required": true,
10733
- "hasDynamicHelp": false,
10734
- "multiple": false,
10735
- "type": "option"
10736
- },
10737
- "limit": {
10738
- "description": "Maximum tickets to return",
10739
- "name": "limit",
10740
- "default": 500,
10741
- "hasDynamicHelp": false,
10742
- "multiple": false,
10743
- "type": "option"
10744
- },
10745
- "offset": {
10746
- "description": "Number of tickets to skip",
10747
- "name": "offset",
10748
- "default": 0,
10749
- "hasDynamicHelp": false,
10750
- "multiple": false,
10751
- "type": "option"
10752
10665
  }
10753
10666
  },
10754
10667
  "hasDynamicHelp": false,
10755
10668
  "hiddenAliases": [],
10756
- "id": "tickets:list",
10669
+ "id": "webhooks:logs",
10757
10670
  "pluginAlias": "@instantkom/cli",
10758
10671
  "pluginName": "@instantkom/cli",
10759
10672
  "pluginType": "core",
@@ -10763,20 +10676,20 @@
10763
10676
  "relativePath": [
10764
10677
  "dist",
10765
10678
  "commands",
10766
- "tickets",
10767
- "list.js"
10679
+ "webhooks",
10680
+ "logs.js"
10768
10681
  ]
10769
10682
  },
10770
- "tickets:reply": {
10683
+ "webhooks:remove": {
10771
10684
  "aliases": [],
10772
10685
  "args": {
10773
10686
  "id": {
10774
- "description": "Ticket ID",
10687
+ "description": "Webhook subscription ID",
10775
10688
  "name": "id",
10776
10689
  "required": true
10777
10690
  }
10778
10691
  },
10779
- "description": "Send a real support reply on a ticket. Delivers the message to the customer and records it in both the ticket history and the Nachrichtenprotokoll. Provide raw body text only; the ticket system auto-prepends the personalised salutation and auto-appends the localised footer for email-channel tickets. Adding your own greetings causes duplicated headers/footers.",
10692
+ "description": "Remove a webhook subscription",
10780
10693
  "flags": {
10781
10694
  "api-key": {
10782
10695
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -10839,25 +10752,11 @@
10839
10752
  "hasDynamicHelp": false,
10840
10753
  "multiple": false,
10841
10754
  "type": "option"
10842
- },
10843
- "message": {
10844
- "description": "Reply body (raw text, no salutation or sign-off)",
10845
- "name": "message",
10846
- "required": true,
10847
- "hasDynamicHelp": false,
10848
- "multiple": false,
10849
- "type": "option"
10850
- },
10851
- "close": {
10852
- "description": "Close the ticket after sending the reply",
10853
- "name": "close",
10854
- "allowNo": false,
10855
- "type": "boolean"
10856
10755
  }
10857
10756
  },
10858
10757
  "hasDynamicHelp": false,
10859
10758
  "hiddenAliases": [],
10860
- "id": "tickets:reply",
10759
+ "id": "webhooks:remove",
10861
10760
  "pluginAlias": "@instantkom/cli",
10862
10761
  "pluginName": "@instantkom/cli",
10863
10762
  "pluginType": "core",
@@ -10867,20 +10766,14 @@
10867
10766
  "relativePath": [
10868
10767
  "dist",
10869
10768
  "commands",
10870
- "tickets",
10871
- "reply.js"
10769
+ "webhooks",
10770
+ "remove.js"
10872
10771
  ]
10873
10772
  },
10874
- "tickets:update": {
10773
+ "webhooks:test": {
10875
10774
  "aliases": [],
10876
- "args": {
10877
- "id": {
10878
- "description": "Ticket ID",
10879
- "name": "id",
10880
- "required": true
10881
- }
10882
- },
10883
- "description": "Update a ticket",
10775
+ "args": {},
10776
+ "description": "Send a test webhook payload to a URL",
10884
10777
  "flags": {
10885
10778
  "api-key": {
10886
10779
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -10944,51 +10837,25 @@
10944
10837
  "multiple": false,
10945
10838
  "type": "option"
10946
10839
  },
10947
- "channel": {
10948
- "description": "Channel ID",
10949
- "name": "channel",
10840
+ "url": {
10841
+ "description": "Webhook URL to call",
10842
+ "name": "url",
10950
10843
  "required": true,
10951
10844
  "hasDynamicHelp": false,
10952
10845
  "multiple": false,
10953
10846
  "type": "option"
10954
10847
  },
10955
- "subject": {
10956
- "description": "Ticket subject",
10957
- "name": "subject",
10958
- "hasDynamicHelp": false,
10959
- "multiple": false,
10960
- "type": "option"
10961
- },
10962
- "priority": {
10963
- "description": "Ticket priority",
10964
- "name": "priority",
10965
- "hasDynamicHelp": false,
10966
- "multiple": false,
10967
- "type": "option"
10968
- },
10969
- "status": {
10970
- "description": "Ticket status",
10971
- "name": "status",
10972
- "hasDynamicHelp": false,
10973
- "multiple": false,
10974
- "type": "option"
10975
- },
10976
- "assigned-to": {
10977
- "description": "User ID to assign the ticket to (use -1 or omit to leave unchanged)",
10978
- "name": "assigned-to",
10848
+ "event": {
10849
+ "description": "Event name",
10850
+ "name": "event",
10851
+ "default": "cli.test",
10979
10852
  "hasDynamicHelp": false,
10980
10853
  "multiple": false,
10981
10854
  "type": "option"
10982
10855
  },
10983
- "notify": {
10984
- "description": "Trigger the legacy notification chain for transitions that have one. On --assigned-to change: fires TICKET_ASSIGN (assignee email plus optional customer reply via tickets_assign_reply_sts). On --status closed transition: fires TICKET_CLOSE (optional customer reply via tickets_close_reply_sts). Defaults to true. Use --no-notify for silent updates.",
10985
- "name": "notify",
10986
- "allowNo": true,
10987
- "type": "boolean"
10988
- },
10989
- "data": {
10990
- "description": "Additional JSON object payload",
10991
- "name": "data",
10856
+ "payload": {
10857
+ "description": "Payload JSON",
10858
+ "name": "payload",
10992
10859
  "hasDynamicHelp": false,
10993
10860
  "multiple": false,
10994
10861
  "type": "option"
@@ -10996,7 +10863,7 @@
10996
10863
  },
10997
10864
  "hasDynamicHelp": false,
10998
10865
  "hiddenAliases": [],
10999
- "id": "tickets:update",
10866
+ "id": "webhooks:test",
11000
10867
  "pluginAlias": "@instantkom/cli",
11001
10868
  "pluginName": "@instantkom/cli",
11002
10869
  "pluginType": "core",
@@ -11006,14 +10873,14 @@
11006
10873
  "relativePath": [
11007
10874
  "dist",
11008
10875
  "commands",
11009
- "tickets",
11010
- "update.js"
10876
+ "webhooks",
10877
+ "test.js"
11011
10878
  ]
11012
10879
  },
11013
- "webhooks:add": {
10880
+ "tickets:create": {
11014
10881
  "aliases": [],
11015
10882
  "args": {},
11016
- "description": "Add a webhook subscription",
10883
+ "description": "Create a ticket",
11017
10884
  "flags": {
11018
10885
  "api-key": {
11019
10886
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -11077,33 +10944,68 @@
11077
10944
  "multiple": false,
11078
10945
  "type": "option"
11079
10946
  },
11080
- "event": {
11081
- "description": "Webhook event to subscribe to",
11082
- "name": "event",
10947
+ "channel": {
10948
+ "description": "Channel ID",
10949
+ "name": "channel",
11083
10950
  "required": true,
11084
10951
  "hasDynamicHelp": false,
11085
10952
  "multiple": false,
11086
- "options": [
11087
- "new_contact",
11088
- "new_message",
11089
- "broadcast_sent",
11090
- "contact_updated",
11091
- "contact_opted_out"
11092
- ],
11093
10953
  "type": "option"
11094
10954
  },
11095
- "url": {
11096
- "description": "HTTPS target URL that receives webhook POSTs",
11097
- "name": "url",
10955
+ "subject": {
10956
+ "description": "Ticket subject",
10957
+ "name": "subject",
11098
10958
  "required": true,
11099
10959
  "hasDynamicHelp": false,
11100
10960
  "multiple": false,
11101
10961
  "type": "option"
10962
+ },
10963
+ "recipient": {
10964
+ "description": "Existing recipient ID",
10965
+ "name": "recipient",
10966
+ "hasDynamicHelp": false,
10967
+ "multiple": false,
10968
+ "type": "option"
10969
+ },
10970
+ "email": {
10971
+ "description": "Customer email",
10972
+ "name": "email",
10973
+ "hasDynamicHelp": false,
10974
+ "multiple": false,
10975
+ "type": "option"
10976
+ },
10977
+ "name": {
10978
+ "description": "Customer name",
10979
+ "name": "name",
10980
+ "hasDynamicHelp": false,
10981
+ "multiple": false,
10982
+ "type": "option"
10983
+ },
10984
+ "priority": {
10985
+ "description": "Ticket priority",
10986
+ "name": "priority",
10987
+ "hasDynamicHelp": false,
10988
+ "multiple": false,
10989
+ "type": "option"
10990
+ },
10991
+ "source": {
10992
+ "description": "Ticket source",
10993
+ "name": "source",
10994
+ "hasDynamicHelp": false,
10995
+ "multiple": false,
10996
+ "type": "option"
10997
+ },
10998
+ "data": {
10999
+ "description": "Additional JSON object payload",
11000
+ "name": "data",
11001
+ "hasDynamicHelp": false,
11002
+ "multiple": false,
11003
+ "type": "option"
11102
11004
  }
11103
11005
  },
11104
11006
  "hasDynamicHelp": false,
11105
11007
  "hiddenAliases": [],
11106
- "id": "webhooks:add",
11008
+ "id": "tickets:create",
11107
11009
  "pluginAlias": "@instantkom/cli",
11108
11010
  "pluginName": "@instantkom/cli",
11109
11011
  "pluginType": "core",
@@ -11113,14 +11015,20 @@
11113
11015
  "relativePath": [
11114
11016
  "dist",
11115
11017
  "commands",
11116
- "webhooks",
11117
- "add.js"
11018
+ "tickets",
11019
+ "create.js"
11118
11020
  ]
11119
11021
  },
11120
- "webhooks:events": {
11022
+ "tickets:delete": {
11121
11023
  "aliases": [],
11122
- "args": {},
11123
- "description": "List supported webhook event names",
11024
+ "args": {
11025
+ "id": {
11026
+ "description": "Ticket ID",
11027
+ "name": "id",
11028
+ "required": true
11029
+ }
11030
+ },
11031
+ "description": "Delete a ticket",
11124
11032
  "flags": {
11125
11033
  "api-key": {
11126
11034
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -11183,11 +11091,19 @@
11183
11091
  "hasDynamicHelp": false,
11184
11092
  "multiple": false,
11185
11093
  "type": "option"
11094
+ },
11095
+ "channel": {
11096
+ "description": "Channel ID",
11097
+ "name": "channel",
11098
+ "required": true,
11099
+ "hasDynamicHelp": false,
11100
+ "multiple": false,
11101
+ "type": "option"
11186
11102
  }
11187
11103
  },
11188
11104
  "hasDynamicHelp": false,
11189
11105
  "hiddenAliases": [],
11190
- "id": "webhooks:events",
11106
+ "id": "tickets:delete",
11191
11107
  "pluginAlias": "@instantkom/cli",
11192
11108
  "pluginName": "@instantkom/cli",
11193
11109
  "pluginType": "core",
@@ -11197,14 +11113,20 @@
11197
11113
  "relativePath": [
11198
11114
  "dist",
11199
11115
  "commands",
11200
- "webhooks",
11201
- "events.js"
11116
+ "tickets",
11117
+ "delete.js"
11202
11118
  ]
11203
11119
  },
11204
- "webhooks:list": {
11120
+ "tickets:get": {
11205
11121
  "aliases": [],
11206
- "args": {},
11207
- "description": "List webhook subscriptions",
11122
+ "args": {
11123
+ "id": {
11124
+ "description": "Ticket ID",
11125
+ "name": "id",
11126
+ "required": true
11127
+ }
11128
+ },
11129
+ "description": "Get a ticket by ID",
11208
11130
  "flags": {
11209
11131
  "api-key": {
11210
11132
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -11267,11 +11189,19 @@
11267
11189
  "hasDynamicHelp": false,
11268
11190
  "multiple": false,
11269
11191
  "type": "option"
11192
+ },
11193
+ "channel": {
11194
+ "description": "Channel ID",
11195
+ "name": "channel",
11196
+ "required": true,
11197
+ "hasDynamicHelp": false,
11198
+ "multiple": false,
11199
+ "type": "option"
11270
11200
  }
11271
11201
  },
11272
11202
  "hasDynamicHelp": false,
11273
11203
  "hiddenAliases": [],
11274
- "id": "webhooks:list",
11204
+ "id": "tickets:get",
11275
11205
  "pluginAlias": "@instantkom/cli",
11276
11206
  "pluginName": "@instantkom/cli",
11277
11207
  "pluginType": "core",
@@ -11281,14 +11211,14 @@
11281
11211
  "relativePath": [
11282
11212
  "dist",
11283
11213
  "commands",
11284
- "webhooks",
11285
- "list.js"
11214
+ "tickets",
11215
+ "get.js"
11286
11216
  ]
11287
11217
  },
11288
- "webhooks:logs": {
11218
+ "tickets:list": {
11289
11219
  "aliases": [],
11290
11220
  "args": {},
11291
- "description": "Explain webhook log availability",
11221
+ "description": "List tickets for a channel",
11292
11222
  "flags": {
11293
11223
  "api-key": {
11294
11224
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -11351,11 +11281,35 @@
11351
11281
  "hasDynamicHelp": false,
11352
11282
  "multiple": false,
11353
11283
  "type": "option"
11284
+ },
11285
+ "channel": {
11286
+ "description": "Channel ID",
11287
+ "name": "channel",
11288
+ "required": true,
11289
+ "hasDynamicHelp": false,
11290
+ "multiple": false,
11291
+ "type": "option"
11292
+ },
11293
+ "limit": {
11294
+ "description": "Maximum tickets to return",
11295
+ "name": "limit",
11296
+ "default": 500,
11297
+ "hasDynamicHelp": false,
11298
+ "multiple": false,
11299
+ "type": "option"
11300
+ },
11301
+ "offset": {
11302
+ "description": "Number of tickets to skip",
11303
+ "name": "offset",
11304
+ "default": 0,
11305
+ "hasDynamicHelp": false,
11306
+ "multiple": false,
11307
+ "type": "option"
11354
11308
  }
11355
11309
  },
11356
11310
  "hasDynamicHelp": false,
11357
11311
  "hiddenAliases": [],
11358
- "id": "webhooks:logs",
11312
+ "id": "tickets:list",
11359
11313
  "pluginAlias": "@instantkom/cli",
11360
11314
  "pluginName": "@instantkom/cli",
11361
11315
  "pluginType": "core",
@@ -11365,20 +11319,20 @@
11365
11319
  "relativePath": [
11366
11320
  "dist",
11367
11321
  "commands",
11368
- "webhooks",
11369
- "logs.js"
11322
+ "tickets",
11323
+ "list.js"
11370
11324
  ]
11371
11325
  },
11372
- "webhooks:remove": {
11326
+ "tickets:reply": {
11373
11327
  "aliases": [],
11374
11328
  "args": {
11375
11329
  "id": {
11376
- "description": "Webhook subscription ID",
11330
+ "description": "Ticket ID",
11377
11331
  "name": "id",
11378
11332
  "required": true
11379
11333
  }
11380
11334
  },
11381
- "description": "Remove a webhook subscription",
11335
+ "description": "Send a real support reply on a ticket. Delivers the message to the customer and records it in both the ticket history and the Nachrichtenprotokoll. Provide raw body text only; the ticket system auto-prepends the personalised salutation and auto-appends the localised footer for email-channel tickets. Adding your own greetings causes duplicated headers/footers.",
11382
11336
  "flags": {
11383
11337
  "api-key": {
11384
11338
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -11441,11 +11395,25 @@
11441
11395
  "hasDynamicHelp": false,
11442
11396
  "multiple": false,
11443
11397
  "type": "option"
11398
+ },
11399
+ "message": {
11400
+ "description": "Reply body (raw text, no salutation or sign-off)",
11401
+ "name": "message",
11402
+ "required": true,
11403
+ "hasDynamicHelp": false,
11404
+ "multiple": false,
11405
+ "type": "option"
11406
+ },
11407
+ "close": {
11408
+ "description": "Close the ticket after sending the reply",
11409
+ "name": "close",
11410
+ "allowNo": false,
11411
+ "type": "boolean"
11444
11412
  }
11445
11413
  },
11446
11414
  "hasDynamicHelp": false,
11447
11415
  "hiddenAliases": [],
11448
- "id": "webhooks:remove",
11416
+ "id": "tickets:reply",
11449
11417
  "pluginAlias": "@instantkom/cli",
11450
11418
  "pluginName": "@instantkom/cli",
11451
11419
  "pluginType": "core",
@@ -11455,14 +11423,20 @@
11455
11423
  "relativePath": [
11456
11424
  "dist",
11457
11425
  "commands",
11458
- "webhooks",
11459
- "remove.js"
11426
+ "tickets",
11427
+ "reply.js"
11460
11428
  ]
11461
11429
  },
11462
- "webhooks:test": {
11430
+ "tickets:update": {
11463
11431
  "aliases": [],
11464
- "args": {},
11465
- "description": "Send a test webhook payload to a URL",
11432
+ "args": {
11433
+ "id": {
11434
+ "description": "Ticket ID",
11435
+ "name": "id",
11436
+ "required": true
11437
+ }
11438
+ },
11439
+ "description": "Update a ticket",
11466
11440
  "flags": {
11467
11441
  "api-key": {
11468
11442
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -11526,25 +11500,51 @@
11526
11500
  "multiple": false,
11527
11501
  "type": "option"
11528
11502
  },
11529
- "url": {
11530
- "description": "Webhook URL to call",
11531
- "name": "url",
11503
+ "channel": {
11504
+ "description": "Channel ID",
11505
+ "name": "channel",
11532
11506
  "required": true,
11533
11507
  "hasDynamicHelp": false,
11534
11508
  "multiple": false,
11535
11509
  "type": "option"
11536
11510
  },
11537
- "event": {
11538
- "description": "Event name",
11539
- "name": "event",
11540
- "default": "cli.test",
11511
+ "subject": {
11512
+ "description": "Ticket subject",
11513
+ "name": "subject",
11541
11514
  "hasDynamicHelp": false,
11542
11515
  "multiple": false,
11543
11516
  "type": "option"
11544
11517
  },
11545
- "payload": {
11546
- "description": "Payload JSON",
11547
- "name": "payload",
11518
+ "priority": {
11519
+ "description": "Ticket priority",
11520
+ "name": "priority",
11521
+ "hasDynamicHelp": false,
11522
+ "multiple": false,
11523
+ "type": "option"
11524
+ },
11525
+ "status": {
11526
+ "description": "Ticket status",
11527
+ "name": "status",
11528
+ "hasDynamicHelp": false,
11529
+ "multiple": false,
11530
+ "type": "option"
11531
+ },
11532
+ "assigned-to": {
11533
+ "description": "User ID to assign the ticket to (use -1 or omit to leave unchanged)",
11534
+ "name": "assigned-to",
11535
+ "hasDynamicHelp": false,
11536
+ "multiple": false,
11537
+ "type": "option"
11538
+ },
11539
+ "notify": {
11540
+ "description": "Trigger the legacy notification chain for transitions that have one. On --assigned-to change: fires TICKET_ASSIGN (assignee email plus optional customer reply via tickets_assign_reply_sts). On --status closed transition: fires TICKET_CLOSE (optional customer reply via tickets_close_reply_sts). Defaults to true. Use --no-notify for silent updates.",
11541
+ "name": "notify",
11542
+ "allowNo": true,
11543
+ "type": "boolean"
11544
+ },
11545
+ "data": {
11546
+ "description": "Additional JSON object payload",
11547
+ "name": "data",
11548
11548
  "hasDynamicHelp": false,
11549
11549
  "multiple": false,
11550
11550
  "type": "option"
@@ -11552,7 +11552,7 @@
11552
11552
  },
11553
11553
  "hasDynamicHelp": false,
11554
11554
  "hiddenAliases": [],
11555
- "id": "webhooks:test",
11555
+ "id": "tickets:update",
11556
11556
  "pluginAlias": "@instantkom/cli",
11557
11557
  "pluginName": "@instantkom/cli",
11558
11558
  "pluginType": "core",
@@ -11562,8 +11562,8 @@
11562
11562
  "relativePath": [
11563
11563
  "dist",
11564
11564
  "commands",
11565
- "webhooks",
11566
- "test.js"
11565
+ "tickets",
11566
+ "update.js"
11567
11567
  ]
11568
11568
  },
11569
11569
  "auth:tokens:create": {
@@ -16352,5 +16352,5 @@
16352
16352
  ]
16353
16353
  }
16354
16354
  },
16355
- "version": "3.143.1"
16355
+ "version": "3.144.0"
16356
16356
  }