@instantkom/cli 3.137.0 → 3.138.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -722,6 +722,40 @@
722
722
  "whoami.js"
723
723
  ]
724
724
  },
725
+ "autocomplete:script": {
726
+ "aliases": [],
727
+ "args": {
728
+ "shell": {
729
+ "description": "Shell type",
730
+ "name": "shell",
731
+ "options": [
732
+ "zsh",
733
+ "bash",
734
+ "fish",
735
+ "powershell"
736
+ ],
737
+ "required": false
738
+ }
739
+ },
740
+ "description": "outputs autocomplete config script for shells",
741
+ "flags": {},
742
+ "hasDynamicHelp": false,
743
+ "hidden": true,
744
+ "hiddenAliases": [],
745
+ "id": "autocomplete:script",
746
+ "pluginAlias": "@instantkom/cli",
747
+ "pluginName": "@instantkom/cli",
748
+ "pluginType": "core",
749
+ "strict": true,
750
+ "enableJsonFlag": false,
751
+ "isESM": true,
752
+ "relativePath": [
753
+ "dist",
754
+ "commands",
755
+ "autocomplete",
756
+ "script.js"
757
+ ]
758
+ },
725
759
  "account:get": {
726
760
  "aliases": [],
727
761
  "args": {},
@@ -953,10 +987,10 @@
953
987
  "update.js"
954
988
  ]
955
989
  },
956
- "auth:login": {
990
+ "ai:reply": {
957
991
  "aliases": [],
958
992
  "args": {},
959
- "description": "Authenticate with the instantKOM API via device authorization flow",
993
+ "description": "Generate AI reply suggestions for a message",
960
994
  "flags": {
961
995
  "api-key": {
962
996
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -1020,24 +1054,46 @@
1020
1054
  "multiple": false,
1021
1055
  "type": "option"
1022
1056
  },
1023
- "scope": {
1024
- "description": "Requested token scope",
1025
- "name": "scope",
1026
- "default": "read",
1057
+ "message-id": {
1058
+ "description": "Message ID to use as smart-reply anchor",
1059
+ "name": "message-id",
1060
+ "required": true,
1061
+ "hasDynamicHelp": false,
1062
+ "multiple": false,
1063
+ "type": "option"
1064
+ },
1065
+ "limit": {
1066
+ "description": "Number of suggestions to generate (1-5)",
1067
+ "name": "limit",
1068
+ "hasDynamicHelp": false,
1069
+ "multiple": false,
1070
+ "type": "option"
1071
+ },
1072
+ "context-length": {
1073
+ "description": "Number of recent messages to use as context (1-20)",
1074
+ "name": "context-length",
1075
+ "hasDynamicHelp": false,
1076
+ "multiple": false,
1077
+ "type": "option"
1078
+ },
1079
+ "style": {
1080
+ "description": "Response style",
1081
+ "name": "style",
1027
1082
  "hasDynamicHelp": false,
1028
1083
  "multiple": false,
1029
1084
  "options": [
1030
- "full",
1031
- "send",
1032
- "read",
1033
- "admin"
1085
+ "professional",
1086
+ "friendly",
1087
+ "concise",
1088
+ "detailed",
1089
+ "empathetic"
1034
1090
  ],
1035
1091
  "type": "option"
1036
1092
  }
1037
1093
  },
1038
1094
  "hasDynamicHelp": false,
1039
1095
  "hiddenAliases": [],
1040
- "id": "auth:login",
1096
+ "id": "ai:reply",
1041
1097
  "pluginAlias": "@instantkom/cli",
1042
1098
  "pluginName": "@instantkom/cli",
1043
1099
  "pluginType": "core",
@@ -1047,14 +1103,14 @@
1047
1103
  "relativePath": [
1048
1104
  "dist",
1049
1105
  "commands",
1050
- "auth",
1051
- "login.js"
1106
+ "ai",
1107
+ "reply.js"
1052
1108
  ]
1053
1109
  },
1054
- "auth:logout": {
1110
+ "auth:login": {
1055
1111
  "aliases": [],
1056
1112
  "args": {},
1057
- "description": "Remove the stored API token for the current profile",
1113
+ "description": "Authenticate with the instantKOM API via device authorization flow",
1058
1114
  "flags": {
1059
1115
  "api-key": {
1060
1116
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -1117,11 +1173,25 @@
1117
1173
  "hasDynamicHelp": false,
1118
1174
  "multiple": false,
1119
1175
  "type": "option"
1176
+ },
1177
+ "scope": {
1178
+ "description": "Requested token scope",
1179
+ "name": "scope",
1180
+ "default": "read",
1181
+ "hasDynamicHelp": false,
1182
+ "multiple": false,
1183
+ "options": [
1184
+ "full",
1185
+ "send",
1186
+ "read",
1187
+ "admin"
1188
+ ],
1189
+ "type": "option"
1120
1190
  }
1121
1191
  },
1122
1192
  "hasDynamicHelp": false,
1123
1193
  "hiddenAliases": [],
1124
- "id": "auth:logout",
1194
+ "id": "auth:login",
1125
1195
  "pluginAlias": "@instantkom/cli",
1126
1196
  "pluginName": "@instantkom/cli",
1127
1197
  "pluginType": "core",
@@ -1132,13 +1202,13 @@
1132
1202
  "dist",
1133
1203
  "commands",
1134
1204
  "auth",
1135
- "logout.js"
1205
+ "login.js"
1136
1206
  ]
1137
1207
  },
1138
- "ai:reply": {
1208
+ "auth:logout": {
1139
1209
  "aliases": [],
1140
1210
  "args": {},
1141
- "description": "Generate AI reply suggestions for a message",
1211
+ "description": "Remove the stored API token for the current profile",
1142
1212
  "flags": {
1143
1213
  "api-key": {
1144
1214
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -1201,81 +1271,11 @@
1201
1271
  "hasDynamicHelp": false,
1202
1272
  "multiple": false,
1203
1273
  "type": "option"
1204
- },
1205
- "message-id": {
1206
- "description": "Message ID to use as smart-reply anchor",
1207
- "name": "message-id",
1208
- "required": true,
1209
- "hasDynamicHelp": false,
1210
- "multiple": false,
1211
- "type": "option"
1212
- },
1213
- "limit": {
1214
- "description": "Number of suggestions to generate (1-5)",
1215
- "name": "limit",
1216
- "hasDynamicHelp": false,
1217
- "multiple": false,
1218
- "type": "option"
1219
- },
1220
- "context-length": {
1221
- "description": "Number of recent messages to use as context (1-20)",
1222
- "name": "context-length",
1223
- "hasDynamicHelp": false,
1224
- "multiple": false,
1225
- "type": "option"
1226
- },
1227
- "style": {
1228
- "description": "Response style",
1229
- "name": "style",
1230
- "hasDynamicHelp": false,
1231
- "multiple": false,
1232
- "options": [
1233
- "professional",
1234
- "friendly",
1235
- "concise",
1236
- "detailed",
1237
- "empathetic"
1238
- ],
1239
- "type": "option"
1240
- }
1241
- },
1242
- "hasDynamicHelp": false,
1243
- "hiddenAliases": [],
1244
- "id": "ai:reply",
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
- "ai",
1255
- "reply.js"
1256
- ]
1257
- },
1258
- "autocomplete:script": {
1259
- "aliases": [],
1260
- "args": {
1261
- "shell": {
1262
- "description": "Shell type",
1263
- "name": "shell",
1264
- "options": [
1265
- "zsh",
1266
- "bash",
1267
- "fish",
1268
- "powershell"
1269
- ],
1270
- "required": false
1271
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": "auth:logout",
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
+ "auth",
1289
+ "logout.js"
1290
1290
  ]
1291
1291
  },
1292
1292
  "bots:create": {
@@ -2843,10 +2843,16 @@
2843
2843
  "update.js"
2844
2844
  ]
2845
2845
  },
2846
- "channels:create": {
2846
+ "chats:get": {
2847
2847
  "aliases": [],
2848
- "args": {},
2849
- "description": "Create a channel",
2848
+ "args": {
2849
+ "id": {
2850
+ "description": "chat ID",
2851
+ "name": "id",
2852
+ "required": true
2853
+ }
2854
+ },
2855
+ "description": "Get chat by ID",
2850
2856
  "flags": {
2851
2857
  "api-key": {
2852
2858
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -2909,48 +2915,11 @@
2909
2915
  "hasDynamicHelp": false,
2910
2916
  "multiple": false,
2911
2917
  "type": "option"
2912
- },
2913
- "name": {
2914
- "description": "Channel name",
2915
- "name": "name",
2916
- "required": true,
2917
- "hasDynamicHelp": false,
2918
- "multiple": false,
2919
- "type": "option"
2920
- },
2921
- "gateway-type": {
2922
- "description": "Gateway type ID",
2923
- "name": "gateway-type",
2924
- "required": true,
2925
- "hasDynamicHelp": false,
2926
- "multiple": false,
2927
- "type": "option"
2928
- },
2929
- "status": {
2930
- "description": "Channel lifecycle status",
2931
- "name": "status",
2932
- "hasDynamicHelp": false,
2933
- "multiple": false,
2934
- "type": "option"
2935
- },
2936
- "description": {
2937
- "description": "Channel description",
2938
- "name": "description",
2939
- "hasDynamicHelp": false,
2940
- "multiple": false,
2941
- "type": "option"
2942
- },
2943
- "data": {
2944
- "description": "Additional JSON object payload",
2945
- "name": "data",
2946
- "hasDynamicHelp": false,
2947
- "multiple": false,
2948
- "type": "option"
2949
2918
  }
2950
2919
  },
2951
2920
  "hasDynamicHelp": false,
2952
2921
  "hiddenAliases": [],
2953
- "id": "channels:create",
2922
+ "id": "chats:get",
2954
2923
  "pluginAlias": "@instantkom/cli",
2955
2924
  "pluginName": "@instantkom/cli",
2956
2925
  "pluginType": "core",
@@ -2960,20 +2929,14 @@
2960
2929
  "relativePath": [
2961
2930
  "dist",
2962
2931
  "commands",
2963
- "channels",
2964
- "create.js"
2932
+ "chats",
2933
+ "get.js"
2965
2934
  ]
2966
2935
  },
2967
- "channels:get": {
2936
+ "chats:list": {
2968
2937
  "aliases": [],
2969
- "args": {
2970
- "id": {
2971
- "description": "Channel ID",
2972
- "name": "id",
2973
- "required": true
2974
- }
2975
- },
2976
- "description": "Get a channel by ID",
2938
+ "args": {},
2939
+ "description": "List chats",
2977
2940
  "flags": {
2978
2941
  "api-key": {
2979
2942
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -3036,11 +2999,73 @@
3036
2999
  "hasDynamicHelp": false,
3037
3000
  "multiple": false,
3038
3001
  "type": "option"
3039
- }
3040
- },
3041
- "hasDynamicHelp": false,
3042
- "hiddenAliases": [],
3043
- "id": "channels:get",
3002
+ },
3003
+ "page": {
3004
+ "description": "Page number",
3005
+ "name": "page",
3006
+ "default": 1,
3007
+ "hasDynamicHelp": false,
3008
+ "multiple": false,
3009
+ "type": "option"
3010
+ },
3011
+ "limit": {
3012
+ "description": "Items per page",
3013
+ "name": "limit",
3014
+ "default": 20,
3015
+ "hasDynamicHelp": false,
3016
+ "multiple": false,
3017
+ "type": "option"
3018
+ },
3019
+ "channel": {
3020
+ "description": "Filter by channel ID",
3021
+ "name": "channel",
3022
+ "hasDynamicHelp": false,
3023
+ "multiple": false,
3024
+ "type": "option"
3025
+ },
3026
+ "channels": {
3027
+ "description": "Comma-separated channel IDs",
3028
+ "name": "channels",
3029
+ "hasDynamicHelp": false,
3030
+ "multiple": false,
3031
+ "type": "option"
3032
+ },
3033
+ "search": {
3034
+ "description": "Search chats",
3035
+ "name": "search",
3036
+ "hasDynamicHelp": false,
3037
+ "multiple": false,
3038
+ "type": "option"
3039
+ },
3040
+ "status": {
3041
+ "description": "Chat status",
3042
+ "name": "status",
3043
+ "hasDynamicHelp": false,
3044
+ "multiple": false,
3045
+ "options": [
3046
+ "all",
3047
+ "unread",
3048
+ "read",
3049
+ "archived"
3050
+ ],
3051
+ "type": "option"
3052
+ },
3053
+ "unread-only": {
3054
+ "description": "Only unread chats",
3055
+ "name": "unread-only",
3056
+ "allowNo": false,
3057
+ "type": "boolean"
3058
+ },
3059
+ "include-archived": {
3060
+ "description": "Include archived chats",
3061
+ "name": "include-archived",
3062
+ "allowNo": false,
3063
+ "type": "boolean"
3064
+ }
3065
+ },
3066
+ "hasDynamicHelp": false,
3067
+ "hiddenAliases": [],
3068
+ "id": "chats:list",
3044
3069
  "pluginAlias": "@instantkom/cli",
3045
3070
  "pluginName": "@instantkom/cli",
3046
3071
  "pluginType": "core",
@@ -3050,20 +3075,20 @@
3050
3075
  "relativePath": [
3051
3076
  "dist",
3052
3077
  "commands",
3053
- "channels",
3054
- "get.js"
3078
+ "chats",
3079
+ "list.js"
3055
3080
  ]
3056
3081
  },
3057
- "channels:kpis": {
3082
+ "chats:reply": {
3058
3083
  "aliases": [],
3059
3084
  "args": {
3060
3085
  "id": {
3061
- "description": "Optional channel ID; omit for aggregated channel KPIs",
3086
+ "description": "Chat ID",
3062
3087
  "name": "id",
3063
- "required": false
3088
+ "required": true
3064
3089
  }
3065
3090
  },
3066
- "description": "Get channel KPIs",
3091
+ "description": "Reply in a chat",
3067
3092
  "flags": {
3068
3093
  "api-key": {
3069
3094
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -3127,9 +3152,10 @@
3127
3152
  "multiple": false,
3128
3153
  "type": "option"
3129
3154
  },
3130
- "period": {
3131
- "description": "KPI period",
3132
- "name": "period",
3155
+ "text": {
3156
+ "description": "Reply text",
3157
+ "name": "text",
3158
+ "required": true,
3133
3159
  "hasDynamicHelp": false,
3134
3160
  "multiple": false,
3135
3161
  "type": "option"
@@ -3137,7 +3163,7 @@
3137
3163
  },
3138
3164
  "hasDynamicHelp": false,
3139
3165
  "hiddenAliases": [],
3140
- "id": "channels:kpis",
3166
+ "id": "chats:reply",
3141
3167
  "pluginAlias": "@instantkom/cli",
3142
3168
  "pluginName": "@instantkom/cli",
3143
3169
  "pluginType": "core",
@@ -3147,14 +3173,14 @@
3147
3173
  "relativePath": [
3148
3174
  "dist",
3149
3175
  "commands",
3150
- "channels",
3151
- "kpis.js"
3176
+ "chats",
3177
+ "reply.js"
3152
3178
  ]
3153
3179
  },
3154
- "channels:list": {
3180
+ "channels:create": {
3155
3181
  "aliases": [],
3156
3182
  "args": {},
3157
- "description": "List channels",
3183
+ "description": "Create a channel",
3158
3184
  "flags": {
3159
3185
  "api-key": {
3160
3186
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -3218,39 +3244,39 @@
3218
3244
  "multiple": false,
3219
3245
  "type": "option"
3220
3246
  },
3221
- "page": {
3222
- "description": "Page number",
3223
- "name": "page",
3224
- "default": 1,
3247
+ "name": {
3248
+ "description": "Channel name",
3249
+ "name": "name",
3250
+ "required": true,
3225
3251
  "hasDynamicHelp": false,
3226
3252
  "multiple": false,
3227
3253
  "type": "option"
3228
3254
  },
3229
- "limit": {
3230
- "description": "Items per page",
3231
- "name": "limit",
3232
- "default": 20,
3255
+ "gateway-type": {
3256
+ "description": "Gateway type ID",
3257
+ "name": "gateway-type",
3258
+ "required": true,
3233
3259
  "hasDynamicHelp": false,
3234
3260
  "multiple": false,
3235
3261
  "type": "option"
3236
3262
  },
3237
3263
  "status": {
3238
- "description": "Filter by channel status",
3264
+ "description": "Channel lifecycle status",
3239
3265
  "name": "status",
3240
3266
  "hasDynamicHelp": false,
3241
3267
  "multiple": false,
3242
3268
  "type": "option"
3243
3269
  },
3244
- "gateway-type": {
3245
- "description": "Filter by gateway type ID",
3246
- "name": "gateway-type",
3270
+ "description": {
3271
+ "description": "Channel description",
3272
+ "name": "description",
3247
3273
  "hasDynamicHelp": false,
3248
3274
  "multiple": false,
3249
3275
  "type": "option"
3250
3276
  },
3251
- "search": {
3252
- "description": "Search by channel name",
3253
- "name": "search",
3277
+ "data": {
3278
+ "description": "Additional JSON object payload",
3279
+ "name": "data",
3254
3280
  "hasDynamicHelp": false,
3255
3281
  "multiple": false,
3256
3282
  "type": "option"
@@ -3258,7 +3284,7 @@
3258
3284
  },
3259
3285
  "hasDynamicHelp": false,
3260
3286
  "hiddenAliases": [],
3261
- "id": "channels:list",
3287
+ "id": "channels:create",
3262
3288
  "pluginAlias": "@instantkom/cli",
3263
3289
  "pluginName": "@instantkom/cli",
3264
3290
  "pluginType": "core",
@@ -3269,10 +3295,10 @@
3269
3295
  "dist",
3270
3296
  "commands",
3271
3297
  "channels",
3272
- "list.js"
3298
+ "create.js"
3273
3299
  ]
3274
3300
  },
3275
- "channels:update": {
3301
+ "channels:get": {
3276
3302
  "aliases": [],
3277
3303
  "args": {
3278
3304
  "id": {
@@ -3281,7 +3307,7 @@
3281
3307
  "required": true
3282
3308
  }
3283
3309
  },
3284
- "description": "Update a channel",
3310
+ "description": "Get a channel by ID",
3285
3311
  "flags": {
3286
3312
  "api-key": {
3287
3313
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -3344,39 +3370,11 @@
3344
3370
  "hasDynamicHelp": false,
3345
3371
  "multiple": false,
3346
3372
  "type": "option"
3347
- },
3348
- "name": {
3349
- "description": "Channel name",
3350
- "name": "name",
3351
- "hasDynamicHelp": false,
3352
- "multiple": false,
3353
- "type": "option"
3354
- },
3355
- "status": {
3356
- "description": "Channel lifecycle status",
3357
- "name": "status",
3358
- "hasDynamicHelp": false,
3359
- "multiple": false,
3360
- "type": "option"
3361
- },
3362
- "description": {
3363
- "description": "Channel description",
3364
- "name": "description",
3365
- "hasDynamicHelp": false,
3366
- "multiple": false,
3367
- "type": "option"
3368
- },
3369
- "data": {
3370
- "description": "Additional JSON object payload",
3371
- "name": "data",
3372
- "hasDynamicHelp": false,
3373
- "multiple": false,
3374
- "type": "option"
3375
3373
  }
3376
3374
  },
3377
3375
  "hasDynamicHelp": false,
3378
3376
  "hiddenAliases": [],
3379
- "id": "channels:update",
3377
+ "id": "channels:get",
3380
3378
  "pluginAlias": "@instantkom/cli",
3381
3379
  "pluginName": "@instantkom/cli",
3382
3380
  "pluginType": "core",
@@ -3387,19 +3385,19 @@
3387
3385
  "dist",
3388
3386
  "commands",
3389
3387
  "channels",
3390
- "update.js"
3388
+ "get.js"
3391
3389
  ]
3392
3390
  },
3393
- "chats:get": {
3391
+ "channels:kpis": {
3394
3392
  "aliases": [],
3395
3393
  "args": {
3396
3394
  "id": {
3397
- "description": "chat ID",
3395
+ "description": "Optional channel ID; omit for aggregated channel KPIs",
3398
3396
  "name": "id",
3399
- "required": true
3397
+ "required": false
3400
3398
  }
3401
3399
  },
3402
- "description": "Get chat by ID",
3400
+ "description": "Get channel KPIs",
3403
3401
  "flags": {
3404
3402
  "api-key": {
3405
3403
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -3462,11 +3460,18 @@
3462
3460
  "hasDynamicHelp": false,
3463
3461
  "multiple": false,
3464
3462
  "type": "option"
3463
+ },
3464
+ "period": {
3465
+ "description": "KPI period",
3466
+ "name": "period",
3467
+ "hasDynamicHelp": false,
3468
+ "multiple": false,
3469
+ "type": "option"
3465
3470
  }
3466
3471
  },
3467
3472
  "hasDynamicHelp": false,
3468
3473
  "hiddenAliases": [],
3469
- "id": "chats:get",
3474
+ "id": "channels:kpis",
3470
3475
  "pluginAlias": "@instantkom/cli",
3471
3476
  "pluginName": "@instantkom/cli",
3472
3477
  "pluginType": "core",
@@ -3476,14 +3481,14 @@
3476
3481
  "relativePath": [
3477
3482
  "dist",
3478
3483
  "commands",
3479
- "chats",
3480
- "get.js"
3484
+ "channels",
3485
+ "kpis.js"
3481
3486
  ]
3482
3487
  },
3483
- "chats:list": {
3488
+ "channels:list": {
3484
3489
  "aliases": [],
3485
3490
  "args": {},
3486
- "description": "List chats",
3491
+ "description": "List channels",
3487
3492
  "flags": {
3488
3493
  "api-key": {
3489
3494
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -3563,56 +3568,31 @@
3563
3568
  "multiple": false,
3564
3569
  "type": "option"
3565
3570
  },
3566
- "channel": {
3567
- "description": "Filter by channel ID",
3568
- "name": "channel",
3571
+ "status": {
3572
+ "description": "Filter by channel status",
3573
+ "name": "status",
3569
3574
  "hasDynamicHelp": false,
3570
3575
  "multiple": false,
3571
3576
  "type": "option"
3572
3577
  },
3573
- "channels": {
3574
- "description": "Comma-separated channel IDs",
3575
- "name": "channels",
3578
+ "gateway-type": {
3579
+ "description": "Filter by gateway type ID",
3580
+ "name": "gateway-type",
3576
3581
  "hasDynamicHelp": false,
3577
3582
  "multiple": false,
3578
3583
  "type": "option"
3579
3584
  },
3580
3585
  "search": {
3581
- "description": "Search chats",
3586
+ "description": "Search by channel name",
3582
3587
  "name": "search",
3583
3588
  "hasDynamicHelp": false,
3584
3589
  "multiple": false,
3585
3590
  "type": "option"
3586
- },
3587
- "status": {
3588
- "description": "Chat status",
3589
- "name": "status",
3590
- "hasDynamicHelp": false,
3591
- "multiple": false,
3592
- "options": [
3593
- "all",
3594
- "unread",
3595
- "read",
3596
- "archived"
3597
- ],
3598
- "type": "option"
3599
- },
3600
- "unread-only": {
3601
- "description": "Only unread chats",
3602
- "name": "unread-only",
3603
- "allowNo": false,
3604
- "type": "boolean"
3605
- },
3606
- "include-archived": {
3607
- "description": "Include archived chats",
3608
- "name": "include-archived",
3609
- "allowNo": false,
3610
- "type": "boolean"
3611
3591
  }
3612
3592
  },
3613
3593
  "hasDynamicHelp": false,
3614
3594
  "hiddenAliases": [],
3615
- "id": "chats:list",
3595
+ "id": "channels:list",
3616
3596
  "pluginAlias": "@instantkom/cli",
3617
3597
  "pluginName": "@instantkom/cli",
3618
3598
  "pluginType": "core",
@@ -3622,20 +3602,20 @@
3622
3602
  "relativePath": [
3623
3603
  "dist",
3624
3604
  "commands",
3625
- "chats",
3605
+ "channels",
3626
3606
  "list.js"
3627
3607
  ]
3628
3608
  },
3629
- "chats:reply": {
3609
+ "channels:update": {
3630
3610
  "aliases": [],
3631
3611
  "args": {
3632
3612
  "id": {
3633
- "description": "Chat ID",
3613
+ "description": "Channel ID",
3634
3614
  "name": "id",
3635
3615
  "required": true
3636
3616
  }
3637
3617
  },
3638
- "description": "Reply in a chat",
3618
+ "description": "Update a channel",
3639
3619
  "flags": {
3640
3620
  "api-key": {
3641
3621
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -3699,29 +3679,49 @@
3699
3679
  "multiple": false,
3700
3680
  "type": "option"
3701
3681
  },
3702
- "text": {
3703
- "description": "Reply text",
3704
- "name": "text",
3705
- "required": true,
3682
+ "name": {
3683
+ "description": "Channel name",
3684
+ "name": "name",
3706
3685
  "hasDynamicHelp": false,
3707
3686
  "multiple": false,
3708
3687
  "type": "option"
3709
- }
3710
- },
3711
- "hasDynamicHelp": false,
3712
- "hiddenAliases": [],
3713
- "id": "chats:reply",
3714
- "pluginAlias": "@instantkom/cli",
3715
- "pluginName": "@instantkom/cli",
3716
- "pluginType": "core",
3717
- "strict": true,
3688
+ },
3689
+ "status": {
3690
+ "description": "Channel lifecycle status",
3691
+ "name": "status",
3692
+ "hasDynamicHelp": false,
3693
+ "multiple": false,
3694
+ "type": "option"
3695
+ },
3696
+ "description": {
3697
+ "description": "Channel description",
3698
+ "name": "description",
3699
+ "hasDynamicHelp": false,
3700
+ "multiple": false,
3701
+ "type": "option"
3702
+ },
3703
+ "data": {
3704
+ "description": "Additional JSON object payload",
3705
+ "name": "data",
3706
+ "hasDynamicHelp": false,
3707
+ "multiple": false,
3708
+ "type": "option"
3709
+ }
3710
+ },
3711
+ "hasDynamicHelp": false,
3712
+ "hiddenAliases": [],
3713
+ "id": "channels:update",
3714
+ "pluginAlias": "@instantkom/cli",
3715
+ "pluginName": "@instantkom/cli",
3716
+ "pluginType": "core",
3717
+ "strict": true,
3718
3718
  "enableJsonFlag": false,
3719
3719
  "isESM": true,
3720
3720
  "relativePath": [
3721
3721
  "dist",
3722
3722
  "commands",
3723
- "chats",
3724
- "reply.js"
3723
+ "channels",
3724
+ "update.js"
3725
3725
  ]
3726
3726
  },
3727
3727
  "config:get": {
@@ -6076,10 +6076,10 @@
6076
6076
  "list.js"
6077
6077
  ]
6078
6078
  },
6079
- "messages:bulk-spam": {
6079
+ "flows:create": {
6080
6080
  "aliases": [],
6081
6081
  "args": {},
6082
- "description": "Mark or unmark multiple messages as spam",
6082
+ "description": "Create a flow",
6083
6083
  "flags": {
6084
6084
  "api-key": {
6085
6085
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -6143,120 +6143,39 @@
6143
6143
  "multiple": false,
6144
6144
  "type": "option"
6145
6145
  },
6146
- "ids": {
6147
- "description": "Comma-separated message IDs",
6148
- "name": "ids",
6146
+ "channel": {
6147
+ "description": "Channel ID",
6148
+ "name": "channel",
6149
6149
  "required": true,
6150
6150
  "hasDynamicHelp": false,
6151
6151
  "multiple": false,
6152
6152
  "type": "option"
6153
6153
  },
6154
- "spam": {
6155
- "description": "Mark messages as spam",
6156
- "name": "spam",
6157
- "allowNo": true,
6158
- "type": "boolean"
6159
- }
6160
- },
6161
- "hasDynamicHelp": false,
6162
- "hiddenAliases": [],
6163
- "id": "messages:bulk-spam",
6164
- "pluginAlias": "@instantkom/cli",
6165
- "pluginName": "@instantkom/cli",
6166
- "pluginType": "core",
6167
- "strict": true,
6168
- "enableJsonFlag": false,
6169
- "isESM": true,
6170
- "relativePath": [
6171
- "dist",
6172
- "commands",
6173
- "messages",
6174
- "bulk-spam.js"
6175
- ]
6176
- },
6177
- "messages:create-ticket": {
6178
- "aliases": [],
6179
- "args": {
6180
- "id": {
6181
- "description": "Message ID",
6182
- "name": "id",
6183
- "required": true
6184
- }
6185
- },
6186
- "description": "Create a ticket from a message",
6187
- "flags": {
6188
- "api-key": {
6189
- "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
6190
- "env": "IKM_API_KEY",
6191
- "helpGroup": "GLOBAL",
6192
- "name": "api-key",
6193
- "hasDynamicHelp": false,
6194
- "multiple": false,
6195
- "type": "option"
6196
- },
6197
- "format": {
6198
- "description": "Output format: text, json, yaml, or table",
6199
- "helpGroup": "GLOBAL",
6200
- "name": "format",
6201
- "default": "text",
6202
- "hasDynamicHelp": false,
6203
- "multiple": false,
6204
- "options": [
6205
- "text",
6206
- "json",
6207
- "yaml",
6208
- "table"
6209
- ],
6210
- "type": "option"
6211
- },
6212
- "json": {
6213
- "description": "Output in JSON format (alias for --format=json)",
6214
- "helpGroup": "GLOBAL",
6215
- "name": "json",
6216
- "allowNo": false,
6217
- "type": "boolean"
6218
- },
6219
- "quiet": {
6220
- "description": "Suppress all output except errors",
6221
- "helpGroup": "GLOBAL",
6222
- "name": "quiet",
6223
- "allowNo": false,
6224
- "type": "boolean"
6225
- },
6226
- "no-color": {
6227
- "description": "Disable color output",
6228
- "helpGroup": "GLOBAL",
6229
- "name": "no-color",
6230
- "allowNo": false,
6231
- "type": "boolean"
6232
- },
6233
- "profile": {
6234
- "description": "Named configuration profile to use",
6235
- "helpGroup": "GLOBAL",
6236
- "name": "profile",
6237
- "default": "default",
6154
+ "name": {
6155
+ "description": "Flow name",
6156
+ "name": "name",
6157
+ "required": true,
6238
6158
  "hasDynamicHelp": false,
6239
6159
  "multiple": false,
6240
6160
  "type": "option"
6241
6161
  },
6242
- "api-url": {
6243
- "description": "Override the API base URL (e.g. for staging)",
6244
- "helpGroup": "GLOBAL",
6245
- "name": "api-url",
6162
+ "description": {
6163
+ "description": "Flow description",
6164
+ "name": "description",
6246
6165
  "hasDynamicHelp": false,
6247
6166
  "multiple": false,
6248
6167
  "type": "option"
6249
6168
  },
6250
- "subject": {
6251
- "description": "Ticket subject",
6252
- "name": "subject",
6169
+ "color": {
6170
+ "description": "Flow color as HEX",
6171
+ "name": "color",
6253
6172
  "hasDynamicHelp": false,
6254
6173
  "multiple": false,
6255
6174
  "type": "option"
6256
6175
  },
6257
- "priority": {
6258
- "description": "Ticket priority",
6259
- "name": "priority",
6176
+ "folder": {
6177
+ "description": "Folder ID",
6178
+ "name": "folder",
6260
6179
  "hasDynamicHelp": false,
6261
6180
  "multiple": false,
6262
6181
  "type": "option"
@@ -6271,7 +6190,7 @@
6271
6190
  },
6272
6191
  "hasDynamicHelp": false,
6273
6192
  "hiddenAliases": [],
6274
- "id": "messages:create-ticket",
6193
+ "id": "flows:create",
6275
6194
  "pluginAlias": "@instantkom/cli",
6276
6195
  "pluginName": "@instantkom/cli",
6277
6196
  "pluginType": "core",
@@ -6281,20 +6200,20 @@
6281
6200
  "relativePath": [
6282
6201
  "dist",
6283
6202
  "commands",
6284
- "messages",
6285
- "create-ticket.js"
6203
+ "flows",
6204
+ "create.js"
6286
6205
  ]
6287
6206
  },
6288
- "messages:delete": {
6207
+ "flows:delete": {
6289
6208
  "aliases": [],
6290
6209
  "args": {
6291
6210
  "id": {
6292
- "description": "message ID",
6211
+ "description": "Flow ID",
6293
6212
  "name": "id",
6294
6213
  "required": true
6295
6214
  }
6296
6215
  },
6297
- "description": "Delete message",
6216
+ "description": "Delete a flow",
6298
6217
  "flags": {
6299
6218
  "api-key": {
6300
6219
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -6361,7 +6280,7 @@
6361
6280
  },
6362
6281
  "hasDynamicHelp": false,
6363
6282
  "hiddenAliases": [],
6364
- "id": "messages:delete",
6283
+ "id": "flows:delete",
6365
6284
  "pluginAlias": "@instantkom/cli",
6366
6285
  "pluginName": "@instantkom/cli",
6367
6286
  "pluginType": "core",
@@ -6371,20 +6290,20 @@
6371
6290
  "relativePath": [
6372
6291
  "dist",
6373
6292
  "commands",
6374
- "messages",
6293
+ "flows",
6375
6294
  "delete.js"
6376
6295
  ]
6377
6296
  },
6378
- "messages:get": {
6297
+ "flows:get": {
6379
6298
  "aliases": [],
6380
6299
  "args": {
6381
6300
  "id": {
6382
- "description": "message ID",
6301
+ "description": "Flow ID",
6383
6302
  "name": "id",
6384
6303
  "required": true
6385
6304
  }
6386
6305
  },
6387
- "description": "Get message by ID",
6306
+ "description": "Get a flow by ID",
6388
6307
  "flags": {
6389
6308
  "api-key": {
6390
6309
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -6451,7 +6370,7 @@
6451
6370
  },
6452
6371
  "hasDynamicHelp": false,
6453
6372
  "hiddenAliases": [],
6454
- "id": "messages:get",
6373
+ "id": "flows:get",
6455
6374
  "pluginAlias": "@instantkom/cli",
6456
6375
  "pluginName": "@instantkom/cli",
6457
6376
  "pluginType": "core",
@@ -6461,14 +6380,14 @@
6461
6380
  "relativePath": [
6462
6381
  "dist",
6463
6382
  "commands",
6464
- "messages",
6383
+ "flows",
6465
6384
  "get.js"
6466
6385
  ]
6467
6386
  },
6468
- "messages:list": {
6387
+ "flows:list": {
6469
6388
  "aliases": [],
6470
6389
  "args": {},
6471
- "description": "List messages",
6390
+ "description": "List flows",
6472
6391
  "flags": {
6473
6392
  "api-key": {
6474
6393
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -6555,48 +6474,24 @@
6555
6474
  "multiple": false,
6556
6475
  "type": "option"
6557
6476
  },
6558
- "recipient": {
6559
- "description": "Filter by recipient ID",
6560
- "name": "recipient",
6561
- "hasDynamicHelp": false,
6562
- "multiple": false,
6563
- "type": "option"
6564
- },
6565
- "direction": {
6566
- "description": "Direction",
6567
- "name": "direction",
6568
- "hasDynamicHelp": false,
6569
- "multiple": false,
6570
- "options": [
6571
- "s",
6572
- "r"
6573
- ],
6574
- "type": "option"
6575
- },
6576
- "type": {
6577
- "description": "Message type",
6578
- "name": "type",
6477
+ "search": {
6478
+ "description": "Search in flow name or description",
6479
+ "name": "search",
6579
6480
  "hasDynamicHelp": false,
6580
6481
  "multiple": false,
6581
6482
  "type": "option"
6582
6483
  },
6583
- "search": {
6584
- "description": "Search messages",
6585
- "name": "search",
6484
+ "folder": {
6485
+ "description": "Filter by folder ID",
6486
+ "name": "folder",
6586
6487
  "hasDynamicHelp": false,
6587
6488
  "multiple": false,
6588
6489
  "type": "option"
6589
- },
6590
- "spam": {
6591
- "description": "Filter spam messages",
6592
- "name": "spam",
6593
- "allowNo": false,
6594
- "type": "boolean"
6595
6490
  }
6596
6491
  },
6597
6492
  "hasDynamicHelp": false,
6598
6493
  "hiddenAliases": [],
6599
- "id": "messages:list",
6494
+ "id": "flows:list",
6600
6495
  "pluginAlias": "@instantkom/cli",
6601
6496
  "pluginName": "@instantkom/cli",
6602
6497
  "pluginType": "core",
@@ -6606,20 +6501,20 @@
6606
6501
  "relativePath": [
6607
6502
  "dist",
6608
6503
  "commands",
6609
- "messages",
6504
+ "flows",
6610
6505
  "list.js"
6611
6506
  ]
6612
6507
  },
6613
- "messages:reactions": {
6508
+ "flows:update": {
6614
6509
  "aliases": [],
6615
6510
  "args": {
6616
6511
  "id": {
6617
- "description": "Message ID",
6512
+ "description": "Flow ID",
6618
6513
  "name": "id",
6619
6514
  "required": true
6620
6515
  }
6621
6516
  },
6622
- "description": "Get reactions to a message",
6517
+ "description": "Update a flow",
6623
6518
  "flags": {
6624
6519
  "api-key": {
6625
6520
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -6682,107 +6577,46 @@
6682
6577
  "hasDynamicHelp": false,
6683
6578
  "multiple": false,
6684
6579
  "type": "option"
6685
- }
6686
- },
6687
- "hasDynamicHelp": false,
6688
- "hiddenAliases": [],
6689
- "id": "messages:reactions",
6690
- "pluginAlias": "@instantkom/cli",
6691
- "pluginName": "@instantkom/cli",
6692
- "pluginType": "core",
6693
- "strict": true,
6694
- "enableJsonFlag": false,
6695
- "isESM": true,
6696
- "relativePath": [
6697
- "dist",
6698
- "commands",
6699
- "messages",
6700
- "reactions.js"
6701
- ]
6702
- },
6703
- "messages:spam": {
6704
- "aliases": [],
6705
- "args": {
6706
- "id": {
6707
- "description": "Message ID",
6708
- "name": "id",
6709
- "required": true
6710
- }
6711
- },
6712
- "description": "Mark or unmark a message as spam",
6713
- "flags": {
6714
- "api-key": {
6715
- "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
6716
- "env": "IKM_API_KEY",
6717
- "helpGroup": "GLOBAL",
6718
- "name": "api-key",
6580
+ },
6581
+ "name": {
6582
+ "description": "Flow name",
6583
+ "name": "name",
6719
6584
  "hasDynamicHelp": false,
6720
6585
  "multiple": false,
6721
6586
  "type": "option"
6722
6587
  },
6723
- "format": {
6724
- "description": "Output format: text, json, yaml, or table",
6725
- "helpGroup": "GLOBAL",
6726
- "name": "format",
6727
- "default": "text",
6588
+ "description": {
6589
+ "description": "Flow description",
6590
+ "name": "description",
6728
6591
  "hasDynamicHelp": false,
6729
6592
  "multiple": false,
6730
- "options": [
6731
- "text",
6732
- "json",
6733
- "yaml",
6734
- "table"
6735
- ],
6736
6593
  "type": "option"
6737
6594
  },
6738
- "json": {
6739
- "description": "Output in JSON format (alias for --format=json)",
6740
- "helpGroup": "GLOBAL",
6741
- "name": "json",
6742
- "allowNo": false,
6743
- "type": "boolean"
6744
- },
6745
- "quiet": {
6746
- "description": "Suppress all output except errors",
6747
- "helpGroup": "GLOBAL",
6748
- "name": "quiet",
6749
- "allowNo": false,
6750
- "type": "boolean"
6751
- },
6752
- "no-color": {
6753
- "description": "Disable color output",
6754
- "helpGroup": "GLOBAL",
6755
- "name": "no-color",
6756
- "allowNo": false,
6757
- "type": "boolean"
6758
- },
6759
- "profile": {
6760
- "description": "Named configuration profile to use",
6761
- "helpGroup": "GLOBAL",
6762
- "name": "profile",
6763
- "default": "default",
6595
+ "color": {
6596
+ "description": "Flow color as HEX",
6597
+ "name": "color",
6764
6598
  "hasDynamicHelp": false,
6765
6599
  "multiple": false,
6766
6600
  "type": "option"
6767
6601
  },
6768
- "api-url": {
6769
- "description": "Override the API base URL (e.g. for staging)",
6770
- "helpGroup": "GLOBAL",
6771
- "name": "api-url",
6602
+ "folder": {
6603
+ "description": "Folder ID",
6604
+ "name": "folder",
6772
6605
  "hasDynamicHelp": false,
6773
6606
  "multiple": false,
6774
6607
  "type": "option"
6775
6608
  },
6776
- "spam": {
6777
- "description": "Mark as spam",
6778
- "name": "spam",
6779
- "allowNo": true,
6780
- "type": "boolean"
6609
+ "data": {
6610
+ "description": "Additional JSON object payload",
6611
+ "name": "data",
6612
+ "hasDynamicHelp": false,
6613
+ "multiple": false,
6614
+ "type": "option"
6781
6615
  }
6782
6616
  },
6783
6617
  "hasDynamicHelp": false,
6784
6618
  "hiddenAliases": [],
6785
- "id": "messages:spam",
6619
+ "id": "flows:update",
6786
6620
  "pluginAlias": "@instantkom/cli",
6787
6621
  "pluginName": "@instantkom/cli",
6788
6622
  "pluginType": "core",
@@ -6792,14 +6626,14 @@
6792
6626
  "relativePath": [
6793
6627
  "dist",
6794
6628
  "commands",
6795
- "messages",
6796
- "spam.js"
6629
+ "flows",
6630
+ "update.js"
6797
6631
  ]
6798
6632
  },
6799
- "messages:unread-count": {
6633
+ "messages:bulk-spam": {
6800
6634
  "aliases": [],
6801
6635
  "args": {},
6802
- "description": "Get unread inbox message count",
6636
+ "description": "Mark or unmark multiple messages as spam",
6803
6637
  "flags": {
6804
6638
  "api-key": {
6805
6639
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -6862,11 +6696,25 @@
6862
6696
  "hasDynamicHelp": false,
6863
6697
  "multiple": false,
6864
6698
  "type": "option"
6699
+ },
6700
+ "ids": {
6701
+ "description": "Comma-separated message IDs",
6702
+ "name": "ids",
6703
+ "required": true,
6704
+ "hasDynamicHelp": false,
6705
+ "multiple": false,
6706
+ "type": "option"
6707
+ },
6708
+ "spam": {
6709
+ "description": "Mark messages as spam",
6710
+ "name": "spam",
6711
+ "allowNo": true,
6712
+ "type": "boolean"
6865
6713
  }
6866
6714
  },
6867
6715
  "hasDynamicHelp": false,
6868
6716
  "hiddenAliases": [],
6869
- "id": "messages:unread-count",
6717
+ "id": "messages:bulk-spam",
6870
6718
  "pluginAlias": "@instantkom/cli",
6871
6719
  "pluginName": "@instantkom/cli",
6872
6720
  "pluginType": "core",
@@ -6877,10 +6725,10 @@
6877
6725
  "dist",
6878
6726
  "commands",
6879
6727
  "messages",
6880
- "unread-count.js"
6728
+ "bulk-spam.js"
6881
6729
  ]
6882
6730
  },
6883
- "messages:update": {
6731
+ "messages:create-ticket": {
6884
6732
  "aliases": [],
6885
6733
  "args": {
6886
6734
  "id": {
@@ -6889,7 +6737,7 @@
6889
6737
  "required": true
6890
6738
  }
6891
6739
  },
6892
- "description": "Update a message",
6740
+ "description": "Create a ticket from a message",
6893
6741
  "flags": {
6894
6742
  "api-key": {
6895
6743
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -6953,42 +6801,16 @@
6953
6801
  "multiple": false,
6954
6802
  "type": "option"
6955
6803
  },
6956
- "message": {
6957
- "description": "Message content",
6958
- "name": "message",
6959
- "hasDynamicHelp": false,
6960
- "multiple": false,
6961
- "type": "option"
6962
- },
6963
- "scheduled-at": {
6964
- "description": "Unix timestamp for scheduled send",
6965
- "name": "scheduled-at",
6966
- "hasDynamicHelp": false,
6967
- "multiple": false,
6968
- "type": "option"
6969
- },
6970
- "hidden": {
6971
- "description": "Hide message",
6972
- "name": "hidden",
6973
- "allowNo": true,
6974
- "type": "boolean"
6975
- },
6976
- "locked": {
6977
- "description": "Lock message",
6978
- "name": "locked",
6979
- "allowNo": true,
6980
- "type": "boolean"
6981
- },
6982
- "buttons": {
6983
- "description": "Buttons JSON array",
6984
- "name": "buttons",
6804
+ "subject": {
6805
+ "description": "Ticket subject",
6806
+ "name": "subject",
6985
6807
  "hasDynamicHelp": false,
6986
6808
  "multiple": false,
6987
6809
  "type": "option"
6988
6810
  },
6989
- "header-footer": {
6990
- "description": "Header/footer JSON object",
6991
- "name": "header-footer",
6811
+ "priority": {
6812
+ "description": "Ticket priority",
6813
+ "name": "priority",
6992
6814
  "hasDynamicHelp": false,
6993
6815
  "multiple": false,
6994
6816
  "type": "option"
@@ -7003,7 +6825,7 @@
7003
6825
  },
7004
6826
  "hasDynamicHelp": false,
7005
6827
  "hiddenAliases": [],
7006
- "id": "messages:update",
6828
+ "id": "messages:create-ticket",
7007
6829
  "pluginAlias": "@instantkom/cli",
7008
6830
  "pluginName": "@instantkom/cli",
7009
6831
  "pluginType": "core",
@@ -7014,13 +6836,19 @@
7014
6836
  "dist",
7015
6837
  "commands",
7016
6838
  "messages",
7017
- "update.js"
6839
+ "create-ticket.js"
7018
6840
  ]
7019
6841
  },
7020
- "flows:create": {
6842
+ "messages:delete": {
7021
6843
  "aliases": [],
7022
- "args": {},
7023
- "description": "Create a flow",
6844
+ "args": {
6845
+ "id": {
6846
+ "description": "message ID",
6847
+ "name": "id",
6848
+ "required": true
6849
+ }
6850
+ },
6851
+ "description": "Delete message",
7024
6852
  "flags": {
7025
6853
  "api-key": {
7026
6854
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -7083,55 +6911,11 @@
7083
6911
  "hasDynamicHelp": false,
7084
6912
  "multiple": false,
7085
6913
  "type": "option"
7086
- },
7087
- "channel": {
7088
- "description": "Channel ID",
7089
- "name": "channel",
7090
- "required": true,
7091
- "hasDynamicHelp": false,
7092
- "multiple": false,
7093
- "type": "option"
7094
- },
7095
- "name": {
7096
- "description": "Flow name",
7097
- "name": "name",
7098
- "required": true,
7099
- "hasDynamicHelp": false,
7100
- "multiple": false,
7101
- "type": "option"
7102
- },
7103
- "description": {
7104
- "description": "Flow description",
7105
- "name": "description",
7106
- "hasDynamicHelp": false,
7107
- "multiple": false,
7108
- "type": "option"
7109
- },
7110
- "color": {
7111
- "description": "Flow color as HEX",
7112
- "name": "color",
7113
- "hasDynamicHelp": false,
7114
- "multiple": false,
7115
- "type": "option"
7116
- },
7117
- "folder": {
7118
- "description": "Folder ID",
7119
- "name": "folder",
7120
- "hasDynamicHelp": false,
7121
- "multiple": false,
7122
- "type": "option"
7123
- },
7124
- "data": {
7125
- "description": "Additional JSON object payload",
7126
- "name": "data",
7127
- "hasDynamicHelp": false,
7128
- "multiple": false,
7129
- "type": "option"
7130
6914
  }
7131
6915
  },
7132
6916
  "hasDynamicHelp": false,
7133
6917
  "hiddenAliases": [],
7134
- "id": "flows:create",
6918
+ "id": "messages:delete",
7135
6919
  "pluginAlias": "@instantkom/cli",
7136
6920
  "pluginName": "@instantkom/cli",
7137
6921
  "pluginType": "core",
@@ -7141,20 +6925,20 @@
7141
6925
  "relativePath": [
7142
6926
  "dist",
7143
6927
  "commands",
7144
- "flows",
7145
- "create.js"
6928
+ "messages",
6929
+ "delete.js"
7146
6930
  ]
7147
6931
  },
7148
- "flows:delete": {
6932
+ "messages:get": {
7149
6933
  "aliases": [],
7150
6934
  "args": {
7151
6935
  "id": {
7152
- "description": "Flow ID",
6936
+ "description": "message ID",
7153
6937
  "name": "id",
7154
6938
  "required": true
7155
6939
  }
7156
6940
  },
7157
- "description": "Delete a flow",
6941
+ "description": "Get message by ID",
7158
6942
  "flags": {
7159
6943
  "api-key": {
7160
6944
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -7221,7 +7005,7 @@
7221
7005
  },
7222
7006
  "hasDynamicHelp": false,
7223
7007
  "hiddenAliases": [],
7224
- "id": "flows:delete",
7008
+ "id": "messages:get",
7225
7009
  "pluginAlias": "@instantkom/cli",
7226
7010
  "pluginName": "@instantkom/cli",
7227
7011
  "pluginType": "core",
@@ -7231,20 +7015,14 @@
7231
7015
  "relativePath": [
7232
7016
  "dist",
7233
7017
  "commands",
7234
- "flows",
7235
- "delete.js"
7018
+ "messages",
7019
+ "get.js"
7236
7020
  ]
7237
7021
  },
7238
- "flows:get": {
7022
+ "messages:list": {
7239
7023
  "aliases": [],
7240
- "args": {
7241
- "id": {
7242
- "description": "Flow ID",
7243
- "name": "id",
7244
- "required": true
7245
- }
7246
- },
7247
- "description": "Get a flow by ID",
7024
+ "args": {},
7025
+ "description": "List messages",
7248
7026
  "flags": {
7249
7027
  "api-key": {
7250
7028
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -7307,32 +7085,99 @@
7307
7085
  "hasDynamicHelp": false,
7308
7086
  "multiple": false,
7309
7087
  "type": "option"
7310
- }
7311
- },
7312
- "hasDynamicHelp": false,
7313
- "hiddenAliases": [],
7314
- "id": "flows:get",
7315
- "pluginAlias": "@instantkom/cli",
7316
- "pluginName": "@instantkom/cli",
7317
- "pluginType": "core",
7318
- "strict": true,
7319
- "enableJsonFlag": false,
7320
- "isESM": true,
7321
- "relativePath": [
7322
- "dist",
7323
- "commands",
7324
- "flows",
7325
- "get.js"
7326
- ]
7327
- },
7328
- "flows:list": {
7329
- "aliases": [],
7330
- "args": {},
7331
- "description": "List flows",
7332
- "flags": {
7333
- "api-key": {
7334
- "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
7335
- "env": "IKM_API_KEY",
7088
+ },
7089
+ "page": {
7090
+ "description": "Page number",
7091
+ "name": "page",
7092
+ "default": 1,
7093
+ "hasDynamicHelp": false,
7094
+ "multiple": false,
7095
+ "type": "option"
7096
+ },
7097
+ "limit": {
7098
+ "description": "Items per page",
7099
+ "name": "limit",
7100
+ "default": 20,
7101
+ "hasDynamicHelp": false,
7102
+ "multiple": false,
7103
+ "type": "option"
7104
+ },
7105
+ "channel": {
7106
+ "description": "Filter by channel ID",
7107
+ "name": "channel",
7108
+ "hasDynamicHelp": false,
7109
+ "multiple": false,
7110
+ "type": "option"
7111
+ },
7112
+ "recipient": {
7113
+ "description": "Filter by recipient ID",
7114
+ "name": "recipient",
7115
+ "hasDynamicHelp": false,
7116
+ "multiple": false,
7117
+ "type": "option"
7118
+ },
7119
+ "direction": {
7120
+ "description": "Direction",
7121
+ "name": "direction",
7122
+ "hasDynamicHelp": false,
7123
+ "multiple": false,
7124
+ "options": [
7125
+ "s",
7126
+ "r"
7127
+ ],
7128
+ "type": "option"
7129
+ },
7130
+ "type": {
7131
+ "description": "Message type",
7132
+ "name": "type",
7133
+ "hasDynamicHelp": false,
7134
+ "multiple": false,
7135
+ "type": "option"
7136
+ },
7137
+ "search": {
7138
+ "description": "Search messages",
7139
+ "name": "search",
7140
+ "hasDynamicHelp": false,
7141
+ "multiple": false,
7142
+ "type": "option"
7143
+ },
7144
+ "spam": {
7145
+ "description": "Filter spam messages",
7146
+ "name": "spam",
7147
+ "allowNo": false,
7148
+ "type": "boolean"
7149
+ }
7150
+ },
7151
+ "hasDynamicHelp": false,
7152
+ "hiddenAliases": [],
7153
+ "id": "messages:list",
7154
+ "pluginAlias": "@instantkom/cli",
7155
+ "pluginName": "@instantkom/cli",
7156
+ "pluginType": "core",
7157
+ "strict": true,
7158
+ "enableJsonFlag": false,
7159
+ "isESM": true,
7160
+ "relativePath": [
7161
+ "dist",
7162
+ "commands",
7163
+ "messages",
7164
+ "list.js"
7165
+ ]
7166
+ },
7167
+ "messages:reactions": {
7168
+ "aliases": [],
7169
+ "args": {
7170
+ "id": {
7171
+ "description": "Message ID",
7172
+ "name": "id",
7173
+ "required": true
7174
+ }
7175
+ },
7176
+ "description": "Get reactions to a message",
7177
+ "flags": {
7178
+ "api-key": {
7179
+ "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
7180
+ "env": "IKM_API_KEY",
7336
7181
  "helpGroup": "GLOBAL",
7337
7182
  "name": "api-key",
7338
7183
  "hasDynamicHelp": false,
@@ -7391,40 +7236,183 @@
7391
7236
  "hasDynamicHelp": false,
7392
7237
  "multiple": false,
7393
7238
  "type": "option"
7239
+ }
7240
+ },
7241
+ "hasDynamicHelp": false,
7242
+ "hiddenAliases": [],
7243
+ "id": "messages:reactions",
7244
+ "pluginAlias": "@instantkom/cli",
7245
+ "pluginName": "@instantkom/cli",
7246
+ "pluginType": "core",
7247
+ "strict": true,
7248
+ "enableJsonFlag": false,
7249
+ "isESM": true,
7250
+ "relativePath": [
7251
+ "dist",
7252
+ "commands",
7253
+ "messages",
7254
+ "reactions.js"
7255
+ ]
7256
+ },
7257
+ "messages:spam": {
7258
+ "aliases": [],
7259
+ "args": {
7260
+ "id": {
7261
+ "description": "Message ID",
7262
+ "name": "id",
7263
+ "required": true
7264
+ }
7265
+ },
7266
+ "description": "Mark or unmark a message as spam",
7267
+ "flags": {
7268
+ "api-key": {
7269
+ "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
7270
+ "env": "IKM_API_KEY",
7271
+ "helpGroup": "GLOBAL",
7272
+ "name": "api-key",
7273
+ "hasDynamicHelp": false,
7274
+ "multiple": false,
7275
+ "type": "option"
7394
7276
  },
7395
- "page": {
7396
- "description": "Page number",
7397
- "name": "page",
7398
- "default": 1,
7277
+ "format": {
7278
+ "description": "Output format: text, json, yaml, or table",
7279
+ "helpGroup": "GLOBAL",
7280
+ "name": "format",
7281
+ "default": "text",
7399
7282
  "hasDynamicHelp": false,
7400
7283
  "multiple": false,
7284
+ "options": [
7285
+ "text",
7286
+ "json",
7287
+ "yaml",
7288
+ "table"
7289
+ ],
7401
7290
  "type": "option"
7402
7291
  },
7403
- "limit": {
7404
- "description": "Items per page",
7405
- "name": "limit",
7406
- "default": 20,
7292
+ "json": {
7293
+ "description": "Output in JSON format (alias for --format=json)",
7294
+ "helpGroup": "GLOBAL",
7295
+ "name": "json",
7296
+ "allowNo": false,
7297
+ "type": "boolean"
7298
+ },
7299
+ "quiet": {
7300
+ "description": "Suppress all output except errors",
7301
+ "helpGroup": "GLOBAL",
7302
+ "name": "quiet",
7303
+ "allowNo": false,
7304
+ "type": "boolean"
7305
+ },
7306
+ "no-color": {
7307
+ "description": "Disable color output",
7308
+ "helpGroup": "GLOBAL",
7309
+ "name": "no-color",
7310
+ "allowNo": false,
7311
+ "type": "boolean"
7312
+ },
7313
+ "profile": {
7314
+ "description": "Named configuration profile to use",
7315
+ "helpGroup": "GLOBAL",
7316
+ "name": "profile",
7317
+ "default": "default",
7407
7318
  "hasDynamicHelp": false,
7408
7319
  "multiple": false,
7409
7320
  "type": "option"
7410
7321
  },
7411
- "channel": {
7412
- "description": "Filter by channel ID",
7413
- "name": "channel",
7322
+ "api-url": {
7323
+ "description": "Override the API base URL (e.g. for staging)",
7324
+ "helpGroup": "GLOBAL",
7325
+ "name": "api-url",
7414
7326
  "hasDynamicHelp": false,
7415
7327
  "multiple": false,
7416
7328
  "type": "option"
7417
7329
  },
7418
- "search": {
7419
- "description": "Search in flow name or description",
7420
- "name": "search",
7330
+ "spam": {
7331
+ "description": "Mark as spam",
7332
+ "name": "spam",
7333
+ "allowNo": true,
7334
+ "type": "boolean"
7335
+ }
7336
+ },
7337
+ "hasDynamicHelp": false,
7338
+ "hiddenAliases": [],
7339
+ "id": "messages:spam",
7340
+ "pluginAlias": "@instantkom/cli",
7341
+ "pluginName": "@instantkom/cli",
7342
+ "pluginType": "core",
7343
+ "strict": true,
7344
+ "enableJsonFlag": false,
7345
+ "isESM": true,
7346
+ "relativePath": [
7347
+ "dist",
7348
+ "commands",
7349
+ "messages",
7350
+ "spam.js"
7351
+ ]
7352
+ },
7353
+ "messages:unread-count": {
7354
+ "aliases": [],
7355
+ "args": {},
7356
+ "description": "Get unread inbox message count",
7357
+ "flags": {
7358
+ "api-key": {
7359
+ "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
7360
+ "env": "IKM_API_KEY",
7361
+ "helpGroup": "GLOBAL",
7362
+ "name": "api-key",
7421
7363
  "hasDynamicHelp": false,
7422
7364
  "multiple": false,
7423
7365
  "type": "option"
7424
7366
  },
7425
- "folder": {
7426
- "description": "Filter by folder ID",
7427
- "name": "folder",
7367
+ "format": {
7368
+ "description": "Output format: text, json, yaml, or table",
7369
+ "helpGroup": "GLOBAL",
7370
+ "name": "format",
7371
+ "default": "text",
7372
+ "hasDynamicHelp": false,
7373
+ "multiple": false,
7374
+ "options": [
7375
+ "text",
7376
+ "json",
7377
+ "yaml",
7378
+ "table"
7379
+ ],
7380
+ "type": "option"
7381
+ },
7382
+ "json": {
7383
+ "description": "Output in JSON format (alias for --format=json)",
7384
+ "helpGroup": "GLOBAL",
7385
+ "name": "json",
7386
+ "allowNo": false,
7387
+ "type": "boolean"
7388
+ },
7389
+ "quiet": {
7390
+ "description": "Suppress all output except errors",
7391
+ "helpGroup": "GLOBAL",
7392
+ "name": "quiet",
7393
+ "allowNo": false,
7394
+ "type": "boolean"
7395
+ },
7396
+ "no-color": {
7397
+ "description": "Disable color output",
7398
+ "helpGroup": "GLOBAL",
7399
+ "name": "no-color",
7400
+ "allowNo": false,
7401
+ "type": "boolean"
7402
+ },
7403
+ "profile": {
7404
+ "description": "Named configuration profile to use",
7405
+ "helpGroup": "GLOBAL",
7406
+ "name": "profile",
7407
+ "default": "default",
7408
+ "hasDynamicHelp": false,
7409
+ "multiple": false,
7410
+ "type": "option"
7411
+ },
7412
+ "api-url": {
7413
+ "description": "Override the API base URL (e.g. for staging)",
7414
+ "helpGroup": "GLOBAL",
7415
+ "name": "api-url",
7428
7416
  "hasDynamicHelp": false,
7429
7417
  "multiple": false,
7430
7418
  "type": "option"
@@ -7432,7 +7420,7 @@
7432
7420
  },
7433
7421
  "hasDynamicHelp": false,
7434
7422
  "hiddenAliases": [],
7435
- "id": "flows:list",
7423
+ "id": "messages:unread-count",
7436
7424
  "pluginAlias": "@instantkom/cli",
7437
7425
  "pluginName": "@instantkom/cli",
7438
7426
  "pluginType": "core",
@@ -7442,20 +7430,20 @@
7442
7430
  "relativePath": [
7443
7431
  "dist",
7444
7432
  "commands",
7445
- "flows",
7446
- "list.js"
7433
+ "messages",
7434
+ "unread-count.js"
7447
7435
  ]
7448
7436
  },
7449
- "flows:update": {
7437
+ "messages:update": {
7450
7438
  "aliases": [],
7451
7439
  "args": {
7452
7440
  "id": {
7453
- "description": "Flow ID",
7441
+ "description": "Message ID",
7454
7442
  "name": "id",
7455
7443
  "required": true
7456
7444
  }
7457
7445
  },
7458
- "description": "Update a flow",
7446
+ "description": "Update a message",
7459
7447
  "flags": {
7460
7448
  "api-key": {
7461
7449
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -7519,30 +7507,42 @@
7519
7507
  "multiple": false,
7520
7508
  "type": "option"
7521
7509
  },
7522
- "name": {
7523
- "description": "Flow name",
7524
- "name": "name",
7510
+ "message": {
7511
+ "description": "Message content",
7512
+ "name": "message",
7525
7513
  "hasDynamicHelp": false,
7526
7514
  "multiple": false,
7527
7515
  "type": "option"
7528
7516
  },
7529
- "description": {
7530
- "description": "Flow description",
7531
- "name": "description",
7517
+ "scheduled-at": {
7518
+ "description": "Unix timestamp for scheduled send",
7519
+ "name": "scheduled-at",
7532
7520
  "hasDynamicHelp": false,
7533
7521
  "multiple": false,
7534
7522
  "type": "option"
7535
7523
  },
7536
- "color": {
7537
- "description": "Flow color as HEX",
7538
- "name": "color",
7524
+ "hidden": {
7525
+ "description": "Hide message",
7526
+ "name": "hidden",
7527
+ "allowNo": true,
7528
+ "type": "boolean"
7529
+ },
7530
+ "locked": {
7531
+ "description": "Lock message",
7532
+ "name": "locked",
7533
+ "allowNo": true,
7534
+ "type": "boolean"
7535
+ },
7536
+ "buttons": {
7537
+ "description": "Buttons JSON array",
7538
+ "name": "buttons",
7539
7539
  "hasDynamicHelp": false,
7540
7540
  "multiple": false,
7541
7541
  "type": "option"
7542
7542
  },
7543
- "folder": {
7544
- "description": "Folder ID",
7545
- "name": "folder",
7543
+ "header-footer": {
7544
+ "description": "Header/footer JSON object",
7545
+ "name": "header-footer",
7546
7546
  "hasDynamicHelp": false,
7547
7547
  "multiple": false,
7548
7548
  "type": "option"
@@ -7557,7 +7557,7 @@
7557
7557
  },
7558
7558
  "hasDynamicHelp": false,
7559
7559
  "hiddenAliases": [],
7560
- "id": "flows:update",
7560
+ "id": "messages:update",
7561
7561
  "pluginAlias": "@instantkom/cli",
7562
7562
  "pluginName": "@instantkom/cli",
7563
7563
  "pluginType": "core",
@@ -7567,7 +7567,7 @@
7567
7567
  "relativePath": [
7568
7568
  "dist",
7569
7569
  "commands",
7570
- "flows",
7570
+ "messages",
7571
7571
  "update.js"
7572
7572
  ]
7573
7573
  },
@@ -9293,10 +9293,183 @@
9293
9293
  "list.js"
9294
9294
  ]
9295
9295
  },
9296
- "tickets:create": {
9296
+ "templates:create": {
9297
9297
  "aliases": [],
9298
9298
  "args": {},
9299
- "description": "Create a ticket",
9299
+ "description": "Create a message template",
9300
+ "flags": {
9301
+ "api-key": {
9302
+ "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
9303
+ "env": "IKM_API_KEY",
9304
+ "helpGroup": "GLOBAL",
9305
+ "name": "api-key",
9306
+ "hasDynamicHelp": false,
9307
+ "multiple": false,
9308
+ "type": "option"
9309
+ },
9310
+ "format": {
9311
+ "description": "Output format: text, json, yaml, or table",
9312
+ "helpGroup": "GLOBAL",
9313
+ "name": "format",
9314
+ "default": "text",
9315
+ "hasDynamicHelp": false,
9316
+ "multiple": false,
9317
+ "options": [
9318
+ "text",
9319
+ "json",
9320
+ "yaml",
9321
+ "table"
9322
+ ],
9323
+ "type": "option"
9324
+ },
9325
+ "json": {
9326
+ "description": "Output in JSON format (alias for --format=json)",
9327
+ "helpGroup": "GLOBAL",
9328
+ "name": "json",
9329
+ "allowNo": false,
9330
+ "type": "boolean"
9331
+ },
9332
+ "quiet": {
9333
+ "description": "Suppress all output except errors",
9334
+ "helpGroup": "GLOBAL",
9335
+ "name": "quiet",
9336
+ "allowNo": false,
9337
+ "type": "boolean"
9338
+ },
9339
+ "no-color": {
9340
+ "description": "Disable color output",
9341
+ "helpGroup": "GLOBAL",
9342
+ "name": "no-color",
9343
+ "allowNo": false,
9344
+ "type": "boolean"
9345
+ },
9346
+ "profile": {
9347
+ "description": "Named configuration profile to use",
9348
+ "helpGroup": "GLOBAL",
9349
+ "name": "profile",
9350
+ "default": "default",
9351
+ "hasDynamicHelp": false,
9352
+ "multiple": false,
9353
+ "type": "option"
9354
+ },
9355
+ "api-url": {
9356
+ "description": "Override the API base URL (e.g. for staging)",
9357
+ "helpGroup": "GLOBAL",
9358
+ "name": "api-url",
9359
+ "hasDynamicHelp": false,
9360
+ "multiple": false,
9361
+ "type": "option"
9362
+ },
9363
+ "channel": {
9364
+ "description": "Channel ID",
9365
+ "name": "channel",
9366
+ "required": true,
9367
+ "hasDynamicHelp": false,
9368
+ "multiple": false,
9369
+ "type": "option"
9370
+ },
9371
+ "name": {
9372
+ "description": "Template name",
9373
+ "name": "name",
9374
+ "required": true,
9375
+ "hasDynamicHelp": false,
9376
+ "multiple": false,
9377
+ "type": "option"
9378
+ },
9379
+ "type": {
9380
+ "description": "Template type",
9381
+ "name": "type",
9382
+ "default": "text",
9383
+ "hasDynamicHelp": false,
9384
+ "multiple": false,
9385
+ "options": [
9386
+ "text",
9387
+ "image",
9388
+ "video",
9389
+ "document",
9390
+ "audio",
9391
+ "location",
9392
+ "contact",
9393
+ "interactive"
9394
+ ],
9395
+ "type": "option"
9396
+ },
9397
+ "message": {
9398
+ "description": "Template message",
9399
+ "name": "message",
9400
+ "required": true,
9401
+ "hasDynamicHelp": false,
9402
+ "multiple": false,
9403
+ "type": "option"
9404
+ },
9405
+ "color": {
9406
+ "description": "Template color as HEX",
9407
+ "name": "color",
9408
+ "hasDynamicHelp": false,
9409
+ "multiple": false,
9410
+ "type": "option"
9411
+ },
9412
+ "status": {
9413
+ "description": "Template is active",
9414
+ "name": "status",
9415
+ "allowNo": true,
9416
+ "type": "boolean"
9417
+ },
9418
+ "whatsapp-language": {
9419
+ "description": "WhatsApp template language",
9420
+ "name": "whatsapp-language",
9421
+ "hasDynamicHelp": false,
9422
+ "multiple": false,
9423
+ "type": "option"
9424
+ },
9425
+ "buttons": {
9426
+ "description": "Buttons JSON array/object",
9427
+ "name": "buttons",
9428
+ "hasDynamicHelp": false,
9429
+ "multiple": false,
9430
+ "type": "option"
9431
+ },
9432
+ "header-footer": {
9433
+ "description": "Header/footer JSON object",
9434
+ "name": "header-footer",
9435
+ "hasDynamicHelp": false,
9436
+ "multiple": false,
9437
+ "type": "option"
9438
+ },
9439
+ "data": {
9440
+ "description": "Additional JSON object payload",
9441
+ "name": "data",
9442
+ "hasDynamicHelp": false,
9443
+ "multiple": false,
9444
+ "type": "option"
9445
+ }
9446
+ },
9447
+ "hasDynamicHelp": false,
9448
+ "hiddenAliases": [],
9449
+ "id": "templates:create",
9450
+ "pluginAlias": "@instantkom/cli",
9451
+ "pluginName": "@instantkom/cli",
9452
+ "pluginType": "core",
9453
+ "strict": true,
9454
+ "enableJsonFlag": false,
9455
+ "isESM": true,
9456
+ "relativePath": [
9457
+ "dist",
9458
+ "commands",
9459
+ "templates",
9460
+ "create.js"
9461
+ ]
9462
+ },
9463
+ "templates:delete": {
9464
+ "aliases": [],
9465
+ "args": {
9466
+ "id": {
9467
+ "description": "template ID",
9468
+ "name": "id",
9469
+ "required": true
9470
+ }
9471
+ },
9472
+ "description": "Delete template",
9300
9473
  "flags": {
9301
9474
  "api-key": {
9302
9475
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -9359,69 +9532,11 @@
9359
9532
  "hasDynamicHelp": false,
9360
9533
  "multiple": false,
9361
9534
  "type": "option"
9362
- },
9363
- "channel": {
9364
- "description": "Channel ID",
9365
- "name": "channel",
9366
- "required": true,
9367
- "hasDynamicHelp": false,
9368
- "multiple": false,
9369
- "type": "option"
9370
- },
9371
- "subject": {
9372
- "description": "Ticket subject",
9373
- "name": "subject",
9374
- "required": true,
9375
- "hasDynamicHelp": false,
9376
- "multiple": false,
9377
- "type": "option"
9378
- },
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"
9420
9535
  }
9421
9536
  },
9422
9537
  "hasDynamicHelp": false,
9423
9538
  "hiddenAliases": [],
9424
- "id": "tickets:create",
9539
+ "id": "templates:delete",
9425
9540
  "pluginAlias": "@instantkom/cli",
9426
9541
  "pluginName": "@instantkom/cli",
9427
9542
  "pluginType": "core",
@@ -9431,20 +9546,14 @@
9431
9546
  "relativePath": [
9432
9547
  "dist",
9433
9548
  "commands",
9434
- "tickets",
9435
- "create.js"
9549
+ "templates",
9550
+ "delete.js"
9436
9551
  ]
9437
9552
  },
9438
- "tickets:delete": {
9553
+ "templates:export": {
9439
9554
  "aliases": [],
9440
- "args": {
9441
- "id": {
9442
- "description": "Ticket ID",
9443
- "name": "id",
9444
- "required": true
9445
- }
9446
- },
9447
- "description": "Delete a ticket",
9555
+ "args": {},
9556
+ "description": "Export templates to a file",
9448
9557
  "flags": {
9449
9558
  "api-key": {
9450
9559
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -9456,17 +9565,14 @@
9456
9565
  "type": "option"
9457
9566
  },
9458
9567
  "format": {
9459
- "description": "Output format: text, json, yaml, or table",
9460
- "helpGroup": "GLOBAL",
9568
+ "description": "Export format",
9461
9569
  "name": "format",
9462
- "default": "text",
9570
+ "default": "json",
9463
9571
  "hasDynamicHelp": false,
9464
9572
  "multiple": false,
9465
9573
  "options": [
9466
- "text",
9467
- "json",
9468
- "yaml",
9469
- "table"
9574
+ "csv",
9575
+ "json"
9470
9576
  ],
9471
9577
  "type": "option"
9472
9578
  },
@@ -9508,10 +9614,17 @@
9508
9614
  "multiple": false,
9509
9615
  "type": "option"
9510
9616
  },
9617
+ "file": {
9618
+ "description": "Output file path",
9619
+ "name": "file",
9620
+ "required": true,
9621
+ "hasDynamicHelp": false,
9622
+ "multiple": false,
9623
+ "type": "option"
9624
+ },
9511
9625
  "channel": {
9512
- "description": "Channel ID",
9626
+ "description": "Filter by channel ID",
9513
9627
  "name": "channel",
9514
- "required": true,
9515
9628
  "hasDynamicHelp": false,
9516
9629
  "multiple": false,
9517
9630
  "type": "option"
@@ -9519,7 +9632,7 @@
9519
9632
  },
9520
9633
  "hasDynamicHelp": false,
9521
9634
  "hiddenAliases": [],
9522
- "id": "tickets:delete",
9635
+ "id": "templates:export",
9523
9636
  "pluginAlias": "@instantkom/cli",
9524
9637
  "pluginName": "@instantkom/cli",
9525
9638
  "pluginType": "core",
@@ -9529,20 +9642,20 @@
9529
9642
  "relativePath": [
9530
9643
  "dist",
9531
9644
  "commands",
9532
- "tickets",
9533
- "delete.js"
9645
+ "templates",
9646
+ "export.js"
9534
9647
  ]
9535
9648
  },
9536
- "tickets:get": {
9649
+ "templates:get": {
9537
9650
  "aliases": [],
9538
9651
  "args": {
9539
9652
  "id": {
9540
- "description": "Ticket ID",
9653
+ "description": "Template ID",
9541
9654
  "name": "id",
9542
9655
  "required": true
9543
9656
  }
9544
9657
  },
9545
- "description": "Get a ticket by ID",
9658
+ "description": "Get a message template by ID",
9546
9659
  "flags": {
9547
9660
  "api-key": {
9548
9661
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -9605,19 +9718,11 @@
9605
9718
  "hasDynamicHelp": false,
9606
9719
  "multiple": false,
9607
9720
  "type": "option"
9608
- },
9609
- "channel": {
9610
- "description": "Channel ID",
9611
- "name": "channel",
9612
- "required": true,
9613
- "hasDynamicHelp": false,
9614
- "multiple": false,
9615
- "type": "option"
9616
9721
  }
9617
9722
  },
9618
9723
  "hasDynamicHelp": false,
9619
9724
  "hiddenAliases": [],
9620
- "id": "tickets:get",
9725
+ "id": "templates:get",
9621
9726
  "pluginAlias": "@instantkom/cli",
9622
9727
  "pluginName": "@instantkom/cli",
9623
9728
  "pluginType": "core",
@@ -9627,14 +9732,14 @@
9627
9732
  "relativePath": [
9628
9733
  "dist",
9629
9734
  "commands",
9630
- "tickets",
9735
+ "templates",
9631
9736
  "get.js"
9632
9737
  ]
9633
9738
  },
9634
- "tickets:list": {
9739
+ "templates:import": {
9635
9740
  "aliases": [],
9636
9741
  "args": {},
9637
- "description": "List tickets for a channel",
9742
+ "description": "Import templates from JSON",
9638
9743
  "flags": {
9639
9744
  "api-key": {
9640
9745
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -9698,34 +9803,32 @@
9698
9803
  "multiple": false,
9699
9804
  "type": "option"
9700
9805
  },
9701
- "channel": {
9702
- "description": "Channel ID",
9703
- "name": "channel",
9806
+ "file": {
9807
+ "description": "JSON file path",
9808
+ "name": "file",
9704
9809
  "required": true,
9705
9810
  "hasDynamicHelp": false,
9706
9811
  "multiple": false,
9707
9812
  "type": "option"
9708
9813
  },
9709
- "limit": {
9710
- "description": "Maximum tickets to return",
9711
- "name": "limit",
9712
- "default": 500,
9814
+ "channel": {
9815
+ "description": "Target channel ID",
9816
+ "name": "channel",
9817
+ "required": true,
9713
9818
  "hasDynamicHelp": false,
9714
9819
  "multiple": false,
9715
9820
  "type": "option"
9716
9821
  },
9717
- "offset": {
9718
- "description": "Number of tickets to skip",
9719
- "name": "offset",
9720
- "default": 0,
9721
- "hasDynamicHelp": false,
9722
- "multiple": false,
9723
- "type": "option"
9822
+ "skip-duplicates": {
9823
+ "description": "Skip duplicate templates",
9824
+ "name": "skip-duplicates",
9825
+ "allowNo": true,
9826
+ "type": "boolean"
9724
9827
  }
9725
9828
  },
9726
9829
  "hasDynamicHelp": false,
9727
9830
  "hiddenAliases": [],
9728
- "id": "tickets:list",
9831
+ "id": "templates:import",
9729
9832
  "pluginAlias": "@instantkom/cli",
9730
9833
  "pluginName": "@instantkom/cli",
9731
9834
  "pluginType": "core",
@@ -9735,20 +9838,14 @@
9735
9838
  "relativePath": [
9736
9839
  "dist",
9737
9840
  "commands",
9738
- "tickets",
9739
- "list.js"
9841
+ "templates",
9842
+ "import.js"
9740
9843
  ]
9741
9844
  },
9742
- "tickets:reply": {
9845
+ "templates:list": {
9743
9846
  "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.",
9847
+ "args": {},
9848
+ "description": "List message templates",
9752
9849
  "flags": {
9753
9850
  "api-key": {
9754
9851
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -9812,24 +9909,40 @@
9812
9909
  "multiple": false,
9813
9910
  "type": "option"
9814
9911
  },
9815
- "message": {
9816
- "description": "Reply body (raw text, no salutation or sign-off)",
9817
- "name": "message",
9818
- "required": true,
9912
+ "channel": {
9913
+ "description": "Filter by channel ID",
9914
+ "name": "channel",
9819
9915
  "hasDynamicHelp": false,
9820
9916
  "multiple": false,
9821
9917
  "type": "option"
9822
9918
  },
9823
- "close": {
9824
- "description": "Close the ticket after sending the reply",
9825
- "name": "close",
9826
- "allowNo": false,
9827
- "type": "boolean"
9919
+ "search": {
9920
+ "description": "Search templates by name or content",
9921
+ "name": "search",
9922
+ "hasDynamicHelp": false,
9923
+ "multiple": false,
9924
+ "type": "option"
9925
+ },
9926
+ "page": {
9927
+ "description": "Page number",
9928
+ "name": "page",
9929
+ "default": 1,
9930
+ "hasDynamicHelp": false,
9931
+ "multiple": false,
9932
+ "type": "option"
9933
+ },
9934
+ "limit": {
9935
+ "description": "Items per page",
9936
+ "name": "limit",
9937
+ "default": 20,
9938
+ "hasDynamicHelp": false,
9939
+ "multiple": false,
9940
+ "type": "option"
9828
9941
  }
9829
9942
  },
9830
9943
  "hasDynamicHelp": false,
9831
9944
  "hiddenAliases": [],
9832
- "id": "tickets:reply",
9945
+ "id": "templates:list",
9833
9946
  "pluginAlias": "@instantkom/cli",
9834
9947
  "pluginName": "@instantkom/cli",
9835
9948
  "pluginType": "core",
@@ -9839,20 +9952,20 @@
9839
9952
  "relativePath": [
9840
9953
  "dist",
9841
9954
  "commands",
9842
- "tickets",
9843
- "reply.js"
9955
+ "templates",
9956
+ "list.js"
9844
9957
  ]
9845
9958
  },
9846
- "tickets:update": {
9959
+ "templates:render": {
9847
9960
  "aliases": [],
9848
9961
  "args": {
9849
9962
  "id": {
9850
- "description": "Ticket ID",
9963
+ "description": "Template ID",
9851
9964
  "name": "id",
9852
9965
  "required": true
9853
9966
  }
9854
9967
  },
9855
- "description": "Update a ticket",
9968
+ "description": "Render a message template locally",
9856
9969
  "flags": {
9857
9970
  "api-key": {
9858
9971
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -9899,76 +10012,34 @@
9899
10012
  "allowNo": false,
9900
10013
  "type": "boolean"
9901
10014
  },
9902
- "profile": {
9903
- "description": "Named configuration profile to use",
9904
- "helpGroup": "GLOBAL",
9905
- "name": "profile",
9906
- "default": "default",
9907
- "hasDynamicHelp": false,
9908
- "multiple": false,
9909
- "type": "option"
9910
- },
9911
- "api-url": {
9912
- "description": "Override the API base URL (e.g. for staging)",
9913
- "helpGroup": "GLOBAL",
9914
- "name": "api-url",
9915
- "hasDynamicHelp": false,
9916
- "multiple": false,
9917
- "type": "option"
9918
- },
9919
- "channel": {
9920
- "description": "Channel ID",
9921
- "name": "channel",
9922
- "required": true,
9923
- "hasDynamicHelp": false,
9924
- "multiple": false,
9925
- "type": "option"
9926
- },
9927
- "subject": {
9928
- "description": "Ticket subject",
9929
- "name": "subject",
9930
- "hasDynamicHelp": false,
9931
- "multiple": false,
9932
- "type": "option"
9933
- },
9934
- "priority": {
9935
- "description": "Ticket priority",
9936
- "name": "priority",
9937
- "hasDynamicHelp": false,
9938
- "multiple": false,
9939
- "type": "option"
9940
- },
9941
- "status": {
9942
- "description": "Ticket status",
9943
- "name": "status",
10015
+ "profile": {
10016
+ "description": "Named configuration profile to use",
10017
+ "helpGroup": "GLOBAL",
10018
+ "name": "profile",
10019
+ "default": "default",
9944
10020
  "hasDynamicHelp": false,
9945
10021
  "multiple": false,
9946
10022
  "type": "option"
9947
10023
  },
9948
- "assigned-to": {
9949
- "description": "User ID to assign the ticket to (use -1 or omit to leave unchanged)",
9950
- "name": "assigned-to",
10024
+ "api-url": {
10025
+ "description": "Override the API base URL (e.g. for staging)",
10026
+ "helpGroup": "GLOBAL",
10027
+ "name": "api-url",
9951
10028
  "hasDynamicHelp": false,
9952
10029
  "multiple": false,
9953
10030
  "type": "option"
9954
10031
  },
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"
9960
- },
9961
- "data": {
9962
- "description": "Additional JSON object payload",
9963
- "name": "data",
10032
+ "vars": {
10033
+ "description": "Template variable as key=value; may be repeated",
10034
+ "name": "vars",
9964
10035
  "hasDynamicHelp": false,
9965
- "multiple": false,
10036
+ "multiple": true,
9966
10037
  "type": "option"
9967
10038
  }
9968
10039
  },
9969
10040
  "hasDynamicHelp": false,
9970
10041
  "hiddenAliases": [],
9971
- "id": "tickets:update",
10042
+ "id": "templates:render",
9972
10043
  "pluginAlias": "@instantkom/cli",
9973
10044
  "pluginName": "@instantkom/cli",
9974
10045
  "pluginType": "core",
@@ -9978,14 +10049,20 @@
9978
10049
  "relativePath": [
9979
10050
  "dist",
9980
10051
  "commands",
9981
- "tickets",
9982
- "update.js"
10052
+ "templates",
10053
+ "render.js"
9983
10054
  ]
9984
10055
  },
9985
- "templates:create": {
10056
+ "templates:update": {
9986
10057
  "aliases": [],
9987
- "args": {},
9988
- "description": "Create a message template",
10058
+ "args": {
10059
+ "id": {
10060
+ "description": "Template ID",
10061
+ "name": "id",
10062
+ "required": true
10063
+ }
10064
+ },
10065
+ "description": "Update a message template",
9989
10066
  "flags": {
9990
10067
  "api-key": {
9991
10068
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -10049,18 +10126,9 @@
10049
10126
  "multiple": false,
10050
10127
  "type": "option"
10051
10128
  },
10052
- "channel": {
10053
- "description": "Channel ID",
10054
- "name": "channel",
10055
- "required": true,
10056
- "hasDynamicHelp": false,
10057
- "multiple": false,
10058
- "type": "option"
10059
- },
10060
10129
  "name": {
10061
10130
  "description": "Template name",
10062
10131
  "name": "name",
10063
- "required": true,
10064
10132
  "hasDynamicHelp": false,
10065
10133
  "multiple": false,
10066
10134
  "type": "option"
@@ -10068,7 +10136,6 @@
10068
10136
  "type": {
10069
10137
  "description": "Template type",
10070
10138
  "name": "type",
10071
- "default": "text",
10072
10139
  "hasDynamicHelp": false,
10073
10140
  "multiple": false,
10074
10141
  "options": [
@@ -10086,7 +10153,6 @@
10086
10153
  "message": {
10087
10154
  "description": "Template message",
10088
10155
  "name": "message",
10089
- "required": true,
10090
10156
  "hasDynamicHelp": false,
10091
10157
  "multiple": false,
10092
10158
  "type": "option"
@@ -10104,6 +10170,12 @@
10104
10170
  "allowNo": true,
10105
10171
  "type": "boolean"
10106
10172
  },
10173
+ "remove-media": {
10174
+ "description": "Remove existing media",
10175
+ "name": "remove-media",
10176
+ "allowNo": false,
10177
+ "type": "boolean"
10178
+ },
10107
10179
  "whatsapp-language": {
10108
10180
  "description": "WhatsApp template language",
10109
10181
  "name": "whatsapp-language",
@@ -10135,7 +10207,7 @@
10135
10207
  },
10136
10208
  "hasDynamicHelp": false,
10137
10209
  "hiddenAliases": [],
10138
- "id": "templates:create",
10210
+ "id": "templates:update",
10139
10211
  "pluginAlias": "@instantkom/cli",
10140
10212
  "pluginName": "@instantkom/cli",
10141
10213
  "pluginType": "core",
@@ -10146,19 +10218,13 @@
10146
10218
  "dist",
10147
10219
  "commands",
10148
10220
  "templates",
10149
- "create.js"
10221
+ "update.js"
10150
10222
  ]
10151
10223
  },
10152
- "templates:delete": {
10224
+ "templates:validate-import": {
10153
10225
  "aliases": [],
10154
- "args": {
10155
- "id": {
10156
- "description": "template ID",
10157
- "name": "id",
10158
- "required": true
10159
- }
10160
- },
10161
- "description": "Delete template",
10226
+ "args": {},
10227
+ "description": "Validate templates import JSON",
10162
10228
  "flags": {
10163
10229
  "api-key": {
10164
10230
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -10221,11 +10287,27 @@
10221
10287
  "hasDynamicHelp": false,
10222
10288
  "multiple": false,
10223
10289
  "type": "option"
10290
+ },
10291
+ "file": {
10292
+ "description": "JSON file path",
10293
+ "name": "file",
10294
+ "required": true,
10295
+ "hasDynamicHelp": false,
10296
+ "multiple": false,
10297
+ "type": "option"
10298
+ },
10299
+ "channel": {
10300
+ "description": "Target channel ID",
10301
+ "name": "channel",
10302
+ "required": true,
10303
+ "hasDynamicHelp": false,
10304
+ "multiple": false,
10305
+ "type": "option"
10224
10306
  }
10225
10307
  },
10226
10308
  "hasDynamicHelp": false,
10227
10309
  "hiddenAliases": [],
10228
- "id": "templates:delete",
10310
+ "id": "templates:validate-import",
10229
10311
  "pluginAlias": "@instantkom/cli",
10230
10312
  "pluginName": "@instantkom/cli",
10231
10313
  "pluginType": "core",
@@ -10236,13 +10318,13 @@
10236
10318
  "dist",
10237
10319
  "commands",
10238
10320
  "templates",
10239
- "delete.js"
10321
+ "validate-import.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.",
@@ -10484,40 +10528,26 @@
10484
10528
  "multiple": false,
10485
10529
  "type": "option"
10486
10530
  },
10487
- "api-url": {
10488
- "description": "Override the API base URL (e.g. for staging)",
10489
- "helpGroup": "GLOBAL",
10490
- "name": "api-url",
10491
- "hasDynamicHelp": false,
10492
- "multiple": false,
10493
- "type": "option"
10494
- },
10495
- "file": {
10496
- "description": "JSON file path",
10497
- "name": "file",
10498
- "required": true,
10531
+ "api-url": {
10532
+ "description": "Override the API base URL (e.g. for staging)",
10533
+ "helpGroup": "GLOBAL",
10534
+ "name": "api-url",
10499
10535
  "hasDynamicHelp": false,
10500
10536
  "multiple": false,
10501
10537
  "type": "option"
10502
10538
  },
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": {
@@ -16352,5 +16352,5 @@
16352
16352
  ]
16353
16353
  }
16354
16354
  },
16355
- "version": "3.137.0"
16355
+ "version": "3.138.0"
16356
16356
  }