@instantkom/cli 3.184.1 → 3.185.1

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": {},
@@ -2015,10 +1981,44 @@
2015
1981
  "update.js"
2016
1982
  ]
2017
1983
  },
2018
- "channels:create": {
1984
+ "autocomplete:script": {
1985
+ "aliases": [],
1986
+ "args": {
1987
+ "shell": {
1988
+ "description": "Shell type",
1989
+ "name": "shell",
1990
+ "options": [
1991
+ "zsh",
1992
+ "bash",
1993
+ "fish",
1994
+ "powershell"
1995
+ ],
1996
+ "required": false
1997
+ }
1998
+ },
1999
+ "description": "outputs autocomplete config script for shells",
2000
+ "flags": {},
2001
+ "hasDynamicHelp": false,
2002
+ "hidden": true,
2003
+ "hiddenAliases": [],
2004
+ "id": "autocomplete:script",
2005
+ "pluginAlias": "@instantkom/cli",
2006
+ "pluginName": "@instantkom/cli",
2007
+ "pluginType": "core",
2008
+ "strict": true,
2009
+ "enableJsonFlag": false,
2010
+ "isESM": true,
2011
+ "relativePath": [
2012
+ "dist",
2013
+ "commands",
2014
+ "autocomplete",
2015
+ "script.js"
2016
+ ]
2017
+ },
2018
+ "broadcast:create": {
2019
2019
  "aliases": [],
2020
2020
  "args": {},
2021
- "description": "Create a channel",
2021
+ "description": "Create a broadcast for channels or segments",
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,47 +2082,92 @@
2082
2082
  "multiple": false,
2083
2083
  "type": "option"
2084
2084
  },
2085
- "name": {
2086
- "description": "Channel name",
2087
- "name": "name",
2088
- "required": true,
2085
+ "channel": {
2086
+ "description": "Channel ID target",
2087
+ "name": "channel",
2089
2088
  "hasDynamicHelp": false,
2090
2089
  "multiple": false,
2091
2090
  "type": "option"
2092
2091
  },
2093
- "gateway-type": {
2094
- "description": "Gateway type ID",
2095
- "name": "gateway-type",
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",
2096
2109
  "required": true,
2097
2110
  "hasDynamicHelp": false,
2098
2111
  "multiple": false,
2099
2112
  "type": "option"
2100
2113
  },
2101
- "status": {
2102
- "description": "Channel lifecycle status",
2103
- "name": "status",
2114
+ "send-at": {
2115
+ "description": "Schedule send for an ISO-8601 date-time",
2116
+ "name": "send-at",
2104
2117
  "hasDynamicHelp": false,
2105
2118
  "multiple": false,
2106
2119
  "type": "option"
2107
2120
  },
2108
- "description": {
2109
- "description": "Channel description",
2110
- "name": "description",
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",
2111
2130
  "hasDynamicHelp": false,
2112
2131
  "multiple": false,
2113
2132
  "type": "option"
2114
2133
  },
2115
- "data": {
2116
- "description": "Additional JSON object payload",
2117
- "name": "data",
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",
2144
+ "hasDynamicHelp": false,
2145
+ "multiple": false,
2146
+ "type": "option"
2147
+ },
2148
+ "send-status": {
2149
+ "description": "Initial broadcast send status",
2150
+ "name": "send-status",
2151
+ "default": "draft",
2118
2152
  "hasDynamicHelp": false,
2119
2153
  "multiple": false,
2154
+ "options": [
2155
+ "draft",
2156
+ "scheduled",
2157
+ "sending"
2158
+ ],
2120
2159
  "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"
2121
2166
  }
2122
2167
  },
2123
2168
  "hasDynamicHelp": false,
2124
2169
  "hiddenAliases": [],
2125
- "id": "channels:create",
2170
+ "id": "broadcast:create",
2126
2171
  "pluginAlias": "@instantkom/cli",
2127
2172
  "pluginName": "@instantkom/cli",
2128
2173
  "pluginType": "core",
@@ -2132,20 +2177,20 @@
2132
2177
  "relativePath": [
2133
2178
  "dist",
2134
2179
  "commands",
2135
- "channels",
2180
+ "broadcast",
2136
2181
  "create.js"
2137
2182
  ]
2138
2183
  },
2139
- "channels:get": {
2184
+ "broadcast:delete": {
2140
2185
  "aliases": [],
2141
2186
  "args": {
2142
2187
  "id": {
2143
- "description": "Channel ID",
2188
+ "description": "broadcast ID",
2144
2189
  "name": "id",
2145
2190
  "required": true
2146
2191
  }
2147
2192
  },
2148
- "description": "Get a channel by ID",
2193
+ "description": "Delete broadcast",
2149
2194
  "flags": {
2150
2195
  "api-key": {
2151
2196
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -2212,7 +2257,7 @@
2212
2257
  },
2213
2258
  "hasDynamicHelp": false,
2214
2259
  "hiddenAliases": [],
2215
- "id": "channels:get",
2260
+ "id": "broadcast:delete",
2216
2261
  "pluginAlias": "@instantkom/cli",
2217
2262
  "pluginName": "@instantkom/cli",
2218
2263
  "pluginType": "core",
@@ -2222,20 +2267,20 @@
2222
2267
  "relativePath": [
2223
2268
  "dist",
2224
2269
  "commands",
2225
- "channels",
2226
- "get.js"
2270
+ "broadcast",
2271
+ "delete.js"
2227
2272
  ]
2228
2273
  },
2229
- "channels:kpis": {
2274
+ "broadcast:get": {
2230
2275
  "aliases": [],
2231
2276
  "args": {
2232
2277
  "id": {
2233
- "description": "Optional channel ID; omit for aggregated channel KPIs",
2278
+ "description": "broadcast ID",
2234
2279
  "name": "id",
2235
- "required": false
2280
+ "required": true
2236
2281
  }
2237
2282
  },
2238
- "description": "Get channel KPIs",
2283
+ "description": "Get broadcast by ID",
2239
2284
  "flags": {
2240
2285
  "api-key": {
2241
2286
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -2298,18 +2343,11 @@
2298
2343
  "hasDynamicHelp": false,
2299
2344
  "multiple": false,
2300
2345
  "type": "option"
2301
- },
2302
- "period": {
2303
- "description": "KPI period",
2304
- "name": "period",
2305
- "hasDynamicHelp": false,
2306
- "multiple": false,
2307
- "type": "option"
2308
2346
  }
2309
2347
  },
2310
2348
  "hasDynamicHelp": false,
2311
2349
  "hiddenAliases": [],
2312
- "id": "channels:kpis",
2350
+ "id": "broadcast:get",
2313
2351
  "pluginAlias": "@instantkom/cli",
2314
2352
  "pluginName": "@instantkom/cli",
2315
2353
  "pluginType": "core",
@@ -2319,14 +2357,14 @@
2319
2357
  "relativePath": [
2320
2358
  "dist",
2321
2359
  "commands",
2322
- "channels",
2323
- "kpis.js"
2360
+ "broadcast",
2361
+ "get.js"
2324
2362
  ]
2325
2363
  },
2326
- "channels:list": {
2364
+ "broadcast:list": {
2327
2365
  "aliases": [],
2328
2366
  "args": {},
2329
- "description": "List channels",
2367
+ "description": "List broadcasts",
2330
2368
  "flags": {
2331
2369
  "api-key": {
2332
2370
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -2406,31 +2444,56 @@
2406
2444
  "multiple": false,
2407
2445
  "type": "option"
2408
2446
  },
2409
- "status": {
2410
- "description": "Filter by channel status",
2411
- "name": "status",
2447
+ "channel": {
2448
+ "description": "Filter by channel ID",
2449
+ "name": "channel",
2412
2450
  "hasDynamicHelp": false,
2413
2451
  "multiple": false,
2414
2452
  "type": "option"
2415
2453
  },
2416
- "gateway-type": {
2417
- "description": "Filter by gateway type ID",
2418
- "name": "gateway-type",
2454
+ "send-status": {
2455
+ "description": "Filter by send status",
2456
+ "name": "send-status",
2457
+ "hasDynamicHelp": false,
2458
+ "multiple": false,
2459
+ "type": "option"
2460
+ },
2461
+ "type": {
2462
+ "description": "Broadcast type",
2463
+ "name": "type",
2419
2464
  "hasDynamicHelp": false,
2420
2465
  "multiple": false,
2466
+ "options": [
2467
+ "text",
2468
+ "image",
2469
+ "video",
2470
+ "audio",
2471
+ "document"
2472
+ ],
2421
2473
  "type": "option"
2422
2474
  },
2423
2475
  "search": {
2424
- "description": "Search by channel name",
2476
+ "description": "Search broadcasts",
2425
2477
  "name": "search",
2426
2478
  "hasDynamicHelp": false,
2427
2479
  "multiple": false,
2428
2480
  "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"
2429
2492
  }
2430
2493
  },
2431
2494
  "hasDynamicHelp": false,
2432
2495
  "hiddenAliases": [],
2433
- "id": "channels:list",
2496
+ "id": "broadcast:list",
2434
2497
  "pluginAlias": "@instantkom/cli",
2435
2498
  "pluginName": "@instantkom/cli",
2436
2499
  "pluginType": "core",
@@ -2440,20 +2503,20 @@
2440
2503
  "relativePath": [
2441
2504
  "dist",
2442
2505
  "commands",
2443
- "channels",
2506
+ "broadcast",
2444
2507
  "list.js"
2445
2508
  ]
2446
2509
  },
2447
- "channels:update": {
2510
+ "broadcast:send": {
2448
2511
  "aliases": [],
2449
2512
  "args": {
2450
2513
  "id": {
2451
- "description": "Channel ID",
2514
+ "description": "Broadcast ID",
2452
2515
  "name": "id",
2453
2516
  "required": true
2454
2517
  }
2455
2518
  },
2456
- "description": "Update a channel",
2519
+ "description": "Send a broadcast immediately",
2457
2520
  "flags": {
2458
2521
  "api-key": {
2459
2522
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -2516,39 +2579,11 @@
2516
2579
  "hasDynamicHelp": false,
2517
2580
  "multiple": false,
2518
2581
  "type": "option"
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
2582
  }
2548
2583
  },
2549
2584
  "hasDynamicHelp": false,
2550
2585
  "hiddenAliases": [],
2551
- "id": "channels:update",
2586
+ "id": "broadcast:send",
2552
2587
  "pluginAlias": "@instantkom/cli",
2553
2588
  "pluginName": "@instantkom/cli",
2554
2589
  "pluginType": "core",
@@ -2558,14 +2593,20 @@
2558
2593
  "relativePath": [
2559
2594
  "dist",
2560
2595
  "commands",
2561
- "channels",
2562
- "update.js"
2596
+ "broadcast",
2597
+ "send.js"
2563
2598
  ]
2564
2599
  },
2565
- "broadcast:create": {
2600
+ "broadcast:status": {
2566
2601
  "aliases": [],
2567
- "args": {},
2568
- "description": "Create a broadcast for channels or segments",
2602
+ "args": {
2603
+ "id": {
2604
+ "description": "Broadcast ID",
2605
+ "name": "id",
2606
+ "required": true
2607
+ }
2608
+ },
2609
+ "description": "Show broadcast send status",
2569
2610
  "flags": {
2570
2611
  "api-key": {
2571
2612
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -2628,93 +2669,11 @@
2628
2669
  "hasDynamicHelp": false,
2629
2670
  "multiple": false,
2630
2671
  "type": "option"
2631
- },
2632
- "channel": {
2633
- "description": "Channel ID target",
2634
- "name": "channel",
2635
- "hasDynamicHelp": false,
2636
- "multiple": false,
2637
- "type": "option"
2638
- },
2639
- "segment": {
2640
- "description": "Segment ID within --channel",
2641
- "name": "segment",
2642
- "hasDynamicHelp": false,
2643
- "multiple": false,
2644
- "type": "option"
2645
- },
2646
- "target": {
2647
- "description": "Target as channelId or channelId:segmentId; may be repeated",
2648
- "name": "target",
2649
- "hasDynamicHelp": false,
2650
- "multiple": true,
2651
- "type": "option"
2652
- },
2653
- "text": {
2654
- "description": "Broadcast message text",
2655
- "name": "text",
2656
- "required": true,
2657
- "hasDynamicHelp": false,
2658
- "multiple": false,
2659
- "type": "option"
2660
- },
2661
- "send-at": {
2662
- "description": "Schedule send for an ISO-8601 date-time",
2663
- "name": "send-at",
2664
- "hasDynamicHelp": false,
2665
- "multiple": false,
2666
- "type": "option"
2667
- },
2668
- "dry-run": {
2669
- "description": "Validate and print the broadcast payload without mutating API calls",
2670
- "name": "dry-run",
2671
- "allowNo": false,
2672
- "type": "boolean"
2673
- },
2674
- "idempotency-key": {
2675
- "description": "Idempotency key forwarded as Idempotency-Key",
2676
- "name": "idempotency-key",
2677
- "hasDynamicHelp": false,
2678
- "multiple": false,
2679
- "type": "option"
2680
- },
2681
- "media": {
2682
- "description": "Media file path to upload",
2683
- "name": "media",
2684
- "hasDynamicHelp": false,
2685
- "multiple": true,
2686
- "type": "option"
2687
- },
2688
- "template-id": {
2689
- "description": "WhatsApp template ID",
2690
- "name": "template-id",
2691
- "hasDynamicHelp": false,
2692
- "multiple": false,
2693
- "type": "option"
2694
- },
2695
- "send-status": {
2696
- "description": "Initial broadcast send status",
2697
- "name": "send-status",
2698
- "default": "draft",
2699
- "hasDynamicHelp": false,
2700
- "multiple": false,
2701
- "options": [
2702
- "draft",
2703
- "scheduled",
2704
- "sending"
2705
- ],
2706
- "type": "option"
2707
- },
2708
- "auto-approve": {
2709
- "description": "Auto-approve broadcast when allowed by API permissions",
2710
- "name": "auto-approve",
2711
- "allowNo": false,
2712
- "type": "boolean"
2713
2672
  }
2714
2673
  },
2715
2674
  "hasDynamicHelp": false,
2716
2675
  "hiddenAliases": [],
2717
- "id": "broadcast:create",
2676
+ "id": "broadcast:status",
2718
2677
  "pluginAlias": "@instantkom/cli",
2719
2678
  "pluginName": "@instantkom/cli",
2720
2679
  "pluginType": "core",
@@ -2725,19 +2684,19 @@
2725
2684
  "dist",
2726
2685
  "commands",
2727
2686
  "broadcast",
2728
- "create.js"
2687
+ "status.js"
2729
2688
  ]
2730
2689
  },
2731
- "broadcast:delete": {
2690
+ "broadcast:update": {
2732
2691
  "aliases": [],
2733
2692
  "args": {
2734
2693
  "id": {
2735
- "description": "broadcast ID",
2694
+ "description": "Broadcast ID",
2736
2695
  "name": "id",
2737
2696
  "required": true
2738
2697
  }
2739
2698
  },
2740
- "description": "Delete broadcast",
2699
+ "description": "Update a broadcast",
2741
2700
  "flags": {
2742
2701
  "api-key": {
2743
2702
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -2800,11 +2759,77 @@
2800
2759
  "hasDynamicHelp": false,
2801
2760
  "multiple": false,
2802
2761
  "type": "option"
2762
+ },
2763
+ "text": {
2764
+ "description": "Broadcast message text",
2765
+ "name": "text",
2766
+ "hasDynamicHelp": false,
2767
+ "multiple": false,
2768
+ "type": "option"
2769
+ },
2770
+ "send-status": {
2771
+ "description": "Send status",
2772
+ "name": "send-status",
2773
+ "hasDynamicHelp": false,
2774
+ "multiple": false,
2775
+ "type": "option"
2776
+ },
2777
+ "scheduled-at": {
2778
+ "description": "Unix timestamp for scheduled send",
2779
+ "name": "scheduled-at",
2780
+ "hasDynamicHelp": false,
2781
+ "multiple": false,
2782
+ "type": "option"
2783
+ },
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",
2805
+ "hasDynamicHelp": false,
2806
+ "multiple": false,
2807
+ "type": "option"
2808
+ },
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",
2818
+ "hasDynamicHelp": false,
2819
+ "multiple": false,
2820
+ "type": "option"
2821
+ },
2822
+ "data": {
2823
+ "description": "Additional JSON object payload",
2824
+ "name": "data",
2825
+ "hasDynamicHelp": false,
2826
+ "multiple": false,
2827
+ "type": "option"
2803
2828
  }
2804
2829
  },
2805
2830
  "hasDynamicHelp": false,
2806
2831
  "hiddenAliases": [],
2807
- "id": "broadcast:delete",
2832
+ "id": "broadcast:update",
2808
2833
  "pluginAlias": "@instantkom/cli",
2809
2834
  "pluginName": "@instantkom/cli",
2810
2835
  "pluginType": "core",
@@ -2815,19 +2840,19 @@
2815
2840
  "dist",
2816
2841
  "commands",
2817
2842
  "broadcast",
2818
- "delete.js"
2843
+ "update.js"
2819
2844
  ]
2820
2845
  },
2821
- "broadcast:get": {
2846
+ "chats:get": {
2822
2847
  "aliases": [],
2823
2848
  "args": {
2824
2849
  "id": {
2825
- "description": "broadcast ID",
2850
+ "description": "chat ID",
2826
2851
  "name": "id",
2827
2852
  "required": true
2828
2853
  }
2829
2854
  },
2830
- "description": "Get broadcast by ID",
2855
+ "description": "Get chat by ID",
2831
2856
  "flags": {
2832
2857
  "api-key": {
2833
2858
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -2894,7 +2919,7 @@
2894
2919
  },
2895
2920
  "hasDynamicHelp": false,
2896
2921
  "hiddenAliases": [],
2897
- "id": "broadcast:get",
2922
+ "id": "chats:get",
2898
2923
  "pluginAlias": "@instantkom/cli",
2899
2924
  "pluginName": "@instantkom/cli",
2900
2925
  "pluginType": "core",
@@ -2904,14 +2929,14 @@
2904
2929
  "relativePath": [
2905
2930
  "dist",
2906
2931
  "commands",
2907
- "broadcast",
2932
+ "chats",
2908
2933
  "get.js"
2909
2934
  ]
2910
2935
  },
2911
- "broadcast:list": {
2936
+ "chats:list": {
2912
2937
  "aliases": [],
2913
2938
  "args": {},
2914
- "description": "List broadcasts",
2939
+ "description": "List chats",
2915
2940
  "flags": {
2916
2941
  "api-key": {
2917
2942
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -2998,49 +3023,49 @@
2998
3023
  "multiple": false,
2999
3024
  "type": "option"
3000
3025
  },
3001
- "send-status": {
3002
- "description": "Filter by send status",
3003
- "name": "send-status",
3004
- "hasDynamicHelp": false,
3005
- "multiple": false,
3006
- "type": "option"
3007
- },
3008
- "type": {
3009
- "description": "Broadcast type",
3010
- "name": "type",
3026
+ "channels": {
3027
+ "description": "Comma-separated channel IDs",
3028
+ "name": "channels",
3011
3029
  "hasDynamicHelp": false,
3012
3030
  "multiple": false,
3013
- "options": [
3014
- "text",
3015
- "image",
3016
- "video",
3017
- "audio",
3018
- "document"
3019
- ],
3020
3031
  "type": "option"
3021
3032
  },
3022
3033
  "search": {
3023
- "description": "Search broadcasts",
3034
+ "description": "Search chats",
3024
3035
  "name": "search",
3025
3036
  "hasDynamicHelp": false,
3026
3037
  "multiple": false,
3027
3038
  "type": "option"
3028
3039
  },
3029
- "test": {
3030
- "description": "Filter test flag: 0 or 1",
3031
- "name": "test",
3040
+ "status": {
3041
+ "description": "Chat status",
3042
+ "name": "status",
3032
3043
  "hasDynamicHelp": false,
3033
3044
  "multiple": false,
3034
3045
  "options": [
3035
- "0",
3036
- "1"
3046
+ "all",
3047
+ "unread",
3048
+ "read",
3049
+ "archived"
3037
3050
  ],
3038
3051
  "type": "option"
3052
+ },
3053
+ "unread-only": {
3054
+ "description": "Only unread chats",
3055
+ "name": "unread-only",
3056
+ "allowNo": false,
3057
+ "type": "boolean"
3058
+ },
3059
+ "include-archived": {
3060
+ "description": "Include archived chats",
3061
+ "name": "include-archived",
3062
+ "allowNo": false,
3063
+ "type": "boolean"
3039
3064
  }
3040
3065
  },
3041
3066
  "hasDynamicHelp": false,
3042
3067
  "hiddenAliases": [],
3043
- "id": "broadcast:list",
3068
+ "id": "chats:list",
3044
3069
  "pluginAlias": "@instantkom/cli",
3045
3070
  "pluginName": "@instantkom/cli",
3046
3071
  "pluginType": "core",
@@ -3050,20 +3075,20 @@
3050
3075
  "relativePath": [
3051
3076
  "dist",
3052
3077
  "commands",
3053
- "broadcast",
3078
+ "chats",
3054
3079
  "list.js"
3055
3080
  ]
3056
3081
  },
3057
- "broadcast:send": {
3082
+ "chats:reply": {
3058
3083
  "aliases": [],
3059
3084
  "args": {
3060
3085
  "id": {
3061
- "description": "Broadcast ID",
3086
+ "description": "Chat ID",
3062
3087
  "name": "id",
3063
3088
  "required": true
3064
3089
  }
3065
3090
  },
3066
- "description": "Send a broadcast immediately",
3091
+ "description": "Reply in a chat",
3067
3092
  "flags": {
3068
3093
  "api-key": {
3069
3094
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -3126,11 +3151,19 @@
3126
3151
  "hasDynamicHelp": false,
3127
3152
  "multiple": false,
3128
3153
  "type": "option"
3154
+ },
3155
+ "text": {
3156
+ "description": "Reply text",
3157
+ "name": "text",
3158
+ "required": true,
3159
+ "hasDynamicHelp": false,
3160
+ "multiple": false,
3161
+ "type": "option"
3129
3162
  }
3130
3163
  },
3131
3164
  "hasDynamicHelp": false,
3132
3165
  "hiddenAliases": [],
3133
- "id": "broadcast:send",
3166
+ "id": "chats:reply",
3134
3167
  "pluginAlias": "@instantkom/cli",
3135
3168
  "pluginName": "@instantkom/cli",
3136
3169
  "pluginType": "core",
@@ -3140,20 +3173,14 @@
3140
3173
  "relativePath": [
3141
3174
  "dist",
3142
3175
  "commands",
3143
- "broadcast",
3144
- "send.js"
3176
+ "chats",
3177
+ "reply.js"
3145
3178
  ]
3146
3179
  },
3147
- "broadcast:status": {
3180
+ "channels:create": {
3148
3181
  "aliases": [],
3149
- "args": {
3150
- "id": {
3151
- "description": "Broadcast ID",
3152
- "name": "id",
3153
- "required": true
3154
- }
3155
- },
3156
- "description": "Show broadcast send status",
3182
+ "args": {},
3183
+ "description": "Create a channel",
3157
3184
  "flags": {
3158
3185
  "api-key": {
3159
3186
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -3216,11 +3243,48 @@
3216
3243
  "hasDynamicHelp": false,
3217
3244
  "multiple": false,
3218
3245
  "type": "option"
3246
+ },
3247
+ "name": {
3248
+ "description": "Channel name",
3249
+ "name": "name",
3250
+ "required": true,
3251
+ "hasDynamicHelp": false,
3252
+ "multiple": false,
3253
+ "type": "option"
3254
+ },
3255
+ "gateway-type": {
3256
+ "description": "Gateway type ID",
3257
+ "name": "gateway-type",
3258
+ "required": true,
3259
+ "hasDynamicHelp": false,
3260
+ "multiple": false,
3261
+ "type": "option"
3262
+ },
3263
+ "status": {
3264
+ "description": "Channel lifecycle status",
3265
+ "name": "status",
3266
+ "hasDynamicHelp": false,
3267
+ "multiple": false,
3268
+ "type": "option"
3269
+ },
3270
+ "description": {
3271
+ "description": "Channel description",
3272
+ "name": "description",
3273
+ "hasDynamicHelp": false,
3274
+ "multiple": false,
3275
+ "type": "option"
3276
+ },
3277
+ "data": {
3278
+ "description": "Additional JSON object payload",
3279
+ "name": "data",
3280
+ "hasDynamicHelp": false,
3281
+ "multiple": false,
3282
+ "type": "option"
3219
3283
  }
3220
3284
  },
3221
3285
  "hasDynamicHelp": false,
3222
3286
  "hiddenAliases": [],
3223
- "id": "broadcast:status",
3287
+ "id": "channels:create",
3224
3288
  "pluginAlias": "@instantkom/cli",
3225
3289
  "pluginName": "@instantkom/cli",
3226
3290
  "pluginType": "core",
@@ -3230,20 +3294,20 @@
3230
3294
  "relativePath": [
3231
3295
  "dist",
3232
3296
  "commands",
3233
- "broadcast",
3234
- "status.js"
3297
+ "channels",
3298
+ "create.js"
3235
3299
  ]
3236
3300
  },
3237
- "broadcast:update": {
3301
+ "channels:get": {
3238
3302
  "aliases": [],
3239
3303
  "args": {
3240
3304
  "id": {
3241
- "description": "Broadcast ID",
3305
+ "description": "Channel ID",
3242
3306
  "name": "id",
3243
3307
  "required": true
3244
3308
  }
3245
3309
  },
3246
- "description": "Update a broadcast",
3310
+ "description": "Get a channel by ID",
3247
3311
  "flags": {
3248
3312
  "api-key": {
3249
3313
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -3306,77 +3370,11 @@
3306
3370
  "hasDynamicHelp": false,
3307
3371
  "multiple": false,
3308
3372
  "type": "option"
3309
- },
3310
- "text": {
3311
- "description": "Broadcast message text",
3312
- "name": "text",
3313
- "hasDynamicHelp": false,
3314
- "multiple": false,
3315
- "type": "option"
3316
- },
3317
- "send-status": {
3318
- "description": "Send status",
3319
- "name": "send-status",
3320
- "hasDynamicHelp": false,
3321
- "multiple": false,
3322
- "type": "option"
3323
- },
3324
- "scheduled-at": {
3325
- "description": "Unix timestamp for scheduled send",
3326
- "name": "scheduled-at",
3327
- "hasDynamicHelp": false,
3328
- "multiple": false,
3329
- "type": "option"
3330
- },
3331
- "approved": {
3332
- "description": "Mark as approved",
3333
- "name": "approved",
3334
- "allowNo": false,
3335
- "type": "boolean"
3336
- },
3337
- "locked": {
3338
- "description": "Mark as locked",
3339
- "name": "locked",
3340
- "allowNo": false,
3341
- "type": "boolean"
3342
- },
3343
- "test": {
3344
- "description": "Mark as test broadcast",
3345
- "name": "test",
3346
- "allowNo": false,
3347
- "type": "boolean"
3348
- },
3349
- "template-id": {
3350
- "description": "Template ID",
3351
- "name": "template-id",
3352
- "hasDynamicHelp": false,
3353
- "multiple": false,
3354
- "type": "option"
3355
- },
3356
- "remove-media": {
3357
- "description": "Remove existing media",
3358
- "name": "remove-media",
3359
- "allowNo": false,
3360
- "type": "boolean"
3361
- },
3362
- "header-footer": {
3363
- "description": "Header/footer JSON array",
3364
- "name": "header-footer",
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
3373
  }
3376
3374
  },
3377
3375
  "hasDynamicHelp": false,
3378
3376
  "hiddenAliases": [],
3379
- "id": "broadcast:update",
3377
+ "id": "channels:get",
3380
3378
  "pluginAlias": "@instantkom/cli",
3381
3379
  "pluginName": "@instantkom/cli",
3382
3380
  "pluginType": "core",
@@ -3386,20 +3384,20 @@
3386
3384
  "relativePath": [
3387
3385
  "dist",
3388
3386
  "commands",
3389
- "broadcast",
3390
- "update.js"
3387
+ "channels",
3388
+ "get.js"
3391
3389
  ]
3392
3390
  },
3393
- "config:get": {
3391
+ "channels:kpis": {
3394
3392
  "aliases": [],
3395
3393
  "args": {
3396
- "key": {
3397
- "description": "Configuration key to retrieve",
3398
- "name": "key",
3399
- "required": true
3394
+ "id": {
3395
+ "description": "Optional channel ID; omit for aggregated channel KPIs",
3396
+ "name": "id",
3397
+ "required": false
3400
3398
  }
3401
3399
  },
3402
- "description": "Get a configuration value for the current profile",
3400
+ "description": "Get channel KPIs",
3403
3401
  "flags": {
3404
3402
  "api-key": {
3405
3403
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -3462,11 +3460,18 @@
3462
3460
  "hasDynamicHelp": false,
3463
3461
  "multiple": false,
3464
3462
  "type": "option"
3463
+ },
3464
+ "period": {
3465
+ "description": "KPI period",
3466
+ "name": "period",
3467
+ "hasDynamicHelp": false,
3468
+ "multiple": false,
3469
+ "type": "option"
3465
3470
  }
3466
3471
  },
3467
3472
  "hasDynamicHelp": false,
3468
3473
  "hiddenAliases": [],
3469
- "id": "config:get",
3474
+ "id": "channels:kpis",
3470
3475
  "pluginAlias": "@instantkom/cli",
3471
3476
  "pluginName": "@instantkom/cli",
3472
3477
  "pluginType": "core",
@@ -3476,25 +3481,14 @@
3476
3481
  "relativePath": [
3477
3482
  "dist",
3478
3483
  "commands",
3479
- "config",
3480
- "get.js"
3484
+ "channels",
3485
+ "kpis.js"
3481
3486
  ]
3482
3487
  },
3483
- "config:set": {
3488
+ "channels:list": {
3484
3489
  "aliases": [],
3485
- "args": {
3486
- "key": {
3487
- "description": "Configuration key to set",
3488
- "name": "key",
3489
- "required": true
3490
- },
3491
- "value": {
3492
- "description": "Value to assign",
3493
- "name": "value",
3494
- "required": true
3495
- }
3496
- },
3497
- "description": "Set a configuration value for the current profile",
3490
+ "args": {},
3491
+ "description": "List channels",
3498
3492
  "flags": {
3499
3493
  "api-key": {
3500
3494
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -3557,11 +3551,48 @@
3557
3551
  "hasDynamicHelp": false,
3558
3552
  "multiple": false,
3559
3553
  "type": "option"
3554
+ },
3555
+ "page": {
3556
+ "description": "Page number",
3557
+ "name": "page",
3558
+ "default": 1,
3559
+ "hasDynamicHelp": false,
3560
+ "multiple": false,
3561
+ "type": "option"
3562
+ },
3563
+ "limit": {
3564
+ "description": "Items per page",
3565
+ "name": "limit",
3566
+ "default": 20,
3567
+ "hasDynamicHelp": false,
3568
+ "multiple": false,
3569
+ "type": "option"
3570
+ },
3571
+ "status": {
3572
+ "description": "Filter by channel status",
3573
+ "name": "status",
3574
+ "hasDynamicHelp": false,
3575
+ "multiple": false,
3576
+ "type": "option"
3577
+ },
3578
+ "gateway-type": {
3579
+ "description": "Filter by gateway type ID",
3580
+ "name": "gateway-type",
3581
+ "hasDynamicHelp": false,
3582
+ "multiple": false,
3583
+ "type": "option"
3584
+ },
3585
+ "search": {
3586
+ "description": "Search by channel name",
3587
+ "name": "search",
3588
+ "hasDynamicHelp": false,
3589
+ "multiple": false,
3590
+ "type": "option"
3560
3591
  }
3561
3592
  },
3562
3593
  "hasDynamicHelp": false,
3563
3594
  "hiddenAliases": [],
3564
- "id": "config:set",
3595
+ "id": "channels:list",
3565
3596
  "pluginAlias": "@instantkom/cli",
3566
3597
  "pluginName": "@instantkom/cli",
3567
3598
  "pluginType": "core",
@@ -3571,20 +3602,20 @@
3571
3602
  "relativePath": [
3572
3603
  "dist",
3573
3604
  "commands",
3574
- "config",
3575
- "set.js"
3605
+ "channels",
3606
+ "list.js"
3576
3607
  ]
3577
3608
  },
3578
- "config:unset": {
3609
+ "channels:update": {
3579
3610
  "aliases": [],
3580
3611
  "args": {
3581
- "key": {
3582
- "description": "Configuration key to remove",
3583
- "name": "key",
3612
+ "id": {
3613
+ "description": "Channel ID",
3614
+ "name": "id",
3584
3615
  "required": true
3585
3616
  }
3586
3617
  },
3587
- "description": "Remove a configuration key from the current profile",
3618
+ "description": "Update a channel",
3588
3619
  "flags": {
3589
3620
  "api-key": {
3590
3621
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -3647,11 +3678,39 @@
3647
3678
  "hasDynamicHelp": false,
3648
3679
  "multiple": false,
3649
3680
  "type": "option"
3681
+ },
3682
+ "name": {
3683
+ "description": "Channel name",
3684
+ "name": "name",
3685
+ "hasDynamicHelp": false,
3686
+ "multiple": false,
3687
+ "type": "option"
3688
+ },
3689
+ "status": {
3690
+ "description": "Channel lifecycle status",
3691
+ "name": "status",
3692
+ "hasDynamicHelp": false,
3693
+ "multiple": false,
3694
+ "type": "option"
3695
+ },
3696
+ "description": {
3697
+ "description": "Channel description",
3698
+ "name": "description",
3699
+ "hasDynamicHelp": false,
3700
+ "multiple": false,
3701
+ "type": "option"
3702
+ },
3703
+ "data": {
3704
+ "description": "Additional JSON object payload",
3705
+ "name": "data",
3706
+ "hasDynamicHelp": false,
3707
+ "multiple": false,
3708
+ "type": "option"
3650
3709
  }
3651
3710
  },
3652
3711
  "hasDynamicHelp": false,
3653
3712
  "hiddenAliases": [],
3654
- "id": "config:unset",
3713
+ "id": "channels:update",
3655
3714
  "pluginAlias": "@instantkom/cli",
3656
3715
  "pluginName": "@instantkom/cli",
3657
3716
  "pluginType": "core",
@@ -3661,14 +3720,20 @@
3661
3720
  "relativePath": [
3662
3721
  "dist",
3663
3722
  "commands",
3664
- "config",
3665
- "unset.js"
3723
+ "channels",
3724
+ "update.js"
3666
3725
  ]
3667
3726
  },
3668
- "contacts:create": {
3727
+ "config:get": {
3669
3728
  "aliases": [],
3670
- "args": {},
3671
- "description": "Create a contact",
3729
+ "args": {
3730
+ "key": {
3731
+ "description": "Configuration key to retrieve",
3732
+ "name": "key",
3733
+ "required": true
3734
+ }
3735
+ },
3736
+ "description": "Get a configuration value for the current profile",
3672
3737
  "flags": {
3673
3738
  "api-key": {
3674
3739
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -3714,50 +3779,20 @@
3714
3779
  "name": "no-color",
3715
3780
  "allowNo": false,
3716
3781
  "type": "boolean"
3717
- },
3718
- "profile": {
3719
- "description": "Named configuration profile to use",
3720
- "helpGroup": "GLOBAL",
3721
- "name": "profile",
3722
- "default": "default",
3723
- "hasDynamicHelp": false,
3724
- "multiple": false,
3725
- "type": "option"
3726
- },
3727
- "api-url": {
3728
- "description": "Override the API base URL (e.g. for staging)",
3729
- "helpGroup": "GLOBAL",
3730
- "name": "api-url",
3731
- "hasDynamicHelp": false,
3732
- "multiple": false,
3733
- "type": "option"
3734
- },
3735
- "channel": {
3736
- "description": "Channel ID",
3737
- "name": "channel",
3738
- "required": true,
3739
- "hasDynamicHelp": false,
3740
- "multiple": false,
3741
- "type": "option"
3742
- },
3743
- "identifier": {
3744
- "description": "Unique contact identifier",
3745
- "name": "identifier",
3746
- "required": true,
3747
- "hasDynamicHelp": false,
3748
- "multiple": false,
3749
- "type": "option"
3750
- },
3751
- "name": {
3752
- "description": "Contact name",
3753
- "name": "name",
3782
+ },
3783
+ "profile": {
3784
+ "description": "Named configuration profile to use",
3785
+ "helpGroup": "GLOBAL",
3786
+ "name": "profile",
3787
+ "default": "default",
3754
3788
  "hasDynamicHelp": false,
3755
3789
  "multiple": false,
3756
3790
  "type": "option"
3757
3791
  },
3758
- "data": {
3759
- "description": "Additional JSON object payload",
3760
- "name": "data",
3792
+ "api-url": {
3793
+ "description": "Override the API base URL (e.g. for staging)",
3794
+ "helpGroup": "GLOBAL",
3795
+ "name": "api-url",
3761
3796
  "hasDynamicHelp": false,
3762
3797
  "multiple": false,
3763
3798
  "type": "option"
@@ -3765,7 +3800,7 @@
3765
3800
  },
3766
3801
  "hasDynamicHelp": false,
3767
3802
  "hiddenAliases": [],
3768
- "id": "contacts:create",
3803
+ "id": "config:get",
3769
3804
  "pluginAlias": "@instantkom/cli",
3770
3805
  "pluginName": "@instantkom/cli",
3771
3806
  "pluginType": "core",
@@ -3775,20 +3810,25 @@
3775
3810
  "relativePath": [
3776
3811
  "dist",
3777
3812
  "commands",
3778
- "contacts",
3779
- "create.js"
3813
+ "config",
3814
+ "get.js"
3780
3815
  ]
3781
3816
  },
3782
- "contacts:delete": {
3817
+ "config:set": {
3783
3818
  "aliases": [],
3784
3819
  "args": {
3785
- "id": {
3786
- "description": "Contact ID",
3787
- "name": "id",
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",
3788
3828
  "required": true
3789
3829
  }
3790
3830
  },
3791
- "description": "Delete a contact",
3831
+ "description": "Set a configuration value for the current profile",
3792
3832
  "flags": {
3793
3833
  "api-key": {
3794
3834
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -3855,7 +3895,7 @@
3855
3895
  },
3856
3896
  "hasDynamicHelp": false,
3857
3897
  "hiddenAliases": [],
3858
- "id": "contacts:delete",
3898
+ "id": "config:set",
3859
3899
  "pluginAlias": "@instantkom/cli",
3860
3900
  "pluginName": "@instantkom/cli",
3861
3901
  "pluginType": "core",
@@ -3865,14 +3905,20 @@
3865
3905
  "relativePath": [
3866
3906
  "dist",
3867
3907
  "commands",
3868
- "contacts",
3869
- "delete.js"
3908
+ "config",
3909
+ "set.js"
3870
3910
  ]
3871
3911
  },
3872
- "contacts:export": {
3912
+ "config:unset": {
3873
3913
  "aliases": [],
3874
- "args": {},
3875
- "description": "Export contacts to CSV",
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",
3876
3922
  "flags": {
3877
3923
  "api-key": {
3878
3924
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -3935,49 +3981,11 @@
3935
3981
  "hasDynamicHelp": false,
3936
3982
  "multiple": false,
3937
3983
  "type": "option"
3938
- },
3939
- "file": {
3940
- "description": "CSV output file path",
3941
- "name": "file",
3942
- "required": true,
3943
- "hasDynamicHelp": false,
3944
- "multiple": false,
3945
- "type": "option"
3946
- },
3947
- "channel": {
3948
- "description": "Filter by channel ID",
3949
- "name": "channel",
3950
- "hasDynamicHelp": false,
3951
- "multiple": false,
3952
- "type": "option"
3953
- },
3954
- "search": {
3955
- "description": "Search by name or identifier",
3956
- "name": "search",
3957
- "hasDynamicHelp": false,
3958
- "multiple": false,
3959
- "type": "option"
3960
- },
3961
- "page": {
3962
- "description": "Page number",
3963
- "name": "page",
3964
- "default": 1,
3965
- "hasDynamicHelp": false,
3966
- "multiple": false,
3967
- "type": "option"
3968
- },
3969
- "limit": {
3970
- "description": "Items per page",
3971
- "name": "limit",
3972
- "default": 100,
3973
- "hasDynamicHelp": false,
3974
- "multiple": false,
3975
- "type": "option"
3976
3984
  }
3977
3985
  },
3978
3986
  "hasDynamicHelp": false,
3979
3987
  "hiddenAliases": [],
3980
- "id": "contacts:export",
3988
+ "id": "config:unset",
3981
3989
  "pluginAlias": "@instantkom/cli",
3982
3990
  "pluginName": "@instantkom/cli",
3983
3991
  "pluginType": "core",
@@ -3987,20 +3995,14 @@
3987
3995
  "relativePath": [
3988
3996
  "dist",
3989
3997
  "commands",
3990
- "contacts",
3991
- "export.js"
3998
+ "config",
3999
+ "unset.js"
3992
4000
  ]
3993
4001
  },
3994
- "contacts:get": {
4002
+ "contacts:create": {
3995
4003
  "aliases": [],
3996
- "args": {
3997
- "id": {
3998
- "description": "Contact ID",
3999
- "name": "id",
4000
- "required": true
4001
- }
4002
- },
4003
- "description": "Get a contact by ID",
4004
+ "args": {},
4005
+ "description": "Create a contact",
4004
4006
  "flags": {
4005
4007
  "api-key": {
4006
4008
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -4063,11 +4065,41 @@
4063
4065
  "hasDynamicHelp": false,
4064
4066
  "multiple": false,
4065
4067
  "type": "option"
4068
+ },
4069
+ "channel": {
4070
+ "description": "Channel ID",
4071
+ "name": "channel",
4072
+ "required": true,
4073
+ "hasDynamicHelp": false,
4074
+ "multiple": false,
4075
+ "type": "option"
4076
+ },
4077
+ "identifier": {
4078
+ "description": "Unique contact identifier",
4079
+ "name": "identifier",
4080
+ "required": true,
4081
+ "hasDynamicHelp": false,
4082
+ "multiple": false,
4083
+ "type": "option"
4084
+ },
4085
+ "name": {
4086
+ "description": "Contact name",
4087
+ "name": "name",
4088
+ "hasDynamicHelp": false,
4089
+ "multiple": false,
4090
+ "type": "option"
4091
+ },
4092
+ "data": {
4093
+ "description": "Additional JSON object payload",
4094
+ "name": "data",
4095
+ "hasDynamicHelp": false,
4096
+ "multiple": false,
4097
+ "type": "option"
4066
4098
  }
4067
4099
  },
4068
4100
  "hasDynamicHelp": false,
4069
4101
  "hiddenAliases": [],
4070
- "id": "contacts:get",
4102
+ "id": "contacts:create",
4071
4103
  "pluginAlias": "@instantkom/cli",
4072
4104
  "pluginName": "@instantkom/cli",
4073
4105
  "pluginType": "core",
@@ -4078,13 +4110,19 @@
4078
4110
  "dist",
4079
4111
  "commands",
4080
4112
  "contacts",
4081
- "get.js"
4113
+ "create.js"
4082
4114
  ]
4083
4115
  },
4084
- "contacts:import": {
4116
+ "contacts:delete": {
4085
4117
  "aliases": [],
4086
- "args": {},
4087
- "description": "Import contacts from CSV",
4118
+ "args": {
4119
+ "id": {
4120
+ "description": "Contact ID",
4121
+ "name": "id",
4122
+ "required": true
4123
+ }
4124
+ },
4125
+ "description": "Delete a contact",
4088
4126
  "flags": {
4089
4127
  "api-key": {
4090
4128
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -4147,27 +4185,11 @@
4147
4185
  "hasDynamicHelp": false,
4148
4186
  "multiple": false,
4149
4187
  "type": "option"
4150
- },
4151
- "file": {
4152
- "description": "CSV file path",
4153
- "name": "file",
4154
- "required": true,
4155
- "hasDynamicHelp": false,
4156
- "multiple": false,
4157
- "type": "option"
4158
- },
4159
- "channel": {
4160
- "description": "Channel ID",
4161
- "name": "channel",
4162
- "required": true,
4163
- "hasDynamicHelp": false,
4164
- "multiple": false,
4165
- "type": "option"
4166
4188
  }
4167
4189
  },
4168
4190
  "hasDynamicHelp": false,
4169
4191
  "hiddenAliases": [],
4170
- "id": "contacts:import",
4192
+ "id": "contacts:delete",
4171
4193
  "pluginAlias": "@instantkom/cli",
4172
4194
  "pluginName": "@instantkom/cli",
4173
4195
  "pluginType": "core",
@@ -4178,13 +4200,13 @@
4178
4200
  "dist",
4179
4201
  "commands",
4180
4202
  "contacts",
4181
- "import.js"
4203
+ "delete.js"
4182
4204
  ]
4183
4205
  },
4184
- "contacts:list": {
4206
+ "contacts:export": {
4185
4207
  "aliases": [],
4186
4208
  "args": {},
4187
- "description": "List contacts",
4209
+ "description": "Export contacts to CSV",
4188
4210
  "flags": {
4189
4211
  "api-key": {
4190
4212
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -4248,6 +4270,14 @@
4248
4270
  "multiple": false,
4249
4271
  "type": "option"
4250
4272
  },
4273
+ "file": {
4274
+ "description": "CSV output file path",
4275
+ "name": "file",
4276
+ "required": true,
4277
+ "hasDynamicHelp": false,
4278
+ "multiple": false,
4279
+ "type": "option"
4280
+ },
4251
4281
  "channel": {
4252
4282
  "description": "Filter by channel ID",
4253
4283
  "name": "channel",
@@ -4269,76 +4299,11 @@
4269
4299
  "hasDynamicHelp": false,
4270
4300
  "multiple": false,
4271
4301
  "type": "option"
4272
- },
4273
- "limit": {
4274
- "description": "Items per page",
4275
- "name": "limit",
4276
- "default": 20,
4277
- "hasDynamicHelp": false,
4278
- "multiple": false,
4279
- "type": "option"
4280
- },
4281
- "optin-status": {
4282
- "description": "Filter by opt-in status",
4283
- "name": "optin-status",
4284
- "hasDynamicHelp": false,
4285
- "multiple": false,
4286
- "options": [
4287
- "0",
4288
- "1"
4289
- ],
4290
- "type": "option"
4291
- },
4292
- "blocked": {
4293
- "description": "Filter by blocked status: 1 blocked, 0 not blocked",
4294
- "name": "blocked",
4295
- "hasDynamicHelp": false,
4296
- "multiple": false,
4297
- "options": [
4298
- "0",
4299
- "1"
4300
- ],
4301
- "type": "option"
4302
- },
4303
- "segment": {
4304
- "description": "Filter by segment ID",
4305
- "name": "segment",
4306
- "hasDynamicHelp": false,
4307
- "multiple": false,
4308
- "type": "option"
4309
- },
4310
- "tags": {
4311
- "description": "Comma-separated tag IDs",
4312
- "name": "tags",
4313
- "hasDynamicHelp": false,
4314
- "multiple": false,
4315
- "type": "option"
4316
- },
4317
- "tag-match": {
4318
- "description": "Tag match mode",
4319
- "name": "tag-match",
4320
- "hasDynamicHelp": false,
4321
- "multiple": false,
4322
- "options": [
4323
- "any",
4324
- "all"
4325
- ],
4326
- "type": "option"
4327
- },
4328
- "spam": {
4329
- "description": "Filter by spam status",
4330
- "name": "spam",
4331
- "hasDynamicHelp": false,
4332
- "multiple": false,
4333
- "options": [
4334
- "true",
4335
- "false"
4336
- ],
4337
- "type": "option"
4338
- },
4339
- "trust-level": {
4340
- "description": "Comma-separated trust levels",
4341
- "name": "trust-level",
4302
+ },
4303
+ "limit": {
4304
+ "description": "Items per page",
4305
+ "name": "limit",
4306
+ "default": 100,
4342
4307
  "hasDynamicHelp": false,
4343
4308
  "multiple": false,
4344
4309
  "type": "option"
@@ -4346,7 +4311,7 @@
4346
4311
  },
4347
4312
  "hasDynamicHelp": false,
4348
4313
  "hiddenAliases": [],
4349
- "id": "contacts:list",
4314
+ "id": "contacts:export",
4350
4315
  "pluginAlias": "@instantkom/cli",
4351
4316
  "pluginName": "@instantkom/cli",
4352
4317
  "pluginType": "core",
@@ -4357,10 +4322,10 @@
4357
4322
  "dist",
4358
4323
  "commands",
4359
4324
  "contacts",
4360
- "list.js"
4325
+ "export.js"
4361
4326
  ]
4362
4327
  },
4363
- "contacts:update": {
4328
+ "contacts:get": {
4364
4329
  "aliases": [],
4365
4330
  "args": {
4366
4331
  "id": {
@@ -4369,7 +4334,7 @@
4369
4334
  "required": true
4370
4335
  }
4371
4336
  },
4372
- "description": "Update a contact",
4337
+ "description": "Get a contact by ID",
4373
4338
  "flags": {
4374
4339
  "api-key": {
4375
4340
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -4432,32 +4397,11 @@
4432
4397
  "hasDynamicHelp": false,
4433
4398
  "multiple": false,
4434
4399
  "type": "option"
4435
- },
4436
- "identifier": {
4437
- "description": "Unique contact identifier",
4438
- "name": "identifier",
4439
- "hasDynamicHelp": false,
4440
- "multiple": false,
4441
- "type": "option"
4442
- },
4443
- "name": {
4444
- "description": "Contact name",
4445
- "name": "name",
4446
- "hasDynamicHelp": false,
4447
- "multiple": false,
4448
- "type": "option"
4449
- },
4450
- "data": {
4451
- "description": "Additional JSON object payload",
4452
- "name": "data",
4453
- "hasDynamicHelp": false,
4454
- "multiple": false,
4455
- "type": "option"
4456
4400
  }
4457
4401
  },
4458
4402
  "hasDynamicHelp": false,
4459
4403
  "hiddenAliases": [],
4460
- "id": "contacts:update",
4404
+ "id": "contacts:get",
4461
4405
  "pluginAlias": "@instantkom/cli",
4462
4406
  "pluginName": "@instantkom/cli",
4463
4407
  "pluginType": "core",
@@ -4468,19 +4412,13 @@
4468
4412
  "dist",
4469
4413
  "commands",
4470
4414
  "contacts",
4471
- "update.js"
4415
+ "get.js"
4472
4416
  ]
4473
4417
  },
4474
- "chats:get": {
4418
+ "contacts:import": {
4475
4419
  "aliases": [],
4476
- "args": {
4477
- "id": {
4478
- "description": "chat ID",
4479
- "name": "id",
4480
- "required": true
4481
- }
4482
- },
4483
- "description": "Get chat by ID",
4420
+ "args": {},
4421
+ "description": "Import contacts from CSV",
4484
4422
  "flags": {
4485
4423
  "api-key": {
4486
4424
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -4543,11 +4481,27 @@
4543
4481
  "hasDynamicHelp": false,
4544
4482
  "multiple": false,
4545
4483
  "type": "option"
4484
+ },
4485
+ "file": {
4486
+ "description": "CSV file path",
4487
+ "name": "file",
4488
+ "required": true,
4489
+ "hasDynamicHelp": false,
4490
+ "multiple": false,
4491
+ "type": "option"
4492
+ },
4493
+ "channel": {
4494
+ "description": "Channel ID",
4495
+ "name": "channel",
4496
+ "required": true,
4497
+ "hasDynamicHelp": false,
4498
+ "multiple": false,
4499
+ "type": "option"
4546
4500
  }
4547
4501
  },
4548
4502
  "hasDynamicHelp": false,
4549
4503
  "hiddenAliases": [],
4550
- "id": "chats:get",
4504
+ "id": "contacts:import",
4551
4505
  "pluginAlias": "@instantkom/cli",
4552
4506
  "pluginName": "@instantkom/cli",
4553
4507
  "pluginType": "core",
@@ -4557,14 +4511,14 @@
4557
4511
  "relativePath": [
4558
4512
  "dist",
4559
4513
  "commands",
4560
- "chats",
4561
- "get.js"
4514
+ "contacts",
4515
+ "import.js"
4562
4516
  ]
4563
4517
  },
4564
- "chats:list": {
4518
+ "contacts:list": {
4565
4519
  "aliases": [],
4566
4520
  "args": {},
4567
- "description": "List chats",
4521
+ "description": "List contacts",
4568
4522
  "flags": {
4569
4523
  "api-key": {
4570
4524
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -4628,6 +4582,20 @@
4628
4582
  "multiple": false,
4629
4583
  "type": "option"
4630
4584
  },
4585
+ "channel": {
4586
+ "description": "Filter by channel ID",
4587
+ "name": "channel",
4588
+ "hasDynamicHelp": false,
4589
+ "multiple": false,
4590
+ "type": "option"
4591
+ },
4592
+ "search": {
4593
+ "description": "Search by name or identifier",
4594
+ "name": "search",
4595
+ "hasDynamicHelp": false,
4596
+ "multiple": false,
4597
+ "type": "option"
4598
+ },
4631
4599
  "page": {
4632
4600
  "description": "Page number",
4633
4601
  "name": "page",
@@ -4644,56 +4612,75 @@
4644
4612
  "multiple": false,
4645
4613
  "type": "option"
4646
4614
  },
4647
- "channel": {
4648
- "description": "Filter by channel ID",
4649
- "name": "channel",
4615
+ "optin-status": {
4616
+ "description": "Filter by opt-in status",
4617
+ "name": "optin-status",
4650
4618
  "hasDynamicHelp": false,
4651
4619
  "multiple": false,
4620
+ "options": [
4621
+ "0",
4622
+ "1"
4623
+ ],
4652
4624
  "type": "option"
4653
4625
  },
4654
- "channels": {
4655
- "description": "Comma-separated channel IDs",
4656
- "name": "channels",
4626
+ "blocked": {
4627
+ "description": "Filter by blocked status: 1 blocked, 0 not blocked",
4628
+ "name": "blocked",
4657
4629
  "hasDynamicHelp": false,
4658
4630
  "multiple": false,
4631
+ "options": [
4632
+ "0",
4633
+ "1"
4634
+ ],
4659
4635
  "type": "option"
4660
4636
  },
4661
- "search": {
4662
- "description": "Search chats",
4663
- "name": "search",
4637
+ "segment": {
4638
+ "description": "Filter by segment ID",
4639
+ "name": "segment",
4664
4640
  "hasDynamicHelp": false,
4665
4641
  "multiple": false,
4666
4642
  "type": "option"
4667
4643
  },
4668
- "status": {
4669
- "description": "Chat status",
4670
- "name": "status",
4644
+ "tags": {
4645
+ "description": "Comma-separated tag IDs",
4646
+ "name": "tags",
4647
+ "hasDynamicHelp": false,
4648
+ "multiple": false,
4649
+ "type": "option"
4650
+ },
4651
+ "tag-match": {
4652
+ "description": "Tag match mode",
4653
+ "name": "tag-match",
4671
4654
  "hasDynamicHelp": false,
4672
4655
  "multiple": false,
4673
4656
  "options": [
4674
- "all",
4675
- "unread",
4676
- "read",
4677
- "archived"
4657
+ "any",
4658
+ "all"
4678
4659
  ],
4679
4660
  "type": "option"
4680
4661
  },
4681
- "unread-only": {
4682
- "description": "Only unread chats",
4683
- "name": "unread-only",
4684
- "allowNo": false,
4685
- "type": "boolean"
4662
+ "spam": {
4663
+ "description": "Filter by spam status",
4664
+ "name": "spam",
4665
+ "hasDynamicHelp": false,
4666
+ "multiple": false,
4667
+ "options": [
4668
+ "true",
4669
+ "false"
4670
+ ],
4671
+ "type": "option"
4686
4672
  },
4687
- "include-archived": {
4688
- "description": "Include archived chats",
4689
- "name": "include-archived",
4690
- "allowNo": false,
4691
- "type": "boolean"
4673
+ "trust-level": {
4674
+ "description": "Comma-separated trust levels",
4675
+ "name": "trust-level",
4676
+ "hasDynamicHelp": false,
4677
+ "multiple": false,
4678
+ "type": "option"
4692
4679
  }
4693
4680
  },
4694
4681
  "hasDynamicHelp": false,
4695
4682
  "hiddenAliases": [],
4696
- "id": "chats:list",
4683
+ "id": "contacts:list",
4697
4684
  "pluginAlias": "@instantkom/cli",
4698
4685
  "pluginName": "@instantkom/cli",
4699
4686
  "pluginType": "core",
@@ -4703,20 +4690,20 @@
4703
4690
  "relativePath": [
4704
4691
  "dist",
4705
4692
  "commands",
4706
- "chats",
4693
+ "contacts",
4707
4694
  "list.js"
4708
4695
  ]
4709
4696
  },
4710
- "chats:reply": {
4697
+ "contacts:update": {
4711
4698
  "aliases": [],
4712
4699
  "args": {
4713
4700
  "id": {
4714
- "description": "Chat ID",
4701
+ "description": "Contact ID",
4715
4702
  "name": "id",
4716
4703
  "required": true
4717
4704
  }
4718
4705
  },
4719
- "description": "Reply in a chat",
4706
+ "description": "Update a contact",
4720
4707
  "flags": {
4721
4708
  "api-key": {
4722
4709
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -4780,10 +4767,23 @@
4780
4767
  "multiple": false,
4781
4768
  "type": "option"
4782
4769
  },
4783
- "text": {
4784
- "description": "Reply text",
4785
- "name": "text",
4786
- "required": true,
4770
+ "identifier": {
4771
+ "description": "Unique contact identifier",
4772
+ "name": "identifier",
4773
+ "hasDynamicHelp": false,
4774
+ "multiple": false,
4775
+ "type": "option"
4776
+ },
4777
+ "name": {
4778
+ "description": "Contact name",
4779
+ "name": "name",
4780
+ "hasDynamicHelp": false,
4781
+ "multiple": false,
4782
+ "type": "option"
4783
+ },
4784
+ "data": {
4785
+ "description": "Additional JSON object payload",
4786
+ "name": "data",
4787
4787
  "hasDynamicHelp": false,
4788
4788
  "multiple": false,
4789
4789
  "type": "option"
@@ -4791,7 +4791,7 @@
4791
4791
  },
4792
4792
  "hasDynamicHelp": false,
4793
4793
  "hiddenAliases": [],
4794
- "id": "chats:reply",
4794
+ "id": "contacts:update",
4795
4795
  "pluginAlias": "@instantkom/cli",
4796
4796
  "pluginName": "@instantkom/cli",
4797
4797
  "pluginType": "core",
@@ -4801,8 +4801,8 @@
4801
4801
  "relativePath": [
4802
4802
  "dist",
4803
4803
  "commands",
4804
- "chats",
4805
- "reply.js"
4804
+ "contacts",
4805
+ "update.js"
4806
4806
  ]
4807
4807
  },
4808
4808
  "custom-fields:bulk-delete": {
@@ -10321,10 +10321,10 @@
10321
10321
  "validate-import.js"
10322
10322
  ]
10323
10323
  },
10324
- "webhooks:add": {
10324
+ "tickets:create": {
10325
10325
  "aliases": [],
10326
10326
  "args": {},
10327
- "description": "Add a webhook subscription",
10327
+ "description": "Create a ticket",
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,25 +10388,60 @@
10388
10388
  "multiple": false,
10389
10389
  "type": "option"
10390
10390
  },
10391
- "event": {
10392
- "description": "Webhook event to subscribe to",
10393
- "name": "event",
10391
+ "channel": {
10392
+ "description": "Channel ID",
10393
+ "name": "channel",
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
- ],
10404
10397
  "type": "option"
10405
10398
  },
10406
- "url": {
10407
- "description": "HTTPS target URL that receives webhook POSTs",
10408
- "name": "url",
10409
- "required": true,
10399
+ "subject": {
10400
+ "description": "Ticket subject",
10401
+ "name": "subject",
10402
+ "required": true,
10403
+ "hasDynamicHelp": false,
10404
+ "multiple": false,
10405
+ "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",
10410
10445
  "hasDynamicHelp": false,
10411
10446
  "multiple": false,
10412
10447
  "type": "option"
@@ -10414,7 +10449,7 @@
10414
10449
  },
10415
10450
  "hasDynamicHelp": false,
10416
10451
  "hiddenAliases": [],
10417
- "id": "webhooks:add",
10452
+ "id": "tickets:create",
10418
10453
  "pluginAlias": "@instantkom/cli",
10419
10454
  "pluginName": "@instantkom/cli",
10420
10455
  "pluginType": "core",
@@ -10424,14 +10459,20 @@
10424
10459
  "relativePath": [
10425
10460
  "dist",
10426
10461
  "commands",
10427
- "webhooks",
10428
- "add.js"
10462
+ "tickets",
10463
+ "create.js"
10429
10464
  ]
10430
10465
  },
10431
- "webhooks:events": {
10466
+ "tickets:delete": {
10432
10467
  "aliases": [],
10433
- "args": {},
10434
- "description": "List supported webhook event names",
10468
+ "args": {
10469
+ "id": {
10470
+ "description": "Ticket ID",
10471
+ "name": "id",
10472
+ "required": true
10473
+ }
10474
+ },
10475
+ "description": "Delete a ticket",
10435
10476
  "flags": {
10436
10477
  "api-key": {
10437
10478
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -10494,11 +10535,19 @@
10494
10535
  "hasDynamicHelp": false,
10495
10536
  "multiple": false,
10496
10537
  "type": "option"
10538
+ },
10539
+ "channel": {
10540
+ "description": "Channel ID",
10541
+ "name": "channel",
10542
+ "required": true,
10543
+ "hasDynamicHelp": false,
10544
+ "multiple": false,
10545
+ "type": "option"
10497
10546
  }
10498
10547
  },
10499
10548
  "hasDynamicHelp": false,
10500
10549
  "hiddenAliases": [],
10501
- "id": "webhooks:events",
10550
+ "id": "tickets:delete",
10502
10551
  "pluginAlias": "@instantkom/cli",
10503
10552
  "pluginName": "@instantkom/cli",
10504
10553
  "pluginType": "core",
@@ -10508,14 +10557,20 @@
10508
10557
  "relativePath": [
10509
10558
  "dist",
10510
10559
  "commands",
10511
- "webhooks",
10512
- "events.js"
10560
+ "tickets",
10561
+ "delete.js"
10513
10562
  ]
10514
10563
  },
10515
- "webhooks:list": {
10564
+ "tickets:get": {
10516
10565
  "aliases": [],
10517
- "args": {},
10518
- "description": "List webhook subscriptions",
10566
+ "args": {
10567
+ "id": {
10568
+ "description": "Ticket ID",
10569
+ "name": "id",
10570
+ "required": true
10571
+ }
10572
+ },
10573
+ "description": "Get a ticket by ID",
10519
10574
  "flags": {
10520
10575
  "api-key": {
10521
10576
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -10578,11 +10633,19 @@
10578
10633
  "hasDynamicHelp": false,
10579
10634
  "multiple": false,
10580
10635
  "type": "option"
10636
+ },
10637
+ "channel": {
10638
+ "description": "Channel ID",
10639
+ "name": "channel",
10640
+ "required": true,
10641
+ "hasDynamicHelp": false,
10642
+ "multiple": false,
10643
+ "type": "option"
10581
10644
  }
10582
10645
  },
10583
10646
  "hasDynamicHelp": false,
10584
10647
  "hiddenAliases": [],
10585
- "id": "webhooks:list",
10648
+ "id": "tickets:get",
10586
10649
  "pluginAlias": "@instantkom/cli",
10587
10650
  "pluginName": "@instantkom/cli",
10588
10651
  "pluginType": "core",
@@ -10592,14 +10655,14 @@
10592
10655
  "relativePath": [
10593
10656
  "dist",
10594
10657
  "commands",
10595
- "webhooks",
10596
- "list.js"
10658
+ "tickets",
10659
+ "get.js"
10597
10660
  ]
10598
10661
  },
10599
- "webhooks:logs": {
10662
+ "tickets:list": {
10600
10663
  "aliases": [],
10601
10664
  "args": {},
10602
- "description": "Explain webhook log availability",
10665
+ "description": "List tickets for a channel",
10603
10666
  "flags": {
10604
10667
  "api-key": {
10605
10668
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -10662,11 +10725,35 @@
10662
10725
  "hasDynamicHelp": false,
10663
10726
  "multiple": false,
10664
10727
  "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"
10665
10752
  }
10666
10753
  },
10667
10754
  "hasDynamicHelp": false,
10668
10755
  "hiddenAliases": [],
10669
- "id": "webhooks:logs",
10756
+ "id": "tickets:list",
10670
10757
  "pluginAlias": "@instantkom/cli",
10671
10758
  "pluginName": "@instantkom/cli",
10672
10759
  "pluginType": "core",
@@ -10676,20 +10763,20 @@
10676
10763
  "relativePath": [
10677
10764
  "dist",
10678
10765
  "commands",
10679
- "webhooks",
10680
- "logs.js"
10766
+ "tickets",
10767
+ "list.js"
10681
10768
  ]
10682
10769
  },
10683
- "webhooks:remove": {
10770
+ "tickets:reply": {
10684
10771
  "aliases": [],
10685
10772
  "args": {
10686
10773
  "id": {
10687
- "description": "Webhook subscription ID",
10774
+ "description": "Ticket ID",
10688
10775
  "name": "id",
10689
10776
  "required": true
10690
10777
  }
10691
10778
  },
10692
- "description": "Remove a webhook subscription",
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.",
10693
10780
  "flags": {
10694
10781
  "api-key": {
10695
10782
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -10752,11 +10839,25 @@
10752
10839
  "hasDynamicHelp": false,
10753
10840
  "multiple": false,
10754
10841
  "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"
10755
10856
  }
10756
10857
  },
10757
10858
  "hasDynamicHelp": false,
10758
10859
  "hiddenAliases": [],
10759
- "id": "webhooks:remove",
10860
+ "id": "tickets:reply",
10760
10861
  "pluginAlias": "@instantkom/cli",
10761
10862
  "pluginName": "@instantkom/cli",
10762
10863
  "pluginType": "core",
@@ -10766,14 +10867,20 @@
10766
10867
  "relativePath": [
10767
10868
  "dist",
10768
10869
  "commands",
10769
- "webhooks",
10770
- "remove.js"
10870
+ "tickets",
10871
+ "reply.js"
10771
10872
  ]
10772
10873
  },
10773
- "webhooks:test": {
10874
+ "tickets:update": {
10774
10875
  "aliases": [],
10775
- "args": {},
10776
- "description": "Send a test webhook payload to a URL",
10876
+ "args": {
10877
+ "id": {
10878
+ "description": "Ticket ID",
10879
+ "name": "id",
10880
+ "required": true
10881
+ }
10882
+ },
10883
+ "description": "Update a ticket",
10777
10884
  "flags": {
10778
10885
  "api-key": {
10779
10886
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -10837,25 +10944,51 @@
10837
10944
  "multiple": false,
10838
10945
  "type": "option"
10839
10946
  },
10840
- "url": {
10841
- "description": "Webhook URL to call",
10842
- "name": "url",
10947
+ "channel": {
10948
+ "description": "Channel ID",
10949
+ "name": "channel",
10843
10950
  "required": true,
10844
10951
  "hasDynamicHelp": false,
10845
10952
  "multiple": false,
10846
10953
  "type": "option"
10847
10954
  },
10848
- "event": {
10849
- "description": "Event name",
10850
- "name": "event",
10851
- "default": "cli.test",
10955
+ "subject": {
10956
+ "description": "Ticket subject",
10957
+ "name": "subject",
10852
10958
  "hasDynamicHelp": false,
10853
10959
  "multiple": false,
10854
10960
  "type": "option"
10855
10961
  },
10856
- "payload": {
10857
- "description": "Payload JSON",
10858
- "name": "payload",
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",
10979
+ "hasDynamicHelp": false,
10980
+ "multiple": false,
10981
+ "type": "option"
10982
+ },
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",
10859
10992
  "hasDynamicHelp": false,
10860
10993
  "multiple": false,
10861
10994
  "type": "option"
@@ -10863,7 +10996,7 @@
10863
10996
  },
10864
10997
  "hasDynamicHelp": false,
10865
10998
  "hiddenAliases": [],
10866
- "id": "webhooks:test",
10999
+ "id": "tickets:update",
10867
11000
  "pluginAlias": "@instantkom/cli",
10868
11001
  "pluginName": "@instantkom/cli",
10869
11002
  "pluginType": "core",
@@ -10873,14 +11006,14 @@
10873
11006
  "relativePath": [
10874
11007
  "dist",
10875
11008
  "commands",
10876
- "webhooks",
10877
- "test.js"
11009
+ "tickets",
11010
+ "update.js"
10878
11011
  ]
10879
11012
  },
10880
- "tickets:create": {
11013
+ "webhooks:add": {
10881
11014
  "aliases": [],
10882
11015
  "args": {},
10883
- "description": "Create a ticket",
11016
+ "description": "Add a webhook subscription",
10884
11017
  "flags": {
10885
11018
  "api-key": {
10886
11019
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -10944,60 +11077,25 @@
10944
11077
  "multiple": false,
10945
11078
  "type": "option"
10946
11079
  },
10947
- "channel": {
10948
- "description": "Channel ID",
10949
- "name": "channel",
10950
- "required": true,
10951
- "hasDynamicHelp": false,
10952
- "multiple": false,
10953
- "type": "option"
10954
- },
10955
- "subject": {
10956
- "description": "Ticket subject",
10957
- "name": "subject",
11080
+ "event": {
11081
+ "description": "Webhook event to subscribe to",
11082
+ "name": "event",
10958
11083
  "required": true,
10959
11084
  "hasDynamicHelp": false,
10960
11085
  "multiple": false,
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",
11086
+ "options": [
11087
+ "new_contact",
11088
+ "new_message",
11089
+ "broadcast_sent",
11090
+ "contact_updated",
11091
+ "contact_opted_out"
11092
+ ],
11093
+ "type": "option"
11094
+ },
11095
+ "url": {
11096
+ "description": "HTTPS target URL that receives webhook POSTs",
11097
+ "name": "url",
11098
+ "required": true,
11001
11099
  "hasDynamicHelp": false,
11002
11100
  "multiple": false,
11003
11101
  "type": "option"
@@ -11005,7 +11103,7 @@
11005
11103
  },
11006
11104
  "hasDynamicHelp": false,
11007
11105
  "hiddenAliases": [],
11008
- "id": "tickets:create",
11106
+ "id": "webhooks:add",
11009
11107
  "pluginAlias": "@instantkom/cli",
11010
11108
  "pluginName": "@instantkom/cli",
11011
11109
  "pluginType": "core",
@@ -11015,20 +11113,14 @@
11015
11113
  "relativePath": [
11016
11114
  "dist",
11017
11115
  "commands",
11018
- "tickets",
11019
- "create.js"
11116
+ "webhooks",
11117
+ "add.js"
11020
11118
  ]
11021
11119
  },
11022
- "tickets:delete": {
11120
+ "webhooks:events": {
11023
11121
  "aliases": [],
11024
- "args": {
11025
- "id": {
11026
- "description": "Ticket ID",
11027
- "name": "id",
11028
- "required": true
11029
- }
11030
- },
11031
- "description": "Delete a ticket",
11122
+ "args": {},
11123
+ "description": "List supported webhook event names",
11032
11124
  "flags": {
11033
11125
  "api-key": {
11034
11126
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -11091,19 +11183,11 @@
11091
11183
  "hasDynamicHelp": false,
11092
11184
  "multiple": false,
11093
11185
  "type": "option"
11094
- },
11095
- "channel": {
11096
- "description": "Channel ID",
11097
- "name": "channel",
11098
- "required": true,
11099
- "hasDynamicHelp": false,
11100
- "multiple": false,
11101
- "type": "option"
11102
11186
  }
11103
11187
  },
11104
11188
  "hasDynamicHelp": false,
11105
11189
  "hiddenAliases": [],
11106
- "id": "tickets:delete",
11190
+ "id": "webhooks:events",
11107
11191
  "pluginAlias": "@instantkom/cli",
11108
11192
  "pluginName": "@instantkom/cli",
11109
11193
  "pluginType": "core",
@@ -11113,20 +11197,14 @@
11113
11197
  "relativePath": [
11114
11198
  "dist",
11115
11199
  "commands",
11116
- "tickets",
11117
- "delete.js"
11200
+ "webhooks",
11201
+ "events.js"
11118
11202
  ]
11119
11203
  },
11120
- "tickets:get": {
11204
+ "webhooks:list": {
11121
11205
  "aliases": [],
11122
- "args": {
11123
- "id": {
11124
- "description": "Ticket ID",
11125
- "name": "id",
11126
- "required": true
11127
- }
11128
- },
11129
- "description": "Get a ticket by ID",
11206
+ "args": {},
11207
+ "description": "List webhook subscriptions",
11130
11208
  "flags": {
11131
11209
  "api-key": {
11132
11210
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -11189,19 +11267,11 @@
11189
11267
  "hasDynamicHelp": false,
11190
11268
  "multiple": false,
11191
11269
  "type": "option"
11192
- },
11193
- "channel": {
11194
- "description": "Channel ID",
11195
- "name": "channel",
11196
- "required": true,
11197
- "hasDynamicHelp": false,
11198
- "multiple": false,
11199
- "type": "option"
11200
11270
  }
11201
11271
  },
11202
11272
  "hasDynamicHelp": false,
11203
11273
  "hiddenAliases": [],
11204
- "id": "tickets:get",
11274
+ "id": "webhooks:list",
11205
11275
  "pluginAlias": "@instantkom/cli",
11206
11276
  "pluginName": "@instantkom/cli",
11207
11277
  "pluginType": "core",
@@ -11211,14 +11281,14 @@
11211
11281
  "relativePath": [
11212
11282
  "dist",
11213
11283
  "commands",
11214
- "tickets",
11215
- "get.js"
11284
+ "webhooks",
11285
+ "list.js"
11216
11286
  ]
11217
11287
  },
11218
- "tickets:list": {
11288
+ "webhooks:logs": {
11219
11289
  "aliases": [],
11220
11290
  "args": {},
11221
- "description": "List tickets for a channel",
11291
+ "description": "Explain webhook log availability",
11222
11292
  "flags": {
11223
11293
  "api-key": {
11224
11294
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -11281,35 +11351,11 @@
11281
11351
  "hasDynamicHelp": false,
11282
11352
  "multiple": false,
11283
11353
  "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"
11308
11354
  }
11309
11355
  },
11310
11356
  "hasDynamicHelp": false,
11311
11357
  "hiddenAliases": [],
11312
- "id": "tickets:list",
11358
+ "id": "webhooks:logs",
11313
11359
  "pluginAlias": "@instantkom/cli",
11314
11360
  "pluginName": "@instantkom/cli",
11315
11361
  "pluginType": "core",
@@ -11319,20 +11365,20 @@
11319
11365
  "relativePath": [
11320
11366
  "dist",
11321
11367
  "commands",
11322
- "tickets",
11323
- "list.js"
11368
+ "webhooks",
11369
+ "logs.js"
11324
11370
  ]
11325
11371
  },
11326
- "tickets:reply": {
11372
+ "webhooks:remove": {
11327
11373
  "aliases": [],
11328
11374
  "args": {
11329
11375
  "id": {
11330
- "description": "Ticket ID",
11376
+ "description": "Webhook subscription ID",
11331
11377
  "name": "id",
11332
11378
  "required": true
11333
11379
  }
11334
11380
  },
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.",
11381
+ "description": "Remove a webhook subscription",
11336
11382
  "flags": {
11337
11383
  "api-key": {
11338
11384
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -11395,25 +11441,11 @@
11395
11441
  "hasDynamicHelp": false,
11396
11442
  "multiple": false,
11397
11443
  "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"
11412
11444
  }
11413
11445
  },
11414
11446
  "hasDynamicHelp": false,
11415
11447
  "hiddenAliases": [],
11416
- "id": "tickets:reply",
11448
+ "id": "webhooks:remove",
11417
11449
  "pluginAlias": "@instantkom/cli",
11418
11450
  "pluginName": "@instantkom/cli",
11419
11451
  "pluginType": "core",
@@ -11423,20 +11455,14 @@
11423
11455
  "relativePath": [
11424
11456
  "dist",
11425
11457
  "commands",
11426
- "tickets",
11427
- "reply.js"
11458
+ "webhooks",
11459
+ "remove.js"
11428
11460
  ]
11429
11461
  },
11430
- "tickets:update": {
11462
+ "webhooks:test": {
11431
11463
  "aliases": [],
11432
- "args": {
11433
- "id": {
11434
- "description": "Ticket ID",
11435
- "name": "id",
11436
- "required": true
11437
- }
11438
- },
11439
- "description": "Update a ticket",
11464
+ "args": {},
11465
+ "description": "Send a test webhook payload to a URL",
11440
11466
  "flags": {
11441
11467
  "api-key": {
11442
11468
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -11500,51 +11526,25 @@
11500
11526
  "multiple": false,
11501
11527
  "type": "option"
11502
11528
  },
11503
- "channel": {
11504
- "description": "Channel ID",
11505
- "name": "channel",
11529
+ "url": {
11530
+ "description": "Webhook URL to call",
11531
+ "name": "url",
11506
11532
  "required": true,
11507
11533
  "hasDynamicHelp": false,
11508
11534
  "multiple": false,
11509
11535
  "type": "option"
11510
11536
  },
11511
- "subject": {
11512
- "description": "Ticket subject",
11513
- "name": "subject",
11514
- "hasDynamicHelp": false,
11515
- "multiple": false,
11516
- "type": "option"
11517
- },
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",
11537
+ "event": {
11538
+ "description": "Event name",
11539
+ "name": "event",
11540
+ "default": "cli.test",
11535
11541
  "hasDynamicHelp": false,
11536
11542
  "multiple": false,
11537
11543
  "type": "option"
11538
11544
  },
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",
11545
+ "payload": {
11546
+ "description": "Payload JSON",
11547
+ "name": "payload",
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": "tickets:update",
11555
+ "id": "webhooks:test",
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
- "tickets",
11566
- "update.js"
11565
+ "webhooks",
11566
+ "test.js"
11567
11567
  ]
11568
11568
  },
11569
11569
  "auth:tokens:create": {
@@ -15856,16 +15856,16 @@
15856
15856
  "list.js"
15857
15857
  ]
15858
15858
  },
15859
- "tags:segments:list": {
15859
+ "tags:recipients:add": {
15860
15860
  "aliases": [],
15861
15861
  "args": {
15862
- "id": {
15862
+ "tagId": {
15863
15863
  "description": "Tag ID",
15864
- "name": "id",
15864
+ "name": "tagId",
15865
15865
  "required": true
15866
15866
  }
15867
15867
  },
15868
- "description": "List segments that use a specific tag",
15868
+ "description": "Assign a tag to recipients",
15869
15869
  "flags": {
15870
15870
  "api-key": {
15871
15871
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -15929,18 +15929,10 @@
15929
15929
  "multiple": false,
15930
15930
  "type": "option"
15931
15931
  },
15932
- "page": {
15933
- "description": "Page number",
15934
- "name": "page",
15935
- "default": 1,
15936
- "hasDynamicHelp": false,
15937
- "multiple": false,
15938
- "type": "option"
15939
- },
15940
- "limit": {
15941
- "description": "Items per page",
15942
- "name": "limit",
15943
- "default": 20,
15932
+ "recipients": {
15933
+ "description": "Comma-separated recipient IDs",
15934
+ "name": "recipients",
15935
+ "required": true,
15944
15936
  "hasDynamicHelp": false,
15945
15937
  "multiple": false,
15946
15938
  "type": "option"
@@ -15948,7 +15940,7 @@
15948
15940
  },
15949
15941
  "hasDynamicHelp": false,
15950
15942
  "hiddenAliases": [],
15951
- "id": "tags:segments:list",
15943
+ "id": "tags:recipients:add",
15952
15944
  "pluginAlias": "@instantkom/cli",
15953
15945
  "pluginName": "@instantkom/cli",
15954
15946
  "pluginType": "core",
@@ -15959,11 +15951,11 @@
15959
15951
  "dist",
15960
15952
  "commands",
15961
15953
  "tags",
15962
- "segments",
15963
- "list.js"
15954
+ "recipients",
15955
+ "add.js"
15964
15956
  ]
15965
15957
  },
15966
- "tags:recipients:add": {
15958
+ "tags:recipients:remove": {
15967
15959
  "aliases": [],
15968
15960
  "args": {
15969
15961
  "tagId": {
@@ -15972,7 +15964,7 @@
15972
15964
  "required": true
15973
15965
  }
15974
15966
  },
15975
- "description": "Assign a tag to recipients",
15967
+ "description": "Remove a tag from recipients",
15976
15968
  "flags": {
15977
15969
  "api-key": {
15978
15970
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -16047,7 +16039,7 @@
16047
16039
  },
16048
16040
  "hasDynamicHelp": false,
16049
16041
  "hiddenAliases": [],
16050
- "id": "tags:recipients:add",
16042
+ "id": "tags:recipients:remove",
16051
16043
  "pluginAlias": "@instantkom/cli",
16052
16044
  "pluginName": "@instantkom/cli",
16053
16045
  "pluginType": "core",
@@ -16059,19 +16051,19 @@
16059
16051
  "commands",
16060
16052
  "tags",
16061
16053
  "recipients",
16062
- "add.js"
16054
+ "remove.js"
16063
16055
  ]
16064
16056
  },
16065
- "tags:recipients:remove": {
16057
+ "tags:segments:list": {
16066
16058
  "aliases": [],
16067
16059
  "args": {
16068
- "tagId": {
16060
+ "id": {
16069
16061
  "description": "Tag ID",
16070
- "name": "tagId",
16062
+ "name": "id",
16071
16063
  "required": true
16072
16064
  }
16073
16065
  },
16074
- "description": "Remove a tag from recipients",
16066
+ "description": "List segments that use a specific tag",
16075
16067
  "flags": {
16076
16068
  "api-key": {
16077
16069
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -16135,10 +16127,18 @@
16135
16127
  "multiple": false,
16136
16128
  "type": "option"
16137
16129
  },
16138
- "recipients": {
16139
- "description": "Comma-separated recipient IDs",
16140
- "name": "recipients",
16141
- "required": true,
16130
+ "page": {
16131
+ "description": "Page number",
16132
+ "name": "page",
16133
+ "default": 1,
16134
+ "hasDynamicHelp": false,
16135
+ "multiple": false,
16136
+ "type": "option"
16137
+ },
16138
+ "limit": {
16139
+ "description": "Items per page",
16140
+ "name": "limit",
16141
+ "default": 20,
16142
16142
  "hasDynamicHelp": false,
16143
16143
  "multiple": false,
16144
16144
  "type": "option"
@@ -16146,7 +16146,7 @@
16146
16146
  },
16147
16147
  "hasDynamicHelp": false,
16148
16148
  "hiddenAliases": [],
16149
- "id": "tags:recipients:remove",
16149
+ "id": "tags:segments:list",
16150
16150
  "pluginAlias": "@instantkom/cli",
16151
16151
  "pluginName": "@instantkom/cli",
16152
16152
  "pluginType": "core",
@@ -16157,8 +16157,8 @@
16157
16157
  "dist",
16158
16158
  "commands",
16159
16159
  "tags",
16160
- "recipients",
16161
- "remove.js"
16160
+ "segments",
16161
+ "list.js"
16162
16162
  ]
16163
16163
  },
16164
16164
  "ticket:messages:create": {
@@ -17052,5 +17052,5 @@
17052
17052
  ]
17053
17053
  }
17054
17054
  },
17055
- "version": "3.184.1"
17055
+ "version": "3.185.1"
17056
17056
  }