@instantkom/cli 3.141.0 → 3.143.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.
@@ -2015,10 +2015,10 @@
2015
2015
  "update.js"
2016
2016
  ]
2017
2017
  },
2018
- "channels:create": {
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,122 +2669,40 @@
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
- }
2714
- },
2715
- "hasDynamicHelp": false,
2716
- "hiddenAliases": [],
2717
- "id": "broadcast:create",
2718
- "pluginAlias": "@instantkom/cli",
2719
- "pluginName": "@instantkom/cli",
2720
- "pluginType": "core",
2721
- "strict": true,
2722
- "enableJsonFlag": false,
2723
- "isESM": true,
2724
- "relativePath": [
2725
- "dist",
2726
- "commands",
2727
- "broadcast",
2728
- "create.js"
2729
- ]
2730
- },
2731
- "broadcast:delete": {
2732
- "aliases": [],
2733
- "args": {
2734
- "id": {
2735
- "description": "broadcast ID",
2736
- "name": "id",
2737
- "required": true
2738
- }
2739
- },
2740
- "description": "Delete broadcast",
2741
- "flags": {
2742
- "api-key": {
2743
- "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
2744
- "env": "IKM_API_KEY",
2745
- "helpGroup": "GLOBAL",
2746
- "name": "api-key",
2672
+ }
2673
+ },
2674
+ "hasDynamicHelp": false,
2675
+ "hiddenAliases": [],
2676
+ "id": "broadcast:status",
2677
+ "pluginAlias": "@instantkom/cli",
2678
+ "pluginName": "@instantkom/cli",
2679
+ "pluginType": "core",
2680
+ "strict": true,
2681
+ "enableJsonFlag": false,
2682
+ "isESM": true,
2683
+ "relativePath": [
2684
+ "dist",
2685
+ "commands",
2686
+ "broadcast",
2687
+ "status.js"
2688
+ ]
2689
+ },
2690
+ "broadcast:update": {
2691
+ "aliases": [],
2692
+ "args": {
2693
+ "id": {
2694
+ "description": "Broadcast ID",
2695
+ "name": "id",
2696
+ "required": true
2697
+ }
2698
+ },
2699
+ "description": "Update a broadcast",
2700
+ "flags": {
2701
+ "api-key": {
2702
+ "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
2703
+ "env": "IKM_API_KEY",
2704
+ "helpGroup": "GLOBAL",
2705
+ "name": "api-key",
2747
2706
  "hasDynamicHelp": false,
2748
2707
  "multiple": false,
2749
2708
  "type": "option"
@@ -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",
3026
+ "channels": {
3027
+ "description": "Comma-separated channel IDs",
3028
+ "name": "channels",
3004
3029
  "hasDynamicHelp": false,
3005
3030
  "multiple": false,
3006
3031
  "type": "option"
3007
3032
  },
3008
- "type": {
3009
- "description": "Broadcast type",
3010
- "name": "type",
3011
- "hasDynamicHelp": false,
3012
- "multiple": false,
3013
- "options": [
3014
- "text",
3015
- "image",
3016
- "video",
3017
- "audio",
3018
- "document"
3019
- ],
3020
- "type": "option"
3021
- },
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.",
@@ -3209,10 +3236,47 @@
3209
3236
  "multiple": false,
3210
3237
  "type": "option"
3211
3238
  },
3212
- "api-url": {
3213
- "description": "Override the API base URL (e.g. for staging)",
3214
- "helpGroup": "GLOBAL",
3215
- "name": "api-url",
3239
+ "api-url": {
3240
+ "description": "Override the API base URL (e.g. for staging)",
3241
+ "helpGroup": "GLOBAL",
3242
+ "name": "api-url",
3243
+ "hasDynamicHelp": false,
3244
+ "multiple": false,
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",
3216
3280
  "hasDynamicHelp": false,
3217
3281
  "multiple": false,
3218
3282
  "type": "option"
@@ -3220,7 +3284,7 @@
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
- "chats:get": {
3391
+ "channels:kpis": {
3394
3392
  "aliases": [],
3395
3393
  "args": {
3396
3394
  "id": {
3397
- "description": "chat ID",
3395
+ "description": "Optional channel ID; omit for aggregated channel KPIs",
3398
3396
  "name": "id",
3399
- "required": true
3397
+ "required": false
3400
3398
  }
3401
3399
  },
3402
- "description": "Get chat by ID",
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": "chats:get",
3474
+ "id": "channels:kpis",
3470
3475
  "pluginAlias": "@instantkom/cli",
3471
3476
  "pluginName": "@instantkom/cli",
3472
3477
  "pluginType": "core",
@@ -3476,14 +3481,14 @@
3476
3481
  "relativePath": [
3477
3482
  "dist",
3478
3483
  "commands",
3479
- "chats",
3480
- "get.js"
3484
+ "channels",
3485
+ "kpis.js"
3481
3486
  ]
3482
3487
  },
3483
- "chats:list": {
3488
+ "channels:list": {
3484
3489
  "aliases": [],
3485
3490
  "args": {},
3486
- "description": "List chats",
3491
+ "description": "List channels",
3487
3492
  "flags": {
3488
3493
  "api-key": {
3489
3494
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -3563,56 +3568,31 @@
3563
3568
  "multiple": false,
3564
3569
  "type": "option"
3565
3570
  },
3566
- "channel": {
3567
- "description": "Filter by channel ID",
3568
- "name": "channel",
3571
+ "status": {
3572
+ "description": "Filter by channel status",
3573
+ "name": "status",
3569
3574
  "hasDynamicHelp": false,
3570
3575
  "multiple": false,
3571
3576
  "type": "option"
3572
3577
  },
3573
- "channels": {
3574
- "description": "Comma-separated channel IDs",
3575
- "name": "channels",
3578
+ "gateway-type": {
3579
+ "description": "Filter by gateway type ID",
3580
+ "name": "gateway-type",
3576
3581
  "hasDynamicHelp": false,
3577
3582
  "multiple": false,
3578
3583
  "type": "option"
3579
3584
  },
3580
3585
  "search": {
3581
- "description": "Search chats",
3586
+ "description": "Search by channel name",
3582
3587
  "name": "search",
3583
3588
  "hasDynamicHelp": false,
3584
3589
  "multiple": false,
3585
3590
  "type": "option"
3586
- },
3587
- "status": {
3588
- "description": "Chat status",
3589
- "name": "status",
3590
- "hasDynamicHelp": false,
3591
- "multiple": false,
3592
- "options": [
3593
- "all",
3594
- "unread",
3595
- "read",
3596
- "archived"
3597
- ],
3598
- "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
3591
  }
3612
3592
  },
3613
3593
  "hasDynamicHelp": false,
3614
3594
  "hiddenAliases": [],
3615
- "id": "chats:list",
3595
+ "id": "channels:list",
3616
3596
  "pluginAlias": "@instantkom/cli",
3617
3597
  "pluginName": "@instantkom/cli",
3618
3598
  "pluginType": "core",
@@ -3622,20 +3602,20 @@
3622
3602
  "relativePath": [
3623
3603
  "dist",
3624
3604
  "commands",
3625
- "chats",
3605
+ "channels",
3626
3606
  "list.js"
3627
3607
  ]
3628
3608
  },
3629
- "chats:reply": {
3609
+ "channels:update": {
3630
3610
  "aliases": [],
3631
3611
  "args": {
3632
3612
  "id": {
3633
- "description": "Chat ID",
3613
+ "description": "Channel ID",
3634
3614
  "name": "id",
3635
3615
  "required": true
3636
3616
  }
3637
3617
  },
3638
- "description": "Reply in a chat",
3618
+ "description": "Update a channel",
3639
3619
  "flags": {
3640
3620
  "api-key": {
3641
3621
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -3699,10 +3679,30 @@
3699
3679
  "multiple": false,
3700
3680
  "type": "option"
3701
3681
  },
3702
- "text": {
3703
- "description": "Reply text",
3704
- "name": "text",
3705
- "required": true,
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
3706
  "hasDynamicHelp": false,
3707
3707
  "multiple": false,
3708
3708
  "type": "option"
@@ -3710,7 +3710,7 @@
3710
3710
  },
3711
3711
  "hasDynamicHelp": false,
3712
3712
  "hiddenAliases": [],
3713
- "id": "chats:reply",
3713
+ "id": "channels:update",
3714
3714
  "pluginAlias": "@instantkom/cli",
3715
3715
  "pluginName": "@instantkom/cli",
3716
3716
  "pluginType": "core",
@@ -3720,8 +3720,8 @@
3720
3720
  "relativePath": [
3721
3721
  "dist",
3722
3722
  "commands",
3723
- "chats",
3724
- "reply.js"
3723
+ "channels",
3724
+ "update.js"
3725
3725
  ]
3726
3726
  },
3727
3727
  "config:get": {
@@ -8968,10 +8968,10 @@
8968
8968
  "validate-import.js"
8969
8969
  ]
8970
8970
  },
8971
- "templates:create": {
8971
+ "team:create": {
8972
8972
  "aliases": [],
8973
8973
  "args": {},
8974
- "description": "Create a message template",
8974
+ "description": "Create a team member",
8975
8975
  "flags": {
8976
8976
  "api-key": {
8977
8977
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -9035,78 +9035,62 @@
9035
9035
  "multiple": false,
9036
9036
  "type": "option"
9037
9037
  },
9038
- "channel": {
9039
- "description": "Channel ID",
9040
- "name": "channel",
9038
+ "email": {
9039
+ "description": "Email address",
9040
+ "name": "email",
9041
9041
  "required": true,
9042
9042
  "hasDynamicHelp": false,
9043
9043
  "multiple": false,
9044
9044
  "type": "option"
9045
9045
  },
9046
- "name": {
9047
- "description": "Template name",
9048
- "name": "name",
9046
+ "first-name": {
9047
+ "description": "First name",
9048
+ "name": "first-name",
9049
9049
  "required": true,
9050
9050
  "hasDynamicHelp": false,
9051
9051
  "multiple": false,
9052
9052
  "type": "option"
9053
9053
  },
9054
- "type": {
9055
- "description": "Template type",
9056
- "name": "type",
9057
- "default": "text",
9054
+ "last-name": {
9055
+ "description": "Last name",
9056
+ "name": "last-name",
9057
+ "required": true,
9058
9058
  "hasDynamicHelp": false,
9059
9059
  "multiple": false,
9060
- "options": [
9061
- "text",
9062
- "image",
9063
- "video",
9064
- "document",
9065
- "audio",
9066
- "location",
9067
- "contact",
9068
- "interactive"
9069
- ],
9070
9060
  "type": "option"
9071
9061
  },
9072
- "message": {
9073
- "description": "Template message",
9074
- "name": "message",
9062
+ "password": {
9063
+ "description": "Initial password",
9064
+ "name": "password",
9075
9065
  "required": true,
9076
9066
  "hasDynamicHelp": false,
9077
9067
  "multiple": false,
9078
9068
  "type": "option"
9079
9069
  },
9080
- "color": {
9081
- "description": "Template color as HEX",
9082
- "name": "color",
9070
+ "phone": {
9071
+ "description": "Phone number",
9072
+ "name": "phone",
9083
9073
  "hasDynamicHelp": false,
9084
9074
  "multiple": false,
9085
9075
  "type": "option"
9086
9076
  },
9087
- "status": {
9088
- "description": "Template is active",
9089
- "name": "status",
9090
- "allowNo": true,
9091
- "type": "boolean"
9092
- },
9093
- "whatsapp-language": {
9094
- "description": "WhatsApp template language",
9095
- "name": "whatsapp-language",
9077
+ "company": {
9078
+ "description": "Company name",
9079
+ "name": "company",
9096
9080
  "hasDynamicHelp": false,
9097
9081
  "multiple": false,
9098
9082
  "type": "option"
9099
9083
  },
9100
- "buttons": {
9101
- "description": "Buttons JSON array/object",
9102
- "name": "buttons",
9084
+ "color": {
9085
+ "description": "Color as HEX",
9086
+ "name": "color",
9103
9087
  "hasDynamicHelp": false,
9104
9088
  "multiple": false,
9105
9089
  "type": "option"
9106
9090
  },
9107
- "header-footer": {
9108
- "description": "Header/footer JSON object",
9109
- "name": "header-footer",
9091
+ "folder": {
9092
+ "description": "Object folder ID",
9093
+ "name": "folder",
9110
9094
  "hasDynamicHelp": false,
9111
9095
  "multiple": false,
9112
9096
  "type": "option"
@@ -9121,7 +9105,7 @@
9121
9105
  },
9122
9106
  "hasDynamicHelp": false,
9123
9107
  "hiddenAliases": [],
9124
- "id": "templates:create",
9108
+ "id": "team:create",
9125
9109
  "pluginAlias": "@instantkom/cli",
9126
9110
  "pluginName": "@instantkom/cli",
9127
9111
  "pluginType": "core",
@@ -9131,20 +9115,20 @@
9131
9115
  "relativePath": [
9132
9116
  "dist",
9133
9117
  "commands",
9134
- "templates",
9118
+ "team",
9135
9119
  "create.js"
9136
9120
  ]
9137
9121
  },
9138
- "templates:delete": {
9122
+ "team:delete": {
9139
9123
  "aliases": [],
9140
9124
  "args": {
9141
9125
  "id": {
9142
- "description": "template ID",
9126
+ "description": "Team member ID",
9143
9127
  "name": "id",
9144
9128
  "required": true
9145
9129
  }
9146
9130
  },
9147
- "description": "Delete template",
9131
+ "description": "Delete a team member",
9148
9132
  "flags": {
9149
9133
  "api-key": {
9150
9134
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -9211,7 +9195,7 @@
9211
9195
  },
9212
9196
  "hasDynamicHelp": false,
9213
9197
  "hiddenAliases": [],
9214
- "id": "templates:delete",
9198
+ "id": "team:delete",
9215
9199
  "pluginAlias": "@instantkom/cli",
9216
9200
  "pluginName": "@instantkom/cli",
9217
9201
  "pluginType": "core",
@@ -9221,14 +9205,14 @@
9221
9205
  "relativePath": [
9222
9206
  "dist",
9223
9207
  "commands",
9224
- "templates",
9208
+ "team",
9225
9209
  "delete.js"
9226
9210
  ]
9227
9211
  },
9228
- "templates:export": {
9212
+ "team:list": {
9229
9213
  "aliases": [],
9230
9214
  "args": {},
9231
- "description": "Export templates to a file",
9215
+ "description": "List team members",
9232
9216
  "flags": {
9233
9217
  "api-key": {
9234
9218
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -9240,14 +9224,17 @@
9240
9224
  "type": "option"
9241
9225
  },
9242
9226
  "format": {
9243
- "description": "Export format",
9227
+ "description": "Output format: text, json, yaml, or table",
9228
+ "helpGroup": "GLOBAL",
9244
9229
  "name": "format",
9245
- "default": "json",
9230
+ "default": "text",
9246
9231
  "hasDynamicHelp": false,
9247
9232
  "multiple": false,
9248
9233
  "options": [
9249
- "csv",
9250
- "json"
9234
+ "text",
9235
+ "json",
9236
+ "yaml",
9237
+ "table"
9251
9238
  ],
9252
9239
  "type": "option"
9253
9240
  },
@@ -9288,26 +9275,11 @@
9288
9275
  "hasDynamicHelp": false,
9289
9276
  "multiple": false,
9290
9277
  "type": "option"
9291
- },
9292
- "file": {
9293
- "description": "Output file path",
9294
- "name": "file",
9295
- "required": true,
9296
- "hasDynamicHelp": false,
9297
- "multiple": false,
9298
- "type": "option"
9299
- },
9300
- "channel": {
9301
- "description": "Filter by channel ID",
9302
- "name": "channel",
9303
- "hasDynamicHelp": false,
9304
- "multiple": false,
9305
- "type": "option"
9306
9278
  }
9307
9279
  },
9308
9280
  "hasDynamicHelp": false,
9309
9281
  "hiddenAliases": [],
9310
- "id": "templates:export",
9282
+ "id": "team:list",
9311
9283
  "pluginAlias": "@instantkom/cli",
9312
9284
  "pluginName": "@instantkom/cli",
9313
9285
  "pluginType": "core",
@@ -9317,20 +9289,14 @@
9317
9289
  "relativePath": [
9318
9290
  "dist",
9319
9291
  "commands",
9320
- "templates",
9321
- "export.js"
9292
+ "team",
9293
+ "list.js"
9322
9294
  ]
9323
9295
  },
9324
- "templates:get": {
9296
+ "templates:create": {
9325
9297
  "aliases": [],
9326
- "args": {
9327
- "id": {
9328
- "description": "Template ID",
9329
- "name": "id",
9330
- "required": true
9331
- }
9332
- },
9333
- "description": "Get a message template by ID",
9298
+ "args": {},
9299
+ "description": "Create a message template",
9334
9300
  "flags": {
9335
9301
  "api-key": {
9336
9302
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -9393,117 +9359,94 @@
9393
9359
  "hasDynamicHelp": false,
9394
9360
  "multiple": false,
9395
9361
  "type": "option"
9396
- }
9397
- },
9398
- "hasDynamicHelp": false,
9399
- "hiddenAliases": [],
9400
- "id": "templates:get",
9401
- "pluginAlias": "@instantkom/cli",
9402
- "pluginName": "@instantkom/cli",
9403
- "pluginType": "core",
9404
- "strict": true,
9405
- "enableJsonFlag": false,
9406
- "isESM": true,
9407
- "relativePath": [
9408
- "dist",
9409
- "commands",
9410
- "templates",
9411
- "get.js"
9412
- ]
9413
- },
9414
- "templates:import": {
9415
- "aliases": [],
9416
- "args": {},
9417
- "description": "Import templates from JSON",
9418
- "flags": {
9419
- "api-key": {
9420
- "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
9421
- "env": "IKM_API_KEY",
9422
- "helpGroup": "GLOBAL",
9423
- "name": "api-key",
9362
+ },
9363
+ "channel": {
9364
+ "description": "Channel ID",
9365
+ "name": "channel",
9366
+ "required": true,
9424
9367
  "hasDynamicHelp": false,
9425
9368
  "multiple": false,
9426
9369
  "type": "option"
9427
9370
  },
9428
- "format": {
9429
- "description": "Output format: text, json, yaml, or table",
9430
- "helpGroup": "GLOBAL",
9431
- "name": "format",
9371
+ "name": {
9372
+ "description": "Template name",
9373
+ "name": "name",
9374
+ "required": true,
9375
+ "hasDynamicHelp": false,
9376
+ "multiple": false,
9377
+ "type": "option"
9378
+ },
9379
+ "type": {
9380
+ "description": "Template type",
9381
+ "name": "type",
9432
9382
  "default": "text",
9433
9383
  "hasDynamicHelp": false,
9434
9384
  "multiple": false,
9435
9385
  "options": [
9436
9386
  "text",
9437
- "json",
9438
- "yaml",
9439
- "table"
9387
+ "image",
9388
+ "video",
9389
+ "document",
9390
+ "audio",
9391
+ "location",
9392
+ "contact",
9393
+ "interactive"
9440
9394
  ],
9441
9395
  "type": "option"
9442
9396
  },
9443
- "json": {
9444
- "description": "Output in JSON format (alias for --format=json)",
9445
- "helpGroup": "GLOBAL",
9446
- "name": "json",
9447
- "allowNo": false,
9448
- "type": "boolean"
9397
+ "message": {
9398
+ "description": "Template message",
9399
+ "name": "message",
9400
+ "required": true,
9401
+ "hasDynamicHelp": false,
9402
+ "multiple": false,
9403
+ "type": "option"
9449
9404
  },
9450
- "quiet": {
9451
- "description": "Suppress all output except errors",
9452
- "helpGroup": "GLOBAL",
9453
- "name": "quiet",
9454
- "allowNo": false,
9455
- "type": "boolean"
9405
+ "color": {
9406
+ "description": "Template color as HEX",
9407
+ "name": "color",
9408
+ "hasDynamicHelp": false,
9409
+ "multiple": false,
9410
+ "type": "option"
9456
9411
  },
9457
- "no-color": {
9458
- "description": "Disable color output",
9459
- "helpGroup": "GLOBAL",
9460
- "name": "no-color",
9461
- "allowNo": false,
9412
+ "status": {
9413
+ "description": "Template is active",
9414
+ "name": "status",
9415
+ "allowNo": true,
9462
9416
  "type": "boolean"
9463
9417
  },
9464
- "profile": {
9465
- "description": "Named configuration profile to use",
9466
- "helpGroup": "GLOBAL",
9467
- "name": "profile",
9468
- "default": "default",
9418
+ "whatsapp-language": {
9419
+ "description": "WhatsApp template language",
9420
+ "name": "whatsapp-language",
9469
9421
  "hasDynamicHelp": false,
9470
9422
  "multiple": false,
9471
9423
  "type": "option"
9472
9424
  },
9473
- "api-url": {
9474
- "description": "Override the API base URL (e.g. for staging)",
9475
- "helpGroup": "GLOBAL",
9476
- "name": "api-url",
9425
+ "buttons": {
9426
+ "description": "Buttons JSON array/object",
9427
+ "name": "buttons",
9477
9428
  "hasDynamicHelp": false,
9478
9429
  "multiple": false,
9479
9430
  "type": "option"
9480
9431
  },
9481
- "file": {
9482
- "description": "JSON file path",
9483
- "name": "file",
9484
- "required": true,
9432
+ "header-footer": {
9433
+ "description": "Header/footer JSON object",
9434
+ "name": "header-footer",
9485
9435
  "hasDynamicHelp": false,
9486
9436
  "multiple": false,
9487
9437
  "type": "option"
9488
9438
  },
9489
- "channel": {
9490
- "description": "Target channel ID",
9491
- "name": "channel",
9492
- "required": true,
9439
+ "data": {
9440
+ "description": "Additional JSON object payload",
9441
+ "name": "data",
9493
9442
  "hasDynamicHelp": false,
9494
9443
  "multiple": false,
9495
9444
  "type": "option"
9496
- },
9497
- "skip-duplicates": {
9498
- "description": "Skip duplicate templates",
9499
- "name": "skip-duplicates",
9500
- "allowNo": true,
9501
- "type": "boolean"
9502
9445
  }
9503
9446
  },
9504
9447
  "hasDynamicHelp": false,
9505
9448
  "hiddenAliases": [],
9506
- "id": "templates:import",
9449
+ "id": "templates:create",
9507
9450
  "pluginAlias": "@instantkom/cli",
9508
9451
  "pluginName": "@instantkom/cli",
9509
9452
  "pluginType": "core",
@@ -9514,13 +9457,19 @@
9514
9457
  "dist",
9515
9458
  "commands",
9516
9459
  "templates",
9517
- "import.js"
9460
+ "create.js"
9518
9461
  ]
9519
9462
  },
9520
- "templates:list": {
9463
+ "templates:delete": {
9521
9464
  "aliases": [],
9522
- "args": {},
9523
- "description": "List message templates",
9465
+ "args": {
9466
+ "id": {
9467
+ "description": "template ID",
9468
+ "name": "id",
9469
+ "required": true
9470
+ }
9471
+ },
9472
+ "description": "Delete template",
9524
9473
  "flags": {
9525
9474
  "api-key": {
9526
9475
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -9569,47 +9518,17 @@
9569
9518
  },
9570
9519
  "profile": {
9571
9520
  "description": "Named configuration profile to use",
9572
- "helpGroup": "GLOBAL",
9573
- "name": "profile",
9574
- "default": "default",
9575
- "hasDynamicHelp": false,
9576
- "multiple": false,
9577
- "type": "option"
9578
- },
9579
- "api-url": {
9580
- "description": "Override the API base URL (e.g. for staging)",
9581
- "helpGroup": "GLOBAL",
9582
- "name": "api-url",
9583
- "hasDynamicHelp": false,
9584
- "multiple": false,
9585
- "type": "option"
9586
- },
9587
- "channel": {
9588
- "description": "Filter by channel ID",
9589
- "name": "channel",
9590
- "hasDynamicHelp": false,
9591
- "multiple": false,
9592
- "type": "option"
9593
- },
9594
- "search": {
9595
- "description": "Search templates by name or content",
9596
- "name": "search",
9597
- "hasDynamicHelp": false,
9598
- "multiple": false,
9599
- "type": "option"
9600
- },
9601
- "page": {
9602
- "description": "Page number",
9603
- "name": "page",
9604
- "default": 1,
9521
+ "helpGroup": "GLOBAL",
9522
+ "name": "profile",
9523
+ "default": "default",
9605
9524
  "hasDynamicHelp": false,
9606
9525
  "multiple": false,
9607
9526
  "type": "option"
9608
9527
  },
9609
- "limit": {
9610
- "description": "Items per page",
9611
- "name": "limit",
9612
- "default": 20,
9528
+ "api-url": {
9529
+ "description": "Override the API base URL (e.g. for staging)",
9530
+ "helpGroup": "GLOBAL",
9531
+ "name": "api-url",
9613
9532
  "hasDynamicHelp": false,
9614
9533
  "multiple": false,
9615
9534
  "type": "option"
@@ -9617,7 +9536,7 @@
9617
9536
  },
9618
9537
  "hasDynamicHelp": false,
9619
9538
  "hiddenAliases": [],
9620
- "id": "templates:list",
9539
+ "id": "templates:delete",
9621
9540
  "pluginAlias": "@instantkom/cli",
9622
9541
  "pluginName": "@instantkom/cli",
9623
9542
  "pluginType": "core",
@@ -9628,19 +9547,13 @@
9628
9547
  "dist",
9629
9548
  "commands",
9630
9549
  "templates",
9631
- "list.js"
9550
+ "delete.js"
9632
9551
  ]
9633
9552
  },
9634
- "templates:render": {
9553
+ "templates:export": {
9635
9554
  "aliases": [],
9636
- "args": {
9637
- "id": {
9638
- "description": "Template ID",
9639
- "name": "id",
9640
- "required": true
9641
- }
9642
- },
9643
- "description": "Render a message template locally",
9555
+ "args": {},
9556
+ "description": "Export templates to a file",
9644
9557
  "flags": {
9645
9558
  "api-key": {
9646
9559
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -9652,17 +9565,14 @@
9652
9565
  "type": "option"
9653
9566
  },
9654
9567
  "format": {
9655
- "description": "Output format: text, json, yaml, or table",
9656
- "helpGroup": "GLOBAL",
9568
+ "description": "Export format",
9657
9569
  "name": "format",
9658
- "default": "text",
9570
+ "default": "json",
9659
9571
  "hasDynamicHelp": false,
9660
9572
  "multiple": false,
9661
9573
  "options": [
9662
- "text",
9663
- "json",
9664
- "yaml",
9665
- "table"
9574
+ "csv",
9575
+ "json"
9666
9576
  ],
9667
9577
  "type": "option"
9668
9578
  },
@@ -9704,17 +9614,25 @@
9704
9614
  "multiple": false,
9705
9615
  "type": "option"
9706
9616
  },
9707
- "vars": {
9708
- "description": "Template variable as key=value; may be repeated",
9709
- "name": "vars",
9617
+ "file": {
9618
+ "description": "Output file path",
9619
+ "name": "file",
9620
+ "required": true,
9710
9621
  "hasDynamicHelp": false,
9711
- "multiple": true,
9622
+ "multiple": false,
9623
+ "type": "option"
9624
+ },
9625
+ "channel": {
9626
+ "description": "Filter by channel ID",
9627
+ "name": "channel",
9628
+ "hasDynamicHelp": false,
9629
+ "multiple": false,
9712
9630
  "type": "option"
9713
9631
  }
9714
9632
  },
9715
9633
  "hasDynamicHelp": false,
9716
9634
  "hiddenAliases": [],
9717
- "id": "templates:render",
9635
+ "id": "templates:export",
9718
9636
  "pluginAlias": "@instantkom/cli",
9719
9637
  "pluginName": "@instantkom/cli",
9720
9638
  "pluginType": "core",
@@ -9725,10 +9643,10 @@
9725
9643
  "dist",
9726
9644
  "commands",
9727
9645
  "templates",
9728
- "render.js"
9646
+ "export.js"
9729
9647
  ]
9730
9648
  },
9731
- "templates:update": {
9649
+ "templates:get": {
9732
9650
  "aliases": [],
9733
9651
  "args": {
9734
9652
  "id": {
@@ -9737,7 +9655,7 @@
9737
9655
  "required": true
9738
9656
  }
9739
9657
  },
9740
- "description": "Update a message template",
9658
+ "description": "Get a message template by ID",
9741
9659
  "flags": {
9742
9660
  "api-key": {
9743
9661
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -9800,89 +9718,11 @@
9800
9718
  "hasDynamicHelp": false,
9801
9719
  "multiple": false,
9802
9720
  "type": "option"
9803
- },
9804
- "name": {
9805
- "description": "Template name",
9806
- "name": "name",
9807
- "hasDynamicHelp": false,
9808
- "multiple": false,
9809
- "type": "option"
9810
- },
9811
- "type": {
9812
- "description": "Template type",
9813
- "name": "type",
9814
- "hasDynamicHelp": false,
9815
- "multiple": false,
9816
- "options": [
9817
- "text",
9818
- "image",
9819
- "video",
9820
- "document",
9821
- "audio",
9822
- "location",
9823
- "contact",
9824
- "interactive"
9825
- ],
9826
- "type": "option"
9827
- },
9828
- "message": {
9829
- "description": "Template message",
9830
- "name": "message",
9831
- "hasDynamicHelp": false,
9832
- "multiple": false,
9833
- "type": "option"
9834
- },
9835
- "color": {
9836
- "description": "Template color as HEX",
9837
- "name": "color",
9838
- "hasDynamicHelp": false,
9839
- "multiple": false,
9840
- "type": "option"
9841
- },
9842
- "status": {
9843
- "description": "Template is active",
9844
- "name": "status",
9845
- "allowNo": true,
9846
- "type": "boolean"
9847
- },
9848
- "remove-media": {
9849
- "description": "Remove existing media",
9850
- "name": "remove-media",
9851
- "allowNo": false,
9852
- "type": "boolean"
9853
- },
9854
- "whatsapp-language": {
9855
- "description": "WhatsApp template language",
9856
- "name": "whatsapp-language",
9857
- "hasDynamicHelp": false,
9858
- "multiple": false,
9859
- "type": "option"
9860
- },
9861
- "buttons": {
9862
- "description": "Buttons JSON array/object",
9863
- "name": "buttons",
9864
- "hasDynamicHelp": false,
9865
- "multiple": false,
9866
- "type": "option"
9867
- },
9868
- "header-footer": {
9869
- "description": "Header/footer JSON object",
9870
- "name": "header-footer",
9871
- "hasDynamicHelp": false,
9872
- "multiple": false,
9873
- "type": "option"
9874
- },
9875
- "data": {
9876
- "description": "Additional JSON object payload",
9877
- "name": "data",
9878
- "hasDynamicHelp": false,
9879
- "multiple": false,
9880
- "type": "option"
9881
9721
  }
9882
9722
  },
9883
9723
  "hasDynamicHelp": false,
9884
9724
  "hiddenAliases": [],
9885
- "id": "templates:update",
9725
+ "id": "templates:get",
9886
9726
  "pluginAlias": "@instantkom/cli",
9887
9727
  "pluginName": "@instantkom/cli",
9888
9728
  "pluginType": "core",
@@ -9893,13 +9733,13 @@
9893
9733
  "dist",
9894
9734
  "commands",
9895
9735
  "templates",
9896
- "update.js"
9736
+ "get.js"
9897
9737
  ]
9898
9738
  },
9899
- "templates:validate-import": {
9739
+ "templates:import": {
9900
9740
  "aliases": [],
9901
9741
  "args": {},
9902
- "description": "Validate templates import JSON",
9742
+ "description": "Import templates from JSON",
9903
9743
  "flags": {
9904
9744
  "api-key": {
9905
9745
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -9978,11 +9818,17 @@
9978
9818
  "hasDynamicHelp": false,
9979
9819
  "multiple": false,
9980
9820
  "type": "option"
9821
+ },
9822
+ "skip-duplicates": {
9823
+ "description": "Skip duplicate templates",
9824
+ "name": "skip-duplicates",
9825
+ "allowNo": true,
9826
+ "type": "boolean"
9981
9827
  }
9982
9828
  },
9983
9829
  "hasDynamicHelp": false,
9984
9830
  "hiddenAliases": [],
9985
- "id": "templates:validate-import",
9831
+ "id": "templates:import",
9986
9832
  "pluginAlias": "@instantkom/cli",
9987
9833
  "pluginName": "@instantkom/cli",
9988
9834
  "pluginType": "core",
@@ -9993,13 +9839,13 @@
9993
9839
  "dist",
9994
9840
  "commands",
9995
9841
  "templates",
9996
- "validate-import.js"
9842
+ "import.js"
9997
9843
  ]
9998
9844
  },
9999
- "team:create": {
9845
+ "templates:list": {
10000
9846
  "aliases": [],
10001
9847
  "args": {},
10002
- "description": "Create a team member",
9848
+ "description": "List message templates",
10003
9849
  "flags": {
10004
9850
  "api-key": {
10005
9851
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -10063,77 +9909,137 @@
10063
9909
  "multiple": false,
10064
9910
  "type": "option"
10065
9911
  },
10066
- "email": {
10067
- "description": "Email address",
10068
- "name": "email",
10069
- "required": true,
9912
+ "channel": {
9913
+ "description": "Filter by channel ID",
9914
+ "name": "channel",
10070
9915
  "hasDynamicHelp": false,
10071
9916
  "multiple": false,
10072
9917
  "type": "option"
10073
9918
  },
10074
- "first-name": {
10075
- "description": "First name",
10076
- "name": "first-name",
10077
- "required": true,
9919
+ "search": {
9920
+ "description": "Search templates by name or content",
9921
+ "name": "search",
10078
9922
  "hasDynamicHelp": false,
10079
9923
  "multiple": false,
10080
9924
  "type": "option"
10081
9925
  },
10082
- "last-name": {
10083
- "description": "Last name",
10084
- "name": "last-name",
10085
- "required": true,
9926
+ "page": {
9927
+ "description": "Page number",
9928
+ "name": "page",
9929
+ "default": 1,
10086
9930
  "hasDynamicHelp": false,
10087
9931
  "multiple": false,
10088
9932
  "type": "option"
10089
9933
  },
10090
- "password": {
10091
- "description": "Initial password",
10092
- "name": "password",
10093
- "required": true,
9934
+ "limit": {
9935
+ "description": "Items per page",
9936
+ "name": "limit",
9937
+ "default": 20,
10094
9938
  "hasDynamicHelp": false,
10095
9939
  "multiple": false,
10096
9940
  "type": "option"
10097
- },
10098
- "phone": {
10099
- "description": "Phone number",
10100
- "name": "phone",
9941
+ }
9942
+ },
9943
+ "hasDynamicHelp": false,
9944
+ "hiddenAliases": [],
9945
+ "id": "templates:list",
9946
+ "pluginAlias": "@instantkom/cli",
9947
+ "pluginName": "@instantkom/cli",
9948
+ "pluginType": "core",
9949
+ "strict": true,
9950
+ "enableJsonFlag": false,
9951
+ "isESM": true,
9952
+ "relativePath": [
9953
+ "dist",
9954
+ "commands",
9955
+ "templates",
9956
+ "list.js"
9957
+ ]
9958
+ },
9959
+ "templates:render": {
9960
+ "aliases": [],
9961
+ "args": {
9962
+ "id": {
9963
+ "description": "Template ID",
9964
+ "name": "id",
9965
+ "required": true
9966
+ }
9967
+ },
9968
+ "description": "Render a message template locally",
9969
+ "flags": {
9970
+ "api-key": {
9971
+ "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
9972
+ "env": "IKM_API_KEY",
9973
+ "helpGroup": "GLOBAL",
9974
+ "name": "api-key",
10101
9975
  "hasDynamicHelp": false,
10102
9976
  "multiple": false,
10103
9977
  "type": "option"
10104
9978
  },
10105
- "company": {
10106
- "description": "Company name",
10107
- "name": "company",
9979
+ "format": {
9980
+ "description": "Output format: text, json, yaml, or table",
9981
+ "helpGroup": "GLOBAL",
9982
+ "name": "format",
9983
+ "default": "text",
10108
9984
  "hasDynamicHelp": false,
10109
9985
  "multiple": false,
9986
+ "options": [
9987
+ "text",
9988
+ "json",
9989
+ "yaml",
9990
+ "table"
9991
+ ],
10110
9992
  "type": "option"
10111
9993
  },
10112
- "color": {
10113
- "description": "Color as HEX",
10114
- "name": "color",
9994
+ "json": {
9995
+ "description": "Output in JSON format (alias for --format=json)",
9996
+ "helpGroup": "GLOBAL",
9997
+ "name": "json",
9998
+ "allowNo": false,
9999
+ "type": "boolean"
10000
+ },
10001
+ "quiet": {
10002
+ "description": "Suppress all output except errors",
10003
+ "helpGroup": "GLOBAL",
10004
+ "name": "quiet",
10005
+ "allowNo": false,
10006
+ "type": "boolean"
10007
+ },
10008
+ "no-color": {
10009
+ "description": "Disable color output",
10010
+ "helpGroup": "GLOBAL",
10011
+ "name": "no-color",
10012
+ "allowNo": false,
10013
+ "type": "boolean"
10014
+ },
10015
+ "profile": {
10016
+ "description": "Named configuration profile to use",
10017
+ "helpGroup": "GLOBAL",
10018
+ "name": "profile",
10019
+ "default": "default",
10115
10020
  "hasDynamicHelp": false,
10116
10021
  "multiple": false,
10117
10022
  "type": "option"
10118
10023
  },
10119
- "folder": {
10120
- "description": "Object folder ID",
10121
- "name": "folder",
10024
+ "api-url": {
10025
+ "description": "Override the API base URL (e.g. for staging)",
10026
+ "helpGroup": "GLOBAL",
10027
+ "name": "api-url",
10122
10028
  "hasDynamicHelp": false,
10123
10029
  "multiple": false,
10124
10030
  "type": "option"
10125
10031
  },
10126
- "data": {
10127
- "description": "Additional JSON object payload",
10128
- "name": "data",
10032
+ "vars": {
10033
+ "description": "Template variable as key=value; may be repeated",
10034
+ "name": "vars",
10129
10035
  "hasDynamicHelp": false,
10130
- "multiple": false,
10036
+ "multiple": true,
10131
10037
  "type": "option"
10132
10038
  }
10133
10039
  },
10134
10040
  "hasDynamicHelp": false,
10135
10041
  "hiddenAliases": [],
10136
- "id": "team:create",
10042
+ "id": "templates:render",
10137
10043
  "pluginAlias": "@instantkom/cli",
10138
10044
  "pluginName": "@instantkom/cli",
10139
10045
  "pluginType": "core",
@@ -10143,20 +10049,20 @@
10143
10049
  "relativePath": [
10144
10050
  "dist",
10145
10051
  "commands",
10146
- "team",
10147
- "create.js"
10052
+ "templates",
10053
+ "render.js"
10148
10054
  ]
10149
10055
  },
10150
- "team:delete": {
10056
+ "templates:update": {
10151
10057
  "aliases": [],
10152
10058
  "args": {
10153
10059
  "id": {
10154
- "description": "Team member ID",
10060
+ "description": "Template ID",
10155
10061
  "name": "id",
10156
10062
  "required": true
10157
10063
  }
10158
10064
  },
10159
- "description": "Delete a team member",
10065
+ "description": "Update a message template",
10160
10066
  "flags": {
10161
10067
  "api-key": {
10162
10068
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -10219,11 +10125,89 @@
10219
10125
  "hasDynamicHelp": false,
10220
10126
  "multiple": false,
10221
10127
  "type": "option"
10128
+ },
10129
+ "name": {
10130
+ "description": "Template name",
10131
+ "name": "name",
10132
+ "hasDynamicHelp": false,
10133
+ "multiple": false,
10134
+ "type": "option"
10135
+ },
10136
+ "type": {
10137
+ "description": "Template type",
10138
+ "name": "type",
10139
+ "hasDynamicHelp": false,
10140
+ "multiple": false,
10141
+ "options": [
10142
+ "text",
10143
+ "image",
10144
+ "video",
10145
+ "document",
10146
+ "audio",
10147
+ "location",
10148
+ "contact",
10149
+ "interactive"
10150
+ ],
10151
+ "type": "option"
10152
+ },
10153
+ "message": {
10154
+ "description": "Template message",
10155
+ "name": "message",
10156
+ "hasDynamicHelp": false,
10157
+ "multiple": false,
10158
+ "type": "option"
10159
+ },
10160
+ "color": {
10161
+ "description": "Template color as HEX",
10162
+ "name": "color",
10163
+ "hasDynamicHelp": false,
10164
+ "multiple": false,
10165
+ "type": "option"
10166
+ },
10167
+ "status": {
10168
+ "description": "Template is active",
10169
+ "name": "status",
10170
+ "allowNo": true,
10171
+ "type": "boolean"
10172
+ },
10173
+ "remove-media": {
10174
+ "description": "Remove existing media",
10175
+ "name": "remove-media",
10176
+ "allowNo": false,
10177
+ "type": "boolean"
10178
+ },
10179
+ "whatsapp-language": {
10180
+ "description": "WhatsApp template language",
10181
+ "name": "whatsapp-language",
10182
+ "hasDynamicHelp": false,
10183
+ "multiple": false,
10184
+ "type": "option"
10185
+ },
10186
+ "buttons": {
10187
+ "description": "Buttons JSON array/object",
10188
+ "name": "buttons",
10189
+ "hasDynamicHelp": false,
10190
+ "multiple": false,
10191
+ "type": "option"
10192
+ },
10193
+ "header-footer": {
10194
+ "description": "Header/footer JSON object",
10195
+ "name": "header-footer",
10196
+ "hasDynamicHelp": false,
10197
+ "multiple": false,
10198
+ "type": "option"
10199
+ },
10200
+ "data": {
10201
+ "description": "Additional JSON object payload",
10202
+ "name": "data",
10203
+ "hasDynamicHelp": false,
10204
+ "multiple": false,
10205
+ "type": "option"
10222
10206
  }
10223
10207
  },
10224
10208
  "hasDynamicHelp": false,
10225
10209
  "hiddenAliases": [],
10226
- "id": "team:delete",
10210
+ "id": "templates:update",
10227
10211
  "pluginAlias": "@instantkom/cli",
10228
10212
  "pluginName": "@instantkom/cli",
10229
10213
  "pluginType": "core",
@@ -10233,14 +10217,14 @@
10233
10217
  "relativePath": [
10234
10218
  "dist",
10235
10219
  "commands",
10236
- "team",
10237
- "delete.js"
10220
+ "templates",
10221
+ "update.js"
10238
10222
  ]
10239
10223
  },
10240
- "team:list": {
10224
+ "templates:validate-import": {
10241
10225
  "aliases": [],
10242
10226
  "args": {},
10243
- "description": "List team members",
10227
+ "description": "Validate templates import JSON",
10244
10228
  "flags": {
10245
10229
  "api-key": {
10246
10230
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -10303,11 +10287,27 @@
10303
10287
  "hasDynamicHelp": false,
10304
10288
  "multiple": false,
10305
10289
  "type": "option"
10290
+ },
10291
+ "file": {
10292
+ "description": "JSON file path",
10293
+ "name": "file",
10294
+ "required": true,
10295
+ "hasDynamicHelp": false,
10296
+ "multiple": false,
10297
+ "type": "option"
10298
+ },
10299
+ "channel": {
10300
+ "description": "Target channel ID",
10301
+ "name": "channel",
10302
+ "required": true,
10303
+ "hasDynamicHelp": false,
10304
+ "multiple": false,
10305
+ "type": "option"
10306
10306
  }
10307
10307
  },
10308
10308
  "hasDynamicHelp": false,
10309
10309
  "hiddenAliases": [],
10310
- "id": "team:list",
10310
+ "id": "templates:validate-import",
10311
10311
  "pluginAlias": "@instantkom/cli",
10312
10312
  "pluginName": "@instantkom/cli",
10313
10313
  "pluginType": "core",
@@ -10317,8 +10317,8 @@
10317
10317
  "relativePath": [
10318
10318
  "dist",
10319
10319
  "commands",
10320
- "team",
10321
- "list.js"
10320
+ "templates",
10321
+ "validate-import.js"
10322
10322
  ]
10323
10323
  },
10324
10324
  "tickets:create": {
@@ -11856,16 +11856,16 @@
11856
11856
  "revoke.js"
11857
11857
  ]
11858
11858
  },
11859
- "bots:filters:create": {
11859
+ "bots:env-vars:bots": {
11860
11860
  "aliases": [],
11861
11861
  "args": {
11862
- "botId": {
11863
- "description": "Bot ID",
11864
- "name": "botId",
11862
+ "id": {
11863
+ "description": "Environment variable ID",
11864
+ "name": "id",
11865
11865
  "required": true
11866
11866
  }
11867
11867
  },
11868
- "description": "Create a bot filter",
11868
+ "description": "List bots using a bot environment variable",
11869
11869
  "flags": {
11870
11870
  "api-key": {
11871
11871
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -11928,64 +11928,112 @@
11928
11928
  "hasDynamicHelp": false,
11929
11929
  "multiple": false,
11930
11930
  "type": "option"
11931
- },
11932
- "name": {
11933
- "description": "Filter name",
11934
- "name": "name",
11935
- "required": true,
11931
+ }
11932
+ },
11933
+ "hasDynamicHelp": false,
11934
+ "hiddenAliases": [],
11935
+ "id": "bots:env-vars:bots",
11936
+ "pluginAlias": "@instantkom/cli",
11937
+ "pluginName": "@instantkom/cli",
11938
+ "pluginType": "core",
11939
+ "strict": true,
11940
+ "enableJsonFlag": false,
11941
+ "isESM": true,
11942
+ "relativePath": [
11943
+ "dist",
11944
+ "commands",
11945
+ "bots",
11946
+ "env-vars",
11947
+ "bots.js"
11948
+ ]
11949
+ },
11950
+ "bots:env-vars:create": {
11951
+ "aliases": [],
11952
+ "args": {},
11953
+ "description": "Create a bot environment variable",
11954
+ "flags": {
11955
+ "api-key": {
11956
+ "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
11957
+ "env": "IKM_API_KEY",
11958
+ "helpGroup": "GLOBAL",
11959
+ "name": "api-key",
11936
11960
  "hasDynamicHelp": false,
11937
11961
  "multiple": false,
11938
11962
  "type": "option"
11939
11963
  },
11940
- "operator": {
11941
- "description": "Logical operator",
11942
- "name": "operator",
11943
- "default": "and",
11964
+ "format": {
11965
+ "description": "Output format: text, json, yaml, or table",
11966
+ "helpGroup": "GLOBAL",
11967
+ "name": "format",
11968
+ "default": "text",
11944
11969
  "hasDynamicHelp": false,
11945
11970
  "multiple": false,
11971
+ "options": [
11972
+ "text",
11973
+ "json",
11974
+ "yaml",
11975
+ "table"
11976
+ ],
11946
11977
  "type": "option"
11947
11978
  },
11948
- "filter-object": {
11949
- "description": "Filter object type",
11950
- "name": "filter-object",
11951
- "default": "msg",
11979
+ "json": {
11980
+ "description": "Output in JSON format (alias for --format=json)",
11981
+ "helpGroup": "GLOBAL",
11982
+ "name": "json",
11983
+ "allowNo": false,
11984
+ "type": "boolean"
11985
+ },
11986
+ "quiet": {
11987
+ "description": "Suppress all output except errors",
11988
+ "helpGroup": "GLOBAL",
11989
+ "name": "quiet",
11990
+ "allowNo": false,
11991
+ "type": "boolean"
11992
+ },
11993
+ "no-color": {
11994
+ "description": "Disable color output",
11995
+ "helpGroup": "GLOBAL",
11996
+ "name": "no-color",
11997
+ "allowNo": false,
11998
+ "type": "boolean"
11999
+ },
12000
+ "profile": {
12001
+ "description": "Named configuration profile to use",
12002
+ "helpGroup": "GLOBAL",
12003
+ "name": "profile",
12004
+ "default": "default",
11952
12005
  "hasDynamicHelp": false,
11953
12006
  "multiple": false,
11954
12007
  "type": "option"
11955
12008
  },
11956
- "filter-attribute": {
11957
- "description": "Filter attribute",
11958
- "name": "filter-attribute",
11959
- "default": "text",
12009
+ "api-url": {
12010
+ "description": "Override the API base URL (e.g. for staging)",
12011
+ "helpGroup": "GLOBAL",
12012
+ "name": "api-url",
11960
12013
  "hasDynamicHelp": false,
11961
12014
  "multiple": false,
11962
12015
  "type": "option"
11963
- },
11964
- "filter-comparator": {
11965
- "description": "Filter comparator",
11966
- "name": "filter-comparator",
11967
- "default": "contains",
12016
+ },
12017
+ "key": {
12018
+ "description": "Variable key (max 16 chars, letters, digits, underscore)",
12019
+ "name": "key",
12020
+ "required": true,
11968
12021
  "hasDynamicHelp": false,
11969
12022
  "multiple": false,
11970
12023
  "type": "option"
11971
12024
  },
11972
- "filter-value": {
11973
- "description": "Filter value",
11974
- "name": "filter-value",
11975
- "required": true,
12025
+ "description": {
12026
+ "description": "Variable description",
12027
+ "name": "description",
11976
12028
  "hasDynamicHelp": false,
11977
12029
  "multiple": false,
11978
12030
  "type": "option"
11979
12031
  },
11980
- "status": {
11981
- "description": "Status: 0 inactive, 1 active",
11982
- "name": "status",
12032
+ "color": {
12033
+ "description": "Variable color as HEX",
12034
+ "name": "color",
11983
12035
  "hasDynamicHelp": false,
11984
12036
  "multiple": false,
11985
- "options": [
11986
- "0",
11987
- "1"
11988
- ],
11989
12037
  "type": "option"
11990
12038
  },
11991
12039
  "data": {
@@ -11998,7 +12046,7 @@
11998
12046
  },
11999
12047
  "hasDynamicHelp": false,
12000
12048
  "hiddenAliases": [],
12001
- "id": "bots:filters:create",
12049
+ "id": "bots:env-vars:create",
12002
12050
  "pluginAlias": "@instantkom/cli",
12003
12051
  "pluginName": "@instantkom/cli",
12004
12052
  "pluginType": "core",
@@ -12009,25 +12057,20 @@
12009
12057
  "dist",
12010
12058
  "commands",
12011
12059
  "bots",
12012
- "filters",
12060
+ "env-vars",
12013
12061
  "create.js"
12014
12062
  ]
12015
12063
  },
12016
- "bots:filters:delete": {
12064
+ "bots:env-vars:delete": {
12017
12065
  "aliases": [],
12018
12066
  "args": {
12019
- "botId": {
12020
- "description": "Bot ID",
12021
- "name": "botId",
12022
- "required": true
12023
- },
12024
- "filterId": {
12025
- "description": "Filter ID",
12026
- "name": "filterId",
12067
+ "id": {
12068
+ "description": "Environment variable ID",
12069
+ "name": "id",
12027
12070
  "required": true
12028
12071
  }
12029
12072
  },
12030
- "description": "Delete a bot filter",
12073
+ "description": "Delete a bot environment variable",
12031
12074
  "flags": {
12032
12075
  "api-key": {
12033
12076
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -12094,7 +12137,7 @@
12094
12137
  },
12095
12138
  "hasDynamicHelp": false,
12096
12139
  "hiddenAliases": [],
12097
- "id": "bots:filters:delete",
12140
+ "id": "bots:env-vars:delete",
12098
12141
  "pluginAlias": "@instantkom/cli",
12099
12142
  "pluginName": "@instantkom/cli",
12100
12143
  "pluginType": "core",
@@ -12105,25 +12148,20 @@
12105
12148
  "dist",
12106
12149
  "commands",
12107
12150
  "bots",
12108
- "filters",
12151
+ "env-vars",
12109
12152
  "delete.js"
12110
12153
  ]
12111
12154
  },
12112
- "bots:filters:get": {
12155
+ "bots:env-vars:get": {
12113
12156
  "aliases": [],
12114
12157
  "args": {
12115
- "botId": {
12116
- "description": "Bot ID",
12117
- "name": "botId",
12118
- "required": true
12119
- },
12120
- "filterId": {
12121
- "description": "Filter ID",
12122
- "name": "filterId",
12158
+ "id": {
12159
+ "description": "Environment variable ID",
12160
+ "name": "id",
12123
12161
  "required": true
12124
12162
  }
12125
12163
  },
12126
- "description": "Get a bot filter",
12164
+ "description": "Get a bot environment variable",
12127
12165
  "flags": {
12128
12166
  "api-key": {
12129
12167
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -12190,7 +12228,7 @@
12190
12228
  },
12191
12229
  "hasDynamicHelp": false,
12192
12230
  "hiddenAliases": [],
12193
- "id": "bots:filters:get",
12231
+ "id": "bots:env-vars:get",
12194
12232
  "pluginAlias": "@instantkom/cli",
12195
12233
  "pluginName": "@instantkom/cli",
12196
12234
  "pluginType": "core",
@@ -12201,20 +12239,14 @@
12201
12239
  "dist",
12202
12240
  "commands",
12203
12241
  "bots",
12204
- "filters",
12242
+ "env-vars",
12205
12243
  "get.js"
12206
12244
  ]
12207
12245
  },
12208
- "bots:filters:list": {
12246
+ "bots:env-vars:list": {
12209
12247
  "aliases": [],
12210
- "args": {
12211
- "botId": {
12212
- "description": "Bot ID",
12213
- "name": "botId",
12214
- "required": true
12215
- }
12216
- },
12217
- "description": "List bot filters",
12248
+ "args": {},
12249
+ "description": "List bot environment variables",
12218
12250
  "flags": {
12219
12251
  "api-key": {
12220
12252
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -12294,20 +12326,16 @@
12294
12326
  "multiple": false,
12295
12327
  "type": "option"
12296
12328
  },
12297
- "status": {
12298
- "description": "Status filter: 0 inactive, 1 active",
12299
- "name": "status",
12329
+ "search": {
12330
+ "description": "Search in key or description",
12331
+ "name": "search",
12300
12332
  "hasDynamicHelp": false,
12301
12333
  "multiple": false,
12302
- "options": [
12303
- "0",
12304
- "1"
12305
- ],
12306
12334
  "type": "option"
12307
12335
  },
12308
- "search": {
12309
- "description": "Search in name or description",
12310
- "name": "search",
12336
+ "color": {
12337
+ "description": "Filter by color",
12338
+ "name": "color",
12311
12339
  "hasDynamicHelp": false,
12312
12340
  "multiple": false,
12313
12341
  "type": "option"
@@ -12315,7 +12343,7 @@
12315
12343
  },
12316
12344
  "hasDynamicHelp": false,
12317
12345
  "hiddenAliases": [],
12318
- "id": "bots:filters:list",
12346
+ "id": "bots:env-vars:list",
12319
12347
  "pluginAlias": "@instantkom/cli",
12320
12348
  "pluginName": "@instantkom/cli",
12321
12349
  "pluginType": "core",
@@ -12326,25 +12354,20 @@
12326
12354
  "dist",
12327
12355
  "commands",
12328
12356
  "bots",
12329
- "filters",
12357
+ "env-vars",
12330
12358
  "list.js"
12331
12359
  ]
12332
12360
  },
12333
- "bots:filters:update": {
12361
+ "bots:env-vars:update": {
12334
12362
  "aliases": [],
12335
12363
  "args": {
12336
- "botId": {
12337
- "description": "Bot ID",
12338
- "name": "botId",
12339
- "required": true
12340
- },
12341
- "filterId": {
12342
- "description": "Filter ID",
12343
- "name": "filterId",
12364
+ "id": {
12365
+ "description": "Environment variable ID",
12366
+ "name": "id",
12344
12367
  "required": true
12345
12368
  }
12346
12369
  },
12347
- "description": "Update a bot filter",
12370
+ "description": "Update a bot environment variable",
12348
12371
  "flags": {
12349
12372
  "api-key": {
12350
12373
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -12408,57 +12431,18 @@
12408
12431
  "multiple": false,
12409
12432
  "type": "option"
12410
12433
  },
12411
- "name": {
12412
- "description": "Filter name",
12413
- "name": "name",
12414
- "hasDynamicHelp": false,
12415
- "multiple": false,
12416
- "type": "option"
12417
- },
12418
- "operator": {
12419
- "description": "Logical operator",
12420
- "name": "operator",
12421
- "hasDynamicHelp": false,
12422
- "multiple": false,
12423
- "type": "option"
12424
- },
12425
- "filter-object": {
12426
- "description": "Filter object type",
12427
- "name": "filter-object",
12428
- "hasDynamicHelp": false,
12429
- "multiple": false,
12430
- "type": "option"
12431
- },
12432
- "filter-attribute": {
12433
- "description": "Filter attribute",
12434
- "name": "filter-attribute",
12435
- "hasDynamicHelp": false,
12436
- "multiple": false,
12437
- "type": "option"
12438
- },
12439
- "filter-comparator": {
12440
- "description": "Filter comparator",
12441
- "name": "filter-comparator",
12442
- "hasDynamicHelp": false,
12443
- "multiple": false,
12444
- "type": "option"
12445
- },
12446
- "filter-value": {
12447
- "description": "Filter value",
12448
- "name": "filter-value",
12434
+ "description": {
12435
+ "description": "Variable description",
12436
+ "name": "description",
12449
12437
  "hasDynamicHelp": false,
12450
12438
  "multiple": false,
12451
12439
  "type": "option"
12452
12440
  },
12453
- "status": {
12454
- "description": "Status: 0 inactive, 1 active",
12455
- "name": "status",
12441
+ "color": {
12442
+ "description": "Variable color as HEX",
12443
+ "name": "color",
12456
12444
  "hasDynamicHelp": false,
12457
12445
  "multiple": false,
12458
- "options": [
12459
- "0",
12460
- "1"
12461
- ],
12462
12446
  "type": "option"
12463
12447
  },
12464
12448
  "data": {
@@ -12471,7 +12455,7 @@
12471
12455
  },
12472
12456
  "hasDynamicHelp": false,
12473
12457
  "hiddenAliases": [],
12474
- "id": "bots:filters:update",
12458
+ "id": "bots:env-vars:update",
12475
12459
  "pluginAlias": "@instantkom/cli",
12476
12460
  "pluginName": "@instantkom/cli",
12477
12461
  "pluginType": "core",
@@ -12482,11 +12466,11 @@
12482
12466
  "dist",
12483
12467
  "commands",
12484
12468
  "bots",
12485
- "filters",
12469
+ "env-vars",
12486
12470
  "update.js"
12487
12471
  ]
12488
12472
  },
12489
- "bots:env-vars:bots": {
12473
+ "bots:env-vars:values": {
12490
12474
  "aliases": [],
12491
12475
  "args": {
12492
12476
  "id": {
@@ -12495,7 +12479,7 @@
12495
12479
  "required": true
12496
12480
  }
12497
12481
  },
12498
- "description": "List bots using a bot environment variable",
12482
+ "description": "List recipient values for a bot environment variable",
12499
12483
  "flags": {
12500
12484
  "api-key": {
12501
12485
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -12558,11 +12542,41 @@
12558
12542
  "hasDynamicHelp": false,
12559
12543
  "multiple": false,
12560
12544
  "type": "option"
12545
+ },
12546
+ "page": {
12547
+ "description": "Page number",
12548
+ "name": "page",
12549
+ "default": 1,
12550
+ "hasDynamicHelp": false,
12551
+ "multiple": false,
12552
+ "type": "option"
12553
+ },
12554
+ "limit": {
12555
+ "description": "Items per page",
12556
+ "name": "limit",
12557
+ "default": 20,
12558
+ "hasDynamicHelp": false,
12559
+ "multiple": false,
12560
+ "type": "option"
12561
+ },
12562
+ "search": {
12563
+ "description": "Search in recipient name or identifier",
12564
+ "name": "search",
12565
+ "hasDynamicHelp": false,
12566
+ "multiple": false,
12567
+ "type": "option"
12568
+ },
12569
+ "recipient": {
12570
+ "description": "Filter by recipient ID",
12571
+ "name": "recipient",
12572
+ "hasDynamicHelp": false,
12573
+ "multiple": false,
12574
+ "type": "option"
12561
12575
  }
12562
12576
  },
12563
12577
  "hasDynamicHelp": false,
12564
12578
  "hiddenAliases": [],
12565
- "id": "bots:env-vars:bots",
12579
+ "id": "bots:env-vars:values",
12566
12580
  "pluginAlias": "@instantkom/cli",
12567
12581
  "pluginName": "@instantkom/cli",
12568
12582
  "pluginType": "core",
@@ -12574,13 +12588,19 @@
12574
12588
  "commands",
12575
12589
  "bots",
12576
12590
  "env-vars",
12577
- "bots.js"
12591
+ "values.js"
12578
12592
  ]
12579
12593
  },
12580
- "bots:env-vars:create": {
12594
+ "bots:filters:create": {
12581
12595
  "aliases": [],
12582
- "args": {},
12583
- "description": "Create a bot environment variable",
12596
+ "args": {
12597
+ "botId": {
12598
+ "description": "Bot ID",
12599
+ "name": "botId",
12600
+ "required": true
12601
+ }
12602
+ },
12603
+ "description": "Create a bot filter",
12584
12604
  "flags": {
12585
12605
  "api-key": {
12586
12606
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -12644,26 +12664,63 @@
12644
12664
  "multiple": false,
12645
12665
  "type": "option"
12646
12666
  },
12647
- "key": {
12648
- "description": "Variable key (max 16 chars, letters, digits, underscore)",
12649
- "name": "key",
12667
+ "name": {
12668
+ "description": "Filter name",
12669
+ "name": "name",
12670
+ "required": true,
12671
+ "hasDynamicHelp": false,
12672
+ "multiple": false,
12673
+ "type": "option"
12674
+ },
12675
+ "operator": {
12676
+ "description": "Logical operator",
12677
+ "name": "operator",
12678
+ "default": "and",
12679
+ "hasDynamicHelp": false,
12680
+ "multiple": false,
12681
+ "type": "option"
12682
+ },
12683
+ "filter-object": {
12684
+ "description": "Filter object type",
12685
+ "name": "filter-object",
12686
+ "default": "msg",
12687
+ "hasDynamicHelp": false,
12688
+ "multiple": false,
12689
+ "type": "option"
12690
+ },
12691
+ "filter-attribute": {
12692
+ "description": "Filter attribute",
12693
+ "name": "filter-attribute",
12694
+ "default": "text",
12695
+ "hasDynamicHelp": false,
12696
+ "multiple": false,
12697
+ "type": "option"
12698
+ },
12699
+ "filter-comparator": {
12700
+ "description": "Filter comparator",
12701
+ "name": "filter-comparator",
12702
+ "default": "contains",
12703
+ "hasDynamicHelp": false,
12704
+ "multiple": false,
12705
+ "type": "option"
12706
+ },
12707
+ "filter-value": {
12708
+ "description": "Filter value",
12709
+ "name": "filter-value",
12650
12710
  "required": true,
12651
12711
  "hasDynamicHelp": false,
12652
12712
  "multiple": false,
12653
12713
  "type": "option"
12654
12714
  },
12655
- "description": {
12656
- "description": "Variable description",
12657
- "name": "description",
12658
- "hasDynamicHelp": false,
12659
- "multiple": false,
12660
- "type": "option"
12661
- },
12662
- "color": {
12663
- "description": "Variable color as HEX",
12664
- "name": "color",
12715
+ "status": {
12716
+ "description": "Status: 0 inactive, 1 active",
12717
+ "name": "status",
12665
12718
  "hasDynamicHelp": false,
12666
12719
  "multiple": false,
12720
+ "options": [
12721
+ "0",
12722
+ "1"
12723
+ ],
12667
12724
  "type": "option"
12668
12725
  },
12669
12726
  "data": {
@@ -12676,7 +12733,7 @@
12676
12733
  },
12677
12734
  "hasDynamicHelp": false,
12678
12735
  "hiddenAliases": [],
12679
- "id": "bots:env-vars:create",
12736
+ "id": "bots:filters:create",
12680
12737
  "pluginAlias": "@instantkom/cli",
12681
12738
  "pluginName": "@instantkom/cli",
12682
12739
  "pluginType": "core",
@@ -12687,20 +12744,25 @@
12687
12744
  "dist",
12688
12745
  "commands",
12689
12746
  "bots",
12690
- "env-vars",
12747
+ "filters",
12691
12748
  "create.js"
12692
12749
  ]
12693
12750
  },
12694
- "bots:env-vars:delete": {
12751
+ "bots:filters:delete": {
12695
12752
  "aliases": [],
12696
12753
  "args": {
12697
- "id": {
12698
- "description": "Environment variable ID",
12699
- "name": "id",
12754
+ "botId": {
12755
+ "description": "Bot ID",
12756
+ "name": "botId",
12757
+ "required": true
12758
+ },
12759
+ "filterId": {
12760
+ "description": "Filter ID",
12761
+ "name": "filterId",
12700
12762
  "required": true
12701
12763
  }
12702
12764
  },
12703
- "description": "Delete a bot environment variable",
12765
+ "description": "Delete a bot filter",
12704
12766
  "flags": {
12705
12767
  "api-key": {
12706
12768
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -12767,7 +12829,7 @@
12767
12829
  },
12768
12830
  "hasDynamicHelp": false,
12769
12831
  "hiddenAliases": [],
12770
- "id": "bots:env-vars:delete",
12832
+ "id": "bots:filters:delete",
12771
12833
  "pluginAlias": "@instantkom/cli",
12772
12834
  "pluginName": "@instantkom/cli",
12773
12835
  "pluginType": "core",
@@ -12778,20 +12840,25 @@
12778
12840
  "dist",
12779
12841
  "commands",
12780
12842
  "bots",
12781
- "env-vars",
12843
+ "filters",
12782
12844
  "delete.js"
12783
12845
  ]
12784
12846
  },
12785
- "bots:env-vars:get": {
12847
+ "bots:filters:get": {
12786
12848
  "aliases": [],
12787
12849
  "args": {
12788
- "id": {
12789
- "description": "Environment variable ID",
12790
- "name": "id",
12850
+ "botId": {
12851
+ "description": "Bot ID",
12852
+ "name": "botId",
12853
+ "required": true
12854
+ },
12855
+ "filterId": {
12856
+ "description": "Filter ID",
12857
+ "name": "filterId",
12791
12858
  "required": true
12792
12859
  }
12793
12860
  },
12794
- "description": "Get a bot environment variable",
12861
+ "description": "Get a bot filter",
12795
12862
  "flags": {
12796
12863
  "api-key": {
12797
12864
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -12858,7 +12925,7 @@
12858
12925
  },
12859
12926
  "hasDynamicHelp": false,
12860
12927
  "hiddenAliases": [],
12861
- "id": "bots:env-vars:get",
12928
+ "id": "bots:filters:get",
12862
12929
  "pluginAlias": "@instantkom/cli",
12863
12930
  "pluginName": "@instantkom/cli",
12864
12931
  "pluginType": "core",
@@ -12869,14 +12936,20 @@
12869
12936
  "dist",
12870
12937
  "commands",
12871
12938
  "bots",
12872
- "env-vars",
12939
+ "filters",
12873
12940
  "get.js"
12874
12941
  ]
12875
12942
  },
12876
- "bots:env-vars:list": {
12943
+ "bots:filters:list": {
12877
12944
  "aliases": [],
12878
- "args": {},
12879
- "description": "List bot environment variables",
12945
+ "args": {
12946
+ "botId": {
12947
+ "description": "Bot ID",
12948
+ "name": "botId",
12949
+ "required": true
12950
+ }
12951
+ },
12952
+ "description": "List bot filters",
12880
12953
  "flags": {
12881
12954
  "api-key": {
12882
12955
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -12956,16 +13029,20 @@
12956
13029
  "multiple": false,
12957
13030
  "type": "option"
12958
13031
  },
12959
- "search": {
12960
- "description": "Search in key or description",
12961
- "name": "search",
13032
+ "status": {
13033
+ "description": "Status filter: 0 inactive, 1 active",
13034
+ "name": "status",
12962
13035
  "hasDynamicHelp": false,
12963
13036
  "multiple": false,
13037
+ "options": [
13038
+ "0",
13039
+ "1"
13040
+ ],
12964
13041
  "type": "option"
12965
13042
  },
12966
- "color": {
12967
- "description": "Filter by color",
12968
- "name": "color",
13043
+ "search": {
13044
+ "description": "Search in name or description",
13045
+ "name": "search",
12969
13046
  "hasDynamicHelp": false,
12970
13047
  "multiple": false,
12971
13048
  "type": "option"
@@ -12973,7 +13050,7 @@
12973
13050
  },
12974
13051
  "hasDynamicHelp": false,
12975
13052
  "hiddenAliases": [],
12976
- "id": "bots:env-vars:list",
13053
+ "id": "bots:filters:list",
12977
13054
  "pluginAlias": "@instantkom/cli",
12978
13055
  "pluginName": "@instantkom/cli",
12979
13056
  "pluginType": "core",
@@ -12984,20 +13061,25 @@
12984
13061
  "dist",
12985
13062
  "commands",
12986
13063
  "bots",
12987
- "env-vars",
13064
+ "filters",
12988
13065
  "list.js"
12989
13066
  ]
12990
13067
  },
12991
- "bots:env-vars:update": {
13068
+ "bots:filters:update": {
12992
13069
  "aliases": [],
12993
13070
  "args": {
12994
- "id": {
12995
- "description": "Environment variable ID",
12996
- "name": "id",
13071
+ "botId": {
13072
+ "description": "Bot ID",
13073
+ "name": "botId",
13074
+ "required": true
13075
+ },
13076
+ "filterId": {
13077
+ "description": "Filter ID",
13078
+ "name": "filterId",
12997
13079
  "required": true
12998
13080
  }
12999
13081
  },
13000
- "description": "Update a bot environment variable",
13082
+ "description": "Update a bot filter",
13001
13083
  "flags": {
13002
13084
  "api-key": {
13003
13085
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -13061,144 +13143,62 @@
13061
13143
  "multiple": false,
13062
13144
  "type": "option"
13063
13145
  },
13064
- "description": {
13065
- "description": "Variable description",
13066
- "name": "description",
13067
- "hasDynamicHelp": false,
13068
- "multiple": false,
13069
- "type": "option"
13070
- },
13071
- "color": {
13072
- "description": "Variable color as HEX",
13073
- "name": "color",
13074
- "hasDynamicHelp": false,
13075
- "multiple": false,
13076
- "type": "option"
13077
- },
13078
- "data": {
13079
- "description": "Additional JSON object payload",
13080
- "name": "data",
13081
- "hasDynamicHelp": false,
13082
- "multiple": false,
13083
- "type": "option"
13084
- }
13085
- },
13086
- "hasDynamicHelp": false,
13087
- "hiddenAliases": [],
13088
- "id": "bots:env-vars:update",
13089
- "pluginAlias": "@instantkom/cli",
13090
- "pluginName": "@instantkom/cli",
13091
- "pluginType": "core",
13092
- "strict": true,
13093
- "enableJsonFlag": false,
13094
- "isESM": true,
13095
- "relativePath": [
13096
- "dist",
13097
- "commands",
13098
- "bots",
13099
- "env-vars",
13100
- "update.js"
13101
- ]
13102
- },
13103
- "bots:env-vars:values": {
13104
- "aliases": [],
13105
- "args": {
13106
- "id": {
13107
- "description": "Environment variable ID",
13108
- "name": "id",
13109
- "required": true
13110
- }
13111
- },
13112
- "description": "List recipient values for a bot environment variable",
13113
- "flags": {
13114
- "api-key": {
13115
- "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
13116
- "env": "IKM_API_KEY",
13117
- "helpGroup": "GLOBAL",
13118
- "name": "api-key",
13146
+ "name": {
13147
+ "description": "Filter name",
13148
+ "name": "name",
13119
13149
  "hasDynamicHelp": false,
13120
13150
  "multiple": false,
13121
13151
  "type": "option"
13122
13152
  },
13123
- "format": {
13124
- "description": "Output format: text, json, yaml, or table",
13125
- "helpGroup": "GLOBAL",
13126
- "name": "format",
13127
- "default": "text",
13153
+ "operator": {
13154
+ "description": "Logical operator",
13155
+ "name": "operator",
13128
13156
  "hasDynamicHelp": false,
13129
13157
  "multiple": false,
13130
- "options": [
13131
- "text",
13132
- "json",
13133
- "yaml",
13134
- "table"
13135
- ],
13136
13158
  "type": "option"
13137
13159
  },
13138
- "json": {
13139
- "description": "Output in JSON format (alias for --format=json)",
13140
- "helpGroup": "GLOBAL",
13141
- "name": "json",
13142
- "allowNo": false,
13143
- "type": "boolean"
13144
- },
13145
- "quiet": {
13146
- "description": "Suppress all output except errors",
13147
- "helpGroup": "GLOBAL",
13148
- "name": "quiet",
13149
- "allowNo": false,
13150
- "type": "boolean"
13151
- },
13152
- "no-color": {
13153
- "description": "Disable color output",
13154
- "helpGroup": "GLOBAL",
13155
- "name": "no-color",
13156
- "allowNo": false,
13157
- "type": "boolean"
13158
- },
13159
- "profile": {
13160
- "description": "Named configuration profile to use",
13161
- "helpGroup": "GLOBAL",
13162
- "name": "profile",
13163
- "default": "default",
13160
+ "filter-object": {
13161
+ "description": "Filter object type",
13162
+ "name": "filter-object",
13164
13163
  "hasDynamicHelp": false,
13165
13164
  "multiple": false,
13166
13165
  "type": "option"
13167
13166
  },
13168
- "api-url": {
13169
- "description": "Override the API base URL (e.g. for staging)",
13170
- "helpGroup": "GLOBAL",
13171
- "name": "api-url",
13167
+ "filter-attribute": {
13168
+ "description": "Filter attribute",
13169
+ "name": "filter-attribute",
13172
13170
  "hasDynamicHelp": false,
13173
13171
  "multiple": false,
13174
13172
  "type": "option"
13175
13173
  },
13176
- "page": {
13177
- "description": "Page number",
13178
- "name": "page",
13179
- "default": 1,
13174
+ "filter-comparator": {
13175
+ "description": "Filter comparator",
13176
+ "name": "filter-comparator",
13180
13177
  "hasDynamicHelp": false,
13181
13178
  "multiple": false,
13182
13179
  "type": "option"
13183
13180
  },
13184
- "limit": {
13185
- "description": "Items per page",
13186
- "name": "limit",
13187
- "default": 20,
13181
+ "filter-value": {
13182
+ "description": "Filter value",
13183
+ "name": "filter-value",
13188
13184
  "hasDynamicHelp": false,
13189
13185
  "multiple": false,
13190
13186
  "type": "option"
13191
13187
  },
13192
- "search": {
13193
- "description": "Search in recipient name or identifier",
13194
- "name": "search",
13188
+ "status": {
13189
+ "description": "Status: 0 inactive, 1 active",
13190
+ "name": "status",
13195
13191
  "hasDynamicHelp": false,
13196
13192
  "multiple": false,
13193
+ "options": [
13194
+ "0",
13195
+ "1"
13196
+ ],
13197
13197
  "type": "option"
13198
13198
  },
13199
- "recipient": {
13200
- "description": "Filter by recipient ID",
13201
- "name": "recipient",
13199
+ "data": {
13200
+ "description": "Additional JSON object payload",
13201
+ "name": "data",
13202
13202
  "hasDynamicHelp": false,
13203
13203
  "multiple": false,
13204
13204
  "type": "option"
@@ -13206,7 +13206,7 @@
13206
13206
  },
13207
13207
  "hasDynamicHelp": false,
13208
13208
  "hiddenAliases": [],
13209
- "id": "bots:env-vars:values",
13209
+ "id": "bots:filters:update",
13210
13210
  "pluginAlias": "@instantkom/cli",
13211
13211
  "pluginName": "@instantkom/cli",
13212
13212
  "pluginType": "core",
@@ -13217,8 +13217,8 @@
13217
13217
  "dist",
13218
13218
  "commands",
13219
13219
  "bots",
13220
- "env-vars",
13221
- "values.js"
13220
+ "filters",
13221
+ "update.js"
13222
13222
  ]
13223
13223
  },
13224
13224
  "bots:tags:add": {
@@ -16352,5 +16352,5 @@
16352
16352
  ]
16353
16353
  }
16354
16354
  },
16355
- "version": "3.141.0"
16355
+ "version": "3.143.0"
16356
16356
  }