@instantkom/cli 3.140.1 → 3.140.2

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.
@@ -953,10 +953,10 @@
953
953
  "update.js"
954
954
  ]
955
955
  },
956
- "ai:reply": {
956
+ "auth:login": {
957
957
  "aliases": [],
958
958
  "args": {},
959
- "description": "Generate AI reply suggestions for a message",
959
+ "description": "Authenticate with the instantKOM API via device authorization flow",
960
960
  "flags": {
961
961
  "api-key": {
962
962
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -1020,46 +1020,24 @@
1020
1020
  "multiple": false,
1021
1021
  "type": "option"
1022
1022
  },
1023
- "message-id": {
1024
- "description": "Message ID to use as smart-reply anchor",
1025
- "name": "message-id",
1026
- "required": true,
1027
- "hasDynamicHelp": false,
1028
- "multiple": false,
1029
- "type": "option"
1030
- },
1031
- "limit": {
1032
- "description": "Number of suggestions to generate (1-5)",
1033
- "name": "limit",
1034
- "hasDynamicHelp": false,
1035
- "multiple": false,
1036
- "type": "option"
1037
- },
1038
- "context-length": {
1039
- "description": "Number of recent messages to use as context (1-20)",
1040
- "name": "context-length",
1041
- "hasDynamicHelp": false,
1042
- "multiple": false,
1043
- "type": "option"
1044
- },
1045
- "style": {
1046
- "description": "Response style",
1047
- "name": "style",
1023
+ "scope": {
1024
+ "description": "Requested token scope",
1025
+ "name": "scope",
1026
+ "default": "read",
1048
1027
  "hasDynamicHelp": false,
1049
1028
  "multiple": false,
1050
1029
  "options": [
1051
- "professional",
1052
- "friendly",
1053
- "concise",
1054
- "detailed",
1055
- "empathetic"
1030
+ "full",
1031
+ "send",
1032
+ "read",
1033
+ "admin"
1056
1034
  ],
1057
1035
  "type": "option"
1058
1036
  }
1059
1037
  },
1060
1038
  "hasDynamicHelp": false,
1061
1039
  "hiddenAliases": [],
1062
- "id": "ai:reply",
1040
+ "id": "auth:login",
1063
1041
  "pluginAlias": "@instantkom/cli",
1064
1042
  "pluginName": "@instantkom/cli",
1065
1043
  "pluginType": "core",
@@ -1069,14 +1047,14 @@
1069
1047
  "relativePath": [
1070
1048
  "dist",
1071
1049
  "commands",
1072
- "ai",
1073
- "reply.js"
1050
+ "auth",
1051
+ "login.js"
1074
1052
  ]
1075
1053
  },
1076
- "auth:login": {
1054
+ "auth:logout": {
1077
1055
  "aliases": [],
1078
1056
  "args": {},
1079
- "description": "Authenticate with the instantKOM API via device authorization flow",
1057
+ "description": "Remove the stored API token for the current profile",
1080
1058
  "flags": {
1081
1059
  "api-key": {
1082
1060
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -1139,25 +1117,45 @@
1139
1117
  "hasDynamicHelp": false,
1140
1118
  "multiple": false,
1141
1119
  "type": "option"
1142
- },
1143
- "scope": {
1144
- "description": "Requested token scope",
1145
- "name": "scope",
1146
- "default": "read",
1147
- "hasDynamicHelp": false,
1148
- "multiple": false,
1120
+ }
1121
+ },
1122
+ "hasDynamicHelp": false,
1123
+ "hiddenAliases": [],
1124
+ "id": "auth:logout",
1125
+ "pluginAlias": "@instantkom/cli",
1126
+ "pluginName": "@instantkom/cli",
1127
+ "pluginType": "core",
1128
+ "strict": true,
1129
+ "enableJsonFlag": false,
1130
+ "isESM": true,
1131
+ "relativePath": [
1132
+ "dist",
1133
+ "commands",
1134
+ "auth",
1135
+ "logout.js"
1136
+ ]
1137
+ },
1138
+ "autocomplete:script": {
1139
+ "aliases": [],
1140
+ "args": {
1141
+ "shell": {
1142
+ "description": "Shell type",
1143
+ "name": "shell",
1149
1144
  "options": [
1150
- "full",
1151
- "send",
1152
- "read",
1153
- "admin"
1145
+ "zsh",
1146
+ "bash",
1147
+ "fish",
1148
+ "powershell"
1154
1149
  ],
1155
- "type": "option"
1150
+ "required": false
1156
1151
  }
1157
1152
  },
1153
+ "description": "outputs autocomplete config script for shells",
1154
+ "flags": {},
1158
1155
  "hasDynamicHelp": false,
1156
+ "hidden": true,
1159
1157
  "hiddenAliases": [],
1160
- "id": "auth:login",
1158
+ "id": "autocomplete:script",
1161
1159
  "pluginAlias": "@instantkom/cli",
1162
1160
  "pluginName": "@instantkom/cli",
1163
1161
  "pluginType": "core",
@@ -1167,14 +1165,14 @@
1167
1165
  "relativePath": [
1168
1166
  "dist",
1169
1167
  "commands",
1170
- "auth",
1171
- "login.js"
1168
+ "autocomplete",
1169
+ "script.js"
1172
1170
  ]
1173
1171
  },
1174
- "auth:logout": {
1172
+ "ai:reply": {
1175
1173
  "aliases": [],
1176
1174
  "args": {},
1177
- "description": "Remove the stored API token for the current profile",
1175
+ "description": "Generate AI reply suggestions for a message",
1178
1176
  "flags": {
1179
1177
  "api-key": {
1180
1178
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -1237,45 +1235,47 @@
1237
1235
  "hasDynamicHelp": false,
1238
1236
  "multiple": false,
1239
1237
  "type": "option"
1240
- }
1241
- },
1242
- "hasDynamicHelp": false,
1243
- "hiddenAliases": [],
1244
- "id": "auth:logout",
1245
- "pluginAlias": "@instantkom/cli",
1246
- "pluginName": "@instantkom/cli",
1247
- "pluginType": "core",
1248
- "strict": true,
1249
- "enableJsonFlag": false,
1250
- "isESM": true,
1251
- "relativePath": [
1252
- "dist",
1253
- "commands",
1254
- "auth",
1255
- "logout.js"
1256
- ]
1257
- },
1258
- "autocomplete:script": {
1259
- "aliases": [],
1260
- "args": {
1261
- "shell": {
1262
- "description": "Shell type",
1263
- "name": "shell",
1238
+ },
1239
+ "message-id": {
1240
+ "description": "Message ID to use as smart-reply anchor",
1241
+ "name": "message-id",
1242
+ "required": true,
1243
+ "hasDynamicHelp": false,
1244
+ "multiple": false,
1245
+ "type": "option"
1246
+ },
1247
+ "limit": {
1248
+ "description": "Number of suggestions to generate (1-5)",
1249
+ "name": "limit",
1250
+ "hasDynamicHelp": false,
1251
+ "multiple": false,
1252
+ "type": "option"
1253
+ },
1254
+ "context-length": {
1255
+ "description": "Number of recent messages to use as context (1-20)",
1256
+ "name": "context-length",
1257
+ "hasDynamicHelp": false,
1258
+ "multiple": false,
1259
+ "type": "option"
1260
+ },
1261
+ "style": {
1262
+ "description": "Response style",
1263
+ "name": "style",
1264
+ "hasDynamicHelp": false,
1265
+ "multiple": false,
1264
1266
  "options": [
1265
- "zsh",
1266
- "bash",
1267
- "fish",
1268
- "powershell"
1267
+ "professional",
1268
+ "friendly",
1269
+ "concise",
1270
+ "detailed",
1271
+ "empathetic"
1269
1272
  ],
1270
- "required": false
1273
+ "type": "option"
1271
1274
  }
1272
1275
  },
1273
- "description": "outputs autocomplete config script for shells",
1274
- "flags": {},
1275
1276
  "hasDynamicHelp": false,
1276
- "hidden": true,
1277
1277
  "hiddenAliases": [],
1278
- "id": "autocomplete:script",
1278
+ "id": "ai:reply",
1279
1279
  "pluginAlias": "@instantkom/cli",
1280
1280
  "pluginName": "@instantkom/cli",
1281
1281
  "pluginType": "core",
@@ -1285,8 +1285,8 @@
1285
1285
  "relativePath": [
1286
1286
  "dist",
1287
1287
  "commands",
1288
- "autocomplete",
1289
- "script.js"
1288
+ "ai",
1289
+ "reply.js"
1290
1290
  ]
1291
1291
  },
1292
1292
  "bots:create": {
@@ -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,70 +2082,115 @@
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",
2118
2144
  "hasDynamicHelp": false,
2119
2145
  "multiple": false,
2120
2146
  "type": "option"
2121
- }
2122
- },
2123
- "hasDynamicHelp": false,
2124
- "hiddenAliases": [],
2125
- "id": "channels:create",
2126
- "pluginAlias": "@instantkom/cli",
2127
- "pluginName": "@instantkom/cli",
2128
- "pluginType": "core",
2129
- "strict": true,
2130
- "enableJsonFlag": false,
2131
- "isESM": true,
2132
- "relativePath": [
2133
- "dist",
2134
- "commands",
2135
- "channels",
2136
- "create.js"
2147
+ },
2148
+ "send-status": {
2149
+ "description": "Initial broadcast send status",
2150
+ "name": "send-status",
2151
+ "default": "draft",
2152
+ "hasDynamicHelp": false,
2153
+ "multiple": false,
2154
+ "options": [
2155
+ "draft",
2156
+ "scheduled",
2157
+ "sending"
2158
+ ],
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"
2166
+ }
2167
+ },
2168
+ "hasDynamicHelp": false,
2169
+ "hiddenAliases": [],
2170
+ "id": "broadcast:create",
2171
+ "pluginAlias": "@instantkom/cli",
2172
+ "pluginName": "@instantkom/cli",
2173
+ "pluginType": "core",
2174
+ "strict": true,
2175
+ "enableJsonFlag": false,
2176
+ "isESM": true,
2177
+ "relativePath": [
2178
+ "dist",
2179
+ "commands",
2180
+ "broadcast",
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,31 +2579,93 @@
2516
2579
  "hasDynamicHelp": false,
2517
2580
  "multiple": false,
2518
2581
  "type": "option"
2519
- },
2520
- "name": {
2521
- "description": "Channel name",
2522
- "name": "name",
2582
+ }
2583
+ },
2584
+ "hasDynamicHelp": false,
2585
+ "hiddenAliases": [],
2586
+ "id": "broadcast:send",
2587
+ "pluginAlias": "@instantkom/cli",
2588
+ "pluginName": "@instantkom/cli",
2589
+ "pluginType": "core",
2590
+ "strict": true,
2591
+ "enableJsonFlag": false,
2592
+ "isESM": true,
2593
+ "relativePath": [
2594
+ "dist",
2595
+ "commands",
2596
+ "broadcast",
2597
+ "send.js"
2598
+ ]
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",
2610
+ "flags": {
2611
+ "api-key": {
2612
+ "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
2613
+ "env": "IKM_API_KEY",
2614
+ "helpGroup": "GLOBAL",
2615
+ "name": "api-key",
2523
2616
  "hasDynamicHelp": false,
2524
2617
  "multiple": false,
2525
2618
  "type": "option"
2526
2619
  },
2527
- "status": {
2528
- "description": "Channel lifecycle status",
2529
- "name": "status",
2620
+ "format": {
2621
+ "description": "Output format: text, json, yaml, or table",
2622
+ "helpGroup": "GLOBAL",
2623
+ "name": "format",
2624
+ "default": "text",
2530
2625
  "hasDynamicHelp": false,
2531
2626
  "multiple": false,
2627
+ "options": [
2628
+ "text",
2629
+ "json",
2630
+ "yaml",
2631
+ "table"
2632
+ ],
2532
2633
  "type": "option"
2533
2634
  },
2534
- "description": {
2535
- "description": "Channel description",
2536
- "name": "description",
2635
+ "json": {
2636
+ "description": "Output in JSON format (alias for --format=json)",
2637
+ "helpGroup": "GLOBAL",
2638
+ "name": "json",
2639
+ "allowNo": false,
2640
+ "type": "boolean"
2641
+ },
2642
+ "quiet": {
2643
+ "description": "Suppress all output except errors",
2644
+ "helpGroup": "GLOBAL",
2645
+ "name": "quiet",
2646
+ "allowNo": false,
2647
+ "type": "boolean"
2648
+ },
2649
+ "no-color": {
2650
+ "description": "Disable color output",
2651
+ "helpGroup": "GLOBAL",
2652
+ "name": "no-color",
2653
+ "allowNo": false,
2654
+ "type": "boolean"
2655
+ },
2656
+ "profile": {
2657
+ "description": "Named configuration profile to use",
2658
+ "helpGroup": "GLOBAL",
2659
+ "name": "profile",
2660
+ "default": "default",
2537
2661
  "hasDynamicHelp": false,
2538
2662
  "multiple": false,
2539
2663
  "type": "option"
2540
2664
  },
2541
- "data": {
2542
- "description": "Additional JSON object payload",
2543
- "name": "data",
2665
+ "api-url": {
2666
+ "description": "Override the API base URL (e.g. for staging)",
2667
+ "helpGroup": "GLOBAL",
2668
+ "name": "api-url",
2544
2669
  "hasDynamicHelp": false,
2545
2670
  "multiple": false,
2546
2671
  "type": "option"
@@ -2548,7 +2673,7 @@
2548
2673
  },
2549
2674
  "hasDynamicHelp": false,
2550
2675
  "hiddenAliases": [],
2551
- "id": "channels:update",
2676
+ "id": "broadcast:status",
2552
2677
  "pluginAlias": "@instantkom/cli",
2553
2678
  "pluginName": "@instantkom/cli",
2554
2679
  "pluginType": "core",
@@ -2558,14 +2683,20 @@
2558
2683
  "relativePath": [
2559
2684
  "dist",
2560
2685
  "commands",
2561
- "channels",
2562
- "update.js"
2686
+ "broadcast",
2687
+ "status.js"
2563
2688
  ]
2564
2689
  },
2565
- "broadcast:create": {
2690
+ "broadcast:update": {
2566
2691
  "aliases": [],
2567
- "args": {},
2568
- "description": "Create a broadcast for channels or segments",
2692
+ "args": {
2693
+ "id": {
2694
+ "description": "Broadcast ID",
2695
+ "name": "id",
2696
+ "required": true
2697
+ }
2698
+ },
2699
+ "description": "Update a broadcast",
2569
2700
  "flags": {
2570
2701
  "api-key": {
2571
2702
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -2629,92 +2760,197 @@
2629
2760
  "multiple": false,
2630
2761
  "type": "option"
2631
2762
  },
2632
- "channel": {
2633
- "description": "Channel ID target",
2634
- "name": "channel",
2763
+ "text": {
2764
+ "description": "Broadcast message text",
2765
+ "name": "text",
2635
2766
  "hasDynamicHelp": false,
2636
2767
  "multiple": false,
2637
2768
  "type": "option"
2638
2769
  },
2639
- "segment": {
2640
- "description": "Segment ID within --channel",
2641
- "name": "segment",
2770
+ "send-status": {
2771
+ "description": "Send status",
2772
+ "name": "send-status",
2642
2773
  "hasDynamicHelp": false,
2643
2774
  "multiple": false,
2644
2775
  "type": "option"
2645
2776
  },
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,
2777
+ "scheduled-at": {
2778
+ "description": "Unix timestamp for scheduled send",
2779
+ "name": "scheduled-at",
2657
2780
  "hasDynamicHelp": false,
2658
2781
  "multiple": false,
2659
2782
  "type": "option"
2660
2783
  },
2661
- "send-at": {
2662
- "description": "Schedule send for an ISO-8601 date-time",
2663
- "name": "send-at",
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",
2664
2805
  "hasDynamicHelp": false,
2665
2806
  "multiple": false,
2666
2807
  "type": "option"
2667
2808
  },
2668
- "dry-run": {
2669
- "description": "Validate and print the broadcast payload without mutating API calls",
2670
- "name": "dry-run",
2809
+ "remove-media": {
2810
+ "description": "Remove existing media",
2811
+ "name": "remove-media",
2671
2812
  "allowNo": false,
2672
2813
  "type": "boolean"
2673
2814
  },
2674
- "idempotency-key": {
2675
- "description": "Idempotency key forwarded as Idempotency-Key",
2676
- "name": "idempotency-key",
2815
+ "header-footer": {
2816
+ "description": "Header/footer JSON array",
2817
+ "name": "header-footer",
2677
2818
  "hasDynamicHelp": false,
2678
2819
  "multiple": false,
2679
2820
  "type": "option"
2680
2821
  },
2681
- "media": {
2682
- "description": "Media file path to upload",
2683
- "name": "media",
2822
+ "data": {
2823
+ "description": "Additional JSON object payload",
2824
+ "name": "data",
2684
2825
  "hasDynamicHelp": false,
2685
- "multiple": true,
2826
+ "multiple": false,
2686
2827
  "type": "option"
2687
- },
2688
- "template-id": {
2689
- "description": "WhatsApp template ID",
2690
- "name": "template-id",
2828
+ }
2829
+ },
2830
+ "hasDynamicHelp": false,
2831
+ "hiddenAliases": [],
2832
+ "id": "broadcast:update",
2833
+ "pluginAlias": "@instantkom/cli",
2834
+ "pluginName": "@instantkom/cli",
2835
+ "pluginType": "core",
2836
+ "strict": true,
2837
+ "enableJsonFlag": false,
2838
+ "isESM": true,
2839
+ "relativePath": [
2840
+ "dist",
2841
+ "commands",
2842
+ "broadcast",
2843
+ "update.js"
2844
+ ]
2845
+ },
2846
+ "channels:create": {
2847
+ "aliases": [],
2848
+ "args": {},
2849
+ "description": "Create a channel",
2850
+ "flags": {
2851
+ "api-key": {
2852
+ "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
2853
+ "env": "IKM_API_KEY",
2854
+ "helpGroup": "GLOBAL",
2855
+ "name": "api-key",
2691
2856
  "hasDynamicHelp": false,
2692
2857
  "multiple": false,
2693
2858
  "type": "option"
2694
2859
  },
2695
- "send-status": {
2696
- "description": "Initial broadcast send status",
2697
- "name": "send-status",
2698
- "default": "draft",
2860
+ "format": {
2861
+ "description": "Output format: text, json, yaml, or table",
2862
+ "helpGroup": "GLOBAL",
2863
+ "name": "format",
2864
+ "default": "text",
2699
2865
  "hasDynamicHelp": false,
2700
2866
  "multiple": false,
2701
2867
  "options": [
2702
- "draft",
2703
- "scheduled",
2704
- "sending"
2868
+ "text",
2869
+ "json",
2870
+ "yaml",
2871
+ "table"
2705
2872
  ],
2706
2873
  "type": "option"
2707
2874
  },
2708
- "auto-approve": {
2709
- "description": "Auto-approve broadcast when allowed by API permissions",
2710
- "name": "auto-approve",
2875
+ "json": {
2876
+ "description": "Output in JSON format (alias for --format=json)",
2877
+ "helpGroup": "GLOBAL",
2878
+ "name": "json",
2711
2879
  "allowNo": false,
2712
2880
  "type": "boolean"
2881
+ },
2882
+ "quiet": {
2883
+ "description": "Suppress all output except errors",
2884
+ "helpGroup": "GLOBAL",
2885
+ "name": "quiet",
2886
+ "allowNo": false,
2887
+ "type": "boolean"
2888
+ },
2889
+ "no-color": {
2890
+ "description": "Disable color output",
2891
+ "helpGroup": "GLOBAL",
2892
+ "name": "no-color",
2893
+ "allowNo": false,
2894
+ "type": "boolean"
2895
+ },
2896
+ "profile": {
2897
+ "description": "Named configuration profile to use",
2898
+ "helpGroup": "GLOBAL",
2899
+ "name": "profile",
2900
+ "default": "default",
2901
+ "hasDynamicHelp": false,
2902
+ "multiple": false,
2903
+ "type": "option"
2904
+ },
2905
+ "api-url": {
2906
+ "description": "Override the API base URL (e.g. for staging)",
2907
+ "helpGroup": "GLOBAL",
2908
+ "name": "api-url",
2909
+ "hasDynamicHelp": false,
2910
+ "multiple": false,
2911
+ "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"
2713
2949
  }
2714
2950
  },
2715
2951
  "hasDynamicHelp": false,
2716
2952
  "hiddenAliases": [],
2717
- "id": "broadcast:create",
2953
+ "id": "channels:create",
2718
2954
  "pluginAlias": "@instantkom/cli",
2719
2955
  "pluginName": "@instantkom/cli",
2720
2956
  "pluginType": "core",
@@ -2724,20 +2960,20 @@
2724
2960
  "relativePath": [
2725
2961
  "dist",
2726
2962
  "commands",
2727
- "broadcast",
2963
+ "channels",
2728
2964
  "create.js"
2729
2965
  ]
2730
2966
  },
2731
- "broadcast:delete": {
2967
+ "channels:get": {
2732
2968
  "aliases": [],
2733
2969
  "args": {
2734
2970
  "id": {
2735
- "description": "broadcast ID",
2971
+ "description": "Channel ID",
2736
2972
  "name": "id",
2737
2973
  "required": true
2738
2974
  }
2739
2975
  },
2740
- "description": "Delete broadcast",
2976
+ "description": "Get a channel by ID",
2741
2977
  "flags": {
2742
2978
  "api-key": {
2743
2979
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -2804,7 +3040,7 @@
2804
3040
  },
2805
3041
  "hasDynamicHelp": false,
2806
3042
  "hiddenAliases": [],
2807
- "id": "broadcast:delete",
3043
+ "id": "channels:get",
2808
3044
  "pluginAlias": "@instantkom/cli",
2809
3045
  "pluginName": "@instantkom/cli",
2810
3046
  "pluginType": "core",
@@ -2814,20 +3050,20 @@
2814
3050
  "relativePath": [
2815
3051
  "dist",
2816
3052
  "commands",
2817
- "broadcast",
2818
- "delete.js"
3053
+ "channels",
3054
+ "get.js"
2819
3055
  ]
2820
3056
  },
2821
- "broadcast:get": {
3057
+ "channels:kpis": {
2822
3058
  "aliases": [],
2823
3059
  "args": {
2824
3060
  "id": {
2825
- "description": "broadcast ID",
3061
+ "description": "Optional channel ID; omit for aggregated channel KPIs",
2826
3062
  "name": "id",
2827
- "required": true
3063
+ "required": false
2828
3064
  }
2829
3065
  },
2830
- "description": "Get broadcast by ID",
3066
+ "description": "Get channel KPIs",
2831
3067
  "flags": {
2832
3068
  "api-key": {
2833
3069
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -2890,11 +3126,18 @@
2890
3126
  "hasDynamicHelp": false,
2891
3127
  "multiple": false,
2892
3128
  "type": "option"
3129
+ },
3130
+ "period": {
3131
+ "description": "KPI period",
3132
+ "name": "period",
3133
+ "hasDynamicHelp": false,
3134
+ "multiple": false,
3135
+ "type": "option"
2893
3136
  }
2894
3137
  },
2895
3138
  "hasDynamicHelp": false,
2896
3139
  "hiddenAliases": [],
2897
- "id": "broadcast:get",
3140
+ "id": "channels:kpis",
2898
3141
  "pluginAlias": "@instantkom/cli",
2899
3142
  "pluginName": "@instantkom/cli",
2900
3143
  "pluginType": "core",
@@ -2904,14 +3147,14 @@
2904
3147
  "relativePath": [
2905
3148
  "dist",
2906
3149
  "commands",
2907
- "broadcast",
2908
- "get.js"
3150
+ "channels",
3151
+ "kpis.js"
2909
3152
  ]
2910
3153
  },
2911
- "broadcast:list": {
3154
+ "channels:list": {
2912
3155
  "aliases": [],
2913
3156
  "args": {},
2914
- "description": "List broadcasts",
3157
+ "description": "List channels",
2915
3158
  "flags": {
2916
3159
  "api-key": {
2917
3160
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -2991,56 +3234,31 @@
2991
3234
  "multiple": false,
2992
3235
  "type": "option"
2993
3236
  },
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",
3237
+ "status": {
3238
+ "description": "Filter by channel status",
3239
+ "name": "status",
3004
3240
  "hasDynamicHelp": false,
3005
3241
  "multiple": false,
3006
3242
  "type": "option"
3007
3243
  },
3008
- "type": {
3009
- "description": "Broadcast type",
3010
- "name": "type",
3244
+ "gateway-type": {
3245
+ "description": "Filter by gateway type ID",
3246
+ "name": "gateway-type",
3011
3247
  "hasDynamicHelp": false,
3012
3248
  "multiple": false,
3013
- "options": [
3014
- "text",
3015
- "image",
3016
- "video",
3017
- "audio",
3018
- "document"
3019
- ],
3020
3249
  "type": "option"
3021
3250
  },
3022
3251
  "search": {
3023
- "description": "Search broadcasts",
3252
+ "description": "Search by channel name",
3024
3253
  "name": "search",
3025
3254
  "hasDynamicHelp": false,
3026
3255
  "multiple": false,
3027
3256
  "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
3257
  }
3040
3258
  },
3041
3259
  "hasDynamicHelp": false,
3042
3260
  "hiddenAliases": [],
3043
- "id": "broadcast:list",
3261
+ "id": "channels:list",
3044
3262
  "pluginAlias": "@instantkom/cli",
3045
3263
  "pluginName": "@instantkom/cli",
3046
3264
  "pluginType": "core",
@@ -3050,20 +3268,20 @@
3050
3268
  "relativePath": [
3051
3269
  "dist",
3052
3270
  "commands",
3053
- "broadcast",
3271
+ "channels",
3054
3272
  "list.js"
3055
3273
  ]
3056
3274
  },
3057
- "broadcast:send": {
3275
+ "channels:update": {
3058
3276
  "aliases": [],
3059
3277
  "args": {
3060
3278
  "id": {
3061
- "description": "Broadcast ID",
3279
+ "description": "Channel ID",
3062
3280
  "name": "id",
3063
3281
  "required": true
3064
3282
  }
3065
3283
  },
3066
- "description": "Send a broadcast immediately",
3284
+ "description": "Update a channel",
3067
3285
  "flags": {
3068
3286
  "api-key": {
3069
3287
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -3126,242 +3344,24 @@
3126
3344
  "hasDynamicHelp": false,
3127
3345
  "multiple": false,
3128
3346
  "type": "option"
3129
- }
3130
- },
3131
- "hasDynamicHelp": false,
3132
- "hiddenAliases": [],
3133
- "id": "broadcast:send",
3134
- "pluginAlias": "@instantkom/cli",
3135
- "pluginName": "@instantkom/cli",
3136
- "pluginType": "core",
3137
- "strict": true,
3138
- "enableJsonFlag": false,
3139
- "isESM": true,
3140
- "relativePath": [
3141
- "dist",
3142
- "commands",
3143
- "broadcast",
3144
- "send.js"
3145
- ]
3146
- },
3147
- "broadcast:status": {
3148
- "aliases": [],
3149
- "args": {
3150
- "id": {
3151
- "description": "Broadcast ID",
3152
- "name": "id",
3153
- "required": true
3154
- }
3155
- },
3156
- "description": "Show broadcast send status",
3157
- "flags": {
3158
- "api-key": {
3159
- "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
3160
- "env": "IKM_API_KEY",
3161
- "helpGroup": "GLOBAL",
3162
- "name": "api-key",
3163
- "hasDynamicHelp": false,
3164
- "multiple": false,
3165
- "type": "option"
3166
- },
3167
- "format": {
3168
- "description": "Output format: text, json, yaml, or table",
3169
- "helpGroup": "GLOBAL",
3170
- "name": "format",
3171
- "default": "text",
3172
- "hasDynamicHelp": false,
3173
- "multiple": false,
3174
- "options": [
3175
- "text",
3176
- "json",
3177
- "yaml",
3178
- "table"
3179
- ],
3180
- "type": "option"
3181
- },
3182
- "json": {
3183
- "description": "Output in JSON format (alias for --format=json)",
3184
- "helpGroup": "GLOBAL",
3185
- "name": "json",
3186
- "allowNo": false,
3187
- "type": "boolean"
3188
- },
3189
- "quiet": {
3190
- "description": "Suppress all output except errors",
3191
- "helpGroup": "GLOBAL",
3192
- "name": "quiet",
3193
- "allowNo": false,
3194
- "type": "boolean"
3195
- },
3196
- "no-color": {
3197
- "description": "Disable color output",
3198
- "helpGroup": "GLOBAL",
3199
- "name": "no-color",
3200
- "allowNo": false,
3201
- "type": "boolean"
3202
- },
3203
- "profile": {
3204
- "description": "Named configuration profile to use",
3205
- "helpGroup": "GLOBAL",
3206
- "name": "profile",
3207
- "default": "default",
3208
- "hasDynamicHelp": false,
3209
- "multiple": false,
3210
- "type": "option"
3211
- },
3212
- "api-url": {
3213
- "description": "Override the API base URL (e.g. for staging)",
3214
- "helpGroup": "GLOBAL",
3215
- "name": "api-url",
3216
- "hasDynamicHelp": false,
3217
- "multiple": false,
3218
- "type": "option"
3219
- }
3220
- },
3221
- "hasDynamicHelp": false,
3222
- "hiddenAliases": [],
3223
- "id": "broadcast:status",
3224
- "pluginAlias": "@instantkom/cli",
3225
- "pluginName": "@instantkom/cli",
3226
- "pluginType": "core",
3227
- "strict": true,
3228
- "enableJsonFlag": false,
3229
- "isESM": true,
3230
- "relativePath": [
3231
- "dist",
3232
- "commands",
3233
- "broadcast",
3234
- "status.js"
3235
- ]
3236
- },
3237
- "broadcast:update": {
3238
- "aliases": [],
3239
- "args": {
3240
- "id": {
3241
- "description": "Broadcast ID",
3242
- "name": "id",
3243
- "required": true
3244
- }
3245
- },
3246
- "description": "Update a broadcast",
3247
- "flags": {
3248
- "api-key": {
3249
- "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
3250
- "env": "IKM_API_KEY",
3251
- "helpGroup": "GLOBAL",
3252
- "name": "api-key",
3253
- "hasDynamicHelp": false,
3254
- "multiple": false,
3255
- "type": "option"
3256
- },
3257
- "format": {
3258
- "description": "Output format: text, json, yaml, or table",
3259
- "helpGroup": "GLOBAL",
3260
- "name": "format",
3261
- "default": "text",
3262
- "hasDynamicHelp": false,
3263
- "multiple": false,
3264
- "options": [
3265
- "text",
3266
- "json",
3267
- "yaml",
3268
- "table"
3269
- ],
3270
- "type": "option"
3271
- },
3272
- "json": {
3273
- "description": "Output in JSON format (alias for --format=json)",
3274
- "helpGroup": "GLOBAL",
3275
- "name": "json",
3276
- "allowNo": false,
3277
- "type": "boolean"
3278
- },
3279
- "quiet": {
3280
- "description": "Suppress all output except errors",
3281
- "helpGroup": "GLOBAL",
3282
- "name": "quiet",
3283
- "allowNo": false,
3284
- "type": "boolean"
3285
- },
3286
- "no-color": {
3287
- "description": "Disable color output",
3288
- "helpGroup": "GLOBAL",
3289
- "name": "no-color",
3290
- "allowNo": false,
3291
- "type": "boolean"
3292
- },
3293
- "profile": {
3294
- "description": "Named configuration profile to use",
3295
- "helpGroup": "GLOBAL",
3296
- "name": "profile",
3297
- "default": "default",
3298
- "hasDynamicHelp": false,
3299
- "multiple": false,
3300
- "type": "option"
3301
- },
3302
- "api-url": {
3303
- "description": "Override the API base URL (e.g. for staging)",
3304
- "helpGroup": "GLOBAL",
3305
- "name": "api-url",
3306
- "hasDynamicHelp": false,
3307
- "multiple": false,
3308
- "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
3347
  },
3324
- "scheduled-at": {
3325
- "description": "Unix timestamp for scheduled send",
3326
- "name": "scheduled-at",
3348
+ "name": {
3349
+ "description": "Channel name",
3350
+ "name": "name",
3327
3351
  "hasDynamicHelp": false,
3328
3352
  "multiple": false,
3329
3353
  "type": "option"
3330
3354
  },
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",
3355
+ "status": {
3356
+ "description": "Channel lifecycle status",
3357
+ "name": "status",
3352
3358
  "hasDynamicHelp": false,
3353
3359
  "multiple": false,
3354
3360
  "type": "option"
3355
3361
  },
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",
3362
+ "description": {
3363
+ "description": "Channel description",
3364
+ "name": "description",
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": "broadcast:update",
3379
+ "id": "channels: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
- "broadcast",
3389
+ "channels",
3390
3390
  "update.js"
3391
3391
  ]
3392
3392
  },
@@ -8150,10 +8150,10 @@
8150
8150
  "update.js"
8151
8151
  ]
8152
8152
  },
8153
- "team:create": {
8153
+ "tags:create": {
8154
8154
  "aliases": [],
8155
8155
  "args": {},
8156
- "description": "Create a team member",
8156
+ "description": "Create a tag",
8157
8157
  "flags": {
8158
8158
  "api-key": {
8159
8159
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -8217,54 +8217,23 @@
8217
8217
  "multiple": false,
8218
8218
  "type": "option"
8219
8219
  },
8220
- "email": {
8221
- "description": "Email address",
8222
- "name": "email",
8220
+ "name": {
8221
+ "description": "Tag name",
8222
+ "name": "name",
8223
8223
  "required": true,
8224
8224
  "hasDynamicHelp": false,
8225
8225
  "multiple": false,
8226
8226
  "type": "option"
8227
8227
  },
8228
- "first-name": {
8229
- "description": "First name",
8230
- "name": "first-name",
8231
- "required": true,
8232
- "hasDynamicHelp": false,
8233
- "multiple": false,
8234
- "type": "option"
8235
- },
8236
- "last-name": {
8237
- "description": "Last name",
8238
- "name": "last-name",
8239
- "required": true,
8240
- "hasDynamicHelp": false,
8241
- "multiple": false,
8242
- "type": "option"
8243
- },
8244
- "password": {
8245
- "description": "Initial password",
8246
- "name": "password",
8247
- "required": true,
8248
- "hasDynamicHelp": false,
8249
- "multiple": false,
8250
- "type": "option"
8251
- },
8252
- "phone": {
8253
- "description": "Phone number",
8254
- "name": "phone",
8255
- "hasDynamicHelp": false,
8256
- "multiple": false,
8257
- "type": "option"
8258
- },
8259
- "company": {
8260
- "description": "Company name",
8261
- "name": "company",
8228
+ "description": {
8229
+ "description": "Tag description",
8230
+ "name": "description",
8262
8231
  "hasDynamicHelp": false,
8263
8232
  "multiple": false,
8264
8233
  "type": "option"
8265
8234
  },
8266
8235
  "color": {
8267
- "description": "Color as HEX",
8236
+ "description": "Tag color as HEX",
8268
8237
  "name": "color",
8269
8238
  "hasDynamicHelp": false,
8270
8239
  "multiple": false,
@@ -8287,7 +8256,7 @@
8287
8256
  },
8288
8257
  "hasDynamicHelp": false,
8289
8258
  "hiddenAliases": [],
8290
- "id": "team:create",
8259
+ "id": "tags:create",
8291
8260
  "pluginAlias": "@instantkom/cli",
8292
8261
  "pluginName": "@instantkom/cli",
8293
8262
  "pluginType": "core",
@@ -8297,20 +8266,20 @@
8297
8266
  "relativePath": [
8298
8267
  "dist",
8299
8268
  "commands",
8300
- "team",
8269
+ "tags",
8301
8270
  "create.js"
8302
8271
  ]
8303
8272
  },
8304
- "team:delete": {
8273
+ "tags:delete": {
8305
8274
  "aliases": [],
8306
8275
  "args": {
8307
8276
  "id": {
8308
- "description": "Team member ID",
8277
+ "description": "tag ID",
8309
8278
  "name": "id",
8310
8279
  "required": true
8311
8280
  }
8312
8281
  },
8313
- "description": "Delete a team member",
8282
+ "description": "Delete tag",
8314
8283
  "flags": {
8315
8284
  "api-key": {
8316
8285
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -8377,7 +8346,7 @@
8377
8346
  },
8378
8347
  "hasDynamicHelp": false,
8379
8348
  "hiddenAliases": [],
8380
- "id": "team:delete",
8349
+ "id": "tags:delete",
8381
8350
  "pluginAlias": "@instantkom/cli",
8382
8351
  "pluginName": "@instantkom/cli",
8383
8352
  "pluginType": "core",
@@ -8387,14 +8356,14 @@
8387
8356
  "relativePath": [
8388
8357
  "dist",
8389
8358
  "commands",
8390
- "team",
8359
+ "tags",
8391
8360
  "delete.js"
8392
8361
  ]
8393
8362
  },
8394
- "team:list": {
8363
+ "tags:export": {
8395
8364
  "aliases": [],
8396
8365
  "args": {},
8397
- "description": "List team members",
8366
+ "description": "Export tags to a file",
8398
8367
  "flags": {
8399
8368
  "api-key": {
8400
8369
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -8406,17 +8375,14 @@
8406
8375
  "type": "option"
8407
8376
  },
8408
8377
  "format": {
8409
- "description": "Output format: text, json, yaml, or table",
8410
- "helpGroup": "GLOBAL",
8378
+ "description": "Export format",
8411
8379
  "name": "format",
8412
- "default": "text",
8380
+ "default": "csv",
8413
8381
  "hasDynamicHelp": false,
8414
8382
  "multiple": false,
8415
8383
  "options": [
8416
- "text",
8417
- "json",
8418
- "yaml",
8419
- "table"
8384
+ "csv",
8385
+ "json"
8420
8386
  ],
8421
8387
  "type": "option"
8422
8388
  },
@@ -8457,11 +8423,19 @@
8457
8423
  "hasDynamicHelp": false,
8458
8424
  "multiple": false,
8459
8425
  "type": "option"
8426
+ },
8427
+ "file": {
8428
+ "description": "Output file path",
8429
+ "name": "file",
8430
+ "required": true,
8431
+ "hasDynamicHelp": false,
8432
+ "multiple": false,
8433
+ "type": "option"
8460
8434
  }
8461
8435
  },
8462
8436
  "hasDynamicHelp": false,
8463
8437
  "hiddenAliases": [],
8464
- "id": "team:list",
8438
+ "id": "tags:export",
8465
8439
  "pluginAlias": "@instantkom/cli",
8466
8440
  "pluginName": "@instantkom/cli",
8467
8441
  "pluginType": "core",
@@ -8471,14 +8445,20 @@
8471
8445
  "relativePath": [
8472
8446
  "dist",
8473
8447
  "commands",
8474
- "team",
8475
- "list.js"
8448
+ "tags",
8449
+ "export.js"
8476
8450
  ]
8477
8451
  },
8478
- "tags:create": {
8452
+ "tags:get": {
8479
8453
  "aliases": [],
8480
- "args": {},
8481
- "description": "Create a tag",
8454
+ "args": {
8455
+ "id": {
8456
+ "description": "tag ID",
8457
+ "name": "id",
8458
+ "required": true
8459
+ }
8460
+ },
8461
+ "description": "Get tag by ID",
8482
8462
  "flags": {
8483
8463
  "api-key": {
8484
8464
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -8541,47 +8521,11 @@
8541
8521
  "hasDynamicHelp": false,
8542
8522
  "multiple": false,
8543
8523
  "type": "option"
8544
- },
8545
- "name": {
8546
- "description": "Tag name",
8547
- "name": "name",
8548
- "required": true,
8549
- "hasDynamicHelp": false,
8550
- "multiple": false,
8551
- "type": "option"
8552
- },
8553
- "description": {
8554
- "description": "Tag description",
8555
- "name": "description",
8556
- "hasDynamicHelp": false,
8557
- "multiple": false,
8558
- "type": "option"
8559
- },
8560
- "color": {
8561
- "description": "Tag color as HEX",
8562
- "name": "color",
8563
- "hasDynamicHelp": false,
8564
- "multiple": false,
8565
- "type": "option"
8566
- },
8567
- "folder": {
8568
- "description": "Object folder ID",
8569
- "name": "folder",
8570
- "hasDynamicHelp": false,
8571
- "multiple": false,
8572
- "type": "option"
8573
- },
8574
- "data": {
8575
- "description": "Additional JSON object payload",
8576
- "name": "data",
8577
- "hasDynamicHelp": false,
8578
- "multiple": false,
8579
- "type": "option"
8580
8524
  }
8581
8525
  },
8582
8526
  "hasDynamicHelp": false,
8583
8527
  "hiddenAliases": [],
8584
- "id": "tags:create",
8528
+ "id": "tags:get",
8585
8529
  "pluginAlias": "@instantkom/cli",
8586
8530
  "pluginName": "@instantkom/cli",
8587
8531
  "pluginType": "core",
@@ -8592,19 +8536,13 @@
8592
8536
  "dist",
8593
8537
  "commands",
8594
8538
  "tags",
8595
- "create.js"
8539
+ "get.js"
8596
8540
  ]
8597
8541
  },
8598
- "tags:delete": {
8542
+ "tags:import": {
8599
8543
  "aliases": [],
8600
- "args": {
8601
- "id": {
8602
- "description": "tag ID",
8603
- "name": "id",
8604
- "required": true
8605
- }
8606
- },
8607
- "description": "Delete tag",
8544
+ "args": {},
8545
+ "description": "Import tags from JSON",
8608
8546
  "flags": {
8609
8547
  "api-key": {
8610
8548
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -8667,11 +8605,25 @@
8667
8605
  "hasDynamicHelp": false,
8668
8606
  "multiple": false,
8669
8607
  "type": "option"
8608
+ },
8609
+ "file": {
8610
+ "description": "JSON file path",
8611
+ "name": "file",
8612
+ "required": true,
8613
+ "hasDynamicHelp": false,
8614
+ "multiple": false,
8615
+ "type": "option"
8616
+ },
8617
+ "skip-duplicates": {
8618
+ "description": "Skip duplicate tags",
8619
+ "name": "skip-duplicates",
8620
+ "allowNo": true,
8621
+ "type": "boolean"
8670
8622
  }
8671
8623
  },
8672
8624
  "hasDynamicHelp": false,
8673
8625
  "hiddenAliases": [],
8674
- "id": "tags:delete",
8626
+ "id": "tags:import",
8675
8627
  "pluginAlias": "@instantkom/cli",
8676
8628
  "pluginName": "@instantkom/cli",
8677
8629
  "pluginType": "core",
@@ -8682,13 +8634,13 @@
8682
8634
  "dist",
8683
8635
  "commands",
8684
8636
  "tags",
8685
- "delete.js"
8637
+ "import.js"
8686
8638
  ]
8687
8639
  },
8688
- "tags:export": {
8640
+ "tags:list": {
8689
8641
  "aliases": [],
8690
8642
  "args": {},
8691
- "description": "Export tags to a file",
8643
+ "description": "List tags",
8692
8644
  "flags": {
8693
8645
  "api-key": {
8694
8646
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -8700,14 +8652,17 @@
8700
8652
  "type": "option"
8701
8653
  },
8702
8654
  "format": {
8703
- "description": "Export format",
8655
+ "description": "Output format: text, json, yaml, or table",
8656
+ "helpGroup": "GLOBAL",
8704
8657
  "name": "format",
8705
- "default": "csv",
8658
+ "default": "text",
8706
8659
  "hasDynamicHelp": false,
8707
8660
  "multiple": false,
8708
8661
  "options": [
8709
- "csv",
8710
- "json"
8662
+ "text",
8663
+ "json",
8664
+ "yaml",
8665
+ "table"
8711
8666
  ],
8712
8667
  "type": "option"
8713
8668
  },
@@ -8749,10 +8704,32 @@
8749
8704
  "multiple": false,
8750
8705
  "type": "option"
8751
8706
  },
8752
- "file": {
8753
- "description": "Output file path",
8754
- "name": "file",
8755
- "required": true,
8707
+ "page": {
8708
+ "description": "Page number",
8709
+ "name": "page",
8710
+ "default": 1,
8711
+ "hasDynamicHelp": false,
8712
+ "multiple": false,
8713
+ "type": "option"
8714
+ },
8715
+ "limit": {
8716
+ "description": "Items per page",
8717
+ "name": "limit",
8718
+ "default": 20,
8719
+ "hasDynamicHelp": false,
8720
+ "multiple": false,
8721
+ "type": "option"
8722
+ },
8723
+ "search": {
8724
+ "description": "Search by name",
8725
+ "name": "search",
8726
+ "hasDynamicHelp": false,
8727
+ "multiple": false,
8728
+ "type": "option"
8729
+ },
8730
+ "color": {
8731
+ "description": "Filter by color",
8732
+ "name": "color",
8756
8733
  "hasDynamicHelp": false,
8757
8734
  "multiple": false,
8758
8735
  "type": "option"
@@ -8760,7 +8737,7 @@
8760
8737
  },
8761
8738
  "hasDynamicHelp": false,
8762
8739
  "hiddenAliases": [],
8763
- "id": "tags:export",
8740
+ "id": "tags:list",
8764
8741
  "pluginAlias": "@instantkom/cli",
8765
8742
  "pluginName": "@instantkom/cli",
8766
8743
  "pluginType": "core",
@@ -8771,19 +8748,19 @@
8771
8748
  "dist",
8772
8749
  "commands",
8773
8750
  "tags",
8774
- "export.js"
8751
+ "list.js"
8775
8752
  ]
8776
8753
  },
8777
- "tags:get": {
8754
+ "tags:update": {
8778
8755
  "aliases": [],
8779
8756
  "args": {
8780
8757
  "id": {
8781
- "description": "tag ID",
8758
+ "description": "Tag ID",
8782
8759
  "name": "id",
8783
8760
  "required": true
8784
8761
  }
8785
8762
  },
8786
- "description": "Get tag by ID",
8763
+ "description": "Update a tag",
8787
8764
  "flags": {
8788
8765
  "api-key": {
8789
8766
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -8846,11 +8823,46 @@
8846
8823
  "hasDynamicHelp": false,
8847
8824
  "multiple": false,
8848
8825
  "type": "option"
8826
+ },
8827
+ "name": {
8828
+ "description": "Tag name",
8829
+ "name": "name",
8830
+ "hasDynamicHelp": false,
8831
+ "multiple": false,
8832
+ "type": "option"
8833
+ },
8834
+ "description": {
8835
+ "description": "Tag description",
8836
+ "name": "description",
8837
+ "hasDynamicHelp": false,
8838
+ "multiple": false,
8839
+ "type": "option"
8840
+ },
8841
+ "color": {
8842
+ "description": "Tag color as HEX",
8843
+ "name": "color",
8844
+ "hasDynamicHelp": false,
8845
+ "multiple": false,
8846
+ "type": "option"
8847
+ },
8848
+ "folder": {
8849
+ "description": "Object folder ID",
8850
+ "name": "folder",
8851
+ "hasDynamicHelp": false,
8852
+ "multiple": false,
8853
+ "type": "option"
8854
+ },
8855
+ "data": {
8856
+ "description": "Additional JSON object payload",
8857
+ "name": "data",
8858
+ "hasDynamicHelp": false,
8859
+ "multiple": false,
8860
+ "type": "option"
8849
8861
  }
8850
8862
  },
8851
8863
  "hasDynamicHelp": false,
8852
8864
  "hiddenAliases": [],
8853
- "id": "tags:get",
8865
+ "id": "tags:update",
8854
8866
  "pluginAlias": "@instantkom/cli",
8855
8867
  "pluginName": "@instantkom/cli",
8856
8868
  "pluginType": "core",
@@ -8861,13 +8873,13 @@
8861
8873
  "dist",
8862
8874
  "commands",
8863
8875
  "tags",
8864
- "get.js"
8876
+ "update.js"
8865
8877
  ]
8866
8878
  },
8867
- "tags:import": {
8879
+ "tags:validate-import": {
8868
8880
  "aliases": [],
8869
8881
  "args": {},
8870
- "description": "Import tags from JSON",
8882
+ "description": "Validate tags import JSON",
8871
8883
  "flags": {
8872
8884
  "api-key": {
8873
8885
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -8938,17 +8950,11 @@
8938
8950
  "hasDynamicHelp": false,
8939
8951
  "multiple": false,
8940
8952
  "type": "option"
8941
- },
8942
- "skip-duplicates": {
8943
- "description": "Skip duplicate tags",
8944
- "name": "skip-duplicates",
8945
- "allowNo": true,
8946
- "type": "boolean"
8947
8953
  }
8948
8954
  },
8949
8955
  "hasDynamicHelp": false,
8950
8956
  "hiddenAliases": [],
8951
- "id": "tags:import",
8957
+ "id": "tags:validate-import",
8952
8958
  "pluginAlias": "@instantkom/cli",
8953
8959
  "pluginName": "@instantkom/cli",
8954
8960
  "pluginType": "core",
@@ -8959,13 +8965,13 @@
8959
8965
  "dist",
8960
8966
  "commands",
8961
8967
  "tags",
8962
- "import.js"
8968
+ "validate-import.js"
8963
8969
  ]
8964
8970
  },
8965
- "tags:list": {
8971
+ "templates:create": {
8966
8972
  "aliases": [],
8967
8973
  "args": {},
8968
- "description": "List tags",
8974
+ "description": "Create a message template",
8969
8975
  "flags": {
8970
8976
  "api-key": {
8971
8977
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -9029,40 +9035,93 @@
9029
9035
  "multiple": false,
9030
9036
  "type": "option"
9031
9037
  },
9032
- "page": {
9033
- "description": "Page number",
9034
- "name": "page",
9035
- "default": 1,
9038
+ "channel": {
9039
+ "description": "Channel ID",
9040
+ "name": "channel",
9041
+ "required": true,
9036
9042
  "hasDynamicHelp": false,
9037
9043
  "multiple": false,
9038
9044
  "type": "option"
9039
9045
  },
9040
- "limit": {
9041
- "description": "Items per page",
9042
- "name": "limit",
9043
- "default": 20,
9046
+ "name": {
9047
+ "description": "Template name",
9048
+ "name": "name",
9049
+ "required": true,
9044
9050
  "hasDynamicHelp": false,
9045
9051
  "multiple": false,
9046
9052
  "type": "option"
9047
9053
  },
9048
- "search": {
9049
- "description": "Search by name",
9050
- "name": "search",
9054
+ "type": {
9055
+ "description": "Template type",
9056
+ "name": "type",
9057
+ "default": "text",
9058
+ "hasDynamicHelp": false,
9059
+ "multiple": false,
9060
+ "options": [
9061
+ "text",
9062
+ "image",
9063
+ "video",
9064
+ "document",
9065
+ "audio",
9066
+ "location",
9067
+ "contact",
9068
+ "interactive"
9069
+ ],
9070
+ "type": "option"
9071
+ },
9072
+ "message": {
9073
+ "description": "Template message",
9074
+ "name": "message",
9075
+ "required": true,
9051
9076
  "hasDynamicHelp": false,
9052
9077
  "multiple": false,
9053
9078
  "type": "option"
9054
9079
  },
9055
9080
  "color": {
9056
- "description": "Filter by color",
9081
+ "description": "Template color as HEX",
9057
9082
  "name": "color",
9058
9083
  "hasDynamicHelp": false,
9059
9084
  "multiple": false,
9060
9085
  "type": "option"
9086
+ },
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",
9096
+ "hasDynamicHelp": false,
9097
+ "multiple": false,
9098
+ "type": "option"
9099
+ },
9100
+ "buttons": {
9101
+ "description": "Buttons JSON array/object",
9102
+ "name": "buttons",
9103
+ "hasDynamicHelp": false,
9104
+ "multiple": false,
9105
+ "type": "option"
9106
+ },
9107
+ "header-footer": {
9108
+ "description": "Header/footer JSON object",
9109
+ "name": "header-footer",
9110
+ "hasDynamicHelp": false,
9111
+ "multiple": false,
9112
+ "type": "option"
9113
+ },
9114
+ "data": {
9115
+ "description": "Additional JSON object payload",
9116
+ "name": "data",
9117
+ "hasDynamicHelp": false,
9118
+ "multiple": false,
9119
+ "type": "option"
9061
9120
  }
9062
9121
  },
9063
9122
  "hasDynamicHelp": false,
9064
9123
  "hiddenAliases": [],
9065
- "id": "tags:list",
9124
+ "id": "templates:create",
9066
9125
  "pluginAlias": "@instantkom/cli",
9067
9126
  "pluginName": "@instantkom/cli",
9068
9127
  "pluginType": "core",
@@ -9072,20 +9131,20 @@
9072
9131
  "relativePath": [
9073
9132
  "dist",
9074
9133
  "commands",
9075
- "tags",
9076
- "list.js"
9134
+ "templates",
9135
+ "create.js"
9077
9136
  ]
9078
9137
  },
9079
- "tags:update": {
9138
+ "templates:delete": {
9080
9139
  "aliases": [],
9081
9140
  "args": {
9082
9141
  "id": {
9083
- "description": "Tag ID",
9142
+ "description": "template ID",
9084
9143
  "name": "id",
9085
9144
  "required": true
9086
9145
  }
9087
9146
  },
9088
- "description": "Update a tag",
9147
+ "description": "Delete template",
9089
9148
  "flags": {
9090
9149
  "api-key": {
9091
9150
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -9148,38 +9207,99 @@
9148
9207
  "hasDynamicHelp": false,
9149
9208
  "multiple": false,
9150
9209
  "type": "option"
9210
+ }
9211
+ },
9212
+ "hasDynamicHelp": false,
9213
+ "hiddenAliases": [],
9214
+ "id": "templates:delete",
9215
+ "pluginAlias": "@instantkom/cli",
9216
+ "pluginName": "@instantkom/cli",
9217
+ "pluginType": "core",
9218
+ "strict": true,
9219
+ "enableJsonFlag": false,
9220
+ "isESM": true,
9221
+ "relativePath": [
9222
+ "dist",
9223
+ "commands",
9224
+ "templates",
9225
+ "delete.js"
9226
+ ]
9227
+ },
9228
+ "templates:export": {
9229
+ "aliases": [],
9230
+ "args": {},
9231
+ "description": "Export templates to a file",
9232
+ "flags": {
9233
+ "api-key": {
9234
+ "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
9235
+ "env": "IKM_API_KEY",
9236
+ "helpGroup": "GLOBAL",
9237
+ "name": "api-key",
9238
+ "hasDynamicHelp": false,
9239
+ "multiple": false,
9240
+ "type": "option"
9151
9241
  },
9152
- "name": {
9153
- "description": "Tag name",
9154
- "name": "name",
9242
+ "format": {
9243
+ "description": "Export format",
9244
+ "name": "format",
9245
+ "default": "json",
9155
9246
  "hasDynamicHelp": false,
9156
9247
  "multiple": false,
9248
+ "options": [
9249
+ "csv",
9250
+ "json"
9251
+ ],
9157
9252
  "type": "option"
9158
9253
  },
9159
- "description": {
9160
- "description": "Tag description",
9161
- "name": "description",
9254
+ "json": {
9255
+ "description": "Output in JSON format (alias for --format=json)",
9256
+ "helpGroup": "GLOBAL",
9257
+ "name": "json",
9258
+ "allowNo": false,
9259
+ "type": "boolean"
9260
+ },
9261
+ "quiet": {
9262
+ "description": "Suppress all output except errors",
9263
+ "helpGroup": "GLOBAL",
9264
+ "name": "quiet",
9265
+ "allowNo": false,
9266
+ "type": "boolean"
9267
+ },
9268
+ "no-color": {
9269
+ "description": "Disable color output",
9270
+ "helpGroup": "GLOBAL",
9271
+ "name": "no-color",
9272
+ "allowNo": false,
9273
+ "type": "boolean"
9274
+ },
9275
+ "profile": {
9276
+ "description": "Named configuration profile to use",
9277
+ "helpGroup": "GLOBAL",
9278
+ "name": "profile",
9279
+ "default": "default",
9162
9280
  "hasDynamicHelp": false,
9163
9281
  "multiple": false,
9164
9282
  "type": "option"
9165
9283
  },
9166
- "color": {
9167
- "description": "Tag color as HEX",
9168
- "name": "color",
9284
+ "api-url": {
9285
+ "description": "Override the API base URL (e.g. for staging)",
9286
+ "helpGroup": "GLOBAL",
9287
+ "name": "api-url",
9169
9288
  "hasDynamicHelp": false,
9170
9289
  "multiple": false,
9171
9290
  "type": "option"
9172
9291
  },
9173
- "folder": {
9174
- "description": "Object folder ID",
9175
- "name": "folder",
9292
+ "file": {
9293
+ "description": "Output file path",
9294
+ "name": "file",
9295
+ "required": true,
9176
9296
  "hasDynamicHelp": false,
9177
9297
  "multiple": false,
9178
9298
  "type": "option"
9179
9299
  },
9180
- "data": {
9181
- "description": "Additional JSON object payload",
9182
- "name": "data",
9300
+ "channel": {
9301
+ "description": "Filter by channel ID",
9302
+ "name": "channel",
9183
9303
  "hasDynamicHelp": false,
9184
9304
  "multiple": false,
9185
9305
  "type": "option"
@@ -9187,7 +9307,7 @@
9187
9307
  },
9188
9308
  "hasDynamicHelp": false,
9189
9309
  "hiddenAliases": [],
9190
- "id": "tags:update",
9310
+ "id": "templates:export",
9191
9311
  "pluginAlias": "@instantkom/cli",
9192
9312
  "pluginName": "@instantkom/cli",
9193
9313
  "pluginType": "core",
@@ -9197,14 +9317,20 @@
9197
9317
  "relativePath": [
9198
9318
  "dist",
9199
9319
  "commands",
9200
- "tags",
9201
- "update.js"
9320
+ "templates",
9321
+ "export.js"
9202
9322
  ]
9203
9323
  },
9204
- "tags:validate-import": {
9324
+ "templates:get": {
9205
9325
  "aliases": [],
9206
- "args": {},
9207
- "description": "Validate tags import JSON",
9326
+ "args": {
9327
+ "id": {
9328
+ "description": "Template ID",
9329
+ "name": "id",
9330
+ "required": true
9331
+ }
9332
+ },
9333
+ "description": "Get a message template by ID",
9208
9334
  "flags": {
9209
9335
  "api-key": {
9210
9336
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -9267,19 +9393,11 @@
9267
9393
  "hasDynamicHelp": false,
9268
9394
  "multiple": false,
9269
9395
  "type": "option"
9270
- },
9271
- "file": {
9272
- "description": "JSON file path",
9273
- "name": "file",
9274
- "required": true,
9275
- "hasDynamicHelp": false,
9276
- "multiple": false,
9277
- "type": "option"
9278
9396
  }
9279
9397
  },
9280
9398
  "hasDynamicHelp": false,
9281
9399
  "hiddenAliases": [],
9282
- "id": "tags:validate-import",
9400
+ "id": "templates:get",
9283
9401
  "pluginAlias": "@instantkom/cli",
9284
9402
  "pluginName": "@instantkom/cli",
9285
9403
  "pluginType": "core",
@@ -9289,14 +9407,14 @@
9289
9407
  "relativePath": [
9290
9408
  "dist",
9291
9409
  "commands",
9292
- "tags",
9293
- "validate-import.js"
9410
+ "templates",
9411
+ "get.js"
9294
9412
  ]
9295
9413
  },
9296
- "tickets:create": {
9414
+ "templates:import": {
9297
9415
  "aliases": [],
9298
9416
  "args": {},
9299
- "description": "Create a ticket",
9417
+ "description": "Import templates from JSON",
9300
9418
  "flags": {
9301
9419
  "api-key": {
9302
9420
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -9360,68 +9478,32 @@
9360
9478
  "multiple": false,
9361
9479
  "type": "option"
9362
9480
  },
9363
- "channel": {
9364
- "description": "Channel ID",
9365
- "name": "channel",
9481
+ "file": {
9482
+ "description": "JSON file path",
9483
+ "name": "file",
9366
9484
  "required": true,
9367
9485
  "hasDynamicHelp": false,
9368
9486
  "multiple": false,
9369
9487
  "type": "option"
9370
9488
  },
9371
- "subject": {
9372
- "description": "Ticket subject",
9373
- "name": "subject",
9489
+ "channel": {
9490
+ "description": "Target channel ID",
9491
+ "name": "channel",
9374
9492
  "required": true,
9375
9493
  "hasDynamicHelp": false,
9376
9494
  "multiple": false,
9377
9495
  "type": "option"
9378
9496
  },
9379
- "recipient": {
9380
- "description": "Existing recipient ID",
9381
- "name": "recipient",
9382
- "hasDynamicHelp": false,
9383
- "multiple": false,
9384
- "type": "option"
9385
- },
9386
- "email": {
9387
- "description": "Customer email",
9388
- "name": "email",
9389
- "hasDynamicHelp": false,
9390
- "multiple": false,
9391
- "type": "option"
9392
- },
9393
- "name": {
9394
- "description": "Customer name",
9395
- "name": "name",
9396
- "hasDynamicHelp": false,
9397
- "multiple": false,
9398
- "type": "option"
9399
- },
9400
- "priority": {
9401
- "description": "Ticket priority",
9402
- "name": "priority",
9403
- "hasDynamicHelp": false,
9404
- "multiple": false,
9405
- "type": "option"
9406
- },
9407
- "source": {
9408
- "description": "Ticket source",
9409
- "name": "source",
9410
- "hasDynamicHelp": false,
9411
- "multiple": false,
9412
- "type": "option"
9413
- },
9414
- "data": {
9415
- "description": "Additional JSON object payload",
9416
- "name": "data",
9417
- "hasDynamicHelp": false,
9418
- "multiple": false,
9419
- "type": "option"
9497
+ "skip-duplicates": {
9498
+ "description": "Skip duplicate templates",
9499
+ "name": "skip-duplicates",
9500
+ "allowNo": true,
9501
+ "type": "boolean"
9420
9502
  }
9421
9503
  },
9422
9504
  "hasDynamicHelp": false,
9423
9505
  "hiddenAliases": [],
9424
- "id": "tickets:create",
9506
+ "id": "templates:import",
9425
9507
  "pluginAlias": "@instantkom/cli",
9426
9508
  "pluginName": "@instantkom/cli",
9427
9509
  "pluginType": "core",
@@ -9431,20 +9513,14 @@
9431
9513
  "relativePath": [
9432
9514
  "dist",
9433
9515
  "commands",
9434
- "tickets",
9435
- "create.js"
9516
+ "templates",
9517
+ "import.js"
9436
9518
  ]
9437
9519
  },
9438
- "tickets:delete": {
9520
+ "templates:list": {
9439
9521
  "aliases": [],
9440
- "args": {
9441
- "id": {
9442
- "description": "Ticket ID",
9443
- "name": "id",
9444
- "required": true
9445
- }
9446
- },
9447
- "description": "Delete a ticket",
9522
+ "args": {},
9523
+ "description": "List message templates",
9448
9524
  "flags": {
9449
9525
  "api-key": {
9450
9526
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -9509,9 +9585,31 @@
9509
9585
  "type": "option"
9510
9586
  },
9511
9587
  "channel": {
9512
- "description": "Channel ID",
9588
+ "description": "Filter by channel ID",
9513
9589
  "name": "channel",
9514
- "required": true,
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,
9605
+ "hasDynamicHelp": false,
9606
+ "multiple": false,
9607
+ "type": "option"
9608
+ },
9609
+ "limit": {
9610
+ "description": "Items per page",
9611
+ "name": "limit",
9612
+ "default": 20,
9515
9613
  "hasDynamicHelp": false,
9516
9614
  "multiple": false,
9517
9615
  "type": "option"
@@ -9519,7 +9617,7 @@
9519
9617
  },
9520
9618
  "hasDynamicHelp": false,
9521
9619
  "hiddenAliases": [],
9522
- "id": "tickets:delete",
9620
+ "id": "templates:list",
9523
9621
  "pluginAlias": "@instantkom/cli",
9524
9622
  "pluginName": "@instantkom/cli",
9525
9623
  "pluginType": "core",
@@ -9529,20 +9627,20 @@
9529
9627
  "relativePath": [
9530
9628
  "dist",
9531
9629
  "commands",
9532
- "tickets",
9533
- "delete.js"
9630
+ "templates",
9631
+ "list.js"
9534
9632
  ]
9535
9633
  },
9536
- "tickets:get": {
9634
+ "templates:render": {
9537
9635
  "aliases": [],
9538
9636
  "args": {
9539
9637
  "id": {
9540
- "description": "Ticket ID",
9638
+ "description": "Template ID",
9541
9639
  "name": "id",
9542
9640
  "required": true
9543
9641
  }
9544
9642
  },
9545
- "description": "Get a ticket by ID",
9643
+ "description": "Render a message template locally",
9546
9644
  "flags": {
9547
9645
  "api-key": {
9548
9646
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -9606,18 +9704,17 @@
9606
9704
  "multiple": false,
9607
9705
  "type": "option"
9608
9706
  },
9609
- "channel": {
9610
- "description": "Channel ID",
9611
- "name": "channel",
9612
- "required": true,
9707
+ "vars": {
9708
+ "description": "Template variable as key=value; may be repeated",
9709
+ "name": "vars",
9613
9710
  "hasDynamicHelp": false,
9614
- "multiple": false,
9711
+ "multiple": true,
9615
9712
  "type": "option"
9616
9713
  }
9617
9714
  },
9618
9715
  "hasDynamicHelp": false,
9619
9716
  "hiddenAliases": [],
9620
- "id": "tickets:get",
9717
+ "id": "templates:render",
9621
9718
  "pluginAlias": "@instantkom/cli",
9622
9719
  "pluginName": "@instantkom/cli",
9623
9720
  "pluginType": "core",
@@ -9627,14 +9724,20 @@
9627
9724
  "relativePath": [
9628
9725
  "dist",
9629
9726
  "commands",
9630
- "tickets",
9631
- "get.js"
9727
+ "templates",
9728
+ "render.js"
9632
9729
  ]
9633
9730
  },
9634
- "tickets:list": {
9731
+ "templates:update": {
9635
9732
  "aliases": [],
9636
- "args": {},
9637
- "description": "List tickets for a channel",
9733
+ "args": {
9734
+ "id": {
9735
+ "description": "Template ID",
9736
+ "name": "id",
9737
+ "required": true
9738
+ }
9739
+ },
9740
+ "description": "Update a message template",
9638
9741
  "flags": {
9639
9742
  "api-key": {
9640
9743
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -9698,26 +9801,80 @@
9698
9801
  "multiple": false,
9699
9802
  "type": "option"
9700
9803
  },
9701
- "channel": {
9702
- "description": "Channel ID",
9703
- "name": "channel",
9704
- "required": true,
9804
+ "name": {
9805
+ "description": "Template name",
9806
+ "name": "name",
9705
9807
  "hasDynamicHelp": false,
9706
9808
  "multiple": false,
9707
9809
  "type": "option"
9708
9810
  },
9709
- "limit": {
9710
- "description": "Maximum tickets to return",
9711
- "name": "limit",
9712
- "default": 500,
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",
9713
9831
  "hasDynamicHelp": false,
9714
9832
  "multiple": false,
9715
9833
  "type": "option"
9716
9834
  },
9717
- "offset": {
9718
- "description": "Number of tickets to skip",
9719
- "name": "offset",
9720
- "default": 0,
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",
9721
9878
  "hasDynamicHelp": false,
9722
9879
  "multiple": false,
9723
9880
  "type": "option"
@@ -9725,7 +9882,7 @@
9725
9882
  },
9726
9883
  "hasDynamicHelp": false,
9727
9884
  "hiddenAliases": [],
9728
- "id": "tickets:list",
9885
+ "id": "templates:update",
9729
9886
  "pluginAlias": "@instantkom/cli",
9730
9887
  "pluginName": "@instantkom/cli",
9731
9888
  "pluginType": "core",
@@ -9735,20 +9892,14 @@
9735
9892
  "relativePath": [
9736
9893
  "dist",
9737
9894
  "commands",
9738
- "tickets",
9739
- "list.js"
9895
+ "templates",
9896
+ "update.js"
9740
9897
  ]
9741
9898
  },
9742
- "tickets:reply": {
9899
+ "templates:validate-import": {
9743
9900
  "aliases": [],
9744
- "args": {
9745
- "id": {
9746
- "description": "Ticket ID",
9747
- "name": "id",
9748
- "required": true
9749
- }
9750
- },
9751
- "description": "Send a real support reply on a ticket. Delivers the message to the customer and records it in both the ticket history and the Nachrichtenprotokoll. Provide raw body text only; the ticket system auto-prepends the personalised salutation and auto-appends the localised footer for email-channel tickets. Adding your own greetings causes duplicated headers/footers.",
9901
+ "args": {},
9902
+ "description": "Validate templates import JSON",
9752
9903
  "flags": {
9753
9904
  "api-key": {
9754
9905
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -9812,24 +9963,26 @@
9812
9963
  "multiple": false,
9813
9964
  "type": "option"
9814
9965
  },
9815
- "message": {
9816
- "description": "Reply body (raw text, no salutation or sign-off)",
9817
- "name": "message",
9966
+ "file": {
9967
+ "description": "JSON file path",
9968
+ "name": "file",
9818
9969
  "required": true,
9819
9970
  "hasDynamicHelp": false,
9820
9971
  "multiple": false,
9821
9972
  "type": "option"
9822
9973
  },
9823
- "close": {
9824
- "description": "Close the ticket after sending the reply",
9825
- "name": "close",
9826
- "allowNo": false,
9827
- "type": "boolean"
9974
+ "channel": {
9975
+ "description": "Target channel ID",
9976
+ "name": "channel",
9977
+ "required": true,
9978
+ "hasDynamicHelp": false,
9979
+ "multiple": false,
9980
+ "type": "option"
9828
9981
  }
9829
9982
  },
9830
9983
  "hasDynamicHelp": false,
9831
9984
  "hiddenAliases": [],
9832
- "id": "tickets:reply",
9985
+ "id": "templates:validate-import",
9833
9986
  "pluginAlias": "@instantkom/cli",
9834
9987
  "pluginName": "@instantkom/cli",
9835
9988
  "pluginType": "core",
@@ -9839,20 +9992,14 @@
9839
9992
  "relativePath": [
9840
9993
  "dist",
9841
9994
  "commands",
9842
- "tickets",
9843
- "reply.js"
9995
+ "templates",
9996
+ "validate-import.js"
9844
9997
  ]
9845
9998
  },
9846
- "tickets:update": {
9999
+ "team:create": {
9847
10000
  "aliases": [],
9848
- "args": {
9849
- "id": {
9850
- "description": "Ticket ID",
9851
- "name": "id",
9852
- "required": true
9853
- }
9854
- },
9855
- "description": "Update a ticket",
10001
+ "args": {},
10002
+ "description": "Create a team member",
9856
10003
  "flags": {
9857
10004
  "api-key": {
9858
10005
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -9916,47 +10063,65 @@
9916
10063
  "multiple": false,
9917
10064
  "type": "option"
9918
10065
  },
9919
- "channel": {
9920
- "description": "Channel ID",
9921
- "name": "channel",
10066
+ "email": {
10067
+ "description": "Email address",
10068
+ "name": "email",
9922
10069
  "required": true,
9923
10070
  "hasDynamicHelp": false,
9924
10071
  "multiple": false,
9925
10072
  "type": "option"
9926
10073
  },
9927
- "subject": {
9928
- "description": "Ticket subject",
9929
- "name": "subject",
9930
- "hasDynamicHelp": false,
9931
- "multiple": false,
10074
+ "first-name": {
10075
+ "description": "First name",
10076
+ "name": "first-name",
10077
+ "required": true,
10078
+ "hasDynamicHelp": false,
10079
+ "multiple": false,
9932
10080
  "type": "option"
9933
10081
  },
9934
- "priority": {
9935
- "description": "Ticket priority",
9936
- "name": "priority",
10082
+ "last-name": {
10083
+ "description": "Last name",
10084
+ "name": "last-name",
10085
+ "required": true,
9937
10086
  "hasDynamicHelp": false,
9938
10087
  "multiple": false,
9939
10088
  "type": "option"
9940
10089
  },
9941
- "status": {
9942
- "description": "Ticket status",
9943
- "name": "status",
10090
+ "password": {
10091
+ "description": "Initial password",
10092
+ "name": "password",
10093
+ "required": true,
9944
10094
  "hasDynamicHelp": false,
9945
10095
  "multiple": false,
9946
10096
  "type": "option"
9947
10097
  },
9948
- "assigned-to": {
9949
- "description": "User ID to assign the ticket to (use -1 or omit to leave unchanged)",
9950
- "name": "assigned-to",
10098
+ "phone": {
10099
+ "description": "Phone number",
10100
+ "name": "phone",
9951
10101
  "hasDynamicHelp": false,
9952
10102
  "multiple": false,
9953
10103
  "type": "option"
9954
10104
  },
9955
- "notify": {
9956
- "description": "Trigger the legacy notification chain for transitions that have one. On --assigned-to change: fires TICKET_ASSIGN (assignee email plus optional customer reply via tickets_assign_reply_sts). On --status closed transition: fires TICKET_CLOSE (optional customer reply via tickets_close_reply_sts). Defaults to true. Use --no-notify for silent updates.",
9957
- "name": "notify",
9958
- "allowNo": true,
9959
- "type": "boolean"
10105
+ "company": {
10106
+ "description": "Company name",
10107
+ "name": "company",
10108
+ "hasDynamicHelp": false,
10109
+ "multiple": false,
10110
+ "type": "option"
10111
+ },
10112
+ "color": {
10113
+ "description": "Color as HEX",
10114
+ "name": "color",
10115
+ "hasDynamicHelp": false,
10116
+ "multiple": false,
10117
+ "type": "option"
10118
+ },
10119
+ "folder": {
10120
+ "description": "Object folder ID",
10121
+ "name": "folder",
10122
+ "hasDynamicHelp": false,
10123
+ "multiple": false,
10124
+ "type": "option"
9960
10125
  },
9961
10126
  "data": {
9962
10127
  "description": "Additional JSON object payload",
@@ -9968,7 +10133,7 @@
9968
10133
  },
9969
10134
  "hasDynamicHelp": false,
9970
10135
  "hiddenAliases": [],
9971
- "id": "tickets:update",
10136
+ "id": "team:create",
9972
10137
  "pluginAlias": "@instantkom/cli",
9973
10138
  "pluginName": "@instantkom/cli",
9974
10139
  "pluginType": "core",
@@ -9978,14 +10143,20 @@
9978
10143
  "relativePath": [
9979
10144
  "dist",
9980
10145
  "commands",
9981
- "tickets",
9982
- "update.js"
10146
+ "team",
10147
+ "create.js"
9983
10148
  ]
9984
10149
  },
9985
- "templates:create": {
10150
+ "team:delete": {
9986
10151
  "aliases": [],
9987
- "args": {},
9988
- "description": "Create a message template",
10152
+ "args": {
10153
+ "id": {
10154
+ "description": "Team member ID",
10155
+ "name": "id",
10156
+ "required": true
10157
+ }
10158
+ },
10159
+ "description": "Delete a team member",
9989
10160
  "flags": {
9990
10161
  "api-key": {
9991
10162
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -10048,94 +10219,11 @@
10048
10219
  "hasDynamicHelp": false,
10049
10220
  "multiple": false,
10050
10221
  "type": "option"
10051
- },
10052
- "channel": {
10053
- "description": "Channel ID",
10054
- "name": "channel",
10055
- "required": true,
10056
- "hasDynamicHelp": false,
10057
- "multiple": false,
10058
- "type": "option"
10059
- },
10060
- "name": {
10061
- "description": "Template name",
10062
- "name": "name",
10063
- "required": true,
10064
- "hasDynamicHelp": false,
10065
- "multiple": false,
10066
- "type": "option"
10067
- },
10068
- "type": {
10069
- "description": "Template type",
10070
- "name": "type",
10071
- "default": "text",
10072
- "hasDynamicHelp": false,
10073
- "multiple": false,
10074
- "options": [
10075
- "text",
10076
- "image",
10077
- "video",
10078
- "document",
10079
- "audio",
10080
- "location",
10081
- "contact",
10082
- "interactive"
10083
- ],
10084
- "type": "option"
10085
- },
10086
- "message": {
10087
- "description": "Template message",
10088
- "name": "message",
10089
- "required": true,
10090
- "hasDynamicHelp": false,
10091
- "multiple": false,
10092
- "type": "option"
10093
- },
10094
- "color": {
10095
- "description": "Template color as HEX",
10096
- "name": "color",
10097
- "hasDynamicHelp": false,
10098
- "multiple": false,
10099
- "type": "option"
10100
- },
10101
- "status": {
10102
- "description": "Template is active",
10103
- "name": "status",
10104
- "allowNo": true,
10105
- "type": "boolean"
10106
- },
10107
- "whatsapp-language": {
10108
- "description": "WhatsApp template language",
10109
- "name": "whatsapp-language",
10110
- "hasDynamicHelp": false,
10111
- "multiple": false,
10112
- "type": "option"
10113
- },
10114
- "buttons": {
10115
- "description": "Buttons JSON array/object",
10116
- "name": "buttons",
10117
- "hasDynamicHelp": false,
10118
- "multiple": false,
10119
- "type": "option"
10120
- },
10121
- "header-footer": {
10122
- "description": "Header/footer JSON object",
10123
- "name": "header-footer",
10124
- "hasDynamicHelp": false,
10125
- "multiple": false,
10126
- "type": "option"
10127
- },
10128
- "data": {
10129
- "description": "Additional JSON object payload",
10130
- "name": "data",
10131
- "hasDynamicHelp": false,
10132
- "multiple": false,
10133
- "type": "option"
10134
10222
  }
10135
10223
  },
10136
10224
  "hasDynamicHelp": false,
10137
10225
  "hiddenAliases": [],
10138
- "id": "templates:create",
10226
+ "id": "team:delete",
10139
10227
  "pluginAlias": "@instantkom/cli",
10140
10228
  "pluginName": "@instantkom/cli",
10141
10229
  "pluginType": "core",
@@ -10145,20 +10233,14 @@
10145
10233
  "relativePath": [
10146
10234
  "dist",
10147
10235
  "commands",
10148
- "templates",
10149
- "create.js"
10236
+ "team",
10237
+ "delete.js"
10150
10238
  ]
10151
10239
  },
10152
- "templates:delete": {
10240
+ "team:list": {
10153
10241
  "aliases": [],
10154
- "args": {
10155
- "id": {
10156
- "description": "template ID",
10157
- "name": "id",
10158
- "required": true
10159
- }
10160
- },
10161
- "description": "Delete template",
10242
+ "args": {},
10243
+ "description": "List team members",
10162
10244
  "flags": {
10163
10245
  "api-key": {
10164
10246
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -10225,7 +10307,7 @@
10225
10307
  },
10226
10308
  "hasDynamicHelp": false,
10227
10309
  "hiddenAliases": [],
10228
- "id": "templates:delete",
10310
+ "id": "team:list",
10229
10311
  "pluginAlias": "@instantkom/cli",
10230
10312
  "pluginName": "@instantkom/cli",
10231
10313
  "pluginType": "core",
@@ -10235,14 +10317,14 @@
10235
10317
  "relativePath": [
10236
10318
  "dist",
10237
10319
  "commands",
10238
- "templates",
10239
- "delete.js"
10320
+ "team",
10321
+ "list.js"
10240
10322
  ]
10241
10323
  },
10242
- "templates:export": {
10324
+ "tickets:create": {
10243
10325
  "aliases": [],
10244
10326
  "args": {},
10245
- "description": "Export templates to a file",
10327
+ "description": "Create a ticket",
10246
10328
  "flags": {
10247
10329
  "api-key": {
10248
10330
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -10254,14 +10336,17 @@
10254
10336
  "type": "option"
10255
10337
  },
10256
10338
  "format": {
10257
- "description": "Export format",
10339
+ "description": "Output format: text, json, yaml, or table",
10340
+ "helpGroup": "GLOBAL",
10258
10341
  "name": "format",
10259
- "default": "json",
10342
+ "default": "text",
10260
10343
  "hasDynamicHelp": false,
10261
10344
  "multiple": false,
10262
10345
  "options": [
10263
- "csv",
10264
- "json"
10346
+ "text",
10347
+ "json",
10348
+ "yaml",
10349
+ "table"
10265
10350
  ],
10266
10351
  "type": "option"
10267
10352
  },
@@ -10303,107 +10388,60 @@
10303
10388
  "multiple": false,
10304
10389
  "type": "option"
10305
10390
  },
10306
- "file": {
10307
- "description": "Output file path",
10308
- "name": "file",
10391
+ "channel": {
10392
+ "description": "Channel ID",
10393
+ "name": "channel",
10309
10394
  "required": true,
10310
10395
  "hasDynamicHelp": false,
10311
10396
  "multiple": false,
10312
10397
  "type": "option"
10313
10398
  },
10314
- "channel": {
10315
- "description": "Filter by channel ID",
10316
- "name": "channel",
10399
+ "subject": {
10400
+ "description": "Ticket subject",
10401
+ "name": "subject",
10402
+ "required": true,
10317
10403
  "hasDynamicHelp": false,
10318
10404
  "multiple": false,
10319
10405
  "type": "option"
10320
- }
10321
- },
10322
- "hasDynamicHelp": false,
10323
- "hiddenAliases": [],
10324
- "id": "templates:export",
10325
- "pluginAlias": "@instantkom/cli",
10326
- "pluginName": "@instantkom/cli",
10327
- "pluginType": "core",
10328
- "strict": true,
10329
- "enableJsonFlag": false,
10330
- "isESM": true,
10331
- "relativePath": [
10332
- "dist",
10333
- "commands",
10334
- "templates",
10335
- "export.js"
10336
- ]
10337
- },
10338
- "templates:get": {
10339
- "aliases": [],
10340
- "args": {
10341
- "id": {
10342
- "description": "Template ID",
10343
- "name": "id",
10344
- "required": true
10345
- }
10346
- },
10347
- "description": "Get a message template by ID",
10348
- "flags": {
10349
- "api-key": {
10350
- "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
10351
- "env": "IKM_API_KEY",
10352
- "helpGroup": "GLOBAL",
10353
- "name": "api-key",
10406
+ },
10407
+ "recipient": {
10408
+ "description": "Existing recipient ID",
10409
+ "name": "recipient",
10354
10410
  "hasDynamicHelp": false,
10355
10411
  "multiple": false,
10356
10412
  "type": "option"
10357
10413
  },
10358
- "format": {
10359
- "description": "Output format: text, json, yaml, or table",
10360
- "helpGroup": "GLOBAL",
10361
- "name": "format",
10362
- "default": "text",
10414
+ "email": {
10415
+ "description": "Customer email",
10416
+ "name": "email",
10363
10417
  "hasDynamicHelp": false,
10364
10418
  "multiple": false,
10365
- "options": [
10366
- "text",
10367
- "json",
10368
- "yaml",
10369
- "table"
10370
- ],
10371
10419
  "type": "option"
10372
10420
  },
10373
- "json": {
10374
- "description": "Output in JSON format (alias for --format=json)",
10375
- "helpGroup": "GLOBAL",
10376
- "name": "json",
10377
- "allowNo": false,
10378
- "type": "boolean"
10379
- },
10380
- "quiet": {
10381
- "description": "Suppress all output except errors",
10382
- "helpGroup": "GLOBAL",
10383
- "name": "quiet",
10384
- "allowNo": false,
10385
- "type": "boolean"
10421
+ "name": {
10422
+ "description": "Customer name",
10423
+ "name": "name",
10424
+ "hasDynamicHelp": false,
10425
+ "multiple": false,
10426
+ "type": "option"
10386
10427
  },
10387
- "no-color": {
10388
- "description": "Disable color output",
10389
- "helpGroup": "GLOBAL",
10390
- "name": "no-color",
10391
- "allowNo": false,
10392
- "type": "boolean"
10428
+ "priority": {
10429
+ "description": "Ticket priority",
10430
+ "name": "priority",
10431
+ "hasDynamicHelp": false,
10432
+ "multiple": false,
10433
+ "type": "option"
10393
10434
  },
10394
- "profile": {
10395
- "description": "Named configuration profile to use",
10396
- "helpGroup": "GLOBAL",
10397
- "name": "profile",
10398
- "default": "default",
10435
+ "source": {
10436
+ "description": "Ticket source",
10437
+ "name": "source",
10399
10438
  "hasDynamicHelp": false,
10400
10439
  "multiple": false,
10401
10440
  "type": "option"
10402
10441
  },
10403
- "api-url": {
10404
- "description": "Override the API base URL (e.g. for staging)",
10405
- "helpGroup": "GLOBAL",
10406
- "name": "api-url",
10442
+ "data": {
10443
+ "description": "Additional JSON object payload",
10444
+ "name": "data",
10407
10445
  "hasDynamicHelp": false,
10408
10446
  "multiple": false,
10409
10447
  "type": "option"
@@ -10411,7 +10449,7 @@
10411
10449
  },
10412
10450
  "hasDynamicHelp": false,
10413
10451
  "hiddenAliases": [],
10414
- "id": "templates:get",
10452
+ "id": "tickets:create",
10415
10453
  "pluginAlias": "@instantkom/cli",
10416
10454
  "pluginName": "@instantkom/cli",
10417
10455
  "pluginType": "core",
@@ -10421,14 +10459,20 @@
10421
10459
  "relativePath": [
10422
10460
  "dist",
10423
10461
  "commands",
10424
- "templates",
10425
- "get.js"
10462
+ "tickets",
10463
+ "create.js"
10426
10464
  ]
10427
10465
  },
10428
- "templates:import": {
10466
+ "tickets:delete": {
10429
10467
  "aliases": [],
10430
- "args": {},
10431
- "description": "Import templates from JSON",
10468
+ "args": {
10469
+ "id": {
10470
+ "description": "Ticket ID",
10471
+ "name": "id",
10472
+ "required": true
10473
+ }
10474
+ },
10475
+ "description": "Delete a ticket",
10432
10476
  "flags": {
10433
10477
  "api-key": {
10434
10478
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -10492,32 +10536,18 @@
10492
10536
  "multiple": false,
10493
10537
  "type": "option"
10494
10538
  },
10495
- "file": {
10496
- "description": "JSON file path",
10497
- "name": "file",
10498
- "required": true,
10499
- "hasDynamicHelp": false,
10500
- "multiple": false,
10501
- "type": "option"
10502
- },
10503
10539
  "channel": {
10504
- "description": "Target channel ID",
10540
+ "description": "Channel ID",
10505
10541
  "name": "channel",
10506
10542
  "required": true,
10507
10543
  "hasDynamicHelp": false,
10508
10544
  "multiple": false,
10509
10545
  "type": "option"
10510
- },
10511
- "skip-duplicates": {
10512
- "description": "Skip duplicate templates",
10513
- "name": "skip-duplicates",
10514
- "allowNo": true,
10515
- "type": "boolean"
10516
10546
  }
10517
10547
  },
10518
10548
  "hasDynamicHelp": false,
10519
10549
  "hiddenAliases": [],
10520
- "id": "templates:import",
10550
+ "id": "tickets:delete",
10521
10551
  "pluginAlias": "@instantkom/cli",
10522
10552
  "pluginName": "@instantkom/cli",
10523
10553
  "pluginType": "core",
@@ -10527,14 +10557,20 @@
10527
10557
  "relativePath": [
10528
10558
  "dist",
10529
10559
  "commands",
10530
- "templates",
10531
- "import.js"
10560
+ "tickets",
10561
+ "delete.js"
10532
10562
  ]
10533
10563
  },
10534
- "templates:list": {
10564
+ "tickets:get": {
10535
10565
  "aliases": [],
10536
- "args": {},
10537
- "description": "List message templates",
10566
+ "args": {
10567
+ "id": {
10568
+ "description": "Ticket ID",
10569
+ "name": "id",
10570
+ "required": true
10571
+ }
10572
+ },
10573
+ "description": "Get a ticket by ID",
10538
10574
  "flags": {
10539
10575
  "api-key": {
10540
10576
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -10599,31 +10635,9 @@
10599
10635
  "type": "option"
10600
10636
  },
10601
10637
  "channel": {
10602
- "description": "Filter by channel ID",
10638
+ "description": "Channel ID",
10603
10639
  "name": "channel",
10604
- "hasDynamicHelp": false,
10605
- "multiple": false,
10606
- "type": "option"
10607
- },
10608
- "search": {
10609
- "description": "Search templates by name or content",
10610
- "name": "search",
10611
- "hasDynamicHelp": false,
10612
- "multiple": false,
10613
- "type": "option"
10614
- },
10615
- "page": {
10616
- "description": "Page number",
10617
- "name": "page",
10618
- "default": 1,
10619
- "hasDynamicHelp": false,
10620
- "multiple": false,
10621
- "type": "option"
10622
- },
10623
- "limit": {
10624
- "description": "Items per page",
10625
- "name": "limit",
10626
- "default": 20,
10640
+ "required": true,
10627
10641
  "hasDynamicHelp": false,
10628
10642
  "multiple": false,
10629
10643
  "type": "option"
@@ -10631,7 +10645,7 @@
10631
10645
  },
10632
10646
  "hasDynamicHelp": false,
10633
10647
  "hiddenAliases": [],
10634
- "id": "templates:list",
10648
+ "id": "tickets:get",
10635
10649
  "pluginAlias": "@instantkom/cli",
10636
10650
  "pluginName": "@instantkom/cli",
10637
10651
  "pluginType": "core",
@@ -10641,20 +10655,14 @@
10641
10655
  "relativePath": [
10642
10656
  "dist",
10643
10657
  "commands",
10644
- "templates",
10645
- "list.js"
10658
+ "tickets",
10659
+ "get.js"
10646
10660
  ]
10647
10661
  },
10648
- "templates:render": {
10662
+ "tickets:list": {
10649
10663
  "aliases": [],
10650
- "args": {
10651
- "id": {
10652
- "description": "Template ID",
10653
- "name": "id",
10654
- "required": true
10655
- }
10656
- },
10657
- "description": "Render a message template locally",
10664
+ "args": {},
10665
+ "description": "List tickets for a channel",
10658
10666
  "flags": {
10659
10667
  "api-key": {
10660
10668
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -10718,17 +10726,34 @@
10718
10726
  "multiple": false,
10719
10727
  "type": "option"
10720
10728
  },
10721
- "vars": {
10722
- "description": "Template variable as key=value; may be repeated",
10723
- "name": "vars",
10729
+ "channel": {
10730
+ "description": "Channel ID",
10731
+ "name": "channel",
10732
+ "required": true,
10724
10733
  "hasDynamicHelp": false,
10725
- "multiple": true,
10734
+ "multiple": false,
10735
+ "type": "option"
10736
+ },
10737
+ "limit": {
10738
+ "description": "Maximum tickets to return",
10739
+ "name": "limit",
10740
+ "default": 500,
10741
+ "hasDynamicHelp": false,
10742
+ "multiple": false,
10743
+ "type": "option"
10744
+ },
10745
+ "offset": {
10746
+ "description": "Number of tickets to skip",
10747
+ "name": "offset",
10748
+ "default": 0,
10749
+ "hasDynamicHelp": false,
10750
+ "multiple": false,
10726
10751
  "type": "option"
10727
10752
  }
10728
10753
  },
10729
10754
  "hasDynamicHelp": false,
10730
10755
  "hiddenAliases": [],
10731
- "id": "templates:render",
10756
+ "id": "tickets:list",
10732
10757
  "pluginAlias": "@instantkom/cli",
10733
10758
  "pluginName": "@instantkom/cli",
10734
10759
  "pluginType": "core",
@@ -10738,20 +10763,20 @@
10738
10763
  "relativePath": [
10739
10764
  "dist",
10740
10765
  "commands",
10741
- "templates",
10742
- "render.js"
10766
+ "tickets",
10767
+ "list.js"
10743
10768
  ]
10744
10769
  },
10745
- "templates:update": {
10770
+ "tickets:reply": {
10746
10771
  "aliases": [],
10747
10772
  "args": {
10748
10773
  "id": {
10749
- "description": "Template ID",
10774
+ "description": "Ticket ID",
10750
10775
  "name": "id",
10751
10776
  "required": true
10752
10777
  }
10753
10778
  },
10754
- "description": "Update a message template",
10779
+ "description": "Send a real support reply on a ticket. Delivers the message to the customer and records it in both the ticket history and the Nachrichtenprotokoll. Provide raw body text only; the ticket system auto-prepends the personalised salutation and auto-appends the localised footer for email-channel tickets. Adding your own greetings causes duplicated headers/footers.",
10755
10780
  "flags": {
10756
10781
  "api-key": {
10757
10782
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -10815,88 +10840,24 @@
10815
10840
  "multiple": false,
10816
10841
  "type": "option"
10817
10842
  },
10818
- "name": {
10819
- "description": "Template name",
10820
- "name": "name",
10821
- "hasDynamicHelp": false,
10822
- "multiple": false,
10823
- "type": "option"
10824
- },
10825
- "type": {
10826
- "description": "Template type",
10827
- "name": "type",
10828
- "hasDynamicHelp": false,
10829
- "multiple": false,
10830
- "options": [
10831
- "text",
10832
- "image",
10833
- "video",
10834
- "document",
10835
- "audio",
10836
- "location",
10837
- "contact",
10838
- "interactive"
10839
- ],
10840
- "type": "option"
10841
- },
10842
10843
  "message": {
10843
- "description": "Template message",
10844
+ "description": "Reply body (raw text, no salutation or sign-off)",
10844
10845
  "name": "message",
10846
+ "required": true,
10845
10847
  "hasDynamicHelp": false,
10846
10848
  "multiple": false,
10847
10849
  "type": "option"
10848
10850
  },
10849
- "color": {
10850
- "description": "Template color as HEX",
10851
- "name": "color",
10852
- "hasDynamicHelp": false,
10853
- "multiple": false,
10854
- "type": "option"
10855
- },
10856
- "status": {
10857
- "description": "Template is active",
10858
- "name": "status",
10859
- "allowNo": true,
10860
- "type": "boolean"
10861
- },
10862
- "remove-media": {
10863
- "description": "Remove existing media",
10864
- "name": "remove-media",
10851
+ "close": {
10852
+ "description": "Close the ticket after sending the reply",
10853
+ "name": "close",
10865
10854
  "allowNo": false,
10866
10855
  "type": "boolean"
10867
- },
10868
- "whatsapp-language": {
10869
- "description": "WhatsApp template language",
10870
- "name": "whatsapp-language",
10871
- "hasDynamicHelp": false,
10872
- "multiple": false,
10873
- "type": "option"
10874
- },
10875
- "buttons": {
10876
- "description": "Buttons JSON array/object",
10877
- "name": "buttons",
10878
- "hasDynamicHelp": false,
10879
- "multiple": false,
10880
- "type": "option"
10881
- },
10882
- "header-footer": {
10883
- "description": "Header/footer JSON object",
10884
- "name": "header-footer",
10885
- "hasDynamicHelp": false,
10886
- "multiple": false,
10887
- "type": "option"
10888
- },
10889
- "data": {
10890
- "description": "Additional JSON object payload",
10891
- "name": "data",
10892
- "hasDynamicHelp": false,
10893
- "multiple": false,
10894
- "type": "option"
10895
10856
  }
10896
10857
  },
10897
10858
  "hasDynamicHelp": false,
10898
10859
  "hiddenAliases": [],
10899
- "id": "templates:update",
10860
+ "id": "tickets:reply",
10900
10861
  "pluginAlias": "@instantkom/cli",
10901
10862
  "pluginName": "@instantkom/cli",
10902
10863
  "pluginType": "core",
@@ -10906,14 +10867,20 @@
10906
10867
  "relativePath": [
10907
10868
  "dist",
10908
10869
  "commands",
10909
- "templates",
10910
- "update.js"
10870
+ "tickets",
10871
+ "reply.js"
10911
10872
  ]
10912
10873
  },
10913
- "templates:validate-import": {
10874
+ "tickets:update": {
10914
10875
  "aliases": [],
10915
- "args": {},
10916
- "description": "Validate templates import JSON",
10876
+ "args": {
10877
+ "id": {
10878
+ "description": "Ticket ID",
10879
+ "name": "id",
10880
+ "required": true
10881
+ }
10882
+ },
10883
+ "description": "Update a ticket",
10917
10884
  "flags": {
10918
10885
  "api-key": {
10919
10886
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -10977,18 +10944,51 @@
10977
10944
  "multiple": false,
10978
10945
  "type": "option"
10979
10946
  },
10980
- "file": {
10981
- "description": "JSON file path",
10982
- "name": "file",
10947
+ "channel": {
10948
+ "description": "Channel ID",
10949
+ "name": "channel",
10983
10950
  "required": true,
10984
10951
  "hasDynamicHelp": false,
10985
10952
  "multiple": false,
10986
10953
  "type": "option"
10987
10954
  },
10988
- "channel": {
10989
- "description": "Target channel ID",
10990
- "name": "channel",
10991
- "required": true,
10955
+ "subject": {
10956
+ "description": "Ticket subject",
10957
+ "name": "subject",
10958
+ "hasDynamicHelp": false,
10959
+ "multiple": false,
10960
+ "type": "option"
10961
+ },
10962
+ "priority": {
10963
+ "description": "Ticket priority",
10964
+ "name": "priority",
10965
+ "hasDynamicHelp": false,
10966
+ "multiple": false,
10967
+ "type": "option"
10968
+ },
10969
+ "status": {
10970
+ "description": "Ticket status",
10971
+ "name": "status",
10972
+ "hasDynamicHelp": false,
10973
+ "multiple": false,
10974
+ "type": "option"
10975
+ },
10976
+ "assigned-to": {
10977
+ "description": "User ID to assign the ticket to (use -1 or omit to leave unchanged)",
10978
+ "name": "assigned-to",
10979
+ "hasDynamicHelp": false,
10980
+ "multiple": false,
10981
+ "type": "option"
10982
+ },
10983
+ "notify": {
10984
+ "description": "Trigger the legacy notification chain for transitions that have one. On --assigned-to change: fires TICKET_ASSIGN (assignee email plus optional customer reply via tickets_assign_reply_sts). On --status closed transition: fires TICKET_CLOSE (optional customer reply via tickets_close_reply_sts). Defaults to true. Use --no-notify for silent updates.",
10985
+ "name": "notify",
10986
+ "allowNo": true,
10987
+ "type": "boolean"
10988
+ },
10989
+ "data": {
10990
+ "description": "Additional JSON object payload",
10991
+ "name": "data",
10992
10992
  "hasDynamicHelp": false,
10993
10993
  "multiple": false,
10994
10994
  "type": "option"
@@ -10996,7 +10996,7 @@
10996
10996
  },
10997
10997
  "hasDynamicHelp": false,
10998
10998
  "hiddenAliases": [],
10999
- "id": "templates:validate-import",
10999
+ "id": "tickets:update",
11000
11000
  "pluginAlias": "@instantkom/cli",
11001
11001
  "pluginName": "@instantkom/cli",
11002
11002
  "pluginType": "core",
@@ -11006,8 +11006,8 @@
11006
11006
  "relativePath": [
11007
11007
  "dist",
11008
11008
  "commands",
11009
- "templates",
11010
- "validate-import.js"
11009
+ "tickets",
11010
+ "update.js"
11011
11011
  ]
11012
11012
  },
11013
11013
  "webhooks:add": {
@@ -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.",
@@ -11879,118 +11879,52 @@
11879
11879
  "format": {
11880
11880
  "description": "Output format: text, json, yaml, or table",
11881
11881
  "helpGroup": "GLOBAL",
11882
- "name": "format",
11883
- "default": "text",
11884
- "hasDynamicHelp": false,
11885
- "multiple": false,
11886
- "options": [
11887
- "text",
11888
- "json",
11889
- "yaml",
11890
- "table"
11891
- ],
11892
- "type": "option"
11893
- },
11894
- "json": {
11895
- "description": "Output in JSON format (alias for --format=json)",
11896
- "helpGroup": "GLOBAL",
11897
- "name": "json",
11898
- "allowNo": false,
11899
- "type": "boolean"
11900
- },
11901
- "quiet": {
11902
- "description": "Suppress all output except errors",
11903
- "helpGroup": "GLOBAL",
11904
- "name": "quiet",
11905
- "allowNo": false,
11906
- "type": "boolean"
11907
- },
11908
- "no-color": {
11909
- "description": "Disable color output",
11910
- "helpGroup": "GLOBAL",
11911
- "name": "no-color",
11912
- "allowNo": false,
11913
- "type": "boolean"
11914
- },
11915
- "profile": {
11916
- "description": "Named configuration profile to use",
11917
- "helpGroup": "GLOBAL",
11918
- "name": "profile",
11919
- "default": "default",
11920
- "hasDynamicHelp": false,
11921
- "multiple": false,
11922
- "type": "option"
11923
- },
11924
- "api-url": {
11925
- "description": "Override the API base URL (e.g. for staging)",
11926
- "helpGroup": "GLOBAL",
11927
- "name": "api-url",
11928
- "hasDynamicHelp": false,
11929
- "multiple": false,
11930
- "type": "option"
11931
- },
11932
- "name": {
11933
- "description": "Filter name",
11934
- "name": "name",
11935
- "required": true,
11936
- "hasDynamicHelp": false,
11937
- "multiple": false,
11938
- "type": "option"
11939
- },
11940
- "operator": {
11941
- "description": "Logical operator",
11942
- "name": "operator",
11943
- "default": "and",
11944
- "hasDynamicHelp": false,
11945
- "multiple": false,
11946
- "type": "option"
11947
- },
11948
- "filter-object": {
11949
- "description": "Filter object type",
11950
- "name": "filter-object",
11951
- "default": "msg",
11952
- "hasDynamicHelp": false,
11953
- "multiple": false,
11954
- "type": "option"
11955
- },
11956
- "filter-attribute": {
11957
- "description": "Filter attribute",
11958
- "name": "filter-attribute",
11959
- "default": "text",
11960
- "hasDynamicHelp": false,
11961
- "multiple": false,
11962
- "type": "option"
11963
- },
11964
- "filter-comparator": {
11965
- "description": "Filter comparator",
11966
- "name": "filter-comparator",
11967
- "default": "contains",
11968
- "hasDynamicHelp": false,
11969
- "multiple": false,
11970
- "type": "option"
11971
- },
11972
- "filter-value": {
11973
- "description": "Filter value",
11974
- "name": "filter-value",
11975
- "required": true,
11882
+ "name": "format",
11883
+ "default": "text",
11976
11884
  "hasDynamicHelp": false,
11977
11885
  "multiple": false,
11886
+ "options": [
11887
+ "text",
11888
+ "json",
11889
+ "yaml",
11890
+ "table"
11891
+ ],
11978
11892
  "type": "option"
11979
11893
  },
11980
- "status": {
11981
- "description": "Status: 0 inactive, 1 active",
11982
- "name": "status",
11894
+ "json": {
11895
+ "description": "Output in JSON format (alias for --format=json)",
11896
+ "helpGroup": "GLOBAL",
11897
+ "name": "json",
11898
+ "allowNo": false,
11899
+ "type": "boolean"
11900
+ },
11901
+ "quiet": {
11902
+ "description": "Suppress all output except errors",
11903
+ "helpGroup": "GLOBAL",
11904
+ "name": "quiet",
11905
+ "allowNo": false,
11906
+ "type": "boolean"
11907
+ },
11908
+ "no-color": {
11909
+ "description": "Disable color output",
11910
+ "helpGroup": "GLOBAL",
11911
+ "name": "no-color",
11912
+ "allowNo": false,
11913
+ "type": "boolean"
11914
+ },
11915
+ "profile": {
11916
+ "description": "Named configuration profile to use",
11917
+ "helpGroup": "GLOBAL",
11918
+ "name": "profile",
11919
+ "default": "default",
11983
11920
  "hasDynamicHelp": false,
11984
11921
  "multiple": false,
11985
- "options": [
11986
- "0",
11987
- "1"
11988
- ],
11989
11922
  "type": "option"
11990
11923
  },
11991
- "data": {
11992
- "description": "Additional JSON object payload",
11993
- "name": "data",
11924
+ "api-url": {
11925
+ "description": "Override the API base URL (e.g. for staging)",
11926
+ "helpGroup": "GLOBAL",
11927
+ "name": "api-url",
11994
11928
  "hasDynamicHelp": false,
11995
11929
  "multiple": false,
11996
11930
  "type": "option"
@@ -11998,7 +11932,7 @@
11998
11932
  },
11999
11933
  "hasDynamicHelp": false,
12000
11934
  "hiddenAliases": [],
12001
- "id": "bots:filters:create",
11935
+ "id": "bots:env-vars:bots",
12002
11936
  "pluginAlias": "@instantkom/cli",
12003
11937
  "pluginName": "@instantkom/cli",
12004
11938
  "pluginType": "core",
@@ -12009,25 +11943,14 @@
12009
11943
  "dist",
12010
11944
  "commands",
12011
11945
  "bots",
12012
- "filters",
12013
- "create.js"
11946
+ "env-vars",
11947
+ "bots.js"
12014
11948
  ]
12015
11949
  },
12016
- "bots:filters:delete": {
11950
+ "bots:env-vars:create": {
12017
11951
  "aliases": [],
12018
- "args": {
12019
- "botId": {
12020
- "description": "Bot ID",
12021
- "name": "botId",
12022
- "required": true
12023
- },
12024
- "filterId": {
12025
- "description": "Filter ID",
12026
- "name": "filterId",
12027
- "required": true
12028
- }
12029
- },
12030
- "description": "Delete a bot filter",
11952
+ "args": {},
11953
+ "description": "Create a bot environment variable",
12031
11954
  "flags": {
12032
11955
  "api-key": {
12033
11956
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -12090,11 +12013,40 @@
12090
12013
  "hasDynamicHelp": false,
12091
12014
  "multiple": false,
12092
12015
  "type": "option"
12016
+ },
12017
+ "key": {
12018
+ "description": "Variable key (max 16 chars, letters, digits, underscore)",
12019
+ "name": "key",
12020
+ "required": true,
12021
+ "hasDynamicHelp": false,
12022
+ "multiple": false,
12023
+ "type": "option"
12024
+ },
12025
+ "description": {
12026
+ "description": "Variable description",
12027
+ "name": "description",
12028
+ "hasDynamicHelp": false,
12029
+ "multiple": false,
12030
+ "type": "option"
12031
+ },
12032
+ "color": {
12033
+ "description": "Variable color as HEX",
12034
+ "name": "color",
12035
+ "hasDynamicHelp": false,
12036
+ "multiple": false,
12037
+ "type": "option"
12038
+ },
12039
+ "data": {
12040
+ "description": "Additional JSON object payload",
12041
+ "name": "data",
12042
+ "hasDynamicHelp": false,
12043
+ "multiple": false,
12044
+ "type": "option"
12093
12045
  }
12094
12046
  },
12095
12047
  "hasDynamicHelp": false,
12096
12048
  "hiddenAliases": [],
12097
- "id": "bots:filters:delete",
12049
+ "id": "bots:env-vars:create",
12098
12050
  "pluginAlias": "@instantkom/cli",
12099
12051
  "pluginName": "@instantkom/cli",
12100
12052
  "pluginType": "core",
@@ -12105,25 +12057,20 @@
12105
12057
  "dist",
12106
12058
  "commands",
12107
12059
  "bots",
12108
- "filters",
12109
- "delete.js"
12060
+ "env-vars",
12061
+ "create.js"
12110
12062
  ]
12111
12063
  },
12112
- "bots:filters:get": {
12064
+ "bots:env-vars:delete": {
12113
12065
  "aliases": [],
12114
12066
  "args": {
12115
- "botId": {
12116
- "description": "Bot ID",
12117
- "name": "botId",
12118
- "required": true
12119
- },
12120
- "filterId": {
12121
- "description": "Filter ID",
12122
- "name": "filterId",
12067
+ "id": {
12068
+ "description": "Environment variable ID",
12069
+ "name": "id",
12123
12070
  "required": true
12124
12071
  }
12125
12072
  },
12126
- "description": "Get a bot filter",
12073
+ "description": "Delete a bot environment variable",
12127
12074
  "flags": {
12128
12075
  "api-key": {
12129
12076
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -12190,7 +12137,7 @@
12190
12137
  },
12191
12138
  "hasDynamicHelp": false,
12192
12139
  "hiddenAliases": [],
12193
- "id": "bots:filters:get",
12140
+ "id": "bots:env-vars:delete",
12194
12141
  "pluginAlias": "@instantkom/cli",
12195
12142
  "pluginName": "@instantkom/cli",
12196
12143
  "pluginType": "core",
@@ -12201,20 +12148,20 @@
12201
12148
  "dist",
12202
12149
  "commands",
12203
12150
  "bots",
12204
- "filters",
12205
- "get.js"
12151
+ "env-vars",
12152
+ "delete.js"
12206
12153
  ]
12207
12154
  },
12208
- "bots:filters:list": {
12155
+ "bots:env-vars:get": {
12209
12156
  "aliases": [],
12210
12157
  "args": {
12211
- "botId": {
12212
- "description": "Bot ID",
12213
- "name": "botId",
12158
+ "id": {
12159
+ "description": "Environment variable ID",
12160
+ "name": "id",
12214
12161
  "required": true
12215
12162
  }
12216
12163
  },
12217
- "description": "List bot filters",
12164
+ "description": "Get a bot environment variable",
12218
12165
  "flags": {
12219
12166
  "api-key": {
12220
12167
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -12277,45 +12224,11 @@
12277
12224
  "hasDynamicHelp": false,
12278
12225
  "multiple": false,
12279
12226
  "type": "option"
12280
- },
12281
- "page": {
12282
- "description": "Page number",
12283
- "name": "page",
12284
- "default": 1,
12285
- "hasDynamicHelp": false,
12286
- "multiple": false,
12287
- "type": "option"
12288
- },
12289
- "limit": {
12290
- "description": "Items per page",
12291
- "name": "limit",
12292
- "default": 20,
12293
- "hasDynamicHelp": false,
12294
- "multiple": false,
12295
- "type": "option"
12296
- },
12297
- "status": {
12298
- "description": "Status filter: 0 inactive, 1 active",
12299
- "name": "status",
12300
- "hasDynamicHelp": false,
12301
- "multiple": false,
12302
- "options": [
12303
- "0",
12304
- "1"
12305
- ],
12306
- "type": "option"
12307
- },
12308
- "search": {
12309
- "description": "Search in name or description",
12310
- "name": "search",
12311
- "hasDynamicHelp": false,
12312
- "multiple": false,
12313
- "type": "option"
12314
12227
  }
12315
12228
  },
12316
12229
  "hasDynamicHelp": false,
12317
12230
  "hiddenAliases": [],
12318
- "id": "bots:filters:list",
12231
+ "id": "bots:env-vars:get",
12319
12232
  "pluginAlias": "@instantkom/cli",
12320
12233
  "pluginName": "@instantkom/cli",
12321
12234
  "pluginType": "core",
@@ -12326,25 +12239,14 @@
12326
12239
  "dist",
12327
12240
  "commands",
12328
12241
  "bots",
12329
- "filters",
12330
- "list.js"
12242
+ "env-vars",
12243
+ "get.js"
12331
12244
  ]
12332
12245
  },
12333
- "bots:filters:update": {
12246
+ "bots:env-vars:list": {
12334
12247
  "aliases": [],
12335
- "args": {
12336
- "botId": {
12337
- "description": "Bot ID",
12338
- "name": "botId",
12339
- "required": true
12340
- },
12341
- "filterId": {
12342
- "description": "Filter ID",
12343
- "name": "filterId",
12344
- "required": true
12345
- }
12346
- },
12347
- "description": "Update a bot filter",
12248
+ "args": {},
12249
+ "description": "List bot environment variables",
12348
12250
  "flags": {
12349
12251
  "api-key": {
12350
12252
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -12408,62 +12310,32 @@
12408
12310
  "multiple": false,
12409
12311
  "type": "option"
12410
12312
  },
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",
12313
+ "page": {
12314
+ "description": "Page number",
12315
+ "name": "page",
12316
+ "default": 1,
12442
12317
  "hasDynamicHelp": false,
12443
12318
  "multiple": false,
12444
12319
  "type": "option"
12445
12320
  },
12446
- "filter-value": {
12447
- "description": "Filter value",
12448
- "name": "filter-value",
12321
+ "limit": {
12322
+ "description": "Items per page",
12323
+ "name": "limit",
12324
+ "default": 20,
12449
12325
  "hasDynamicHelp": false,
12450
12326
  "multiple": false,
12451
12327
  "type": "option"
12452
12328
  },
12453
- "status": {
12454
- "description": "Status: 0 inactive, 1 active",
12455
- "name": "status",
12329
+ "search": {
12330
+ "description": "Search in key or description",
12331
+ "name": "search",
12456
12332
  "hasDynamicHelp": false,
12457
12333
  "multiple": false,
12458
- "options": [
12459
- "0",
12460
- "1"
12461
- ],
12462
12334
  "type": "option"
12463
12335
  },
12464
- "data": {
12465
- "description": "Additional JSON object payload",
12466
- "name": "data",
12336
+ "color": {
12337
+ "description": "Filter by color",
12338
+ "name": "color",
12467
12339
  "hasDynamicHelp": false,
12468
12340
  "multiple": false,
12469
12341
  "type": "option"
@@ -12471,7 +12343,7 @@
12471
12343
  },
12472
12344
  "hasDynamicHelp": false,
12473
12345
  "hiddenAliases": [],
12474
- "id": "bots:filters:update",
12346
+ "id": "bots:env-vars:list",
12475
12347
  "pluginAlias": "@instantkom/cli",
12476
12348
  "pluginName": "@instantkom/cli",
12477
12349
  "pluginType": "core",
@@ -12482,11 +12354,11 @@
12482
12354
  "dist",
12483
12355
  "commands",
12484
12356
  "bots",
12485
- "filters",
12486
- "update.js"
12357
+ "env-vars",
12358
+ "list.js"
12487
12359
  ]
12488
12360
  },
12489
- "bots:env-vars:bots": {
12361
+ "bots:env-vars:update": {
12490
12362
  "aliases": [],
12491
12363
  "args": {
12492
12364
  "id": {
@@ -12495,7 +12367,7 @@
12495
12367
  "required": true
12496
12368
  }
12497
12369
  },
12498
- "description": "List bots using a bot environment variable",
12370
+ "description": "Update a bot environment variable",
12499
12371
  "flags": {
12500
12372
  "api-key": {
12501
12373
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -12558,11 +12430,32 @@
12558
12430
  "hasDynamicHelp": false,
12559
12431
  "multiple": false,
12560
12432
  "type": "option"
12433
+ },
12434
+ "description": {
12435
+ "description": "Variable description",
12436
+ "name": "description",
12437
+ "hasDynamicHelp": false,
12438
+ "multiple": false,
12439
+ "type": "option"
12440
+ },
12441
+ "color": {
12442
+ "description": "Variable color as HEX",
12443
+ "name": "color",
12444
+ "hasDynamicHelp": false,
12445
+ "multiple": false,
12446
+ "type": "option"
12447
+ },
12448
+ "data": {
12449
+ "description": "Additional JSON object payload",
12450
+ "name": "data",
12451
+ "hasDynamicHelp": false,
12452
+ "multiple": false,
12453
+ "type": "option"
12561
12454
  }
12562
12455
  },
12563
12456
  "hasDynamicHelp": false,
12564
12457
  "hiddenAliases": [],
12565
- "id": "bots:env-vars:bots",
12458
+ "id": "bots:env-vars:update",
12566
12459
  "pluginAlias": "@instantkom/cli",
12567
12460
  "pluginName": "@instantkom/cli",
12568
12461
  "pluginType": "core",
@@ -12574,13 +12467,19 @@
12574
12467
  "commands",
12575
12468
  "bots",
12576
12469
  "env-vars",
12577
- "bots.js"
12470
+ "update.js"
12578
12471
  ]
12579
12472
  },
12580
- "bots:env-vars:create": {
12473
+ "bots:env-vars:values": {
12581
12474
  "aliases": [],
12582
- "args": {},
12583
- "description": "Create a bot environment variable",
12475
+ "args": {
12476
+ "id": {
12477
+ "description": "Environment variable ID",
12478
+ "name": "id",
12479
+ "required": true
12480
+ }
12481
+ },
12482
+ "description": "List recipient values for a bot environment variable",
12584
12483
  "flags": {
12585
12484
  "api-key": {
12586
12485
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -12644,31 +12543,32 @@
12644
12543
  "multiple": false,
12645
12544
  "type": "option"
12646
12545
  },
12647
- "key": {
12648
- "description": "Variable key (max 16 chars, letters, digits, underscore)",
12649
- "name": "key",
12650
- "required": true,
12546
+ "page": {
12547
+ "description": "Page number",
12548
+ "name": "page",
12549
+ "default": 1,
12651
12550
  "hasDynamicHelp": false,
12652
12551
  "multiple": false,
12653
12552
  "type": "option"
12654
12553
  },
12655
- "description": {
12656
- "description": "Variable description",
12657
- "name": "description",
12554
+ "limit": {
12555
+ "description": "Items per page",
12556
+ "name": "limit",
12557
+ "default": 20,
12658
12558
  "hasDynamicHelp": false,
12659
12559
  "multiple": false,
12660
12560
  "type": "option"
12661
12561
  },
12662
- "color": {
12663
- "description": "Variable color as HEX",
12664
- "name": "color",
12562
+ "search": {
12563
+ "description": "Search in recipient name or identifier",
12564
+ "name": "search",
12665
12565
  "hasDynamicHelp": false,
12666
12566
  "multiple": false,
12667
12567
  "type": "option"
12668
12568
  },
12669
- "data": {
12670
- "description": "Additional JSON object payload",
12671
- "name": "data",
12569
+ "recipient": {
12570
+ "description": "Filter by recipient ID",
12571
+ "name": "recipient",
12672
12572
  "hasDynamicHelp": false,
12673
12573
  "multiple": false,
12674
12574
  "type": "option"
@@ -12676,7 +12576,7 @@
12676
12576
  },
12677
12577
  "hasDynamicHelp": false,
12678
12578
  "hiddenAliases": [],
12679
- "id": "bots:env-vars:create",
12579
+ "id": "bots:env-vars:values",
12680
12580
  "pluginAlias": "@instantkom/cli",
12681
12581
  "pluginName": "@instantkom/cli",
12682
12582
  "pluginType": "core",
@@ -12688,19 +12588,19 @@
12688
12588
  "commands",
12689
12589
  "bots",
12690
12590
  "env-vars",
12691
- "create.js"
12591
+ "values.js"
12692
12592
  ]
12693
12593
  },
12694
- "bots:env-vars:delete": {
12594
+ "bots:filters:create": {
12695
12595
  "aliases": [],
12696
12596
  "args": {
12697
- "id": {
12698
- "description": "Environment variable ID",
12699
- "name": "id",
12597
+ "botId": {
12598
+ "description": "Bot ID",
12599
+ "name": "botId",
12700
12600
  "required": true
12701
12601
  }
12702
12602
  },
12703
- "description": "Delete a bot environment variable",
12603
+ "description": "Create a bot filter",
12704
12604
  "flags": {
12705
12605
  "api-key": {
12706
12606
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -12763,11 +12663,77 @@
12763
12663
  "hasDynamicHelp": false,
12764
12664
  "multiple": false,
12765
12665
  "type": "option"
12666
+ },
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",
12710
+ "required": true,
12711
+ "hasDynamicHelp": false,
12712
+ "multiple": false,
12713
+ "type": "option"
12714
+ },
12715
+ "status": {
12716
+ "description": "Status: 0 inactive, 1 active",
12717
+ "name": "status",
12718
+ "hasDynamicHelp": false,
12719
+ "multiple": false,
12720
+ "options": [
12721
+ "0",
12722
+ "1"
12723
+ ],
12724
+ "type": "option"
12725
+ },
12726
+ "data": {
12727
+ "description": "Additional JSON object payload",
12728
+ "name": "data",
12729
+ "hasDynamicHelp": false,
12730
+ "multiple": false,
12731
+ "type": "option"
12766
12732
  }
12767
12733
  },
12768
12734
  "hasDynamicHelp": false,
12769
12735
  "hiddenAliases": [],
12770
- "id": "bots:env-vars:delete",
12736
+ "id": "bots:filters:create",
12771
12737
  "pluginAlias": "@instantkom/cli",
12772
12738
  "pluginName": "@instantkom/cli",
12773
12739
  "pluginType": "core",
@@ -12778,20 +12744,25 @@
12778
12744
  "dist",
12779
12745
  "commands",
12780
12746
  "bots",
12781
- "env-vars",
12782
- "delete.js"
12747
+ "filters",
12748
+ "create.js"
12783
12749
  ]
12784
12750
  },
12785
- "bots:env-vars:get": {
12751
+ "bots:filters:delete": {
12786
12752
  "aliases": [],
12787
12753
  "args": {
12788
- "id": {
12789
- "description": "Environment variable ID",
12790
- "name": "id",
12754
+ "botId": {
12755
+ "description": "Bot ID",
12756
+ "name": "botId",
12757
+ "required": true
12758
+ },
12759
+ "filterId": {
12760
+ "description": "Filter ID",
12761
+ "name": "filterId",
12791
12762
  "required": true
12792
12763
  }
12793
12764
  },
12794
- "description": "Get a bot environment variable",
12765
+ "description": "Delete a bot filter",
12795
12766
  "flags": {
12796
12767
  "api-key": {
12797
12768
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -12858,7 +12829,7 @@
12858
12829
  },
12859
12830
  "hasDynamicHelp": false,
12860
12831
  "hiddenAliases": [],
12861
- "id": "bots:env-vars:get",
12832
+ "id": "bots:filters:delete",
12862
12833
  "pluginAlias": "@instantkom/cli",
12863
12834
  "pluginName": "@instantkom/cli",
12864
12835
  "pluginType": "core",
@@ -12869,14 +12840,25 @@
12869
12840
  "dist",
12870
12841
  "commands",
12871
12842
  "bots",
12872
- "env-vars",
12873
- "get.js"
12843
+ "filters",
12844
+ "delete.js"
12874
12845
  ]
12875
12846
  },
12876
- "bots:env-vars:list": {
12847
+ "bots:filters:get": {
12877
12848
  "aliases": [],
12878
- "args": {},
12879
- "description": "List bot environment variables",
12849
+ "args": {
12850
+ "botId": {
12851
+ "description": "Bot ID",
12852
+ "name": "botId",
12853
+ "required": true
12854
+ },
12855
+ "filterId": {
12856
+ "description": "Filter ID",
12857
+ "name": "filterId",
12858
+ "required": true
12859
+ }
12860
+ },
12861
+ "description": "Get a bot filter",
12880
12862
  "flags": {
12881
12863
  "api-key": {
12882
12864
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -12939,41 +12921,11 @@
12939
12921
  "hasDynamicHelp": false,
12940
12922
  "multiple": false,
12941
12923
  "type": "option"
12942
- },
12943
- "page": {
12944
- "description": "Page number",
12945
- "name": "page",
12946
- "default": 1,
12947
- "hasDynamicHelp": false,
12948
- "multiple": false,
12949
- "type": "option"
12950
- },
12951
- "limit": {
12952
- "description": "Items per page",
12953
- "name": "limit",
12954
- "default": 20,
12955
- "hasDynamicHelp": false,
12956
- "multiple": false,
12957
- "type": "option"
12958
- },
12959
- "search": {
12960
- "description": "Search in key or description",
12961
- "name": "search",
12962
- "hasDynamicHelp": false,
12963
- "multiple": false,
12964
- "type": "option"
12965
- },
12966
- "color": {
12967
- "description": "Filter by color",
12968
- "name": "color",
12969
- "hasDynamicHelp": false,
12970
- "multiple": false,
12971
- "type": "option"
12972
12924
  }
12973
12925
  },
12974
12926
  "hasDynamicHelp": false,
12975
12927
  "hiddenAliases": [],
12976
- "id": "bots:env-vars:list",
12928
+ "id": "bots:filters:get",
12977
12929
  "pluginAlias": "@instantkom/cli",
12978
12930
  "pluginName": "@instantkom/cli",
12979
12931
  "pluginType": "core",
@@ -12984,20 +12936,20 @@
12984
12936
  "dist",
12985
12937
  "commands",
12986
12938
  "bots",
12987
- "env-vars",
12988
- "list.js"
12939
+ "filters",
12940
+ "get.js"
12989
12941
  ]
12990
12942
  },
12991
- "bots:env-vars:update": {
12943
+ "bots:filters:list": {
12992
12944
  "aliases": [],
12993
12945
  "args": {
12994
- "id": {
12995
- "description": "Environment variable ID",
12996
- "name": "id",
12946
+ "botId": {
12947
+ "description": "Bot ID",
12948
+ "name": "botId",
12997
12949
  "required": true
12998
12950
  }
12999
12951
  },
13000
- "description": "Update a bot environment variable",
12952
+ "description": "List bot filters",
13001
12953
  "flags": {
13002
12954
  "api-key": {
13003
12955
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -13061,23 +13013,36 @@
13061
13013
  "multiple": false,
13062
13014
  "type": "option"
13063
13015
  },
13064
- "description": {
13065
- "description": "Variable description",
13066
- "name": "description",
13016
+ "page": {
13017
+ "description": "Page number",
13018
+ "name": "page",
13019
+ "default": 1,
13067
13020
  "hasDynamicHelp": false,
13068
13021
  "multiple": false,
13069
13022
  "type": "option"
13070
13023
  },
13071
- "color": {
13072
- "description": "Variable color as HEX",
13073
- "name": "color",
13024
+ "limit": {
13025
+ "description": "Items per page",
13026
+ "name": "limit",
13027
+ "default": 20,
13028
+ "hasDynamicHelp": false,
13029
+ "multiple": false,
13030
+ "type": "option"
13031
+ },
13032
+ "status": {
13033
+ "description": "Status filter: 0 inactive, 1 active",
13034
+ "name": "status",
13074
13035
  "hasDynamicHelp": false,
13075
13036
  "multiple": false,
13037
+ "options": [
13038
+ "0",
13039
+ "1"
13040
+ ],
13076
13041
  "type": "option"
13077
13042
  },
13078
- "data": {
13079
- "description": "Additional JSON object payload",
13080
- "name": "data",
13043
+ "search": {
13044
+ "description": "Search in name or description",
13045
+ "name": "search",
13081
13046
  "hasDynamicHelp": false,
13082
13047
  "multiple": false,
13083
13048
  "type": "option"
@@ -13085,7 +13050,7 @@
13085
13050
  },
13086
13051
  "hasDynamicHelp": false,
13087
13052
  "hiddenAliases": [],
13088
- "id": "bots:env-vars:update",
13053
+ "id": "bots:filters:list",
13089
13054
  "pluginAlias": "@instantkom/cli",
13090
13055
  "pluginName": "@instantkom/cli",
13091
13056
  "pluginType": "core",
@@ -13096,20 +13061,25 @@
13096
13061
  "dist",
13097
13062
  "commands",
13098
13063
  "bots",
13099
- "env-vars",
13100
- "update.js"
13064
+ "filters",
13065
+ "list.js"
13101
13066
  ]
13102
13067
  },
13103
- "bots:env-vars:values": {
13068
+ "bots:filters:update": {
13104
13069
  "aliases": [],
13105
13070
  "args": {
13106
- "id": {
13107
- "description": "Environment variable ID",
13108
- "name": "id",
13071
+ "botId": {
13072
+ "description": "Bot ID",
13073
+ "name": "botId",
13074
+ "required": true
13075
+ },
13076
+ "filterId": {
13077
+ "description": "Filter ID",
13078
+ "name": "filterId",
13109
13079
  "required": true
13110
13080
  }
13111
13081
  },
13112
- "description": "List recipient values for a bot environment variable",
13082
+ "description": "Update a bot filter",
13113
13083
  "flags": {
13114
13084
  "api-key": {
13115
13085
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -13173,32 +13143,62 @@
13173
13143
  "multiple": false,
13174
13144
  "type": "option"
13175
13145
  },
13176
- "page": {
13177
- "description": "Page number",
13178
- "name": "page",
13179
- "default": 1,
13146
+ "name": {
13147
+ "description": "Filter name",
13148
+ "name": "name",
13180
13149
  "hasDynamicHelp": false,
13181
13150
  "multiple": false,
13182
13151
  "type": "option"
13183
13152
  },
13184
- "limit": {
13185
- "description": "Items per page",
13186
- "name": "limit",
13187
- "default": 20,
13153
+ "operator": {
13154
+ "description": "Logical operator",
13155
+ "name": "operator",
13188
13156
  "hasDynamicHelp": false,
13189
13157
  "multiple": false,
13190
13158
  "type": "option"
13191
13159
  },
13192
- "search": {
13193
- "description": "Search in recipient name or identifier",
13194
- "name": "search",
13160
+ "filter-object": {
13161
+ "description": "Filter object type",
13162
+ "name": "filter-object",
13195
13163
  "hasDynamicHelp": false,
13196
13164
  "multiple": false,
13197
13165
  "type": "option"
13198
13166
  },
13199
- "recipient": {
13200
- "description": "Filter by recipient ID",
13201
- "name": "recipient",
13167
+ "filter-attribute": {
13168
+ "description": "Filter attribute",
13169
+ "name": "filter-attribute",
13170
+ "hasDynamicHelp": false,
13171
+ "multiple": false,
13172
+ "type": "option"
13173
+ },
13174
+ "filter-comparator": {
13175
+ "description": "Filter comparator",
13176
+ "name": "filter-comparator",
13177
+ "hasDynamicHelp": false,
13178
+ "multiple": false,
13179
+ "type": "option"
13180
+ },
13181
+ "filter-value": {
13182
+ "description": "Filter value",
13183
+ "name": "filter-value",
13184
+ "hasDynamicHelp": false,
13185
+ "multiple": false,
13186
+ "type": "option"
13187
+ },
13188
+ "status": {
13189
+ "description": "Status: 0 inactive, 1 active",
13190
+ "name": "status",
13191
+ "hasDynamicHelp": false,
13192
+ "multiple": false,
13193
+ "options": [
13194
+ "0",
13195
+ "1"
13196
+ ],
13197
+ "type": "option"
13198
+ },
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": {
@@ -13504,7 +13504,7 @@
13504
13504
  "remove.js"
13505
13505
  ]
13506
13506
  },
13507
- "contacts:tags:add": {
13507
+ "contacts:custom-fields:delete-value": {
13508
13508
  "aliases": [],
13509
13509
  "args": {
13510
13510
  "contactId": {
@@ -13512,13 +13512,13 @@
13512
13512
  "name": "contactId",
13513
13513
  "required": true
13514
13514
  },
13515
- "tagId": {
13516
- "description": "Tag ID",
13517
- "name": "tagId",
13515
+ "fieldId": {
13516
+ "description": "Custom field ID",
13517
+ "name": "fieldId",
13518
13518
  "required": true
13519
13519
  }
13520
13520
  },
13521
- "description": "Assign a tag to a contact",
13521
+ "description": "Delete one custom field value from a contact",
13522
13522
  "flags": {
13523
13523
  "api-key": {
13524
13524
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -13585,7 +13585,7 @@
13585
13585
  },
13586
13586
  "hasDynamicHelp": false,
13587
13587
  "hiddenAliases": [],
13588
- "id": "contacts:tags:add",
13588
+ "id": "contacts:custom-fields:delete-value",
13589
13589
  "pluginAlias": "@instantkom/cli",
13590
13590
  "pluginName": "@instantkom/cli",
13591
13591
  "pluginType": "core",
@@ -13596,11 +13596,11 @@
13596
13596
  "dist",
13597
13597
  "commands",
13598
13598
  "contacts",
13599
- "tags",
13600
- "add.js"
13599
+ "custom-fields",
13600
+ "delete-value.js"
13601
13601
  ]
13602
13602
  },
13603
- "contacts:tags:list": {
13603
+ "contacts:custom-fields:list": {
13604
13604
  "aliases": [],
13605
13605
  "args": {
13606
13606
  "contactId": {
@@ -13609,7 +13609,7 @@
13609
13609
  "required": true
13610
13610
  }
13611
13611
  },
13612
- "description": "List tags assigned to a contact",
13612
+ "description": "List custom field values for a contact",
13613
13613
  "flags": {
13614
13614
  "api-key": {
13615
13615
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -13676,7 +13676,7 @@
13676
13676
  },
13677
13677
  "hasDynamicHelp": false,
13678
13678
  "hiddenAliases": [],
13679
- "id": "contacts:tags:list",
13679
+ "id": "contacts:custom-fields:list",
13680
13680
  "pluginAlias": "@instantkom/cli",
13681
13681
  "pluginName": "@instantkom/cli",
13682
13682
  "pluginType": "core",
@@ -13687,11 +13687,11 @@
13687
13687
  "dist",
13688
13688
  "commands",
13689
13689
  "contacts",
13690
- "tags",
13690
+ "custom-fields",
13691
13691
  "list.js"
13692
13692
  ]
13693
13693
  },
13694
- "contacts:tags:remove": {
13694
+ "contacts:custom-fields:set-value": {
13695
13695
  "aliases": [],
13696
13696
  "args": {
13697
13697
  "contactId": {
@@ -13699,13 +13699,13 @@
13699
13699
  "name": "contactId",
13700
13700
  "required": true
13701
13701
  },
13702
- "tagId": {
13703
- "description": "Tag ID",
13704
- "name": "tagId",
13702
+ "fieldId": {
13703
+ "description": "Custom field ID",
13704
+ "name": "fieldId",
13705
13705
  "required": true
13706
13706
  }
13707
13707
  },
13708
- "description": "Remove a tag from a contact",
13708
+ "description": "Set one custom field value for a contact",
13709
13709
  "flags": {
13710
13710
  "api-key": {
13711
13711
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -13768,11 +13768,19 @@
13768
13768
  "hasDynamicHelp": false,
13769
13769
  "multiple": false,
13770
13770
  "type": "option"
13771
+ },
13772
+ "value": {
13773
+ "description": "Custom field value",
13774
+ "name": "value",
13775
+ "required": true,
13776
+ "hasDynamicHelp": false,
13777
+ "multiple": false,
13778
+ "type": "option"
13771
13779
  }
13772
13780
  },
13773
13781
  "hasDynamicHelp": false,
13774
13782
  "hiddenAliases": [],
13775
- "id": "contacts:tags:remove",
13783
+ "id": "contacts:custom-fields:set-value",
13776
13784
  "pluginAlias": "@instantkom/cli",
13777
13785
  "pluginName": "@instantkom/cli",
13778
13786
  "pluginType": "core",
@@ -13783,25 +13791,20 @@
13783
13791
  "dist",
13784
13792
  "commands",
13785
13793
  "contacts",
13786
- "tags",
13787
- "remove.js"
13794
+ "custom-fields",
13795
+ "set-value.js"
13788
13796
  ]
13789
13797
  },
13790
- "contacts:custom-fields:delete-value": {
13798
+ "contacts:custom-fields:set": {
13791
13799
  "aliases": [],
13792
13800
  "args": {
13793
13801
  "contactId": {
13794
13802
  "description": "Contact ID",
13795
13803
  "name": "contactId",
13796
13804
  "required": true
13797
- },
13798
- "fieldId": {
13799
- "description": "Custom field ID",
13800
- "name": "fieldId",
13801
- "required": true
13802
13805
  }
13803
13806
  },
13804
- "description": "Delete one custom field value from a contact",
13807
+ "description": "Set multiple custom field values for a contact",
13805
13808
  "flags": {
13806
13809
  "api-key": {
13807
13810
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -13864,11 +13867,32 @@
13864
13867
  "hasDynamicHelp": false,
13865
13868
  "multiple": false,
13866
13869
  "type": "option"
13870
+ },
13871
+ "values": {
13872
+ "description": "JSON object with field keys as property names",
13873
+ "name": "values",
13874
+ "hasDynamicHelp": false,
13875
+ "multiple": false,
13876
+ "type": "option"
13877
+ },
13878
+ "file": {
13879
+ "description": "Path to a JSON file with field keys as property names",
13880
+ "name": "file",
13881
+ "hasDynamicHelp": false,
13882
+ "multiple": false,
13883
+ "type": "option"
13884
+ },
13885
+ "data": {
13886
+ "description": "Additional JSON object payload",
13887
+ "name": "data",
13888
+ "hasDynamicHelp": false,
13889
+ "multiple": false,
13890
+ "type": "option"
13867
13891
  }
13868
13892
  },
13869
13893
  "hasDynamicHelp": false,
13870
13894
  "hiddenAliases": [],
13871
- "id": "contacts:custom-fields:delete-value",
13895
+ "id": "contacts:custom-fields:set",
13872
13896
  "pluginAlias": "@instantkom/cli",
13873
13897
  "pluginName": "@instantkom/cli",
13874
13898
  "pluginType": "core",
@@ -13880,19 +13904,24 @@
13880
13904
  "commands",
13881
13905
  "contacts",
13882
13906
  "custom-fields",
13883
- "delete-value.js"
13907
+ "set.js"
13884
13908
  ]
13885
13909
  },
13886
- "contacts:custom-fields:list": {
13910
+ "contacts:tags:add": {
13887
13911
  "aliases": [],
13888
13912
  "args": {
13889
13913
  "contactId": {
13890
13914
  "description": "Contact ID",
13891
13915
  "name": "contactId",
13892
13916
  "required": true
13917
+ },
13918
+ "tagId": {
13919
+ "description": "Tag ID",
13920
+ "name": "tagId",
13921
+ "required": true
13893
13922
  }
13894
13923
  },
13895
- "description": "List custom field values for a contact",
13924
+ "description": "Assign a tag to a contact",
13896
13925
  "flags": {
13897
13926
  "api-key": {
13898
13927
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -13959,7 +13988,7 @@
13959
13988
  },
13960
13989
  "hasDynamicHelp": false,
13961
13990
  "hiddenAliases": [],
13962
- "id": "contacts:custom-fields:list",
13991
+ "id": "contacts:tags:add",
13963
13992
  "pluginAlias": "@instantkom/cli",
13964
13993
  "pluginName": "@instantkom/cli",
13965
13994
  "pluginType": "core",
@@ -13970,25 +13999,20 @@
13970
13999
  "dist",
13971
14000
  "commands",
13972
14001
  "contacts",
13973
- "custom-fields",
13974
- "list.js"
14002
+ "tags",
14003
+ "add.js"
13975
14004
  ]
13976
14005
  },
13977
- "contacts:custom-fields:set-value": {
14006
+ "contacts:tags:list": {
13978
14007
  "aliases": [],
13979
14008
  "args": {
13980
14009
  "contactId": {
13981
14010
  "description": "Contact ID",
13982
14011
  "name": "contactId",
13983
14012
  "required": true
13984
- },
13985
- "fieldId": {
13986
- "description": "Custom field ID",
13987
- "name": "fieldId",
13988
- "required": true
13989
14013
  }
13990
14014
  },
13991
- "description": "Set one custom field value for a contact",
14015
+ "description": "List tags assigned to a contact",
13992
14016
  "flags": {
13993
14017
  "api-key": {
13994
14018
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -14051,19 +14075,11 @@
14051
14075
  "hasDynamicHelp": false,
14052
14076
  "multiple": false,
14053
14077
  "type": "option"
14054
- },
14055
- "value": {
14056
- "description": "Custom field value",
14057
- "name": "value",
14058
- "required": true,
14059
- "hasDynamicHelp": false,
14060
- "multiple": false,
14061
- "type": "option"
14062
14078
  }
14063
14079
  },
14064
14080
  "hasDynamicHelp": false,
14065
14081
  "hiddenAliases": [],
14066
- "id": "contacts:custom-fields:set-value",
14082
+ "id": "contacts:tags:list",
14067
14083
  "pluginAlias": "@instantkom/cli",
14068
14084
  "pluginName": "@instantkom/cli",
14069
14085
  "pluginType": "core",
@@ -14074,20 +14090,25 @@
14074
14090
  "dist",
14075
14091
  "commands",
14076
14092
  "contacts",
14077
- "custom-fields",
14078
- "set-value.js"
14093
+ "tags",
14094
+ "list.js"
14079
14095
  ]
14080
14096
  },
14081
- "contacts:custom-fields:set": {
14097
+ "contacts:tags:remove": {
14082
14098
  "aliases": [],
14083
14099
  "args": {
14084
14100
  "contactId": {
14085
14101
  "description": "Contact ID",
14086
14102
  "name": "contactId",
14087
14103
  "required": true
14104
+ },
14105
+ "tagId": {
14106
+ "description": "Tag ID",
14107
+ "name": "tagId",
14108
+ "required": true
14088
14109
  }
14089
14110
  },
14090
- "description": "Set multiple custom field values for a contact",
14111
+ "description": "Remove a tag from a contact",
14091
14112
  "flags": {
14092
14113
  "api-key": {
14093
14114
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -14150,32 +14171,11 @@
14150
14171
  "hasDynamicHelp": false,
14151
14172
  "multiple": false,
14152
14173
  "type": "option"
14153
- },
14154
- "values": {
14155
- "description": "JSON object with field keys as property names",
14156
- "name": "values",
14157
- "hasDynamicHelp": false,
14158
- "multiple": false,
14159
- "type": "option"
14160
- },
14161
- "file": {
14162
- "description": "Path to a JSON file with field keys as property names",
14163
- "name": "file",
14164
- "hasDynamicHelp": false,
14165
- "multiple": false,
14166
- "type": "option"
14167
- },
14168
- "data": {
14169
- "description": "Additional JSON object payload",
14170
- "name": "data",
14171
- "hasDynamicHelp": false,
14172
- "multiple": false,
14173
- "type": "option"
14174
14174
  }
14175
14175
  },
14176
14176
  "hasDynamicHelp": false,
14177
14177
  "hiddenAliases": [],
14178
- "id": "contacts:custom-fields:set",
14178
+ "id": "contacts:tags:remove",
14179
14179
  "pluginAlias": "@instantkom/cli",
14180
14180
  "pluginName": "@instantkom/cli",
14181
14181
  "pluginType": "core",
@@ -14186,8 +14186,8 @@
14186
14186
  "dist",
14187
14187
  "commands",
14188
14188
  "contacts",
14189
- "custom-fields",
14190
- "set.js"
14189
+ "tags",
14190
+ "remove.js"
14191
14191
  ]
14192
14192
  },
14193
14193
  "flow:edges:create": {
@@ -16352,5 +16352,5 @@
16352
16352
  ]
16353
16353
  }
16354
16354
  },
16355
- "version": "3.140.1"
16355
+ "version": "3.140.2"
16356
16356
  }