@instantkom/cli 3.153.0 → 3.154.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.
@@ -1073,40 +1073,6 @@
1073
1073
  "reply.js"
1074
1074
  ]
1075
1075
  },
1076
- "autocomplete:script": {
1077
- "aliases": [],
1078
- "args": {
1079
- "shell": {
1080
- "description": "Shell type",
1081
- "name": "shell",
1082
- "options": [
1083
- "zsh",
1084
- "bash",
1085
- "fish",
1086
- "powershell"
1087
- ],
1088
- "required": false
1089
- }
1090
- },
1091
- "description": "outputs autocomplete config script for shells",
1092
- "flags": {},
1093
- "hasDynamicHelp": false,
1094
- "hidden": true,
1095
- "hiddenAliases": [],
1096
- "id": "autocomplete:script",
1097
- "pluginAlias": "@instantkom/cli",
1098
- "pluginName": "@instantkom/cli",
1099
- "pluginType": "core",
1100
- "strict": true,
1101
- "enableJsonFlag": false,
1102
- "isESM": true,
1103
- "relativePath": [
1104
- "dist",
1105
- "commands",
1106
- "autocomplete",
1107
- "script.js"
1108
- ]
1109
- },
1110
1076
  "auth:login": {
1111
1077
  "aliases": [],
1112
1078
  "args": {},
@@ -1289,6 +1255,40 @@
1289
1255
  "logout.js"
1290
1256
  ]
1291
1257
  },
1258
+ "autocomplete:script": {
1259
+ "aliases": [],
1260
+ "args": {
1261
+ "shell": {
1262
+ "description": "Shell type",
1263
+ "name": "shell",
1264
+ "options": [
1265
+ "zsh",
1266
+ "bash",
1267
+ "fish",
1268
+ "powershell"
1269
+ ],
1270
+ "required": false
1271
+ }
1272
+ },
1273
+ "description": "outputs autocomplete config script for shells",
1274
+ "flags": {},
1275
+ "hasDynamicHelp": false,
1276
+ "hidden": true,
1277
+ "hiddenAliases": [],
1278
+ "id": "autocomplete:script",
1279
+ "pluginAlias": "@instantkom/cli",
1280
+ "pluginName": "@instantkom/cli",
1281
+ "pluginType": "core",
1282
+ "strict": true,
1283
+ "enableJsonFlag": false,
1284
+ "isESM": true,
1285
+ "relativePath": [
1286
+ "dist",
1287
+ "commands",
1288
+ "autocomplete",
1289
+ "script.js"
1290
+ ]
1291
+ },
1292
1292
  "bots:create": {
1293
1293
  "aliases": [],
1294
1294
  "args": {},
@@ -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"
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"
3039
3064
  }
3040
3065
  },
3041
3066
  "hasDynamicHelp": false,
3042
3067
  "hiddenAliases": [],
3043
- "id": "channels:get",
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,47 +3244,47 @@
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",
3254
- "hasDynamicHelp": false,
3277
+ "data": {
3278
+ "description": "Additional JSON object payload",
3279
+ "name": "data",
3280
+ "hasDynamicHelp": false,
3255
3281
  "multiple": false,
3256
3282
  "type": "option"
3257
3283
  }
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,10 +3679,30 @@
3699
3679
  "multiple": false,
3700
3680
  "type": "option"
3701
3681
  },
3702
- "text": {
3703
- "description": "Reply text",
3704
- "name": "text",
3705
- "required": true,
3682
+ "name": {
3683
+ "description": "Channel name",
3684
+ "name": "name",
3685
+ "hasDynamicHelp": false,
3686
+ "multiple": false,
3687
+ "type": "option"
3688
+ },
3689
+ "status": {
3690
+ "description": "Channel lifecycle status",
3691
+ "name": "status",
3692
+ "hasDynamicHelp": false,
3693
+ "multiple": false,
3694
+ "type": "option"
3695
+ },
3696
+ "description": {
3697
+ "description": "Channel description",
3698
+ "name": "description",
3699
+ "hasDynamicHelp": false,
3700
+ "multiple": false,
3701
+ "type": "option"
3702
+ },
3703
+ "data": {
3704
+ "description": "Additional JSON object payload",
3705
+ "name": "data",
3706
3706
  "hasDynamicHelp": false,
3707
3707
  "multiple": false,
3708
3708
  "type": "option"
@@ -3710,7 +3710,7 @@
3710
3710
  },
3711
3711
  "hasDynamicHelp": false,
3712
3712
  "hiddenAliases": [],
3713
- "id": "chats:reply",
3713
+ "id": "channels:update",
3714
3714
  "pluginAlias": "@instantkom/cli",
3715
3715
  "pluginName": "@instantkom/cli",
3716
3716
  "pluginType": "core",
@@ -3720,8 +3720,8 @@
3720
3720
  "relativePath": [
3721
3721
  "dist",
3722
3722
  "commands",
3723
- "chats",
3724
- "reply.js"
3723
+ "channels",
3724
+ "update.js"
3725
3725
  ]
3726
3726
  },
3727
3727
  "config:get": {
@@ -4805,10 +4805,10 @@
4805
4805
  "update.js"
4806
4806
  ]
4807
4807
  },
4808
- "custom-fields:bulk-delete": {
4808
+ "exports:create": {
4809
4809
  "aliases": [],
4810
4810
  "args": {},
4811
- "description": "Bulk delete custom fields",
4811
+ "description": "Create an export",
4812
4812
  "flags": {
4813
4813
  "api-key": {
4814
4814
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -4820,18 +4820,10 @@
4820
4820
  "type": "option"
4821
4821
  },
4822
4822
  "format": {
4823
- "description": "Output format: text, json, yaml, or table",
4824
- "helpGroup": "GLOBAL",
4823
+ "description": "Alias for --target",
4825
4824
  "name": "format",
4826
- "default": "text",
4827
4825
  "hasDynamicHelp": false,
4828
4826
  "multiple": false,
4829
- "options": [
4830
- "text",
4831
- "json",
4832
- "yaml",
4833
- "table"
4834
- ],
4835
4827
  "type": "option"
4836
4828
  },
4837
4829
  "json": {
@@ -4872,18 +4864,74 @@
4872
4864
  "multiple": false,
4873
4865
  "type": "option"
4874
4866
  },
4875
- "ids": {
4876
- "description": "Comma-separated custom field IDs",
4877
- "name": "ids",
4867
+ "name": {
4868
+ "description": "Export name",
4869
+ "name": "name",
4878
4870
  "required": true,
4879
4871
  "hasDynamicHelp": false,
4880
4872
  "multiple": false,
4881
4873
  "type": "option"
4874
+ },
4875
+ "sources": {
4876
+ "description": "Data sources to export",
4877
+ "name": "sources",
4878
+ "hasDynamicHelp": false,
4879
+ "multiple": false,
4880
+ "type": "option"
4881
+ },
4882
+ "type": {
4883
+ "description": "Alias for --sources",
4884
+ "name": "type",
4885
+ "hasDynamicHelp": false,
4886
+ "multiple": false,
4887
+ "type": "option"
4888
+ },
4889
+ "target": {
4890
+ "description": "Export target/format",
4891
+ "name": "target",
4892
+ "hasDynamicHelp": false,
4893
+ "multiple": false,
4894
+ "type": "option"
4895
+ },
4896
+ "channels": {
4897
+ "description": "Comma-separated channel IDs",
4898
+ "name": "channels",
4899
+ "hasDynamicHelp": false,
4900
+ "multiple": false,
4901
+ "type": "option"
4902
+ },
4903
+ "fields": {
4904
+ "description": "Comma-separated fields",
4905
+ "name": "fields",
4906
+ "hasDynamicHelp": false,
4907
+ "multiple": false,
4908
+ "type": "option"
4909
+ },
4910
+ "filters": {
4911
+ "description": "Filter criteria",
4912
+ "name": "filters",
4913
+ "hasDynamicHelp": false,
4914
+ "multiple": false,
4915
+ "type": "option"
4916
+ },
4917
+ "color": {
4918
+ "description": "Export color as HEX",
4919
+ "name": "color",
4920
+ "hasDynamicHelp": false,
4921
+ "multiple": false,
4922
+ "type": "option"
4923
+ },
4924
+ "data": {
4925
+ "description": "Additional JSON object payload",
4926
+ "name": "data",
4927
+ "hasDynamicHelp": false,
4928
+ "multiple": false,
4929
+ "type": "option"
4882
4930
  }
4883
4931
  },
4884
4932
  "hasDynamicHelp": false,
4885
4933
  "hiddenAliases": [],
4886
- "id": "custom-fields:bulk-delete",
4934
+ "id": "exports:create",
4887
4935
  "pluginAlias": "@instantkom/cli",
4888
4936
  "pluginName": "@instantkom/cli",
4889
4937
  "pluginType": "core",
@@ -4893,14 +4941,20 @@
4893
4941
  "relativePath": [
4894
4942
  "dist",
4895
4943
  "commands",
4896
- "custom-fields",
4897
- "bulk-delete.js"
4944
+ "exports",
4945
+ "create.js"
4898
4946
  ]
4899
4947
  },
4900
- "custom-fields:create": {
4948
+ "exports:delete": {
4901
4949
  "aliases": [],
4902
- "args": {},
4903
- "description": "Create a custom field",
4950
+ "args": {
4951
+ "id": {
4952
+ "description": "Export ID",
4953
+ "name": "id",
4954
+ "required": true
4955
+ }
4956
+ },
4957
+ "description": "Delete an export",
4904
4958
  "flags": {
4905
4959
  "api-key": {
4906
4960
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -4963,72 +5017,11 @@
4963
5017
  "hasDynamicHelp": false,
4964
5018
  "multiple": false,
4965
5019
  "type": "option"
4966
- },
4967
- "name": {
4968
- "description": "Field name",
4969
- "name": "name",
4970
- "required": true,
4971
- "hasDynamicHelp": false,
4972
- "multiple": false,
4973
- "type": "option"
4974
- },
4975
- "key": {
4976
- "description": "Field key",
4977
- "name": "key",
4978
- "required": true,
4979
- "hasDynamicHelp": false,
4980
- "multiple": false,
4981
- "type": "option"
4982
- },
4983
- "type": {
4984
- "description": "Field type",
4985
- "name": "type",
4986
- "required": true,
4987
- "hasDynamicHelp": false,
4988
- "multiple": false,
4989
- "options": [
4990
- "text",
4991
- "number",
4992
- "date",
4993
- "dropdown",
4994
- "checkbox",
4995
- "url",
4996
- "email",
4997
- "phone"
4998
- ],
4999
- "type": "option"
5000
- },
5001
- "required": {
5002
- "description": "Field is required",
5003
- "name": "required",
5004
- "allowNo": false,
5005
- "type": "boolean"
5006
- },
5007
- "default": {
5008
- "description": "Default value",
5009
- "name": "default",
5010
- "hasDynamicHelp": false,
5011
- "multiple": false,
5012
- "type": "option"
5013
- },
5014
- "options": {
5015
- "description": "Comma-separated dropdown options",
5016
- "name": "options",
5017
- "hasDynamicHelp": false,
5018
- "multiple": false,
5019
- "type": "option"
5020
- },
5021
- "data": {
5022
- "description": "Additional JSON object payload",
5023
- "name": "data",
5024
- "hasDynamicHelp": false,
5025
- "multiple": false,
5026
- "type": "option"
5027
5020
  }
5028
5021
  },
5029
5022
  "hasDynamicHelp": false,
5030
5023
  "hiddenAliases": [],
5031
- "id": "custom-fields:create",
5024
+ "id": "exports:delete",
5032
5025
  "pluginAlias": "@instantkom/cli",
5033
5026
  "pluginName": "@instantkom/cli",
5034
5027
  "pluginType": "core",
@@ -5038,20 +5031,20 @@
5038
5031
  "relativePath": [
5039
5032
  "dist",
5040
5033
  "commands",
5041
- "custom-fields",
5042
- "create.js"
5034
+ "exports",
5035
+ "delete.js"
5043
5036
  ]
5044
5037
  },
5045
- "custom-fields:delete": {
5038
+ "exports:download": {
5046
5039
  "aliases": [],
5047
5040
  "args": {
5048
5041
  "id": {
5049
- "description": "custom field ID",
5042
+ "description": "Export ID",
5050
5043
  "name": "id",
5051
5044
  "required": true
5052
5045
  }
5053
5046
  },
5054
- "description": "Delete custom field",
5047
+ "description": "Download an export file",
5055
5048
  "flags": {
5056
5049
  "api-key": {
5057
5050
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -5114,11 +5107,18 @@
5114
5107
  "hasDynamicHelp": false,
5115
5108
  "multiple": false,
5116
5109
  "type": "option"
5110
+ },
5111
+ "file": {
5112
+ "description": "Output file path",
5113
+ "name": "file",
5114
+ "hasDynamicHelp": false,
5115
+ "multiple": false,
5116
+ "type": "option"
5117
5117
  }
5118
5118
  },
5119
5119
  "hasDynamicHelp": false,
5120
5120
  "hiddenAliases": [],
5121
- "id": "custom-fields:delete",
5121
+ "id": "exports:download",
5122
5122
  "pluginAlias": "@instantkom/cli",
5123
5123
  "pluginName": "@instantkom/cli",
5124
5124
  "pluginType": "core",
@@ -5128,20 +5128,20 @@
5128
5128
  "relativePath": [
5129
5129
  "dist",
5130
5130
  "commands",
5131
- "custom-fields",
5132
- "delete.js"
5131
+ "exports",
5132
+ "download.js"
5133
5133
  ]
5134
5134
  },
5135
- "custom-fields:get": {
5135
+ "exports:get": {
5136
5136
  "aliases": [],
5137
5137
  "args": {
5138
5138
  "id": {
5139
- "description": "custom field ID",
5139
+ "description": "Export ID",
5140
5140
  "name": "id",
5141
5141
  "required": true
5142
5142
  }
5143
5143
  },
5144
- "description": "Get custom field by ID",
5144
+ "description": "Get an export by ID",
5145
5145
  "flags": {
5146
5146
  "api-key": {
5147
5147
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -5208,7 +5208,7 @@
5208
5208
  },
5209
5209
  "hasDynamicHelp": false,
5210
5210
  "hiddenAliases": [],
5211
- "id": "custom-fields:get",
5211
+ "id": "exports:get",
5212
5212
  "pluginAlias": "@instantkom/cli",
5213
5213
  "pluginName": "@instantkom/cli",
5214
5214
  "pluginType": "core",
@@ -5218,14 +5218,14 @@
5218
5218
  "relativePath": [
5219
5219
  "dist",
5220
5220
  "commands",
5221
- "custom-fields",
5221
+ "exports",
5222
5222
  "get.js"
5223
5223
  ]
5224
5224
  },
5225
- "custom-fields:list": {
5225
+ "exports:list": {
5226
5226
  "aliases": [],
5227
5227
  "args": {},
5228
- "description": "List custom fields",
5228
+ "description": "List exports",
5229
5229
  "flags": {
5230
5230
  "api-key": {
5231
5231
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -5288,11 +5288,41 @@
5288
5288
  "hasDynamicHelp": false,
5289
5289
  "multiple": false,
5290
5290
  "type": "option"
5291
+ },
5292
+ "page": {
5293
+ "description": "Page number",
5294
+ "name": "page",
5295
+ "default": 1,
5296
+ "hasDynamicHelp": false,
5297
+ "multiple": false,
5298
+ "type": "option"
5299
+ },
5300
+ "limit": {
5301
+ "description": "Items per page",
5302
+ "name": "limit",
5303
+ "default": 50,
5304
+ "hasDynamicHelp": false,
5305
+ "multiple": false,
5306
+ "type": "option"
5307
+ },
5308
+ "source": {
5309
+ "description": "Filter by data source",
5310
+ "name": "source",
5311
+ "hasDynamicHelp": false,
5312
+ "multiple": false,
5313
+ "type": "option"
5314
+ },
5315
+ "target": {
5316
+ "description": "Filter by export target/format",
5317
+ "name": "target",
5318
+ "hasDynamicHelp": false,
5319
+ "multiple": false,
5320
+ "type": "option"
5291
5321
  }
5292
5322
  },
5293
5323
  "hasDynamicHelp": false,
5294
5324
  "hiddenAliases": [],
5295
- "id": "custom-fields:list",
5325
+ "id": "exports:list",
5296
5326
  "pluginAlias": "@instantkom/cli",
5297
5327
  "pluginName": "@instantkom/cli",
5298
5328
  "pluginType": "core",
@@ -5302,14 +5332,14 @@
5302
5332
  "relativePath": [
5303
5333
  "dist",
5304
5334
  "commands",
5305
- "custom-fields",
5335
+ "exports",
5306
5336
  "list.js"
5307
5337
  ]
5308
5338
  },
5309
- "custom-fields:reorder": {
5339
+ "custom-fields:bulk-delete": {
5310
5340
  "aliases": [],
5311
5341
  "args": {},
5312
- "description": "Reorder custom fields",
5342
+ "description": "Bulk delete custom fields",
5313
5343
  "flags": {
5314
5344
  "api-key": {
5315
5345
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -5373,9 +5403,9 @@
5373
5403
  "multiple": false,
5374
5404
  "type": "option"
5375
5405
  },
5376
- "order": {
5377
- "description": "Order JSON array payload",
5378
- "name": "order",
5406
+ "ids": {
5407
+ "description": "Comma-separated custom field IDs",
5408
+ "name": "ids",
5379
5409
  "required": true,
5380
5410
  "hasDynamicHelp": false,
5381
5411
  "multiple": false,
@@ -5384,7 +5414,7 @@
5384
5414
  },
5385
5415
  "hasDynamicHelp": false,
5386
5416
  "hiddenAliases": [],
5387
- "id": "custom-fields:reorder",
5417
+ "id": "custom-fields:bulk-delete",
5388
5418
  "pluginAlias": "@instantkom/cli",
5389
5419
  "pluginName": "@instantkom/cli",
5390
5420
  "pluginType": "core",
@@ -5395,19 +5425,13 @@
5395
5425
  "dist",
5396
5426
  "commands",
5397
5427
  "custom-fields",
5398
- "reorder.js"
5428
+ "bulk-delete.js"
5399
5429
  ]
5400
5430
  },
5401
- "custom-fields:update": {
5431
+ "custom-fields:create": {
5402
5432
  "aliases": [],
5403
- "args": {
5404
- "id": {
5405
- "description": "Custom field ID",
5406
- "name": "id",
5407
- "required": true
5408
- }
5409
- },
5410
- "description": "Update a custom field",
5433
+ "args": {},
5434
+ "description": "Create a custom field",
5411
5435
  "flags": {
5412
5436
  "api-key": {
5413
5437
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -5474,6 +5498,15 @@
5474
5498
  "name": {
5475
5499
  "description": "Field name",
5476
5500
  "name": "name",
5501
+ "required": true,
5502
+ "hasDynamicHelp": false,
5503
+ "multiple": false,
5504
+ "type": "option"
5505
+ },
5506
+ "key": {
5507
+ "description": "Field key",
5508
+ "name": "key",
5509
+ "required": true,
5477
5510
  "hasDynamicHelp": false,
5478
5511
  "multiple": false,
5479
5512
  "type": "option"
@@ -5481,6 +5514,7 @@
5481
5514
  "type": {
5482
5515
  "description": "Field type",
5483
5516
  "name": "type",
5517
+ "required": true,
5484
5518
  "hasDynamicHelp": false,
5485
5519
  "multiple": false,
5486
5520
  "options": [
@@ -5498,13 +5532,7 @@
5498
5532
  "required": {
5499
5533
  "description": "Field is required",
5500
5534
  "name": "required",
5501
- "allowNo": true,
5502
- "type": "boolean"
5503
- },
5504
- "status": {
5505
- "description": "Field is active",
5506
- "name": "status",
5507
- "allowNo": true,
5535
+ "allowNo": false,
5508
5536
  "type": "boolean"
5509
5537
  },
5510
5538
  "default": {
@@ -5531,7 +5559,7 @@
5531
5559
  },
5532
5560
  "hasDynamicHelp": false,
5533
5561
  "hiddenAliases": [],
5534
- "id": "custom-fields:update",
5562
+ "id": "custom-fields:create",
5535
5563
  "pluginAlias": "@instantkom/cli",
5536
5564
  "pluginName": "@instantkom/cli",
5537
5565
  "pluginType": "core",
@@ -5542,13 +5570,19 @@
5542
5570
  "dist",
5543
5571
  "commands",
5544
5572
  "custom-fields",
5545
- "update.js"
5573
+ "create.js"
5546
5574
  ]
5547
5575
  },
5548
- "exports:create": {
5576
+ "custom-fields:delete": {
5549
5577
  "aliases": [],
5550
- "args": {},
5551
- "description": "Create an export",
5578
+ "args": {
5579
+ "id": {
5580
+ "description": "custom field ID",
5581
+ "name": "id",
5582
+ "required": true
5583
+ }
5584
+ },
5585
+ "description": "Delete custom field",
5552
5586
  "flags": {
5553
5587
  "api-key": {
5554
5588
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -5560,10 +5594,18 @@
5560
5594
  "type": "option"
5561
5595
  },
5562
5596
  "format": {
5563
- "description": "Alias for --target",
5597
+ "description": "Output format: text, json, yaml, or table",
5598
+ "helpGroup": "GLOBAL",
5564
5599
  "name": "format",
5600
+ "default": "text",
5565
5601
  "hasDynamicHelp": false,
5566
5602
  "multiple": false,
5603
+ "options": [
5604
+ "text",
5605
+ "json",
5606
+ "yaml",
5607
+ "table"
5608
+ ],
5567
5609
  "type": "option"
5568
5610
  },
5569
5611
  "json": {
@@ -5603,121 +5645,57 @@
5603
5645
  "hasDynamicHelp": false,
5604
5646
  "multiple": false,
5605
5647
  "type": "option"
5606
- },
5607
- "name": {
5608
- "description": "Export name",
5609
- "name": "name",
5610
- "required": true,
5611
- "hasDynamicHelp": false,
5612
- "multiple": false,
5613
- "type": "option"
5614
- },
5615
- "sources": {
5616
- "description": "Data sources to export",
5617
- "name": "sources",
5648
+ }
5649
+ },
5650
+ "hasDynamicHelp": false,
5651
+ "hiddenAliases": [],
5652
+ "id": "custom-fields:delete",
5653
+ "pluginAlias": "@instantkom/cli",
5654
+ "pluginName": "@instantkom/cli",
5655
+ "pluginType": "core",
5656
+ "strict": true,
5657
+ "enableJsonFlag": false,
5658
+ "isESM": true,
5659
+ "relativePath": [
5660
+ "dist",
5661
+ "commands",
5662
+ "custom-fields",
5663
+ "delete.js"
5664
+ ]
5665
+ },
5666
+ "custom-fields:get": {
5667
+ "aliases": [],
5668
+ "args": {
5669
+ "id": {
5670
+ "description": "custom field ID",
5671
+ "name": "id",
5672
+ "required": true
5673
+ }
5674
+ },
5675
+ "description": "Get custom field by ID",
5676
+ "flags": {
5677
+ "api-key": {
5678
+ "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
5679
+ "env": "IKM_API_KEY",
5680
+ "helpGroup": "GLOBAL",
5681
+ "name": "api-key",
5618
5682
  "hasDynamicHelp": false,
5619
5683
  "multiple": false,
5620
5684
  "type": "option"
5621
5685
  },
5622
- "type": {
5623
- "description": "Alias for --sources",
5624
- "name": "type",
5686
+ "format": {
5687
+ "description": "Output format: text, json, yaml, or table",
5688
+ "helpGroup": "GLOBAL",
5689
+ "name": "format",
5690
+ "default": "text",
5625
5691
  "hasDynamicHelp": false,
5626
5692
  "multiple": false,
5627
- "type": "option"
5628
- },
5629
- "target": {
5630
- "description": "Export target/format",
5631
- "name": "target",
5632
- "hasDynamicHelp": false,
5633
- "multiple": false,
5634
- "type": "option"
5635
- },
5636
- "channels": {
5637
- "description": "Comma-separated channel IDs",
5638
- "name": "channels",
5639
- "hasDynamicHelp": false,
5640
- "multiple": false,
5641
- "type": "option"
5642
- },
5643
- "fields": {
5644
- "description": "Comma-separated fields",
5645
- "name": "fields",
5646
- "hasDynamicHelp": false,
5647
- "multiple": false,
5648
- "type": "option"
5649
- },
5650
- "filters": {
5651
- "description": "Filter criteria",
5652
- "name": "filters",
5653
- "hasDynamicHelp": false,
5654
- "multiple": false,
5655
- "type": "option"
5656
- },
5657
- "color": {
5658
- "description": "Export color as HEX",
5659
- "name": "color",
5660
- "hasDynamicHelp": false,
5661
- "multiple": false,
5662
- "type": "option"
5663
- },
5664
- "data": {
5665
- "description": "Additional JSON object payload",
5666
- "name": "data",
5667
- "hasDynamicHelp": false,
5668
- "multiple": false,
5669
- "type": "option"
5670
- }
5671
- },
5672
- "hasDynamicHelp": false,
5673
- "hiddenAliases": [],
5674
- "id": "exports:create",
5675
- "pluginAlias": "@instantkom/cli",
5676
- "pluginName": "@instantkom/cli",
5677
- "pluginType": "core",
5678
- "strict": true,
5679
- "enableJsonFlag": false,
5680
- "isESM": true,
5681
- "relativePath": [
5682
- "dist",
5683
- "commands",
5684
- "exports",
5685
- "create.js"
5686
- ]
5687
- },
5688
- "exports:delete": {
5689
- "aliases": [],
5690
- "args": {
5691
- "id": {
5692
- "description": "Export ID",
5693
- "name": "id",
5694
- "required": true
5695
- }
5696
- },
5697
- "description": "Delete an export",
5698
- "flags": {
5699
- "api-key": {
5700
- "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
5701
- "env": "IKM_API_KEY",
5702
- "helpGroup": "GLOBAL",
5703
- "name": "api-key",
5704
- "hasDynamicHelp": false,
5705
- "multiple": false,
5706
- "type": "option"
5707
- },
5708
- "format": {
5709
- "description": "Output format: text, json, yaml, or table",
5710
- "helpGroup": "GLOBAL",
5711
- "name": "format",
5712
- "default": "text",
5713
- "hasDynamicHelp": false,
5714
- "multiple": false,
5715
- "options": [
5716
- "text",
5717
- "json",
5718
- "yaml",
5719
- "table"
5720
- ],
5693
+ "options": [
5694
+ "text",
5695
+ "json",
5696
+ "yaml",
5697
+ "table"
5698
+ ],
5721
5699
  "type": "option"
5722
5700
  },
5723
5701
  "json": {
@@ -5761,7 +5739,7 @@
5761
5739
  },
5762
5740
  "hasDynamicHelp": false,
5763
5741
  "hiddenAliases": [],
5764
- "id": "exports:delete",
5742
+ "id": "custom-fields:get",
5765
5743
  "pluginAlias": "@instantkom/cli",
5766
5744
  "pluginName": "@instantkom/cli",
5767
5745
  "pluginType": "core",
@@ -5771,20 +5749,14 @@
5771
5749
  "relativePath": [
5772
5750
  "dist",
5773
5751
  "commands",
5774
- "exports",
5775
- "delete.js"
5752
+ "custom-fields",
5753
+ "get.js"
5776
5754
  ]
5777
5755
  },
5778
- "exports:download": {
5756
+ "custom-fields:list": {
5779
5757
  "aliases": [],
5780
- "args": {
5781
- "id": {
5782
- "description": "Export ID",
5783
- "name": "id",
5784
- "required": true
5785
- }
5786
- },
5787
- "description": "Download an export file",
5758
+ "args": {},
5759
+ "description": "List custom fields",
5788
5760
  "flags": {
5789
5761
  "api-key": {
5790
5762
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -5847,18 +5819,11 @@
5847
5819
  "hasDynamicHelp": false,
5848
5820
  "multiple": false,
5849
5821
  "type": "option"
5850
- },
5851
- "file": {
5852
- "description": "Output file path",
5853
- "name": "file",
5854
- "hasDynamicHelp": false,
5855
- "multiple": false,
5856
- "type": "option"
5857
5822
  }
5858
5823
  },
5859
5824
  "hasDynamicHelp": false,
5860
5825
  "hiddenAliases": [],
5861
- "id": "exports:download",
5826
+ "id": "custom-fields:list",
5862
5827
  "pluginAlias": "@instantkom/cli",
5863
5828
  "pluginName": "@instantkom/cli",
5864
5829
  "pluginType": "core",
@@ -5868,20 +5833,14 @@
5868
5833
  "relativePath": [
5869
5834
  "dist",
5870
5835
  "commands",
5871
- "exports",
5872
- "download.js"
5836
+ "custom-fields",
5837
+ "list.js"
5873
5838
  ]
5874
5839
  },
5875
- "exports:get": {
5840
+ "custom-fields:reorder": {
5876
5841
  "aliases": [],
5877
- "args": {
5878
- "id": {
5879
- "description": "Export ID",
5880
- "name": "id",
5881
- "required": true
5882
- }
5883
- },
5884
- "description": "Get an export by ID",
5842
+ "args": {},
5843
+ "description": "Reorder custom fields",
5885
5844
  "flags": {
5886
5845
  "api-key": {
5887
5846
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -5944,11 +5903,19 @@
5944
5903
  "hasDynamicHelp": false,
5945
5904
  "multiple": false,
5946
5905
  "type": "option"
5906
+ },
5907
+ "order": {
5908
+ "description": "Order JSON array payload",
5909
+ "name": "order",
5910
+ "required": true,
5911
+ "hasDynamicHelp": false,
5912
+ "multiple": false,
5913
+ "type": "option"
5947
5914
  }
5948
5915
  },
5949
5916
  "hasDynamicHelp": false,
5950
5917
  "hiddenAliases": [],
5951
- "id": "exports:get",
5918
+ "id": "custom-fields:reorder",
5952
5919
  "pluginAlias": "@instantkom/cli",
5953
5920
  "pluginName": "@instantkom/cli",
5954
5921
  "pluginType": "core",
@@ -5958,14 +5925,20 @@
5958
5925
  "relativePath": [
5959
5926
  "dist",
5960
5927
  "commands",
5961
- "exports",
5962
- "get.js"
5928
+ "custom-fields",
5929
+ "reorder.js"
5963
5930
  ]
5964
5931
  },
5965
- "exports:list": {
5932
+ "custom-fields:update": {
5966
5933
  "aliases": [],
5967
- "args": {},
5968
- "description": "List exports",
5934
+ "args": {
5935
+ "id": {
5936
+ "description": "Custom field ID",
5937
+ "name": "id",
5938
+ "required": true
5939
+ }
5940
+ },
5941
+ "description": "Update a custom field",
5969
5942
  "flags": {
5970
5943
  "api-key": {
5971
5944
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -6029,32 +6002,59 @@
6029
6002
  "multiple": false,
6030
6003
  "type": "option"
6031
6004
  },
6032
- "page": {
6033
- "description": "Page number",
6034
- "name": "page",
6035
- "default": 1,
6005
+ "name": {
6006
+ "description": "Field name",
6007
+ "name": "name",
6036
6008
  "hasDynamicHelp": false,
6037
6009
  "multiple": false,
6038
6010
  "type": "option"
6039
6011
  },
6040
- "limit": {
6041
- "description": "Items per page",
6042
- "name": "limit",
6043
- "default": 50,
6012
+ "type": {
6013
+ "description": "Field type",
6014
+ "name": "type",
6044
6015
  "hasDynamicHelp": false,
6045
6016
  "multiple": false,
6017
+ "options": [
6018
+ "text",
6019
+ "number",
6020
+ "date",
6021
+ "dropdown",
6022
+ "checkbox",
6023
+ "url",
6024
+ "email",
6025
+ "phone"
6026
+ ],
6046
6027
  "type": "option"
6047
6028
  },
6048
- "source": {
6049
- "description": "Filter by data source",
6050
- "name": "source",
6029
+ "required": {
6030
+ "description": "Field is required",
6031
+ "name": "required",
6032
+ "allowNo": true,
6033
+ "type": "boolean"
6034
+ },
6035
+ "status": {
6036
+ "description": "Field is active",
6037
+ "name": "status",
6038
+ "allowNo": true,
6039
+ "type": "boolean"
6040
+ },
6041
+ "default": {
6042
+ "description": "Default value",
6043
+ "name": "default",
6051
6044
  "hasDynamicHelp": false,
6052
6045
  "multiple": false,
6053
6046
  "type": "option"
6054
6047
  },
6055
- "target": {
6056
- "description": "Filter by export target/format",
6057
- "name": "target",
6048
+ "options": {
6049
+ "description": "Comma-separated dropdown options",
6050
+ "name": "options",
6051
+ "hasDynamicHelp": false,
6052
+ "multiple": false,
6053
+ "type": "option"
6054
+ },
6055
+ "data": {
6056
+ "description": "Additional JSON object payload",
6057
+ "name": "data",
6058
6058
  "hasDynamicHelp": false,
6059
6059
  "multiple": false,
6060
6060
  "type": "option"
@@ -6062,7 +6062,7 @@
6062
6062
  },
6063
6063
  "hasDynamicHelp": false,
6064
6064
  "hiddenAliases": [],
6065
- "id": "exports:list",
6065
+ "id": "custom-fields:update",
6066
6066
  "pluginAlias": "@instantkom/cli",
6067
6067
  "pluginName": "@instantkom/cli",
6068
6068
  "pluginType": "core",
@@ -6072,8 +6072,8 @@
6072
6072
  "relativePath": [
6073
6073
  "dist",
6074
6074
  "commands",
6075
- "exports",
6076
- "list.js"
6075
+ "custom-fields",
6076
+ "update.js"
6077
6077
  ]
6078
6078
  },
6079
6079
  "flows:create": {
@@ -9293,10 +9293,10 @@
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
9300
  "flags": {
9301
9301
  "api-key": {
9302
9302
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -9368,45 +9368,70 @@
9368
9368
  "multiple": false,
9369
9369
  "type": "option"
9370
9370
  },
9371
- "subject": {
9372
- "description": "Ticket subject",
9373
- "name": "subject",
9371
+ "name": {
9372
+ "description": "Template name",
9373
+ "name": "name",
9374
9374
  "required": true,
9375
9375
  "hasDynamicHelp": false,
9376
9376
  "multiple": false,
9377
9377
  "type": "option"
9378
9378
  },
9379
- "recipient": {
9380
- "description": "Existing recipient ID",
9381
- "name": "recipient",
9379
+ "type": {
9380
+ "description": "Template type",
9381
+ "name": "type",
9382
+ "default": "text",
9382
9383
  "hasDynamicHelp": false,
9383
9384
  "multiple": false,
9385
+ "options": [
9386
+ "text",
9387
+ "image",
9388
+ "video",
9389
+ "document",
9390
+ "audio",
9391
+ "location",
9392
+ "contact",
9393
+ "interactive"
9394
+ ],
9384
9395
  "type": "option"
9385
9396
  },
9386
- "email": {
9387
- "description": "Customer email",
9388
- "name": "email",
9397
+ "message": {
9398
+ "description": "Template message",
9399
+ "name": "message",
9400
+ "required": true,
9389
9401
  "hasDynamicHelp": false,
9390
9402
  "multiple": false,
9391
9403
  "type": "option"
9392
9404
  },
9393
- "name": {
9394
- "description": "Customer name",
9395
- "name": "name",
9405
+ "color": {
9406
+ "description": "Template color as HEX",
9407
+ "name": "color",
9396
9408
  "hasDynamicHelp": false,
9397
9409
  "multiple": false,
9398
9410
  "type": "option"
9399
9411
  },
9400
- "priority": {
9401
- "description": "Ticket priority",
9402
- "name": "priority",
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",
9403
9421
  "hasDynamicHelp": false,
9404
9422
  "multiple": false,
9405
9423
  "type": "option"
9406
9424
  },
9407
- "source": {
9408
- "description": "Ticket source",
9409
- "name": "source",
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",
9410
9435
  "hasDynamicHelp": false,
9411
9436
  "multiple": false,
9412
9437
  "type": "option"
@@ -9421,7 +9446,7 @@
9421
9446
  },
9422
9447
  "hasDynamicHelp": false,
9423
9448
  "hiddenAliases": [],
9424
- "id": "tickets:create",
9449
+ "id": "templates:create",
9425
9450
  "pluginAlias": "@instantkom/cli",
9426
9451
  "pluginName": "@instantkom/cli",
9427
9452
  "pluginType": "core",
@@ -9431,20 +9456,20 @@
9431
9456
  "relativePath": [
9432
9457
  "dist",
9433
9458
  "commands",
9434
- "tickets",
9459
+ "templates",
9435
9460
  "create.js"
9436
9461
  ]
9437
9462
  },
9438
- "tickets:delete": {
9463
+ "templates:delete": {
9439
9464
  "aliases": [],
9440
9465
  "args": {
9441
9466
  "id": {
9442
- "description": "Ticket ID",
9467
+ "description": "template ID",
9443
9468
  "name": "id",
9444
9469
  "required": true
9445
9470
  }
9446
9471
  },
9447
- "description": "Delete a ticket",
9472
+ "description": "Delete template",
9448
9473
  "flags": {
9449
9474
  "api-key": {
9450
9475
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -9507,19 +9532,11 @@
9507
9532
  "hasDynamicHelp": false,
9508
9533
  "multiple": false,
9509
9534
  "type": "option"
9510
- },
9511
- "channel": {
9512
- "description": "Channel ID",
9513
- "name": "channel",
9514
- "required": true,
9515
- "hasDynamicHelp": false,
9516
- "multiple": false,
9517
- "type": "option"
9518
9535
  }
9519
9536
  },
9520
9537
  "hasDynamicHelp": false,
9521
9538
  "hiddenAliases": [],
9522
- "id": "tickets:delete",
9539
+ "id": "templates:delete",
9523
9540
  "pluginAlias": "@instantkom/cli",
9524
9541
  "pluginName": "@instantkom/cli",
9525
9542
  "pluginType": "core",
@@ -9529,20 +9546,14 @@
9529
9546
  "relativePath": [
9530
9547
  "dist",
9531
9548
  "commands",
9532
- "tickets",
9549
+ "templates",
9533
9550
  "delete.js"
9534
9551
  ]
9535
9552
  },
9536
- "tickets:get": {
9553
+ "templates:export": {
9537
9554
  "aliases": [],
9538
- "args": {
9539
- "id": {
9540
- "description": "Ticket ID",
9541
- "name": "id",
9542
- "required": true
9543
- }
9544
- },
9545
- "description": "Get a ticket by ID",
9555
+ "args": {},
9556
+ "description": "Export templates to a file",
9546
9557
  "flags": {
9547
9558
  "api-key": {
9548
9559
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -9554,17 +9565,14 @@
9554
9565
  "type": "option"
9555
9566
  },
9556
9567
  "format": {
9557
- "description": "Output format: text, json, yaml, or table",
9558
- "helpGroup": "GLOBAL",
9568
+ "description": "Export format",
9559
9569
  "name": "format",
9560
- "default": "text",
9570
+ "default": "json",
9561
9571
  "hasDynamicHelp": false,
9562
9572
  "multiple": false,
9563
9573
  "options": [
9564
- "text",
9565
- "json",
9566
- "yaml",
9567
- "table"
9574
+ "csv",
9575
+ "json"
9568
9576
  ],
9569
9577
  "type": "option"
9570
9578
  },
@@ -9606,10 +9614,17 @@
9606
9614
  "multiple": false,
9607
9615
  "type": "option"
9608
9616
  },
9617
+ "file": {
9618
+ "description": "Output file path",
9619
+ "name": "file",
9620
+ "required": true,
9621
+ "hasDynamicHelp": false,
9622
+ "multiple": false,
9623
+ "type": "option"
9624
+ },
9609
9625
  "channel": {
9610
- "description": "Channel ID",
9626
+ "description": "Filter by channel ID",
9611
9627
  "name": "channel",
9612
- "required": true,
9613
9628
  "hasDynamicHelp": false,
9614
9629
  "multiple": false,
9615
9630
  "type": "option"
@@ -9617,7 +9632,7 @@
9617
9632
  },
9618
9633
  "hasDynamicHelp": false,
9619
9634
  "hiddenAliases": [],
9620
- "id": "tickets:get",
9635
+ "id": "templates:export",
9621
9636
  "pluginAlias": "@instantkom/cli",
9622
9637
  "pluginName": "@instantkom/cli",
9623
9638
  "pluginType": "core",
@@ -9627,14 +9642,20 @@
9627
9642
  "relativePath": [
9628
9643
  "dist",
9629
9644
  "commands",
9630
- "tickets",
9631
- "get.js"
9645
+ "templates",
9646
+ "export.js"
9632
9647
  ]
9633
9648
  },
9634
- "tickets:list": {
9649
+ "templates:get": {
9635
9650
  "aliases": [],
9636
- "args": {},
9637
- "description": "List tickets for a channel",
9651
+ "args": {
9652
+ "id": {
9653
+ "description": "Template ID",
9654
+ "name": "id",
9655
+ "required": true
9656
+ }
9657
+ },
9658
+ "description": "Get a message template by ID",
9638
9659
  "flags": {
9639
9660
  "api-key": {
9640
9661
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -9697,35 +9718,11 @@
9697
9718
  "hasDynamicHelp": false,
9698
9719
  "multiple": false,
9699
9720
  "type": "option"
9700
- },
9701
- "channel": {
9702
- "description": "Channel ID",
9703
- "name": "channel",
9704
- "required": true,
9705
- "hasDynamicHelp": false,
9706
- "multiple": false,
9707
- "type": "option"
9708
- },
9709
- "limit": {
9710
- "description": "Maximum tickets to return",
9711
- "name": "limit",
9712
- "default": 500,
9713
- "hasDynamicHelp": false,
9714
- "multiple": false,
9715
- "type": "option"
9716
- },
9717
- "offset": {
9718
- "description": "Number of tickets to skip",
9719
- "name": "offset",
9720
- "default": 0,
9721
- "hasDynamicHelp": false,
9722
- "multiple": false,
9723
- "type": "option"
9724
9721
  }
9725
9722
  },
9726
9723
  "hasDynamicHelp": false,
9727
9724
  "hiddenAliases": [],
9728
- "id": "tickets:list",
9725
+ "id": "templates:get",
9729
9726
  "pluginAlias": "@instantkom/cli",
9730
9727
  "pluginName": "@instantkom/cli",
9731
9728
  "pluginType": "core",
@@ -9735,20 +9732,14 @@
9735
9732
  "relativePath": [
9736
9733
  "dist",
9737
9734
  "commands",
9738
- "tickets",
9739
- "list.js"
9735
+ "templates",
9736
+ "get.js"
9740
9737
  ]
9741
9738
  },
9742
- "tickets:reply": {
9739
+ "templates:import": {
9743
9740
  "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.",
9741
+ "args": {},
9742
+ "description": "Import templates from JSON",
9752
9743
  "flags": {
9753
9744
  "api-key": {
9754
9745
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -9812,24 +9803,32 @@
9812
9803
  "multiple": false,
9813
9804
  "type": "option"
9814
9805
  },
9815
- "message": {
9816
- "description": "Reply body (raw text, no salutation or sign-off)",
9817
- "name": "message",
9806
+ "file": {
9807
+ "description": "JSON file path",
9808
+ "name": "file",
9818
9809
  "required": true,
9819
9810
  "hasDynamicHelp": false,
9820
9811
  "multiple": false,
9821
9812
  "type": "option"
9822
9813
  },
9823
- "close": {
9824
- "description": "Close the ticket after sending the reply",
9825
- "name": "close",
9826
- "allowNo": false,
9814
+ "channel": {
9815
+ "description": "Target channel ID",
9816
+ "name": "channel",
9817
+ "required": true,
9818
+ "hasDynamicHelp": false,
9819
+ "multiple": false,
9820
+ "type": "option"
9821
+ },
9822
+ "skip-duplicates": {
9823
+ "description": "Skip duplicate templates",
9824
+ "name": "skip-duplicates",
9825
+ "allowNo": true,
9827
9826
  "type": "boolean"
9828
9827
  }
9829
9828
  },
9830
9829
  "hasDynamicHelp": false,
9831
9830
  "hiddenAliases": [],
9832
- "id": "tickets:reply",
9831
+ "id": "templates:import",
9833
9832
  "pluginAlias": "@instantkom/cli",
9834
9833
  "pluginName": "@instantkom/cli",
9835
9834
  "pluginType": "core",
@@ -9839,20 +9838,14 @@
9839
9838
  "relativePath": [
9840
9839
  "dist",
9841
9840
  "commands",
9842
- "tickets",
9843
- "reply.js"
9841
+ "templates",
9842
+ "import.js"
9844
9843
  ]
9845
9844
  },
9846
- "tickets:update": {
9845
+ "templates:list": {
9847
9846
  "aliases": [],
9848
- "args": {
9849
- "id": {
9850
- "description": "Ticket ID",
9851
- "name": "id",
9852
- "required": true
9853
- }
9854
- },
9855
- "description": "Update a ticket",
9847
+ "args": {},
9848
+ "description": "List message templates",
9856
9849
  "flags": {
9857
9850
  "api-key": {
9858
9851
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -9917,50 +9910,31 @@
9917
9910
  "type": "option"
9918
9911
  },
9919
9912
  "channel": {
9920
- "description": "Channel ID",
9913
+ "description": "Filter by channel ID",
9921
9914
  "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
9915
  "hasDynamicHelp": false,
9938
9916
  "multiple": false,
9939
9917
  "type": "option"
9940
9918
  },
9941
- "status": {
9942
- "description": "Ticket status",
9943
- "name": "status",
9919
+ "search": {
9920
+ "description": "Search templates by name or content",
9921
+ "name": "search",
9944
9922
  "hasDynamicHelp": false,
9945
9923
  "multiple": false,
9946
9924
  "type": "option"
9947
9925
  },
9948
- "assigned-to": {
9949
- "description": "User ID to assign the ticket to (use -1 or omit to leave unchanged)",
9950
- "name": "assigned-to",
9926
+ "page": {
9927
+ "description": "Page number",
9928
+ "name": "page",
9929
+ "default": 1,
9951
9930
  "hasDynamicHelp": false,
9952
9931
  "multiple": false,
9953
9932
  "type": "option"
9954
9933
  },
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",
9934
+ "limit": {
9935
+ "description": "Items per page",
9936
+ "name": "limit",
9937
+ "default": 20,
9964
9938
  "hasDynamicHelp": false,
9965
9939
  "multiple": false,
9966
9940
  "type": "option"
@@ -9968,7 +9942,7 @@
9968
9942
  },
9969
9943
  "hasDynamicHelp": false,
9970
9944
  "hiddenAliases": [],
9971
- "id": "tickets:update",
9945
+ "id": "templates:list",
9972
9946
  "pluginAlias": "@instantkom/cli",
9973
9947
  "pluginName": "@instantkom/cli",
9974
9948
  "pluginType": "core",
@@ -9978,14 +9952,20 @@
9978
9952
  "relativePath": [
9979
9953
  "dist",
9980
9954
  "commands",
9981
- "tickets",
9982
- "update.js"
9955
+ "templates",
9956
+ "list.js"
9983
9957
  ]
9984
9958
  },
9985
- "webhooks:add": {
9959
+ "templates:render": {
9986
9960
  "aliases": [],
9987
- "args": {},
9988
- "description": "Add a webhook subscription",
9961
+ "args": {
9962
+ "id": {
9963
+ "description": "Template ID",
9964
+ "name": "id",
9965
+ "required": true
9966
+ }
9967
+ },
9968
+ "description": "Render a message template locally",
9989
9969
  "flags": {
9990
9970
  "api-key": {
9991
9971
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -10049,33 +10029,17 @@
10049
10029
  "multiple": false,
10050
10030
  "type": "option"
10051
10031
  },
10052
- "event": {
10053
- "description": "Webhook event to subscribe to",
10054
- "name": "event",
10055
- "required": true,
10032
+ "vars": {
10033
+ "description": "Template variable as key=value; may be repeated",
10034
+ "name": "vars",
10056
10035
  "hasDynamicHelp": false,
10057
- "multiple": false,
10058
- "options": [
10059
- "new_contact",
10060
- "new_message",
10061
- "broadcast_sent",
10062
- "contact_updated",
10063
- "contact_opted_out"
10064
- ],
10065
- "type": "option"
10066
- },
10067
- "url": {
10068
- "description": "HTTPS target URL that receives webhook POSTs",
10069
- "name": "url",
10070
- "required": true,
10071
- "hasDynamicHelp": false,
10072
- "multiple": false,
10036
+ "multiple": true,
10073
10037
  "type": "option"
10074
10038
  }
10075
10039
  },
10076
10040
  "hasDynamicHelp": false,
10077
10041
  "hiddenAliases": [],
10078
- "id": "webhooks:add",
10042
+ "id": "templates:render",
10079
10043
  "pluginAlias": "@instantkom/cli",
10080
10044
  "pluginName": "@instantkom/cli",
10081
10045
  "pluginType": "core",
@@ -10085,14 +10049,20 @@
10085
10049
  "relativePath": [
10086
10050
  "dist",
10087
10051
  "commands",
10088
- "webhooks",
10089
- "add.js"
10052
+ "templates",
10053
+ "render.js"
10090
10054
  ]
10091
10055
  },
10092
- "webhooks:events": {
10056
+ "templates:update": {
10093
10057
  "aliases": [],
10094
- "args": {},
10095
- "description": "List supported webhook event names",
10058
+ "args": {
10059
+ "id": {
10060
+ "description": "Template ID",
10061
+ "name": "id",
10062
+ "required": true
10063
+ }
10064
+ },
10065
+ "description": "Update a message template",
10096
10066
  "flags": {
10097
10067
  "api-key": {
10098
10068
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -10155,11 +10125,89 @@
10155
10125
  "hasDynamicHelp": false,
10156
10126
  "multiple": false,
10157
10127
  "type": "option"
10128
+ },
10129
+ "name": {
10130
+ "description": "Template name",
10131
+ "name": "name",
10132
+ "hasDynamicHelp": false,
10133
+ "multiple": false,
10134
+ "type": "option"
10135
+ },
10136
+ "type": {
10137
+ "description": "Template type",
10138
+ "name": "type",
10139
+ "hasDynamicHelp": false,
10140
+ "multiple": false,
10141
+ "options": [
10142
+ "text",
10143
+ "image",
10144
+ "video",
10145
+ "document",
10146
+ "audio",
10147
+ "location",
10148
+ "contact",
10149
+ "interactive"
10150
+ ],
10151
+ "type": "option"
10152
+ },
10153
+ "message": {
10154
+ "description": "Template message",
10155
+ "name": "message",
10156
+ "hasDynamicHelp": false,
10157
+ "multiple": false,
10158
+ "type": "option"
10159
+ },
10160
+ "color": {
10161
+ "description": "Template color as HEX",
10162
+ "name": "color",
10163
+ "hasDynamicHelp": false,
10164
+ "multiple": false,
10165
+ "type": "option"
10166
+ },
10167
+ "status": {
10168
+ "description": "Template is active",
10169
+ "name": "status",
10170
+ "allowNo": true,
10171
+ "type": "boolean"
10172
+ },
10173
+ "remove-media": {
10174
+ "description": "Remove existing media",
10175
+ "name": "remove-media",
10176
+ "allowNo": false,
10177
+ "type": "boolean"
10178
+ },
10179
+ "whatsapp-language": {
10180
+ "description": "WhatsApp template language",
10181
+ "name": "whatsapp-language",
10182
+ "hasDynamicHelp": false,
10183
+ "multiple": false,
10184
+ "type": "option"
10185
+ },
10186
+ "buttons": {
10187
+ "description": "Buttons JSON array/object",
10188
+ "name": "buttons",
10189
+ "hasDynamicHelp": false,
10190
+ "multiple": false,
10191
+ "type": "option"
10192
+ },
10193
+ "header-footer": {
10194
+ "description": "Header/footer JSON object",
10195
+ "name": "header-footer",
10196
+ "hasDynamicHelp": false,
10197
+ "multiple": false,
10198
+ "type": "option"
10199
+ },
10200
+ "data": {
10201
+ "description": "Additional JSON object payload",
10202
+ "name": "data",
10203
+ "hasDynamicHelp": false,
10204
+ "multiple": false,
10205
+ "type": "option"
10158
10206
  }
10159
10207
  },
10160
10208
  "hasDynamicHelp": false,
10161
10209
  "hiddenAliases": [],
10162
- "id": "webhooks:events",
10210
+ "id": "templates:update",
10163
10211
  "pluginAlias": "@instantkom/cli",
10164
10212
  "pluginName": "@instantkom/cli",
10165
10213
  "pluginType": "core",
@@ -10169,14 +10217,14 @@
10169
10217
  "relativePath": [
10170
10218
  "dist",
10171
10219
  "commands",
10172
- "webhooks",
10173
- "events.js"
10220
+ "templates",
10221
+ "update.js"
10174
10222
  ]
10175
10223
  },
10176
- "webhooks:list": {
10224
+ "templates:validate-import": {
10177
10225
  "aliases": [],
10178
10226
  "args": {},
10179
- "description": "List webhook subscriptions",
10227
+ "description": "Validate templates import JSON",
10180
10228
  "flags": {
10181
10229
  "api-key": {
10182
10230
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -10239,11 +10287,27 @@
10239
10287
  "hasDynamicHelp": false,
10240
10288
  "multiple": false,
10241
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"
10242
10306
  }
10243
10307
  },
10244
10308
  "hasDynamicHelp": false,
10245
10309
  "hiddenAliases": [],
10246
- "id": "webhooks:list",
10310
+ "id": "templates:validate-import",
10247
10311
  "pluginAlias": "@instantkom/cli",
10248
10312
  "pluginName": "@instantkom/cli",
10249
10313
  "pluginType": "core",
@@ -10253,14 +10317,14 @@
10253
10317
  "relativePath": [
10254
10318
  "dist",
10255
10319
  "commands",
10256
- "webhooks",
10257
- "list.js"
10320
+ "templates",
10321
+ "validate-import.js"
10258
10322
  ]
10259
10323
  },
10260
- "webhooks:logs": {
10324
+ "tickets:create": {
10261
10325
  "aliases": [],
10262
10326
  "args": {},
10263
- "description": "Explain webhook log availability",
10327
+ "description": "Create a ticket",
10264
10328
  "flags": {
10265
10329
  "api-key": {
10266
10330
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -10323,11 +10387,69 @@
10323
10387
  "hasDynamicHelp": false,
10324
10388
  "multiple": false,
10325
10389
  "type": "option"
10390
+ },
10391
+ "channel": {
10392
+ "description": "Channel ID",
10393
+ "name": "channel",
10394
+ "required": true,
10395
+ "hasDynamicHelp": false,
10396
+ "multiple": false,
10397
+ "type": "option"
10398
+ },
10399
+ "subject": {
10400
+ "description": "Ticket subject",
10401
+ "name": "subject",
10402
+ "required": true,
10403
+ "hasDynamicHelp": false,
10404
+ "multiple": false,
10405
+ "type": "option"
10406
+ },
10407
+ "recipient": {
10408
+ "description": "Existing recipient ID",
10409
+ "name": "recipient",
10410
+ "hasDynamicHelp": false,
10411
+ "multiple": false,
10412
+ "type": "option"
10413
+ },
10414
+ "email": {
10415
+ "description": "Customer email",
10416
+ "name": "email",
10417
+ "hasDynamicHelp": false,
10418
+ "multiple": false,
10419
+ "type": "option"
10420
+ },
10421
+ "name": {
10422
+ "description": "Customer name",
10423
+ "name": "name",
10424
+ "hasDynamicHelp": false,
10425
+ "multiple": false,
10426
+ "type": "option"
10427
+ },
10428
+ "priority": {
10429
+ "description": "Ticket priority",
10430
+ "name": "priority",
10431
+ "hasDynamicHelp": false,
10432
+ "multiple": false,
10433
+ "type": "option"
10434
+ },
10435
+ "source": {
10436
+ "description": "Ticket source",
10437
+ "name": "source",
10438
+ "hasDynamicHelp": false,
10439
+ "multiple": false,
10440
+ "type": "option"
10441
+ },
10442
+ "data": {
10443
+ "description": "Additional JSON object payload",
10444
+ "name": "data",
10445
+ "hasDynamicHelp": false,
10446
+ "multiple": false,
10447
+ "type": "option"
10326
10448
  }
10327
10449
  },
10328
10450
  "hasDynamicHelp": false,
10329
10451
  "hiddenAliases": [],
10330
- "id": "webhooks:logs",
10452
+ "id": "tickets:create",
10331
10453
  "pluginAlias": "@instantkom/cli",
10332
10454
  "pluginName": "@instantkom/cli",
10333
10455
  "pluginType": "core",
@@ -10337,20 +10459,20 @@
10337
10459
  "relativePath": [
10338
10460
  "dist",
10339
10461
  "commands",
10340
- "webhooks",
10341
- "logs.js"
10462
+ "tickets",
10463
+ "create.js"
10342
10464
  ]
10343
10465
  },
10344
- "webhooks:remove": {
10466
+ "tickets:delete": {
10345
10467
  "aliases": [],
10346
10468
  "args": {
10347
10469
  "id": {
10348
- "description": "Webhook subscription ID",
10470
+ "description": "Ticket ID",
10349
10471
  "name": "id",
10350
10472
  "required": true
10351
10473
  }
10352
10474
  },
10353
- "description": "Remove a webhook subscription",
10475
+ "description": "Delete a ticket",
10354
10476
  "flags": {
10355
10477
  "api-key": {
10356
10478
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -10413,11 +10535,19 @@
10413
10535
  "hasDynamicHelp": false,
10414
10536
  "multiple": false,
10415
10537
  "type": "option"
10538
+ },
10539
+ "channel": {
10540
+ "description": "Channel ID",
10541
+ "name": "channel",
10542
+ "required": true,
10543
+ "hasDynamicHelp": false,
10544
+ "multiple": false,
10545
+ "type": "option"
10416
10546
  }
10417
10547
  },
10418
10548
  "hasDynamicHelp": false,
10419
10549
  "hiddenAliases": [],
10420
- "id": "webhooks:remove",
10550
+ "id": "tickets:delete",
10421
10551
  "pluginAlias": "@instantkom/cli",
10422
10552
  "pluginName": "@instantkom/cli",
10423
10553
  "pluginType": "core",
@@ -10427,14 +10557,20 @@
10427
10557
  "relativePath": [
10428
10558
  "dist",
10429
10559
  "commands",
10430
- "webhooks",
10431
- "remove.js"
10560
+ "tickets",
10561
+ "delete.js"
10432
10562
  ]
10433
10563
  },
10434
- "webhooks:test": {
10564
+ "tickets:get": {
10435
10565
  "aliases": [],
10436
- "args": {},
10437
- "description": "Send a test webhook payload to a URL",
10566
+ "args": {
10567
+ "id": {
10568
+ "description": "Ticket ID",
10569
+ "name": "id",
10570
+ "required": true
10571
+ }
10572
+ },
10573
+ "description": "Get a ticket by ID",
10438
10574
  "flags": {
10439
10575
  "api-key": {
10440
10576
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -10498,33 +10634,18 @@
10498
10634
  "multiple": false,
10499
10635
  "type": "option"
10500
10636
  },
10501
- "url": {
10502
- "description": "Webhook URL to call",
10503
- "name": "url",
10637
+ "channel": {
10638
+ "description": "Channel ID",
10639
+ "name": "channel",
10504
10640
  "required": true,
10505
10641
  "hasDynamicHelp": false,
10506
10642
  "multiple": false,
10507
10643
  "type": "option"
10508
- },
10509
- "event": {
10510
- "description": "Event name",
10511
- "name": "event",
10512
- "default": "cli.test",
10513
- "hasDynamicHelp": false,
10514
- "multiple": false,
10515
- "type": "option"
10516
- },
10517
- "payload": {
10518
- "description": "Payload JSON",
10519
- "name": "payload",
10520
- "hasDynamicHelp": false,
10521
- "multiple": false,
10522
- "type": "option"
10523
10644
  }
10524
10645
  },
10525
10646
  "hasDynamicHelp": false,
10526
10647
  "hiddenAliases": [],
10527
- "id": "webhooks:test",
10648
+ "id": "tickets:get",
10528
10649
  "pluginAlias": "@instantkom/cli",
10529
10650
  "pluginName": "@instantkom/cli",
10530
10651
  "pluginType": "core",
@@ -10534,14 +10655,14 @@
10534
10655
  "relativePath": [
10535
10656
  "dist",
10536
10657
  "commands",
10537
- "webhooks",
10538
- "test.js"
10658
+ "tickets",
10659
+ "get.js"
10539
10660
  ]
10540
10661
  },
10541
- "templates:create": {
10662
+ "tickets:list": {
10542
10663
  "aliases": [],
10543
10664
  "args": {},
10544
- "description": "Create a message template",
10665
+ "description": "List tickets for a channel",
10545
10666
  "flags": {
10546
10667
  "api-key": {
10547
10668
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -10613,77 +10734,18 @@
10613
10734
  "multiple": false,
10614
10735
  "type": "option"
10615
10736
  },
10616
- "name": {
10617
- "description": "Template name",
10618
- "name": "name",
10619
- "required": true,
10620
- "hasDynamicHelp": false,
10621
- "multiple": false,
10622
- "type": "option"
10623
- },
10624
- "type": {
10625
- "description": "Template type",
10626
- "name": "type",
10627
- "default": "text",
10628
- "hasDynamicHelp": false,
10629
- "multiple": false,
10630
- "options": [
10631
- "text",
10632
- "image",
10633
- "video",
10634
- "document",
10635
- "audio",
10636
- "location",
10637
- "contact",
10638
- "interactive"
10639
- ],
10640
- "type": "option"
10641
- },
10642
- "message": {
10643
- "description": "Template message",
10644
- "name": "message",
10645
- "required": true,
10646
- "hasDynamicHelp": false,
10647
- "multiple": false,
10648
- "type": "option"
10649
- },
10650
- "color": {
10651
- "description": "Template color as HEX",
10652
- "name": "color",
10653
- "hasDynamicHelp": false,
10654
- "multiple": false,
10655
- "type": "option"
10656
- },
10657
- "status": {
10658
- "description": "Template is active",
10659
- "name": "status",
10660
- "allowNo": true,
10661
- "type": "boolean"
10662
- },
10663
- "whatsapp-language": {
10664
- "description": "WhatsApp template language",
10665
- "name": "whatsapp-language",
10666
- "hasDynamicHelp": false,
10667
- "multiple": false,
10668
- "type": "option"
10669
- },
10670
- "buttons": {
10671
- "description": "Buttons JSON array/object",
10672
- "name": "buttons",
10673
- "hasDynamicHelp": false,
10674
- "multiple": false,
10675
- "type": "option"
10676
- },
10677
- "header-footer": {
10678
- "description": "Header/footer JSON object",
10679
- "name": "header-footer",
10737
+ "limit": {
10738
+ "description": "Maximum tickets to return",
10739
+ "name": "limit",
10740
+ "default": 500,
10680
10741
  "hasDynamicHelp": false,
10681
10742
  "multiple": false,
10682
10743
  "type": "option"
10683
10744
  },
10684
- "data": {
10685
- "description": "Additional JSON object payload",
10686
- "name": "data",
10745
+ "offset": {
10746
+ "description": "Number of tickets to skip",
10747
+ "name": "offset",
10748
+ "default": 0,
10687
10749
  "hasDynamicHelp": false,
10688
10750
  "multiple": false,
10689
10751
  "type": "option"
@@ -10691,7 +10753,7 @@
10691
10753
  },
10692
10754
  "hasDynamicHelp": false,
10693
10755
  "hiddenAliases": [],
10694
- "id": "templates:create",
10756
+ "id": "tickets:list",
10695
10757
  "pluginAlias": "@instantkom/cli",
10696
10758
  "pluginName": "@instantkom/cli",
10697
10759
  "pluginType": "core",
@@ -10701,20 +10763,20 @@
10701
10763
  "relativePath": [
10702
10764
  "dist",
10703
10765
  "commands",
10704
- "templates",
10705
- "create.js"
10766
+ "tickets",
10767
+ "list.js"
10706
10768
  ]
10707
10769
  },
10708
- "templates:delete": {
10770
+ "tickets:reply": {
10709
10771
  "aliases": [],
10710
10772
  "args": {
10711
10773
  "id": {
10712
- "description": "template ID",
10774
+ "description": "Ticket ID",
10713
10775
  "name": "id",
10714
10776
  "required": true
10715
10777
  }
10716
10778
  },
10717
- "description": "Delete 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.",
10718
10780
  "flags": {
10719
10781
  "api-key": {
10720
10782
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -10777,11 +10839,25 @@
10777
10839
  "hasDynamicHelp": false,
10778
10840
  "multiple": false,
10779
10841
  "type": "option"
10842
+ },
10843
+ "message": {
10844
+ "description": "Reply body (raw text, no salutation or sign-off)",
10845
+ "name": "message",
10846
+ "required": true,
10847
+ "hasDynamicHelp": false,
10848
+ "multiple": false,
10849
+ "type": "option"
10850
+ },
10851
+ "close": {
10852
+ "description": "Close the ticket after sending the reply",
10853
+ "name": "close",
10854
+ "allowNo": false,
10855
+ "type": "boolean"
10780
10856
  }
10781
10857
  },
10782
10858
  "hasDynamicHelp": false,
10783
10859
  "hiddenAliases": [],
10784
- "id": "templates:delete",
10860
+ "id": "tickets:reply",
10785
10861
  "pluginAlias": "@instantkom/cli",
10786
10862
  "pluginName": "@instantkom/cli",
10787
10863
  "pluginType": "core",
@@ -10791,14 +10867,20 @@
10791
10867
  "relativePath": [
10792
10868
  "dist",
10793
10869
  "commands",
10794
- "templates",
10795
- "delete.js"
10870
+ "tickets",
10871
+ "reply.js"
10796
10872
  ]
10797
10873
  },
10798
- "templates:export": {
10874
+ "tickets:update": {
10799
10875
  "aliases": [],
10800
- "args": {},
10801
- "description": "Export templates to a file",
10876
+ "args": {
10877
+ "id": {
10878
+ "description": "Ticket ID",
10879
+ "name": "id",
10880
+ "required": true
10881
+ }
10882
+ },
10883
+ "description": "Update a ticket",
10802
10884
  "flags": {
10803
10885
  "api-key": {
10804
10886
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -10810,14 +10892,17 @@
10810
10892
  "type": "option"
10811
10893
  },
10812
10894
  "format": {
10813
- "description": "Export format",
10895
+ "description": "Output format: text, json, yaml, or table",
10896
+ "helpGroup": "GLOBAL",
10814
10897
  "name": "format",
10815
- "default": "json",
10898
+ "default": "text",
10816
10899
  "hasDynamicHelp": false,
10817
10900
  "multiple": false,
10818
10901
  "options": [
10819
- "csv",
10820
- "json"
10902
+ "text",
10903
+ "json",
10904
+ "yaml",
10905
+ "table"
10821
10906
  ],
10822
10907
  "type": "option"
10823
10908
  },
@@ -10859,107 +10944,51 @@
10859
10944
  "multiple": false,
10860
10945
  "type": "option"
10861
10946
  },
10862
- "file": {
10863
- "description": "Output file path",
10864
- "name": "file",
10947
+ "channel": {
10948
+ "description": "Channel ID",
10949
+ "name": "channel",
10865
10950
  "required": true,
10866
10951
  "hasDynamicHelp": false,
10867
10952
  "multiple": false,
10868
10953
  "type": "option"
10869
10954
  },
10870
- "channel": {
10871
- "description": "Filter by channel ID",
10872
- "name": "channel",
10955
+ "subject": {
10956
+ "description": "Ticket subject",
10957
+ "name": "subject",
10873
10958
  "hasDynamicHelp": false,
10874
10959
  "multiple": false,
10875
10960
  "type": "option"
10876
- }
10877
- },
10878
- "hasDynamicHelp": false,
10879
- "hiddenAliases": [],
10880
- "id": "templates:export",
10881
- "pluginAlias": "@instantkom/cli",
10882
- "pluginName": "@instantkom/cli",
10883
- "pluginType": "core",
10884
- "strict": true,
10885
- "enableJsonFlag": false,
10886
- "isESM": true,
10887
- "relativePath": [
10888
- "dist",
10889
- "commands",
10890
- "templates",
10891
- "export.js"
10892
- ]
10893
- },
10894
- "templates:get": {
10895
- "aliases": [],
10896
- "args": {
10897
- "id": {
10898
- "description": "Template ID",
10899
- "name": "id",
10900
- "required": true
10901
- }
10902
- },
10903
- "description": "Get a message template by ID",
10904
- "flags": {
10905
- "api-key": {
10906
- "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
10907
- "env": "IKM_API_KEY",
10908
- "helpGroup": "GLOBAL",
10909
- "name": "api-key",
10961
+ },
10962
+ "priority": {
10963
+ "description": "Ticket priority",
10964
+ "name": "priority",
10910
10965
  "hasDynamicHelp": false,
10911
10966
  "multiple": false,
10912
10967
  "type": "option"
10913
10968
  },
10914
- "format": {
10915
- "description": "Output format: text, json, yaml, or table",
10916
- "helpGroup": "GLOBAL",
10917
- "name": "format",
10918
- "default": "text",
10969
+ "status": {
10970
+ "description": "Ticket status",
10971
+ "name": "status",
10919
10972
  "hasDynamicHelp": false,
10920
10973
  "multiple": false,
10921
- "options": [
10922
- "text",
10923
- "json",
10924
- "yaml",
10925
- "table"
10926
- ],
10927
10974
  "type": "option"
10928
10975
  },
10929
- "json": {
10930
- "description": "Output in JSON format (alias for --format=json)",
10931
- "helpGroup": "GLOBAL",
10932
- "name": "json",
10933
- "allowNo": false,
10934
- "type": "boolean"
10935
- },
10936
- "quiet": {
10937
- "description": "Suppress all output except errors",
10938
- "helpGroup": "GLOBAL",
10939
- "name": "quiet",
10940
- "allowNo": false,
10941
- "type": "boolean"
10942
- },
10943
- "no-color": {
10944
- "description": "Disable color output",
10945
- "helpGroup": "GLOBAL",
10946
- "name": "no-color",
10947
- "allowNo": false,
10948
- "type": "boolean"
10949
- },
10950
- "profile": {
10951
- "description": "Named configuration profile to use",
10952
- "helpGroup": "GLOBAL",
10953
- "name": "profile",
10954
- "default": "default",
10976
+ "assigned-to": {
10977
+ "description": "User ID to assign the ticket to (use -1 or omit to leave unchanged)",
10978
+ "name": "assigned-to",
10955
10979
  "hasDynamicHelp": false,
10956
10980
  "multiple": false,
10957
10981
  "type": "option"
10958
10982
  },
10959
- "api-url": {
10960
- "description": "Override the API base URL (e.g. for staging)",
10961
- "helpGroup": "GLOBAL",
10962
- "name": "api-url",
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",
10963
10992
  "hasDynamicHelp": false,
10964
10993
  "multiple": false,
10965
10994
  "type": "option"
@@ -10967,7 +10996,7 @@
10967
10996
  },
10968
10997
  "hasDynamicHelp": false,
10969
10998
  "hiddenAliases": [],
10970
- "id": "templates:get",
10999
+ "id": "tickets:update",
10971
11000
  "pluginAlias": "@instantkom/cli",
10972
11001
  "pluginName": "@instantkom/cli",
10973
11002
  "pluginType": "core",
@@ -10977,14 +11006,14 @@
10977
11006
  "relativePath": [
10978
11007
  "dist",
10979
11008
  "commands",
10980
- "templates",
10981
- "get.js"
11009
+ "tickets",
11010
+ "update.js"
10982
11011
  ]
10983
11012
  },
10984
- "templates:import": {
11013
+ "webhooks:add": {
10985
11014
  "aliases": [],
10986
11015
  "args": {},
10987
- "description": "Import templates from JSON",
11016
+ "description": "Add a webhook subscription",
10988
11017
  "flags": {
10989
11018
  "api-key": {
10990
11019
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -11048,32 +11077,33 @@
11048
11077
  "multiple": false,
11049
11078
  "type": "option"
11050
11079
  },
11051
- "file": {
11052
- "description": "JSON file path",
11053
- "name": "file",
11080
+ "event": {
11081
+ "description": "Webhook event to subscribe to",
11082
+ "name": "event",
11054
11083
  "required": true,
11055
11084
  "hasDynamicHelp": false,
11056
11085
  "multiple": false,
11086
+ "options": [
11087
+ "new_contact",
11088
+ "new_message",
11089
+ "broadcast_sent",
11090
+ "contact_updated",
11091
+ "contact_opted_out"
11092
+ ],
11057
11093
  "type": "option"
11058
11094
  },
11059
- "channel": {
11060
- "description": "Target channel ID",
11061
- "name": "channel",
11095
+ "url": {
11096
+ "description": "HTTPS target URL that receives webhook POSTs",
11097
+ "name": "url",
11062
11098
  "required": true,
11063
11099
  "hasDynamicHelp": false,
11064
11100
  "multiple": false,
11065
11101
  "type": "option"
11066
- },
11067
- "skip-duplicates": {
11068
- "description": "Skip duplicate templates",
11069
- "name": "skip-duplicates",
11070
- "allowNo": true,
11071
- "type": "boolean"
11072
11102
  }
11073
11103
  },
11074
11104
  "hasDynamicHelp": false,
11075
11105
  "hiddenAliases": [],
11076
- "id": "templates:import",
11106
+ "id": "webhooks:add",
11077
11107
  "pluginAlias": "@instantkom/cli",
11078
11108
  "pluginName": "@instantkom/cli",
11079
11109
  "pluginType": "core",
@@ -11083,14 +11113,14 @@
11083
11113
  "relativePath": [
11084
11114
  "dist",
11085
11115
  "commands",
11086
- "templates",
11087
- "import.js"
11116
+ "webhooks",
11117
+ "add.js"
11088
11118
  ]
11089
11119
  },
11090
- "templates:list": {
11120
+ "webhooks:events": {
11091
11121
  "aliases": [],
11092
11122
  "args": {},
11093
- "description": "List message templates",
11123
+ "description": "List supported webhook event names",
11094
11124
  "flags": {
11095
11125
  "api-key": {
11096
11126
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -11153,41 +11183,11 @@
11153
11183
  "hasDynamicHelp": false,
11154
11184
  "multiple": false,
11155
11185
  "type": "option"
11156
- },
11157
- "channel": {
11158
- "description": "Filter by channel ID",
11159
- "name": "channel",
11160
- "hasDynamicHelp": false,
11161
- "multiple": false,
11162
- "type": "option"
11163
- },
11164
- "search": {
11165
- "description": "Search templates by name or content",
11166
- "name": "search",
11167
- "hasDynamicHelp": false,
11168
- "multiple": false,
11169
- "type": "option"
11170
- },
11171
- "page": {
11172
- "description": "Page number",
11173
- "name": "page",
11174
- "default": 1,
11175
- "hasDynamicHelp": false,
11176
- "multiple": false,
11177
- "type": "option"
11178
- },
11179
- "limit": {
11180
- "description": "Items per page",
11181
- "name": "limit",
11182
- "default": 20,
11183
- "hasDynamicHelp": false,
11184
- "multiple": false,
11185
- "type": "option"
11186
11186
  }
11187
11187
  },
11188
11188
  "hasDynamicHelp": false,
11189
11189
  "hiddenAliases": [],
11190
- "id": "templates:list",
11190
+ "id": "webhooks:events",
11191
11191
  "pluginAlias": "@instantkom/cli",
11192
11192
  "pluginName": "@instantkom/cli",
11193
11193
  "pluginType": "core",
@@ -11197,20 +11197,14 @@
11197
11197
  "relativePath": [
11198
11198
  "dist",
11199
11199
  "commands",
11200
- "templates",
11201
- "list.js"
11200
+ "webhooks",
11201
+ "events.js"
11202
11202
  ]
11203
11203
  },
11204
- "templates:render": {
11204
+ "webhooks:list": {
11205
11205
  "aliases": [],
11206
- "args": {
11207
- "id": {
11208
- "description": "Template ID",
11209
- "name": "id",
11210
- "required": true
11211
- }
11212
- },
11213
- "description": "Render a message template locally",
11206
+ "args": {},
11207
+ "description": "List webhook subscriptions",
11214
11208
  "flags": {
11215
11209
  "api-key": {
11216
11210
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -11273,18 +11267,11 @@
11273
11267
  "hasDynamicHelp": false,
11274
11268
  "multiple": false,
11275
11269
  "type": "option"
11276
- },
11277
- "vars": {
11278
- "description": "Template variable as key=value; may be repeated",
11279
- "name": "vars",
11280
- "hasDynamicHelp": false,
11281
- "multiple": true,
11282
- "type": "option"
11283
11270
  }
11284
11271
  },
11285
11272
  "hasDynamicHelp": false,
11286
11273
  "hiddenAliases": [],
11287
- "id": "templates:render",
11274
+ "id": "webhooks:list",
11288
11275
  "pluginAlias": "@instantkom/cli",
11289
11276
  "pluginName": "@instantkom/cli",
11290
11277
  "pluginType": "core",
@@ -11294,20 +11281,14 @@
11294
11281
  "relativePath": [
11295
11282
  "dist",
11296
11283
  "commands",
11297
- "templates",
11298
- "render.js"
11284
+ "webhooks",
11285
+ "list.js"
11299
11286
  ]
11300
11287
  },
11301
- "templates:update": {
11288
+ "webhooks:logs": {
11302
11289
  "aliases": [],
11303
- "args": {
11304
- "id": {
11305
- "description": "Template ID",
11306
- "name": "id",
11307
- "required": true
11308
- }
11309
- },
11310
- "description": "Update a message template",
11290
+ "args": {},
11291
+ "description": "Explain webhook log availability",
11311
11292
  "flags": {
11312
11293
  "api-key": {
11313
11294
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -11370,81 +11351,93 @@
11370
11351
  "hasDynamicHelp": false,
11371
11352
  "multiple": false,
11372
11353
  "type": "option"
11373
- },
11374
- "name": {
11375
- "description": "Template name",
11376
- "name": "name",
11377
- "hasDynamicHelp": false,
11378
- "multiple": false,
11379
- "type": "option"
11380
- },
11381
- "type": {
11382
- "description": "Template type",
11383
- "name": "type",
11384
- "hasDynamicHelp": false,
11385
- "multiple": false,
11386
- "options": [
11387
- "text",
11388
- "image",
11389
- "video",
11390
- "document",
11391
- "audio",
11392
- "location",
11393
- "contact",
11394
- "interactive"
11395
- ],
11396
- "type": "option"
11397
- },
11398
- "message": {
11399
- "description": "Template message",
11400
- "name": "message",
11401
- "hasDynamicHelp": false,
11402
- "multiple": false,
11403
- "type": "option"
11404
- },
11405
- "color": {
11406
- "description": "Template color as HEX",
11407
- "name": "color",
11408
- "hasDynamicHelp": false,
11409
- "multiple": false,
11410
- "type": "option"
11411
- },
11412
- "status": {
11413
- "description": "Template is active",
11414
- "name": "status",
11415
- "allowNo": true,
11416
- "type": "boolean"
11417
- },
11418
- "remove-media": {
11419
- "description": "Remove existing media",
11420
- "name": "remove-media",
11421
- "allowNo": false,
11422
- "type": "boolean"
11423
- },
11424
- "whatsapp-language": {
11425
- "description": "WhatsApp template language",
11426
- "name": "whatsapp-language",
11354
+ }
11355
+ },
11356
+ "hasDynamicHelp": false,
11357
+ "hiddenAliases": [],
11358
+ "id": "webhooks:logs",
11359
+ "pluginAlias": "@instantkom/cli",
11360
+ "pluginName": "@instantkom/cli",
11361
+ "pluginType": "core",
11362
+ "strict": true,
11363
+ "enableJsonFlag": false,
11364
+ "isESM": true,
11365
+ "relativePath": [
11366
+ "dist",
11367
+ "commands",
11368
+ "webhooks",
11369
+ "logs.js"
11370
+ ]
11371
+ },
11372
+ "webhooks:remove": {
11373
+ "aliases": [],
11374
+ "args": {
11375
+ "id": {
11376
+ "description": "Webhook subscription ID",
11377
+ "name": "id",
11378
+ "required": true
11379
+ }
11380
+ },
11381
+ "description": "Remove a webhook subscription",
11382
+ "flags": {
11383
+ "api-key": {
11384
+ "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
11385
+ "env": "IKM_API_KEY",
11386
+ "helpGroup": "GLOBAL",
11387
+ "name": "api-key",
11427
11388
  "hasDynamicHelp": false,
11428
11389
  "multiple": false,
11429
11390
  "type": "option"
11430
11391
  },
11431
- "buttons": {
11432
- "description": "Buttons JSON array/object",
11433
- "name": "buttons",
11392
+ "format": {
11393
+ "description": "Output format: text, json, yaml, or table",
11394
+ "helpGroup": "GLOBAL",
11395
+ "name": "format",
11396
+ "default": "text",
11434
11397
  "hasDynamicHelp": false,
11435
11398
  "multiple": false,
11399
+ "options": [
11400
+ "text",
11401
+ "json",
11402
+ "yaml",
11403
+ "table"
11404
+ ],
11436
11405
  "type": "option"
11437
11406
  },
11438
- "header-footer": {
11439
- "description": "Header/footer JSON object",
11440
- "name": "header-footer",
11407
+ "json": {
11408
+ "description": "Output in JSON format (alias for --format=json)",
11409
+ "helpGroup": "GLOBAL",
11410
+ "name": "json",
11411
+ "allowNo": false,
11412
+ "type": "boolean"
11413
+ },
11414
+ "quiet": {
11415
+ "description": "Suppress all output except errors",
11416
+ "helpGroup": "GLOBAL",
11417
+ "name": "quiet",
11418
+ "allowNo": false,
11419
+ "type": "boolean"
11420
+ },
11421
+ "no-color": {
11422
+ "description": "Disable color output",
11423
+ "helpGroup": "GLOBAL",
11424
+ "name": "no-color",
11425
+ "allowNo": false,
11426
+ "type": "boolean"
11427
+ },
11428
+ "profile": {
11429
+ "description": "Named configuration profile to use",
11430
+ "helpGroup": "GLOBAL",
11431
+ "name": "profile",
11432
+ "default": "default",
11441
11433
  "hasDynamicHelp": false,
11442
11434
  "multiple": false,
11443
11435
  "type": "option"
11444
11436
  },
11445
- "data": {
11446
- "description": "Additional JSON object payload",
11447
- "name": "data",
11437
+ "api-url": {
11438
+ "description": "Override the API base URL (e.g. for staging)",
11439
+ "helpGroup": "GLOBAL",
11440
+ "name": "api-url",
11448
11441
  "hasDynamicHelp": false,
11449
11442
  "multiple": false,
11450
11443
  "type": "option"
@@ -11452,7 +11445,7 @@
11452
11445
  },
11453
11446
  "hasDynamicHelp": false,
11454
11447
  "hiddenAliases": [],
11455
- "id": "templates:update",
11448
+ "id": "webhooks:remove",
11456
11449
  "pluginAlias": "@instantkom/cli",
11457
11450
  "pluginName": "@instantkom/cli",
11458
11451
  "pluginType": "core",
@@ -11462,14 +11455,14 @@
11462
11455
  "relativePath": [
11463
11456
  "dist",
11464
11457
  "commands",
11465
- "templates",
11466
- "update.js"
11458
+ "webhooks",
11459
+ "remove.js"
11467
11460
  ]
11468
11461
  },
11469
- "templates:validate-import": {
11462
+ "webhooks:test": {
11470
11463
  "aliases": [],
11471
11464
  "args": {},
11472
- "description": "Validate templates import JSON",
11465
+ "description": "Send a test webhook payload to a URL",
11473
11466
  "flags": {
11474
11467
  "api-key": {
11475
11468
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -11533,18 +11526,25 @@
11533
11526
  "multiple": false,
11534
11527
  "type": "option"
11535
11528
  },
11536
- "file": {
11537
- "description": "JSON file path",
11538
- "name": "file",
11529
+ "url": {
11530
+ "description": "Webhook URL to call",
11531
+ "name": "url",
11539
11532
  "required": true,
11540
11533
  "hasDynamicHelp": false,
11541
11534
  "multiple": false,
11542
11535
  "type": "option"
11543
11536
  },
11544
- "channel": {
11545
- "description": "Target channel ID",
11546
- "name": "channel",
11547
- "required": true,
11537
+ "event": {
11538
+ "description": "Event name",
11539
+ "name": "event",
11540
+ "default": "cli.test",
11541
+ "hasDynamicHelp": false,
11542
+ "multiple": false,
11543
+ "type": "option"
11544
+ },
11545
+ "payload": {
11546
+ "description": "Payload JSON",
11547
+ "name": "payload",
11548
11548
  "hasDynamicHelp": false,
11549
11549
  "multiple": false,
11550
11550
  "type": "option"
@@ -11552,7 +11552,7 @@
11552
11552
  },
11553
11553
  "hasDynamicHelp": false,
11554
11554
  "hiddenAliases": [],
11555
- "id": "templates:validate-import",
11555
+ "id": "webhooks:test",
11556
11556
  "pluginAlias": "@instantkom/cli",
11557
11557
  "pluginName": "@instantkom/cli",
11558
11558
  "pluginType": "core",
@@ -11562,8 +11562,8 @@
11562
11562
  "relativePath": [
11563
11563
  "dist",
11564
11564
  "commands",
11565
- "templates",
11566
- "validate-import.js"
11565
+ "webhooks",
11566
+ "test.js"
11567
11567
  ]
11568
11568
  },
11569
11569
  "auth:tokens:create": {
@@ -15276,21 +15276,16 @@
15276
15276
  "update.js"
15277
15277
  ]
15278
15278
  },
15279
- "segments:tags:add": {
15279
+ "tags:bots:list": {
15280
15280
  "aliases": [],
15281
15281
  "args": {
15282
- "segmentId": {
15283
- "description": "Segment ID",
15284
- "name": "segmentId",
15285
- "required": true
15286
- },
15287
- "tagId": {
15282
+ "id": {
15288
15283
  "description": "Tag ID",
15289
- "name": "tagId",
15284
+ "name": "id",
15290
15285
  "required": true
15291
15286
  }
15292
15287
  },
15293
- "description": "Assign a tag to a segment",
15288
+ "description": "List bots that use a specific tag",
15294
15289
  "flags": {
15295
15290
  "api-key": {
15296
15291
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -15353,11 +15348,27 @@
15353
15348
  "hasDynamicHelp": false,
15354
15349
  "multiple": false,
15355
15350
  "type": "option"
15351
+ },
15352
+ "page": {
15353
+ "description": "Page number",
15354
+ "name": "page",
15355
+ "default": 1,
15356
+ "hasDynamicHelp": false,
15357
+ "multiple": false,
15358
+ "type": "option"
15359
+ },
15360
+ "limit": {
15361
+ "description": "Items per page",
15362
+ "name": "limit",
15363
+ "default": 20,
15364
+ "hasDynamicHelp": false,
15365
+ "multiple": false,
15366
+ "type": "option"
15356
15367
  }
15357
15368
  },
15358
15369
  "hasDynamicHelp": false,
15359
15370
  "hiddenAliases": [],
15360
- "id": "segments:tags:add",
15371
+ "id": "tags:bots:list",
15361
15372
  "pluginAlias": "@instantkom/cli",
15362
15373
  "pluginName": "@instantkom/cli",
15363
15374
  "pluginType": "core",
@@ -15367,21 +15378,26 @@
15367
15378
  "relativePath": [
15368
15379
  "dist",
15369
15380
  "commands",
15370
- "segments",
15371
15381
  "tags",
15372
- "add.js"
15382
+ "bots",
15383
+ "list.js"
15373
15384
  ]
15374
15385
  },
15375
- "segments:tags:list": {
15386
+ "segments:tags:add": {
15376
15387
  "aliases": [],
15377
15388
  "args": {
15378
15389
  "segmentId": {
15379
15390
  "description": "Segment ID",
15380
15391
  "name": "segmentId",
15381
15392
  "required": true
15393
+ },
15394
+ "tagId": {
15395
+ "description": "Tag ID",
15396
+ "name": "tagId",
15397
+ "required": true
15382
15398
  }
15383
15399
  },
15384
- "description": "List tags assigned to a segment",
15400
+ "description": "Assign a tag to a segment",
15385
15401
  "flags": {
15386
15402
  "api-key": {
15387
15403
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -15448,7 +15464,7 @@
15448
15464
  },
15449
15465
  "hasDynamicHelp": false,
15450
15466
  "hiddenAliases": [],
15451
- "id": "segments:tags:list",
15467
+ "id": "segments:tags:add",
15452
15468
  "pluginAlias": "@instantkom/cli",
15453
15469
  "pluginName": "@instantkom/cli",
15454
15470
  "pluginType": "core",
@@ -15460,24 +15476,19 @@
15460
15476
  "commands",
15461
15477
  "segments",
15462
15478
  "tags",
15463
- "list.js"
15479
+ "add.js"
15464
15480
  ]
15465
15481
  },
15466
- "segments:tags:remove": {
15482
+ "segments:tags:list": {
15467
15483
  "aliases": [],
15468
15484
  "args": {
15469
15485
  "segmentId": {
15470
15486
  "description": "Segment ID",
15471
15487
  "name": "segmentId",
15472
15488
  "required": true
15473
- },
15474
- "tagId": {
15475
- "description": "Tag ID",
15476
- "name": "tagId",
15477
- "required": true
15478
15489
  }
15479
15490
  },
15480
- "description": "Remove a tag from a segment",
15491
+ "description": "List tags assigned to a segment",
15481
15492
  "flags": {
15482
15493
  "api-key": {
15483
15494
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -15544,7 +15555,7 @@
15544
15555
  },
15545
15556
  "hasDynamicHelp": false,
15546
15557
  "hiddenAliases": [],
15547
- "id": "segments:tags:remove",
15558
+ "id": "segments:tags:list",
15548
15559
  "pluginAlias": "@instantkom/cli",
15549
15560
  "pluginName": "@instantkom/cli",
15550
15561
  "pluginType": "core",
@@ -15556,19 +15567,24 @@
15556
15567
  "commands",
15557
15568
  "segments",
15558
15569
  "tags",
15559
- "remove.js"
15570
+ "list.js"
15560
15571
  ]
15561
15572
  },
15562
- "tags:bots:list": {
15573
+ "segments:tags:remove": {
15563
15574
  "aliases": [],
15564
15575
  "args": {
15565
- "id": {
15576
+ "segmentId": {
15577
+ "description": "Segment ID",
15578
+ "name": "segmentId",
15579
+ "required": true
15580
+ },
15581
+ "tagId": {
15566
15582
  "description": "Tag ID",
15567
- "name": "id",
15583
+ "name": "tagId",
15568
15584
  "required": true
15569
15585
  }
15570
15586
  },
15571
- "description": "List bots that use a specific tag",
15587
+ "description": "Remove a tag from a segment",
15572
15588
  "flags": {
15573
15589
  "api-key": {
15574
15590
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -15631,27 +15647,11 @@
15631
15647
  "hasDynamicHelp": false,
15632
15648
  "multiple": false,
15633
15649
  "type": "option"
15634
- },
15635
- "page": {
15636
- "description": "Page number",
15637
- "name": "page",
15638
- "default": 1,
15639
- "hasDynamicHelp": false,
15640
- "multiple": false,
15641
- "type": "option"
15642
- },
15643
- "limit": {
15644
- "description": "Items per page",
15645
- "name": "limit",
15646
- "default": 20,
15647
- "hasDynamicHelp": false,
15648
- "multiple": false,
15649
- "type": "option"
15650
15650
  }
15651
15651
  },
15652
15652
  "hasDynamicHelp": false,
15653
15653
  "hiddenAliases": [],
15654
- "id": "tags:bots:list",
15654
+ "id": "segments:tags:remove",
15655
15655
  "pluginAlias": "@instantkom/cli",
15656
15656
  "pluginName": "@instantkom/cli",
15657
15657
  "pluginType": "core",
@@ -15661,21 +15661,21 @@
15661
15661
  "relativePath": [
15662
15662
  "dist",
15663
15663
  "commands",
15664
+ "segments",
15664
15665
  "tags",
15665
- "bots",
15666
- "list.js"
15666
+ "remove.js"
15667
15667
  ]
15668
15668
  },
15669
- "tags:recipients:add": {
15669
+ "tags:segments:list": {
15670
15670
  "aliases": [],
15671
15671
  "args": {
15672
- "tagId": {
15672
+ "id": {
15673
15673
  "description": "Tag ID",
15674
- "name": "tagId",
15674
+ "name": "id",
15675
15675
  "required": true
15676
15676
  }
15677
15677
  },
15678
- "description": "Assign a tag to recipients",
15678
+ "description": "List segments that use a specific tag",
15679
15679
  "flags": {
15680
15680
  "api-key": {
15681
15681
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -15739,10 +15739,18 @@
15739
15739
  "multiple": false,
15740
15740
  "type": "option"
15741
15741
  },
15742
- "recipients": {
15743
- "description": "Comma-separated recipient IDs",
15744
- "name": "recipients",
15745
- "required": true,
15742
+ "page": {
15743
+ "description": "Page number",
15744
+ "name": "page",
15745
+ "default": 1,
15746
+ "hasDynamicHelp": false,
15747
+ "multiple": false,
15748
+ "type": "option"
15749
+ },
15750
+ "limit": {
15751
+ "description": "Items per page",
15752
+ "name": "limit",
15753
+ "default": 20,
15746
15754
  "hasDynamicHelp": false,
15747
15755
  "multiple": false,
15748
15756
  "type": "option"
@@ -15750,7 +15758,7 @@
15750
15758
  },
15751
15759
  "hasDynamicHelp": false,
15752
15760
  "hiddenAliases": [],
15753
- "id": "tags:recipients:add",
15761
+ "id": "tags:segments:list",
15754
15762
  "pluginAlias": "@instantkom/cli",
15755
15763
  "pluginName": "@instantkom/cli",
15756
15764
  "pluginType": "core",
@@ -15761,11 +15769,11 @@
15761
15769
  "dist",
15762
15770
  "commands",
15763
15771
  "tags",
15764
- "recipients",
15765
- "add.js"
15772
+ "segments",
15773
+ "list.js"
15766
15774
  ]
15767
15775
  },
15768
- "tags:recipients:remove": {
15776
+ "tags:recipients:add": {
15769
15777
  "aliases": [],
15770
15778
  "args": {
15771
15779
  "tagId": {
@@ -15774,7 +15782,7 @@
15774
15782
  "required": true
15775
15783
  }
15776
15784
  },
15777
- "description": "Remove a tag from recipients",
15785
+ "description": "Assign a tag to recipients",
15778
15786
  "flags": {
15779
15787
  "api-key": {
15780
15788
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -15849,7 +15857,7 @@
15849
15857
  },
15850
15858
  "hasDynamicHelp": false,
15851
15859
  "hiddenAliases": [],
15852
- "id": "tags:recipients:remove",
15860
+ "id": "tags:recipients:add",
15853
15861
  "pluginAlias": "@instantkom/cli",
15854
15862
  "pluginName": "@instantkom/cli",
15855
15863
  "pluginType": "core",
@@ -15861,19 +15869,19 @@
15861
15869
  "commands",
15862
15870
  "tags",
15863
15871
  "recipients",
15864
- "remove.js"
15872
+ "add.js"
15865
15873
  ]
15866
15874
  },
15867
- "tags:segments:list": {
15875
+ "tags:recipients:remove": {
15868
15876
  "aliases": [],
15869
15877
  "args": {
15870
- "id": {
15878
+ "tagId": {
15871
15879
  "description": "Tag ID",
15872
- "name": "id",
15880
+ "name": "tagId",
15873
15881
  "required": true
15874
15882
  }
15875
15883
  },
15876
- "description": "List segments that use a specific tag",
15884
+ "description": "Remove a tag from recipients",
15877
15885
  "flags": {
15878
15886
  "api-key": {
15879
15887
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -15937,18 +15945,10 @@
15937
15945
  "multiple": false,
15938
15946
  "type": "option"
15939
15947
  },
15940
- "page": {
15941
- "description": "Page number",
15942
- "name": "page",
15943
- "default": 1,
15944
- "hasDynamicHelp": false,
15945
- "multiple": false,
15946
- "type": "option"
15947
- },
15948
- "limit": {
15949
- "description": "Items per page",
15950
- "name": "limit",
15951
- "default": 20,
15948
+ "recipients": {
15949
+ "description": "Comma-separated recipient IDs",
15950
+ "name": "recipients",
15951
+ "required": true,
15952
15952
  "hasDynamicHelp": false,
15953
15953
  "multiple": false,
15954
15954
  "type": "option"
@@ -15956,7 +15956,7 @@
15956
15956
  },
15957
15957
  "hasDynamicHelp": false,
15958
15958
  "hiddenAliases": [],
15959
- "id": "tags:segments:list",
15959
+ "id": "tags:recipients:remove",
15960
15960
  "pluginAlias": "@instantkom/cli",
15961
15961
  "pluginName": "@instantkom/cli",
15962
15962
  "pluginType": "core",
@@ -15967,8 +15967,8 @@
15967
15967
  "dist",
15968
15968
  "commands",
15969
15969
  "tags",
15970
- "segments",
15971
- "list.js"
15970
+ "recipients",
15971
+ "remove.js"
15972
15972
  ]
15973
15973
  },
15974
15974
  "ticket:messages:create": {
@@ -16566,5 +16566,5 @@
16566
16566
  ]
16567
16567
  }
16568
16568
  },
16569
- "version": "3.153.0"
16569
+ "version": "3.154.0"
16570
16570
  }