@instantkom/cli 3.140.2 → 3.141.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.
@@ -1135,40 +1135,6 @@
1135
1135
  "logout.js"
1136
1136
  ]
1137
1137
  },
1138
- "autocomplete:script": {
1139
- "aliases": [],
1140
- "args": {
1141
- "shell": {
1142
- "description": "Shell type",
1143
- "name": "shell",
1144
- "options": [
1145
- "zsh",
1146
- "bash",
1147
- "fish",
1148
- "powershell"
1149
- ],
1150
- "required": false
1151
- }
1152
- },
1153
- "description": "outputs autocomplete config script for shells",
1154
- "flags": {},
1155
- "hasDynamicHelp": false,
1156
- "hidden": true,
1157
- "hiddenAliases": [],
1158
- "id": "autocomplete:script",
1159
- "pluginAlias": "@instantkom/cli",
1160
- "pluginName": "@instantkom/cli",
1161
- "pluginType": "core",
1162
- "strict": true,
1163
- "enableJsonFlag": false,
1164
- "isESM": true,
1165
- "relativePath": [
1166
- "dist",
1167
- "commands",
1168
- "autocomplete",
1169
- "script.js"
1170
- ]
1171
- },
1172
1138
  "ai:reply": {
1173
1139
  "aliases": [],
1174
1140
  "args": {},
@@ -1289,6 +1255,40 @@
1289
1255
  "reply.js"
1290
1256
  ]
1291
1257
  },
1258
+ "autocomplete:script": {
1259
+ "aliases": [],
1260
+ "args": {
1261
+ "shell": {
1262
+ "description": "Shell type",
1263
+ "name": "shell",
1264
+ "options": [
1265
+ "zsh",
1266
+ "bash",
1267
+ "fish",
1268
+ "powershell"
1269
+ ],
1270
+ "required": false
1271
+ }
1272
+ },
1273
+ "description": "outputs autocomplete config script for shells",
1274
+ "flags": {},
1275
+ "hasDynamicHelp": false,
1276
+ "hidden": true,
1277
+ "hiddenAliases": [],
1278
+ "id": "autocomplete:script",
1279
+ "pluginAlias": "@instantkom/cli",
1280
+ "pluginName": "@instantkom/cli",
1281
+ "pluginType": "core",
1282
+ "strict": true,
1283
+ "enableJsonFlag": false,
1284
+ "isESM": true,
1285
+ "relativePath": [
1286
+ "dist",
1287
+ "commands",
1288
+ "autocomplete",
1289
+ "script.js"
1290
+ ]
1291
+ },
1292
1292
  "bots:create": {
1293
1293
  "aliases": [],
1294
1294
  "args": {},
@@ -2015,10 +2015,10 @@
2015
2015
  "update.js"
2016
2016
  ]
2017
2017
  },
2018
- "broadcast:create": {
2018
+ "channels:create": {
2019
2019
  "aliases": [],
2020
2020
  "args": {},
2021
- "description": "Create a broadcast for channels or segments",
2021
+ "description": "Create a channel",
2022
2022
  "flags": {
2023
2023
  "api-key": {
2024
2024
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -2082,92 +2082,47 @@
2082
2082
  "multiple": false,
2083
2083
  "type": "option"
2084
2084
  },
2085
- "channel": {
2086
- "description": "Channel ID target",
2087
- "name": "channel",
2088
- "hasDynamicHelp": false,
2089
- "multiple": false,
2090
- "type": "option"
2091
- },
2092
- "segment": {
2093
- "description": "Segment ID within --channel",
2094
- "name": "segment",
2095
- "hasDynamicHelp": false,
2096
- "multiple": false,
2097
- "type": "option"
2098
- },
2099
- "target": {
2100
- "description": "Target as channelId or channelId:segmentId; may be repeated",
2101
- "name": "target",
2102
- "hasDynamicHelp": false,
2103
- "multiple": true,
2104
- "type": "option"
2105
- },
2106
- "text": {
2107
- "description": "Broadcast message text",
2108
- "name": "text",
2085
+ "name": {
2086
+ "description": "Channel name",
2087
+ "name": "name",
2109
2088
  "required": true,
2110
2089
  "hasDynamicHelp": false,
2111
2090
  "multiple": false,
2112
2091
  "type": "option"
2113
2092
  },
2114
- "send-at": {
2115
- "description": "Schedule send for an ISO-8601 date-time",
2116
- "name": "send-at",
2093
+ "gateway-type": {
2094
+ "description": "Gateway type ID",
2095
+ "name": "gateway-type",
2096
+ "required": true,
2117
2097
  "hasDynamicHelp": false,
2118
2098
  "multiple": false,
2119
2099
  "type": "option"
2120
2100
  },
2121
- "dry-run": {
2122
- "description": "Validate and print the broadcast payload without mutating API calls",
2123
- "name": "dry-run",
2124
- "allowNo": false,
2125
- "type": "boolean"
2126
- },
2127
- "idempotency-key": {
2128
- "description": "Idempotency key forwarded as Idempotency-Key",
2129
- "name": "idempotency-key",
2101
+ "status": {
2102
+ "description": "Channel lifecycle status",
2103
+ "name": "status",
2130
2104
  "hasDynamicHelp": false,
2131
2105
  "multiple": false,
2132
2106
  "type": "option"
2133
2107
  },
2134
- "media": {
2135
- "description": "Media file path to upload",
2136
- "name": "media",
2137
- "hasDynamicHelp": false,
2138
- "multiple": true,
2139
- "type": "option"
2140
- },
2141
- "template-id": {
2142
- "description": "WhatsApp template ID",
2143
- "name": "template-id",
2108
+ "description": {
2109
+ "description": "Channel description",
2110
+ "name": "description",
2144
2111
  "hasDynamicHelp": false,
2145
2112
  "multiple": false,
2146
2113
  "type": "option"
2147
2114
  },
2148
- "send-status": {
2149
- "description": "Initial broadcast send status",
2150
- "name": "send-status",
2151
- "default": "draft",
2115
+ "data": {
2116
+ "description": "Additional JSON object payload",
2117
+ "name": "data",
2152
2118
  "hasDynamicHelp": false,
2153
2119
  "multiple": false,
2154
- "options": [
2155
- "draft",
2156
- "scheduled",
2157
- "sending"
2158
- ],
2159
2120
  "type": "option"
2160
- },
2161
- "auto-approve": {
2162
- "description": "Auto-approve broadcast when allowed by API permissions",
2163
- "name": "auto-approve",
2164
- "allowNo": false,
2165
- "type": "boolean"
2166
2121
  }
2167
2122
  },
2168
2123
  "hasDynamicHelp": false,
2169
2124
  "hiddenAliases": [],
2170
- "id": "broadcast:create",
2125
+ "id": "channels:create",
2171
2126
  "pluginAlias": "@instantkom/cli",
2172
2127
  "pluginName": "@instantkom/cli",
2173
2128
  "pluginType": "core",
@@ -2177,20 +2132,20 @@
2177
2132
  "relativePath": [
2178
2133
  "dist",
2179
2134
  "commands",
2180
- "broadcast",
2135
+ "channels",
2181
2136
  "create.js"
2182
2137
  ]
2183
2138
  },
2184
- "broadcast:delete": {
2139
+ "channels:get": {
2185
2140
  "aliases": [],
2186
2141
  "args": {
2187
2142
  "id": {
2188
- "description": "broadcast ID",
2143
+ "description": "Channel ID",
2189
2144
  "name": "id",
2190
2145
  "required": true
2191
2146
  }
2192
2147
  },
2193
- "description": "Delete broadcast",
2148
+ "description": "Get a channel by ID",
2194
2149
  "flags": {
2195
2150
  "api-key": {
2196
2151
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -2257,7 +2212,7 @@
2257
2212
  },
2258
2213
  "hasDynamicHelp": false,
2259
2214
  "hiddenAliases": [],
2260
- "id": "broadcast:delete",
2215
+ "id": "channels:get",
2261
2216
  "pluginAlias": "@instantkom/cli",
2262
2217
  "pluginName": "@instantkom/cli",
2263
2218
  "pluginType": "core",
@@ -2267,20 +2222,20 @@
2267
2222
  "relativePath": [
2268
2223
  "dist",
2269
2224
  "commands",
2270
- "broadcast",
2271
- "delete.js"
2225
+ "channels",
2226
+ "get.js"
2272
2227
  ]
2273
2228
  },
2274
- "broadcast:get": {
2229
+ "channels:kpis": {
2275
2230
  "aliases": [],
2276
2231
  "args": {
2277
2232
  "id": {
2278
- "description": "broadcast ID",
2233
+ "description": "Optional channel ID; omit for aggregated channel KPIs",
2279
2234
  "name": "id",
2280
- "required": true
2235
+ "required": false
2281
2236
  }
2282
2237
  },
2283
- "description": "Get broadcast by ID",
2238
+ "description": "Get channel KPIs",
2284
2239
  "flags": {
2285
2240
  "api-key": {
2286
2241
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -2343,11 +2298,18 @@
2343
2298
  "hasDynamicHelp": false,
2344
2299
  "multiple": false,
2345
2300
  "type": "option"
2301
+ },
2302
+ "period": {
2303
+ "description": "KPI period",
2304
+ "name": "period",
2305
+ "hasDynamicHelp": false,
2306
+ "multiple": false,
2307
+ "type": "option"
2346
2308
  }
2347
2309
  },
2348
2310
  "hasDynamicHelp": false,
2349
2311
  "hiddenAliases": [],
2350
- "id": "broadcast:get",
2312
+ "id": "channels:kpis",
2351
2313
  "pluginAlias": "@instantkom/cli",
2352
2314
  "pluginName": "@instantkom/cli",
2353
2315
  "pluginType": "core",
@@ -2357,14 +2319,14 @@
2357
2319
  "relativePath": [
2358
2320
  "dist",
2359
2321
  "commands",
2360
- "broadcast",
2361
- "get.js"
2322
+ "channels",
2323
+ "kpis.js"
2362
2324
  ]
2363
2325
  },
2364
- "broadcast:list": {
2326
+ "channels:list": {
2365
2327
  "aliases": [],
2366
2328
  "args": {},
2367
- "description": "List broadcasts",
2329
+ "description": "List channels",
2368
2330
  "flags": {
2369
2331
  "api-key": {
2370
2332
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -2444,56 +2406,31 @@
2444
2406
  "multiple": false,
2445
2407
  "type": "option"
2446
2408
  },
2447
- "channel": {
2448
- "description": "Filter by channel ID",
2449
- "name": "channel",
2450
- "hasDynamicHelp": false,
2451
- "multiple": false,
2452
- "type": "option"
2453
- },
2454
- "send-status": {
2455
- "description": "Filter by send status",
2456
- "name": "send-status",
2409
+ "status": {
2410
+ "description": "Filter by channel status",
2411
+ "name": "status",
2457
2412
  "hasDynamicHelp": false,
2458
2413
  "multiple": false,
2459
2414
  "type": "option"
2460
2415
  },
2461
- "type": {
2462
- "description": "Broadcast type",
2463
- "name": "type",
2416
+ "gateway-type": {
2417
+ "description": "Filter by gateway type ID",
2418
+ "name": "gateway-type",
2464
2419
  "hasDynamicHelp": false,
2465
2420
  "multiple": false,
2466
- "options": [
2467
- "text",
2468
- "image",
2469
- "video",
2470
- "audio",
2471
- "document"
2472
- ],
2473
2421
  "type": "option"
2474
2422
  },
2475
2423
  "search": {
2476
- "description": "Search broadcasts",
2424
+ "description": "Search by channel name",
2477
2425
  "name": "search",
2478
2426
  "hasDynamicHelp": false,
2479
2427
  "multiple": false,
2480
2428
  "type": "option"
2481
- },
2482
- "test": {
2483
- "description": "Filter test flag: 0 or 1",
2484
- "name": "test",
2485
- "hasDynamicHelp": false,
2486
- "multiple": false,
2487
- "options": [
2488
- "0",
2489
- "1"
2490
- ],
2491
- "type": "option"
2492
2429
  }
2493
2430
  },
2494
2431
  "hasDynamicHelp": false,
2495
2432
  "hiddenAliases": [],
2496
- "id": "broadcast:list",
2433
+ "id": "channels:list",
2497
2434
  "pluginAlias": "@instantkom/cli",
2498
2435
  "pluginName": "@instantkom/cli",
2499
2436
  "pluginType": "core",
@@ -2503,20 +2440,20 @@
2503
2440
  "relativePath": [
2504
2441
  "dist",
2505
2442
  "commands",
2506
- "broadcast",
2443
+ "channels",
2507
2444
  "list.js"
2508
2445
  ]
2509
2446
  },
2510
- "broadcast:send": {
2447
+ "channels:update": {
2511
2448
  "aliases": [],
2512
2449
  "args": {
2513
2450
  "id": {
2514
- "description": "Broadcast ID",
2451
+ "description": "Channel ID",
2515
2452
  "name": "id",
2516
2453
  "required": true
2517
2454
  }
2518
2455
  },
2519
- "description": "Send a broadcast immediately",
2456
+ "description": "Update a channel",
2520
2457
  "flags": {
2521
2458
  "api-key": {
2522
2459
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -2579,34 +2516,56 @@
2579
2516
  "hasDynamicHelp": false,
2580
2517
  "multiple": false,
2581
2518
  "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"
2582
2547
  }
2583
2548
  },
2584
- "hasDynamicHelp": false,
2585
- "hiddenAliases": [],
2586
- "id": "broadcast:send",
2587
- "pluginAlias": "@instantkom/cli",
2588
- "pluginName": "@instantkom/cli",
2589
- "pluginType": "core",
2590
- "strict": true,
2591
- "enableJsonFlag": false,
2592
- "isESM": true,
2593
- "relativePath": [
2594
- "dist",
2595
- "commands",
2596
- "broadcast",
2597
- "send.js"
2598
- ]
2599
- },
2600
- "broadcast:status": {
2601
- "aliases": [],
2602
- "args": {
2603
- "id": {
2604
- "description": "Broadcast ID",
2605
- "name": "id",
2606
- "required": true
2607
- }
2608
- },
2609
- "description": "Show broadcast send status",
2549
+ "hasDynamicHelp": false,
2550
+ "hiddenAliases": [],
2551
+ "id": "channels:update",
2552
+ "pluginAlias": "@instantkom/cli",
2553
+ "pluginName": "@instantkom/cli",
2554
+ "pluginType": "core",
2555
+ "strict": true,
2556
+ "enableJsonFlag": false,
2557
+ "isESM": true,
2558
+ "relativePath": [
2559
+ "dist",
2560
+ "commands",
2561
+ "channels",
2562
+ "update.js"
2563
+ ]
2564
+ },
2565
+ "broadcast:create": {
2566
+ "aliases": [],
2567
+ "args": {},
2568
+ "description": "Create a broadcast for channels or segments",
2610
2569
  "flags": {
2611
2570
  "api-key": {
2612
2571
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -2669,11 +2628,93 @@
2669
2628
  "hasDynamicHelp": false,
2670
2629
  "multiple": false,
2671
2630
  "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"
2672
2713
  }
2673
2714
  },
2674
2715
  "hasDynamicHelp": false,
2675
2716
  "hiddenAliases": [],
2676
- "id": "broadcast:status",
2717
+ "id": "broadcast:create",
2677
2718
  "pluginAlias": "@instantkom/cli",
2678
2719
  "pluginName": "@instantkom/cli",
2679
2720
  "pluginType": "core",
@@ -2684,19 +2725,19 @@
2684
2725
  "dist",
2685
2726
  "commands",
2686
2727
  "broadcast",
2687
- "status.js"
2728
+ "create.js"
2688
2729
  ]
2689
2730
  },
2690
- "broadcast:update": {
2731
+ "broadcast:delete": {
2691
2732
  "aliases": [],
2692
2733
  "args": {
2693
2734
  "id": {
2694
- "description": "Broadcast ID",
2735
+ "description": "broadcast ID",
2695
2736
  "name": "id",
2696
2737
  "required": true
2697
2738
  }
2698
2739
  },
2699
- "description": "Update a broadcast",
2740
+ "description": "Delete broadcast",
2700
2741
  "flags": {
2701
2742
  "api-key": {
2702
2743
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -2759,77 +2800,11 @@
2759
2800
  "hasDynamicHelp": false,
2760
2801
  "multiple": false,
2761
2802
  "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"
2828
2803
  }
2829
2804
  },
2830
2805
  "hasDynamicHelp": false,
2831
2806
  "hiddenAliases": [],
2832
- "id": "broadcast:update",
2807
+ "id": "broadcast:delete",
2833
2808
  "pluginAlias": "@instantkom/cli",
2834
2809
  "pluginName": "@instantkom/cli",
2835
2810
  "pluginType": "core",
@@ -2840,13 +2815,19 @@
2840
2815
  "dist",
2841
2816
  "commands",
2842
2817
  "broadcast",
2843
- "update.js"
2818
+ "delete.js"
2844
2819
  ]
2845
2820
  },
2846
- "channels:create": {
2821
+ "broadcast:get": {
2847
2822
  "aliases": [],
2848
- "args": {},
2849
- "description": "Create a channel",
2823
+ "args": {
2824
+ "id": {
2825
+ "description": "broadcast ID",
2826
+ "name": "id",
2827
+ "required": true
2828
+ }
2829
+ },
2830
+ "description": "Get broadcast by ID",
2850
2831
  "flags": {
2851
2832
  "api-key": {
2852
2833
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -2909,48 +2890,11 @@
2909
2890
  "hasDynamicHelp": false,
2910
2891
  "multiple": false,
2911
2892
  "type": "option"
2912
- },
2913
- "name": {
2914
- "description": "Channel name",
2915
- "name": "name",
2916
- "required": true,
2917
- "hasDynamicHelp": false,
2918
- "multiple": false,
2919
- "type": "option"
2920
- },
2921
- "gateway-type": {
2922
- "description": "Gateway type ID",
2923
- "name": "gateway-type",
2924
- "required": true,
2925
- "hasDynamicHelp": false,
2926
- "multiple": false,
2927
- "type": "option"
2928
- },
2929
- "status": {
2930
- "description": "Channel lifecycle status",
2931
- "name": "status",
2932
- "hasDynamicHelp": false,
2933
- "multiple": false,
2934
- "type": "option"
2935
- },
2936
- "description": {
2937
- "description": "Channel description",
2938
- "name": "description",
2939
- "hasDynamicHelp": false,
2940
- "multiple": false,
2941
- "type": "option"
2942
- },
2943
- "data": {
2944
- "description": "Additional JSON object payload",
2945
- "name": "data",
2946
- "hasDynamicHelp": false,
2947
- "multiple": false,
2948
- "type": "option"
2949
2893
  }
2950
2894
  },
2951
2895
  "hasDynamicHelp": false,
2952
2896
  "hiddenAliases": [],
2953
- "id": "channels:create",
2897
+ "id": "broadcast:get",
2954
2898
  "pluginAlias": "@instantkom/cli",
2955
2899
  "pluginName": "@instantkom/cli",
2956
2900
  "pluginType": "core",
@@ -2960,20 +2904,14 @@
2960
2904
  "relativePath": [
2961
2905
  "dist",
2962
2906
  "commands",
2963
- "channels",
2964
- "create.js"
2907
+ "broadcast",
2908
+ "get.js"
2965
2909
  ]
2966
2910
  },
2967
- "channels:get": {
2911
+ "broadcast:list": {
2968
2912
  "aliases": [],
2969
- "args": {
2970
- "id": {
2971
- "description": "Channel ID",
2972
- "name": "id",
2973
- "required": true
2974
- }
2975
- },
2976
- "description": "Get a channel by ID",
2913
+ "args": {},
2914
+ "description": "List broadcasts",
2977
2915
  "flags": {
2978
2916
  "api-key": {
2979
2917
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -3036,11 +2974,73 @@
3036
2974
  "hasDynamicHelp": false,
3037
2975
  "multiple": false,
3038
2976
  "type": "option"
2977
+ },
2978
+ "page": {
2979
+ "description": "Page number",
2980
+ "name": "page",
2981
+ "default": 1,
2982
+ "hasDynamicHelp": false,
2983
+ "multiple": false,
2984
+ "type": "option"
2985
+ },
2986
+ "limit": {
2987
+ "description": "Items per page",
2988
+ "name": "limit",
2989
+ "default": 20,
2990
+ "hasDynamicHelp": false,
2991
+ "multiple": false,
2992
+ "type": "option"
2993
+ },
2994
+ "channel": {
2995
+ "description": "Filter by channel ID",
2996
+ "name": "channel",
2997
+ "hasDynamicHelp": false,
2998
+ "multiple": false,
2999
+ "type": "option"
3000
+ },
3001
+ "send-status": {
3002
+ "description": "Filter by send status",
3003
+ "name": "send-status",
3004
+ "hasDynamicHelp": false,
3005
+ "multiple": false,
3006
+ "type": "option"
3007
+ },
3008
+ "type": {
3009
+ "description": "Broadcast type",
3010
+ "name": "type",
3011
+ "hasDynamicHelp": false,
3012
+ "multiple": false,
3013
+ "options": [
3014
+ "text",
3015
+ "image",
3016
+ "video",
3017
+ "audio",
3018
+ "document"
3019
+ ],
3020
+ "type": "option"
3021
+ },
3022
+ "search": {
3023
+ "description": "Search broadcasts",
3024
+ "name": "search",
3025
+ "hasDynamicHelp": false,
3026
+ "multiple": false,
3027
+ "type": "option"
3028
+ },
3029
+ "test": {
3030
+ "description": "Filter test flag: 0 or 1",
3031
+ "name": "test",
3032
+ "hasDynamicHelp": false,
3033
+ "multiple": false,
3034
+ "options": [
3035
+ "0",
3036
+ "1"
3037
+ ],
3038
+ "type": "option"
3039
3039
  }
3040
3040
  },
3041
3041
  "hasDynamicHelp": false,
3042
3042
  "hiddenAliases": [],
3043
- "id": "channels:get",
3043
+ "id": "broadcast:list",
3044
3044
  "pluginAlias": "@instantkom/cli",
3045
3045
  "pluginName": "@instantkom/cli",
3046
3046
  "pluginType": "core",
@@ -3050,20 +3050,20 @@
3050
3050
  "relativePath": [
3051
3051
  "dist",
3052
3052
  "commands",
3053
- "channels",
3054
- "get.js"
3053
+ "broadcast",
3054
+ "list.js"
3055
3055
  ]
3056
3056
  },
3057
- "channels:kpis": {
3057
+ "broadcast:send": {
3058
3058
  "aliases": [],
3059
3059
  "args": {
3060
3060
  "id": {
3061
- "description": "Optional channel ID; omit for aggregated channel KPIs",
3061
+ "description": "Broadcast ID",
3062
3062
  "name": "id",
3063
- "required": false
3063
+ "required": true
3064
3064
  }
3065
3065
  },
3066
- "description": "Get channel KPIs",
3066
+ "description": "Send a broadcast immediately",
3067
3067
  "flags": {
3068
3068
  "api-key": {
3069
3069
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -3126,18 +3126,11 @@
3126
3126
  "hasDynamicHelp": false,
3127
3127
  "multiple": false,
3128
3128
  "type": "option"
3129
- },
3130
- "period": {
3131
- "description": "KPI period",
3132
- "name": "period",
3133
- "hasDynamicHelp": false,
3134
- "multiple": false,
3135
- "type": "option"
3136
3129
  }
3137
3130
  },
3138
3131
  "hasDynamicHelp": false,
3139
3132
  "hiddenAliases": [],
3140
- "id": "channels:kpis",
3133
+ "id": "broadcast:send",
3141
3134
  "pluginAlias": "@instantkom/cli",
3142
3135
  "pluginName": "@instantkom/cli",
3143
3136
  "pluginType": "core",
@@ -3147,14 +3140,20 @@
3147
3140
  "relativePath": [
3148
3141
  "dist",
3149
3142
  "commands",
3150
- "channels",
3151
- "kpis.js"
3143
+ "broadcast",
3144
+ "send.js"
3152
3145
  ]
3153
3146
  },
3154
- "channels:list": {
3147
+ "broadcast:status": {
3155
3148
  "aliases": [],
3156
- "args": {},
3157
- "description": "List channels",
3149
+ "args": {
3150
+ "id": {
3151
+ "description": "Broadcast ID",
3152
+ "name": "id",
3153
+ "required": true
3154
+ }
3155
+ },
3156
+ "description": "Show broadcast send status",
3158
3157
  "flags": {
3159
3158
  "api-key": {
3160
3159
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -3217,48 +3216,11 @@
3217
3216
  "hasDynamicHelp": false,
3218
3217
  "multiple": false,
3219
3218
  "type": "option"
3220
- },
3221
- "page": {
3222
- "description": "Page number",
3223
- "name": "page",
3224
- "default": 1,
3225
- "hasDynamicHelp": false,
3226
- "multiple": false,
3227
- "type": "option"
3228
- },
3229
- "limit": {
3230
- "description": "Items per page",
3231
- "name": "limit",
3232
- "default": 20,
3233
- "hasDynamicHelp": false,
3234
- "multiple": false,
3235
- "type": "option"
3236
- },
3237
- "status": {
3238
- "description": "Filter by channel status",
3239
- "name": "status",
3240
- "hasDynamicHelp": false,
3241
- "multiple": false,
3242
- "type": "option"
3243
- },
3244
- "gateway-type": {
3245
- "description": "Filter by gateway type ID",
3246
- "name": "gateway-type",
3247
- "hasDynamicHelp": false,
3248
- "multiple": false,
3249
- "type": "option"
3250
- },
3251
- "search": {
3252
- "description": "Search by channel name",
3253
- "name": "search",
3254
- "hasDynamicHelp": false,
3255
- "multiple": false,
3256
- "type": "option"
3257
3219
  }
3258
3220
  },
3259
3221
  "hasDynamicHelp": false,
3260
3222
  "hiddenAliases": [],
3261
- "id": "channels:list",
3223
+ "id": "broadcast:status",
3262
3224
  "pluginAlias": "@instantkom/cli",
3263
3225
  "pluginName": "@instantkom/cli",
3264
3226
  "pluginType": "core",
@@ -3268,20 +3230,20 @@
3268
3230
  "relativePath": [
3269
3231
  "dist",
3270
3232
  "commands",
3271
- "channels",
3272
- "list.js"
3233
+ "broadcast",
3234
+ "status.js"
3273
3235
  ]
3274
3236
  },
3275
- "channels:update": {
3237
+ "broadcast:update": {
3276
3238
  "aliases": [],
3277
3239
  "args": {
3278
3240
  "id": {
3279
- "description": "Channel ID",
3241
+ "description": "Broadcast ID",
3280
3242
  "name": "id",
3281
3243
  "required": true
3282
3244
  }
3283
3245
  },
3284
- "description": "Update a channel",
3246
+ "description": "Update a broadcast",
3285
3247
  "flags": {
3286
3248
  "api-key": {
3287
3249
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -3345,23 +3307,61 @@
3345
3307
  "multiple": false,
3346
3308
  "type": "option"
3347
3309
  },
3348
- "name": {
3349
- "description": "Channel name",
3350
- "name": "name",
3310
+ "text": {
3311
+ "description": "Broadcast message text",
3312
+ "name": "text",
3351
3313
  "hasDynamicHelp": false,
3352
3314
  "multiple": false,
3353
3315
  "type": "option"
3354
3316
  },
3355
- "status": {
3356
- "description": "Channel lifecycle status",
3357
- "name": "status",
3317
+ "send-status": {
3318
+ "description": "Send status",
3319
+ "name": "send-status",
3358
3320
  "hasDynamicHelp": false,
3359
3321
  "multiple": false,
3360
3322
  "type": "option"
3361
3323
  },
3362
- "description": {
3363
- "description": "Channel description",
3364
- "name": "description",
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
3365
  "hasDynamicHelp": false,
3366
3366
  "multiple": false,
3367
3367
  "type": "option"
@@ -3376,7 +3376,7 @@
3376
3376
  },
3377
3377
  "hasDynamicHelp": false,
3378
3378
  "hiddenAliases": [],
3379
- "id": "channels:update",
3379
+ "id": "broadcast:update",
3380
3380
  "pluginAlias": "@instantkom/cli",
3381
3381
  "pluginName": "@instantkom/cli",
3382
3382
  "pluginType": "core",
@@ -3386,7 +3386,7 @@
3386
3386
  "relativePath": [
3387
3387
  "dist",
3388
3388
  "commands",
3389
- "channels",
3389
+ "broadcast",
3390
3390
  "update.js"
3391
3391
  ]
3392
3392
  },
@@ -11856,16 +11856,16 @@
11856
11856
  "revoke.js"
11857
11857
  ]
11858
11858
  },
11859
- "bots:env-vars:bots": {
11859
+ "bots:filters:create": {
11860
11860
  "aliases": [],
11861
11861
  "args": {
11862
- "id": {
11863
- "description": "Environment variable ID",
11864
- "name": "id",
11862
+ "botId": {
11863
+ "description": "Bot ID",
11864
+ "name": "botId",
11865
11865
  "required": true
11866
11866
  }
11867
11867
  },
11868
- "description": "List bots using a bot environment variable",
11868
+ "description": "Create a bot filter",
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,112 +11928,64 @@
11928
11928
  "hasDynamicHelp": false,
11929
11929
  "multiple": false,
11930
11930
  "type": "option"
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",
11931
+ },
11932
+ "name": {
11933
+ "description": "Filter name",
11934
+ "name": "name",
11935
+ "required": true,
11960
11936
  "hasDynamicHelp": false,
11961
11937
  "multiple": false,
11962
11938
  "type": "option"
11963
11939
  },
11964
- "format": {
11965
- "description": "Output format: text, json, yaml, or table",
11966
- "helpGroup": "GLOBAL",
11967
- "name": "format",
11968
- "default": "text",
11940
+ "operator": {
11941
+ "description": "Logical operator",
11942
+ "name": "operator",
11943
+ "default": "and",
11969
11944
  "hasDynamicHelp": false,
11970
11945
  "multiple": false,
11971
- "options": [
11972
- "text",
11973
- "json",
11974
- "yaml",
11975
- "table"
11976
- ],
11977
11946
  "type": "option"
11978
11947
  },
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",
11948
+ "filter-object": {
11949
+ "description": "Filter object type",
11950
+ "name": "filter-object",
11951
+ "default": "msg",
12005
11952
  "hasDynamicHelp": false,
12006
11953
  "multiple": false,
12007
11954
  "type": "option"
12008
11955
  },
12009
- "api-url": {
12010
- "description": "Override the API base URL (e.g. for staging)",
12011
- "helpGroup": "GLOBAL",
12012
- "name": "api-url",
11956
+ "filter-attribute": {
11957
+ "description": "Filter attribute",
11958
+ "name": "filter-attribute",
11959
+ "default": "text",
12013
11960
  "hasDynamicHelp": false,
12014
11961
  "multiple": false,
12015
11962
  "type": "option"
12016
- },
12017
- "key": {
12018
- "description": "Variable key (max 16 chars, letters, digits, underscore)",
12019
- "name": "key",
12020
- "required": true,
11963
+ },
11964
+ "filter-comparator": {
11965
+ "description": "Filter comparator",
11966
+ "name": "filter-comparator",
11967
+ "default": "contains",
12021
11968
  "hasDynamicHelp": false,
12022
11969
  "multiple": false,
12023
11970
  "type": "option"
12024
11971
  },
12025
- "description": {
12026
- "description": "Variable description",
12027
- "name": "description",
11972
+ "filter-value": {
11973
+ "description": "Filter value",
11974
+ "name": "filter-value",
11975
+ "required": true,
12028
11976
  "hasDynamicHelp": false,
12029
11977
  "multiple": false,
12030
11978
  "type": "option"
12031
11979
  },
12032
- "color": {
12033
- "description": "Variable color as HEX",
12034
- "name": "color",
11980
+ "status": {
11981
+ "description": "Status: 0 inactive, 1 active",
11982
+ "name": "status",
12035
11983
  "hasDynamicHelp": false,
12036
11984
  "multiple": false,
11985
+ "options": [
11986
+ "0",
11987
+ "1"
11988
+ ],
12037
11989
  "type": "option"
12038
11990
  },
12039
11991
  "data": {
@@ -12046,7 +11998,7 @@
12046
11998
  },
12047
11999
  "hasDynamicHelp": false,
12048
12000
  "hiddenAliases": [],
12049
- "id": "bots:env-vars:create",
12001
+ "id": "bots:filters:create",
12050
12002
  "pluginAlias": "@instantkom/cli",
12051
12003
  "pluginName": "@instantkom/cli",
12052
12004
  "pluginType": "core",
@@ -12057,20 +12009,25 @@
12057
12009
  "dist",
12058
12010
  "commands",
12059
12011
  "bots",
12060
- "env-vars",
12012
+ "filters",
12061
12013
  "create.js"
12062
12014
  ]
12063
12015
  },
12064
- "bots:env-vars:delete": {
12016
+ "bots:filters:delete": {
12065
12017
  "aliases": [],
12066
12018
  "args": {
12067
- "id": {
12068
- "description": "Environment variable ID",
12069
- "name": "id",
12019
+ "botId": {
12020
+ "description": "Bot ID",
12021
+ "name": "botId",
12022
+ "required": true
12023
+ },
12024
+ "filterId": {
12025
+ "description": "Filter ID",
12026
+ "name": "filterId",
12070
12027
  "required": true
12071
12028
  }
12072
12029
  },
12073
- "description": "Delete a bot environment variable",
12030
+ "description": "Delete a bot filter",
12074
12031
  "flags": {
12075
12032
  "api-key": {
12076
12033
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -12137,7 +12094,7 @@
12137
12094
  },
12138
12095
  "hasDynamicHelp": false,
12139
12096
  "hiddenAliases": [],
12140
- "id": "bots:env-vars:delete",
12097
+ "id": "bots:filters:delete",
12141
12098
  "pluginAlias": "@instantkom/cli",
12142
12099
  "pluginName": "@instantkom/cli",
12143
12100
  "pluginType": "core",
@@ -12148,20 +12105,25 @@
12148
12105
  "dist",
12149
12106
  "commands",
12150
12107
  "bots",
12151
- "env-vars",
12108
+ "filters",
12152
12109
  "delete.js"
12153
12110
  ]
12154
12111
  },
12155
- "bots:env-vars:get": {
12112
+ "bots:filters:get": {
12156
12113
  "aliases": [],
12157
12114
  "args": {
12158
- "id": {
12159
- "description": "Environment variable ID",
12160
- "name": "id",
12115
+ "botId": {
12116
+ "description": "Bot ID",
12117
+ "name": "botId",
12118
+ "required": true
12119
+ },
12120
+ "filterId": {
12121
+ "description": "Filter ID",
12122
+ "name": "filterId",
12161
12123
  "required": true
12162
12124
  }
12163
12125
  },
12164
- "description": "Get a bot environment variable",
12126
+ "description": "Get a bot filter",
12165
12127
  "flags": {
12166
12128
  "api-key": {
12167
12129
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -12228,7 +12190,7 @@
12228
12190
  },
12229
12191
  "hasDynamicHelp": false,
12230
12192
  "hiddenAliases": [],
12231
- "id": "bots:env-vars:get",
12193
+ "id": "bots:filters:get",
12232
12194
  "pluginAlias": "@instantkom/cli",
12233
12195
  "pluginName": "@instantkom/cli",
12234
12196
  "pluginType": "core",
@@ -12239,14 +12201,20 @@
12239
12201
  "dist",
12240
12202
  "commands",
12241
12203
  "bots",
12242
- "env-vars",
12204
+ "filters",
12243
12205
  "get.js"
12244
12206
  ]
12245
12207
  },
12246
- "bots:env-vars:list": {
12208
+ "bots:filters:list": {
12247
12209
  "aliases": [],
12248
- "args": {},
12249
- "description": "List bot environment variables",
12210
+ "args": {
12211
+ "botId": {
12212
+ "description": "Bot ID",
12213
+ "name": "botId",
12214
+ "required": true
12215
+ }
12216
+ },
12217
+ "description": "List bot filters",
12250
12218
  "flags": {
12251
12219
  "api-key": {
12252
12220
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -12326,16 +12294,20 @@
12326
12294
  "multiple": false,
12327
12295
  "type": "option"
12328
12296
  },
12329
- "search": {
12330
- "description": "Search in key or description",
12331
- "name": "search",
12297
+ "status": {
12298
+ "description": "Status filter: 0 inactive, 1 active",
12299
+ "name": "status",
12332
12300
  "hasDynamicHelp": false,
12333
12301
  "multiple": false,
12302
+ "options": [
12303
+ "0",
12304
+ "1"
12305
+ ],
12334
12306
  "type": "option"
12335
12307
  },
12336
- "color": {
12337
- "description": "Filter by color",
12338
- "name": "color",
12308
+ "search": {
12309
+ "description": "Search in name or description",
12310
+ "name": "search",
12339
12311
  "hasDynamicHelp": false,
12340
12312
  "multiple": false,
12341
12313
  "type": "option"
@@ -12343,7 +12315,7 @@
12343
12315
  },
12344
12316
  "hasDynamicHelp": false,
12345
12317
  "hiddenAliases": [],
12346
- "id": "bots:env-vars:list",
12318
+ "id": "bots:filters:list",
12347
12319
  "pluginAlias": "@instantkom/cli",
12348
12320
  "pluginName": "@instantkom/cli",
12349
12321
  "pluginType": "core",
@@ -12354,20 +12326,25 @@
12354
12326
  "dist",
12355
12327
  "commands",
12356
12328
  "bots",
12357
- "env-vars",
12329
+ "filters",
12358
12330
  "list.js"
12359
12331
  ]
12360
12332
  },
12361
- "bots:env-vars:update": {
12333
+ "bots:filters:update": {
12362
12334
  "aliases": [],
12363
12335
  "args": {
12364
- "id": {
12365
- "description": "Environment variable ID",
12366
- "name": "id",
12336
+ "botId": {
12337
+ "description": "Bot ID",
12338
+ "name": "botId",
12339
+ "required": true
12340
+ },
12341
+ "filterId": {
12342
+ "description": "Filter ID",
12343
+ "name": "filterId",
12367
12344
  "required": true
12368
12345
  }
12369
12346
  },
12370
- "description": "Update a bot environment variable",
12347
+ "description": "Update a bot filter",
12371
12348
  "flags": {
12372
12349
  "api-key": {
12373
12350
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -12431,20 +12408,59 @@
12431
12408
  "multiple": false,
12432
12409
  "type": "option"
12433
12410
  },
12434
- "description": {
12435
- "description": "Variable description",
12436
- "name": "description",
12411
+ "name": {
12412
+ "description": "Filter name",
12413
+ "name": "name",
12437
12414
  "hasDynamicHelp": false,
12438
12415
  "multiple": false,
12439
12416
  "type": "option"
12440
12417
  },
12441
- "color": {
12442
- "description": "Variable color as HEX",
12443
- "name": "color",
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",
12444
12442
  "hasDynamicHelp": false,
12445
12443
  "multiple": false,
12446
12444
  "type": "option"
12447
12445
  },
12446
+ "filter-value": {
12447
+ "description": "Filter value",
12448
+ "name": "filter-value",
12449
+ "hasDynamicHelp": false,
12450
+ "multiple": false,
12451
+ "type": "option"
12452
+ },
12453
+ "status": {
12454
+ "description": "Status: 0 inactive, 1 active",
12455
+ "name": "status",
12456
+ "hasDynamicHelp": false,
12457
+ "multiple": false,
12458
+ "options": [
12459
+ "0",
12460
+ "1"
12461
+ ],
12462
+ "type": "option"
12463
+ },
12448
12464
  "data": {
12449
12465
  "description": "Additional JSON object payload",
12450
12466
  "name": "data",
@@ -12455,7 +12471,7 @@
12455
12471
  },
12456
12472
  "hasDynamicHelp": false,
12457
12473
  "hiddenAliases": [],
12458
- "id": "bots:env-vars:update",
12474
+ "id": "bots:filters:update",
12459
12475
  "pluginAlias": "@instantkom/cli",
12460
12476
  "pluginName": "@instantkom/cli",
12461
12477
  "pluginType": "core",
@@ -12466,11 +12482,11 @@
12466
12482
  "dist",
12467
12483
  "commands",
12468
12484
  "bots",
12469
- "env-vars",
12485
+ "filters",
12470
12486
  "update.js"
12471
12487
  ]
12472
12488
  },
12473
- "bots:env-vars:values": {
12489
+ "bots:env-vars:bots": {
12474
12490
  "aliases": [],
12475
12491
  "args": {
12476
12492
  "id": {
@@ -12479,7 +12495,7 @@
12479
12495
  "required": true
12480
12496
  }
12481
12497
  },
12482
- "description": "List recipient values for a bot environment variable",
12498
+ "description": "List bots using a bot environment variable",
12483
12499
  "flags": {
12484
12500
  "api-key": {
12485
12501
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -12542,41 +12558,11 @@
12542
12558
  "hasDynamicHelp": false,
12543
12559
  "multiple": false,
12544
12560
  "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"
12575
12561
  }
12576
12562
  },
12577
12563
  "hasDynamicHelp": false,
12578
12564
  "hiddenAliases": [],
12579
- "id": "bots:env-vars:values",
12565
+ "id": "bots:env-vars:bots",
12580
12566
  "pluginAlias": "@instantkom/cli",
12581
12567
  "pluginName": "@instantkom/cli",
12582
12568
  "pluginType": "core",
@@ -12588,19 +12574,13 @@
12588
12574
  "commands",
12589
12575
  "bots",
12590
12576
  "env-vars",
12591
- "values.js"
12577
+ "bots.js"
12592
12578
  ]
12593
12579
  },
12594
- "bots:filters:create": {
12580
+ "bots:env-vars:create": {
12595
12581
  "aliases": [],
12596
- "args": {
12597
- "botId": {
12598
- "description": "Bot ID",
12599
- "name": "botId",
12600
- "required": true
12601
- }
12602
- },
12603
- "description": "Create a bot filter",
12582
+ "args": {},
12583
+ "description": "Create a bot environment variable",
12604
12584
  "flags": {
12605
12585
  "api-key": {
12606
12586
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -12664,63 +12644,26 @@
12664
12644
  "multiple": false,
12665
12645
  "type": "option"
12666
12646
  },
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",
12647
+ "key": {
12648
+ "description": "Variable key (max 16 chars, letters, digits, underscore)",
12649
+ "name": "key",
12710
12650
  "required": true,
12711
12651
  "hasDynamicHelp": false,
12712
12652
  "multiple": false,
12713
12653
  "type": "option"
12714
12654
  },
12715
- "status": {
12716
- "description": "Status: 0 inactive, 1 active",
12717
- "name": "status",
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",
12718
12665
  "hasDynamicHelp": false,
12719
12666
  "multiple": false,
12720
- "options": [
12721
- "0",
12722
- "1"
12723
- ],
12724
12667
  "type": "option"
12725
12668
  },
12726
12669
  "data": {
@@ -12733,7 +12676,7 @@
12733
12676
  },
12734
12677
  "hasDynamicHelp": false,
12735
12678
  "hiddenAliases": [],
12736
- "id": "bots:filters:create",
12679
+ "id": "bots:env-vars:create",
12737
12680
  "pluginAlias": "@instantkom/cli",
12738
12681
  "pluginName": "@instantkom/cli",
12739
12682
  "pluginType": "core",
@@ -12744,25 +12687,20 @@
12744
12687
  "dist",
12745
12688
  "commands",
12746
12689
  "bots",
12747
- "filters",
12690
+ "env-vars",
12748
12691
  "create.js"
12749
12692
  ]
12750
12693
  },
12751
- "bots:filters:delete": {
12694
+ "bots:env-vars:delete": {
12752
12695
  "aliases": [],
12753
12696
  "args": {
12754
- "botId": {
12755
- "description": "Bot ID",
12756
- "name": "botId",
12757
- "required": true
12758
- },
12759
- "filterId": {
12760
- "description": "Filter ID",
12761
- "name": "filterId",
12697
+ "id": {
12698
+ "description": "Environment variable ID",
12699
+ "name": "id",
12762
12700
  "required": true
12763
12701
  }
12764
12702
  },
12765
- "description": "Delete a bot filter",
12703
+ "description": "Delete a bot environment variable",
12766
12704
  "flags": {
12767
12705
  "api-key": {
12768
12706
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -12829,7 +12767,7 @@
12829
12767
  },
12830
12768
  "hasDynamicHelp": false,
12831
12769
  "hiddenAliases": [],
12832
- "id": "bots:filters:delete",
12770
+ "id": "bots:env-vars:delete",
12833
12771
  "pluginAlias": "@instantkom/cli",
12834
12772
  "pluginName": "@instantkom/cli",
12835
12773
  "pluginType": "core",
@@ -12840,25 +12778,20 @@
12840
12778
  "dist",
12841
12779
  "commands",
12842
12780
  "bots",
12843
- "filters",
12781
+ "env-vars",
12844
12782
  "delete.js"
12845
12783
  ]
12846
12784
  },
12847
- "bots:filters:get": {
12785
+ "bots:env-vars:get": {
12848
12786
  "aliases": [],
12849
12787
  "args": {
12850
- "botId": {
12851
- "description": "Bot ID",
12852
- "name": "botId",
12853
- "required": true
12854
- },
12855
- "filterId": {
12856
- "description": "Filter ID",
12857
- "name": "filterId",
12788
+ "id": {
12789
+ "description": "Environment variable ID",
12790
+ "name": "id",
12858
12791
  "required": true
12859
12792
  }
12860
12793
  },
12861
- "description": "Get a bot filter",
12794
+ "description": "Get a bot environment variable",
12862
12795
  "flags": {
12863
12796
  "api-key": {
12864
12797
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -12925,7 +12858,7 @@
12925
12858
  },
12926
12859
  "hasDynamicHelp": false,
12927
12860
  "hiddenAliases": [],
12928
- "id": "bots:filters:get",
12861
+ "id": "bots:env-vars:get",
12929
12862
  "pluginAlias": "@instantkom/cli",
12930
12863
  "pluginName": "@instantkom/cli",
12931
12864
  "pluginType": "core",
@@ -12936,20 +12869,14 @@
12936
12869
  "dist",
12937
12870
  "commands",
12938
12871
  "bots",
12939
- "filters",
12872
+ "env-vars",
12940
12873
  "get.js"
12941
12874
  ]
12942
12875
  },
12943
- "bots:filters:list": {
12876
+ "bots:env-vars:list": {
12944
12877
  "aliases": [],
12945
- "args": {
12946
- "botId": {
12947
- "description": "Bot ID",
12948
- "name": "botId",
12949
- "required": true
12950
- }
12951
- },
12952
- "description": "List bot filters",
12878
+ "args": {},
12879
+ "description": "List bot environment variables",
12953
12880
  "flags": {
12954
12881
  "api-key": {
12955
12882
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -13029,20 +12956,16 @@
13029
12956
  "multiple": false,
13030
12957
  "type": "option"
13031
12958
  },
13032
- "status": {
13033
- "description": "Status filter: 0 inactive, 1 active",
13034
- "name": "status",
12959
+ "search": {
12960
+ "description": "Search in key or description",
12961
+ "name": "search",
13035
12962
  "hasDynamicHelp": false,
13036
12963
  "multiple": false,
13037
- "options": [
13038
- "0",
13039
- "1"
13040
- ],
13041
12964
  "type": "option"
13042
12965
  },
13043
- "search": {
13044
- "description": "Search in name or description",
13045
- "name": "search",
12966
+ "color": {
12967
+ "description": "Filter by color",
12968
+ "name": "color",
13046
12969
  "hasDynamicHelp": false,
13047
12970
  "multiple": false,
13048
12971
  "type": "option"
@@ -13050,7 +12973,7 @@
13050
12973
  },
13051
12974
  "hasDynamicHelp": false,
13052
12975
  "hiddenAliases": [],
13053
- "id": "bots:filters:list",
12976
+ "id": "bots:env-vars:list",
13054
12977
  "pluginAlias": "@instantkom/cli",
13055
12978
  "pluginName": "@instantkom/cli",
13056
12979
  "pluginType": "core",
@@ -13061,25 +12984,20 @@
13061
12984
  "dist",
13062
12985
  "commands",
13063
12986
  "bots",
13064
- "filters",
12987
+ "env-vars",
13065
12988
  "list.js"
13066
12989
  ]
13067
12990
  },
13068
- "bots:filters:update": {
12991
+ "bots:env-vars:update": {
13069
12992
  "aliases": [],
13070
12993
  "args": {
13071
- "botId": {
13072
- "description": "Bot ID",
13073
- "name": "botId",
13074
- "required": true
13075
- },
13076
- "filterId": {
13077
- "description": "Filter ID",
13078
- "name": "filterId",
12994
+ "id": {
12995
+ "description": "Environment variable ID",
12996
+ "name": "id",
13079
12997
  "required": true
13080
12998
  }
13081
12999
  },
13082
- "description": "Update a bot filter",
13000
+ "description": "Update a bot environment variable",
13083
13001
  "flags": {
13084
13002
  "api-key": {
13085
13003
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -13143,62 +13061,144 @@
13143
13061
  "multiple": false,
13144
13062
  "type": "option"
13145
13063
  },
13146
- "name": {
13147
- "description": "Filter name",
13148
- "name": "name",
13064
+ "description": {
13065
+ "description": "Variable description",
13066
+ "name": "description",
13149
13067
  "hasDynamicHelp": false,
13150
13068
  "multiple": false,
13151
13069
  "type": "option"
13152
13070
  },
13153
- "operator": {
13154
- "description": "Logical operator",
13155
- "name": "operator",
13071
+ "color": {
13072
+ "description": "Variable color as HEX",
13073
+ "name": "color",
13156
13074
  "hasDynamicHelp": false,
13157
13075
  "multiple": false,
13158
13076
  "type": "option"
13159
13077
  },
13160
- "filter-object": {
13161
- "description": "Filter object type",
13162
- "name": "filter-object",
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",
13163
13119
  "hasDynamicHelp": false,
13164
13120
  "multiple": false,
13165
13121
  "type": "option"
13166
13122
  },
13167
- "filter-attribute": {
13168
- "description": "Filter attribute",
13169
- "name": "filter-attribute",
13123
+ "format": {
13124
+ "description": "Output format: text, json, yaml, or table",
13125
+ "helpGroup": "GLOBAL",
13126
+ "name": "format",
13127
+ "default": "text",
13170
13128
  "hasDynamicHelp": false,
13171
13129
  "multiple": false,
13130
+ "options": [
13131
+ "text",
13132
+ "json",
13133
+ "yaml",
13134
+ "table"
13135
+ ],
13172
13136
  "type": "option"
13173
13137
  },
13174
- "filter-comparator": {
13175
- "description": "Filter comparator",
13176
- "name": "filter-comparator",
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",
13177
13164
  "hasDynamicHelp": false,
13178
13165
  "multiple": false,
13179
13166
  "type": "option"
13180
13167
  },
13181
- "filter-value": {
13182
- "description": "Filter value",
13183
- "name": "filter-value",
13168
+ "api-url": {
13169
+ "description": "Override the API base URL (e.g. for staging)",
13170
+ "helpGroup": "GLOBAL",
13171
+ "name": "api-url",
13184
13172
  "hasDynamicHelp": false,
13185
13173
  "multiple": false,
13186
13174
  "type": "option"
13187
13175
  },
13188
- "status": {
13189
- "description": "Status: 0 inactive, 1 active",
13190
- "name": "status",
13176
+ "page": {
13177
+ "description": "Page number",
13178
+ "name": "page",
13179
+ "default": 1,
13191
13180
  "hasDynamicHelp": false,
13192
13181
  "multiple": false,
13193
- "options": [
13194
- "0",
13195
- "1"
13196
- ],
13197
13182
  "type": "option"
13198
13183
  },
13199
- "data": {
13200
- "description": "Additional JSON object payload",
13201
- "name": "data",
13184
+ "limit": {
13185
+ "description": "Items per page",
13186
+ "name": "limit",
13187
+ "default": 20,
13188
+ "hasDynamicHelp": false,
13189
+ "multiple": false,
13190
+ "type": "option"
13191
+ },
13192
+ "search": {
13193
+ "description": "Search in recipient name or identifier",
13194
+ "name": "search",
13195
+ "hasDynamicHelp": false,
13196
+ "multiple": false,
13197
+ "type": "option"
13198
+ },
13199
+ "recipient": {
13200
+ "description": "Filter by recipient ID",
13201
+ "name": "recipient",
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:filters:update",
13209
+ "id": "bots:env-vars:values",
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
- "filters",
13221
- "update.js"
13220
+ "env-vars",
13221
+ "values.js"
13222
13222
  ]
13223
13223
  },
13224
13224
  "bots:tags:add": {
@@ -16352,5 +16352,5 @@
16352
16352
  ]
16353
16353
  }
16354
16354
  },
16355
- "version": "3.140.2"
16355
+ "version": "3.141.0"
16356
16356
  }