@instantkom/cli 3.195.5 → 3.195.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -953,10 +953,10 @@
953
953
  "update.js"
954
954
  ]
955
955
  },
956
- "auth:login": {
956
+ "ai:reply": {
957
957
  "aliases": [],
958
958
  "args": {},
959
- "description": "Authenticate with the instantKOM API via device authorization flow",
959
+ "description": "Generate AI reply suggestions for a message",
960
960
  "flags": {
961
961
  "api-key": {
962
962
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -1020,24 +1020,46 @@
1020
1020
  "multiple": false,
1021
1021
  "type": "option"
1022
1022
  },
1023
- "scope": {
1024
- "description": "Requested token scope",
1025
- "name": "scope",
1026
- "default": "read",
1023
+ "message-id": {
1024
+ "description": "Message ID to use as smart-reply anchor",
1025
+ "name": "message-id",
1026
+ "required": true,
1027
+ "hasDynamicHelp": false,
1028
+ "multiple": false,
1029
+ "type": "option"
1030
+ },
1031
+ "limit": {
1032
+ "description": "Number of suggestions to generate (1-5)",
1033
+ "name": "limit",
1034
+ "hasDynamicHelp": false,
1035
+ "multiple": false,
1036
+ "type": "option"
1037
+ },
1038
+ "context-length": {
1039
+ "description": "Number of recent messages to use as context (1-20)",
1040
+ "name": "context-length",
1041
+ "hasDynamicHelp": false,
1042
+ "multiple": false,
1043
+ "type": "option"
1044
+ },
1045
+ "style": {
1046
+ "description": "Response style",
1047
+ "name": "style",
1027
1048
  "hasDynamicHelp": false,
1028
1049
  "multiple": false,
1029
1050
  "options": [
1030
- "full",
1031
- "send",
1032
- "read",
1033
- "admin"
1051
+ "professional",
1052
+ "friendly",
1053
+ "concise",
1054
+ "detailed",
1055
+ "empathetic"
1034
1056
  ],
1035
1057
  "type": "option"
1036
1058
  }
1037
1059
  },
1038
1060
  "hasDynamicHelp": false,
1039
1061
  "hiddenAliases": [],
1040
- "id": "auth:login",
1062
+ "id": "ai:reply",
1041
1063
  "pluginAlias": "@instantkom/cli",
1042
1064
  "pluginName": "@instantkom/cli",
1043
1065
  "pluginType": "core",
@@ -1047,14 +1069,14 @@
1047
1069
  "relativePath": [
1048
1070
  "dist",
1049
1071
  "commands",
1050
- "auth",
1051
- "login.js"
1072
+ "ai",
1073
+ "reply.js"
1052
1074
  ]
1053
1075
  },
1054
- "auth:logout": {
1076
+ "auth:login": {
1055
1077
  "aliases": [],
1056
1078
  "args": {},
1057
- "description": "Remove the stored API token for the current profile",
1079
+ "description": "Authenticate with the instantKOM API via device authorization flow",
1058
1080
  "flags": {
1059
1081
  "api-key": {
1060
1082
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -1117,45 +1139,25 @@
1117
1139
  "hasDynamicHelp": false,
1118
1140
  "multiple": false,
1119
1141
  "type": "option"
1120
- }
1121
- },
1122
- "hasDynamicHelp": false,
1123
- "hiddenAliases": [],
1124
- "id": "auth:logout",
1125
- "pluginAlias": "@instantkom/cli",
1126
- "pluginName": "@instantkom/cli",
1127
- "pluginType": "core",
1128
- "strict": true,
1129
- "enableJsonFlag": false,
1130
- "isESM": true,
1131
- "relativePath": [
1132
- "dist",
1133
- "commands",
1134
- "auth",
1135
- "logout.js"
1136
- ]
1137
- },
1138
- "autocomplete:script": {
1139
- "aliases": [],
1140
- "args": {
1141
- "shell": {
1142
- "description": "Shell type",
1143
- "name": "shell",
1142
+ },
1143
+ "scope": {
1144
+ "description": "Requested token scope",
1145
+ "name": "scope",
1146
+ "default": "read",
1147
+ "hasDynamicHelp": false,
1148
+ "multiple": false,
1144
1149
  "options": [
1145
- "zsh",
1146
- "bash",
1147
- "fish",
1148
- "powershell"
1150
+ "full",
1151
+ "send",
1152
+ "read",
1153
+ "admin"
1149
1154
  ],
1150
- "required": false
1155
+ "type": "option"
1151
1156
  }
1152
1157
  },
1153
- "description": "outputs autocomplete config script for shells",
1154
- "flags": {},
1155
1158
  "hasDynamicHelp": false,
1156
- "hidden": true,
1157
1159
  "hiddenAliases": [],
1158
- "id": "autocomplete:script",
1160
+ "id": "auth:login",
1159
1161
  "pluginAlias": "@instantkom/cli",
1160
1162
  "pluginName": "@instantkom/cli",
1161
1163
  "pluginType": "core",
@@ -1165,14 +1167,14 @@
1165
1167
  "relativePath": [
1166
1168
  "dist",
1167
1169
  "commands",
1168
- "autocomplete",
1169
- "script.js"
1170
+ "auth",
1171
+ "login.js"
1170
1172
  ]
1171
1173
  },
1172
- "ai:reply": {
1174
+ "auth:logout": {
1173
1175
  "aliases": [],
1174
1176
  "args": {},
1175
- "description": "Generate AI reply suggestions for a message",
1177
+ "description": "Remove the stored API token for the current profile",
1176
1178
  "flags": {
1177
1179
  "api-key": {
1178
1180
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -1235,47 +1237,45 @@
1235
1237
  "hasDynamicHelp": false,
1236
1238
  "multiple": false,
1237
1239
  "type": "option"
1238
- },
1239
- "message-id": {
1240
- "description": "Message ID to use as smart-reply anchor",
1241
- "name": "message-id",
1242
- "required": true,
1243
- "hasDynamicHelp": false,
1244
- "multiple": false,
1245
- "type": "option"
1246
- },
1247
- "limit": {
1248
- "description": "Number of suggestions to generate (1-5)",
1249
- "name": "limit",
1250
- "hasDynamicHelp": false,
1251
- "multiple": false,
1252
- "type": "option"
1253
- },
1254
- "context-length": {
1255
- "description": "Number of recent messages to use as context (1-20)",
1256
- "name": "context-length",
1257
- "hasDynamicHelp": false,
1258
- "multiple": false,
1259
- "type": "option"
1260
- },
1261
- "style": {
1262
- "description": "Response style",
1263
- "name": "style",
1264
- "hasDynamicHelp": false,
1265
- "multiple": false,
1240
+ }
1241
+ },
1242
+ "hasDynamicHelp": false,
1243
+ "hiddenAliases": [],
1244
+ "id": "auth:logout",
1245
+ "pluginAlias": "@instantkom/cli",
1246
+ "pluginName": "@instantkom/cli",
1247
+ "pluginType": "core",
1248
+ "strict": true,
1249
+ "enableJsonFlag": false,
1250
+ "isESM": true,
1251
+ "relativePath": [
1252
+ "dist",
1253
+ "commands",
1254
+ "auth",
1255
+ "logout.js"
1256
+ ]
1257
+ },
1258
+ "autocomplete:script": {
1259
+ "aliases": [],
1260
+ "args": {
1261
+ "shell": {
1262
+ "description": "Shell type",
1263
+ "name": "shell",
1266
1264
  "options": [
1267
- "professional",
1268
- "friendly",
1269
- "concise",
1270
- "detailed",
1271
- "empathetic"
1265
+ "zsh",
1266
+ "bash",
1267
+ "fish",
1268
+ "powershell"
1272
1269
  ],
1273
- "type": "option"
1270
+ "required": false
1274
1271
  }
1275
1272
  },
1273
+ "description": "outputs autocomplete config script for shells",
1274
+ "flags": {},
1276
1275
  "hasDynamicHelp": false,
1276
+ "hidden": true,
1277
1277
  "hiddenAliases": [],
1278
- "id": "ai:reply",
1278
+ "id": "autocomplete:script",
1279
1279
  "pluginAlias": "@instantkom/cli",
1280
1280
  "pluginName": "@instantkom/cli",
1281
1281
  "pluginType": "core",
@@ -1285,8 +1285,8 @@
1285
1285
  "relativePath": [
1286
1286
  "dist",
1287
1287
  "commands",
1288
- "ai",
1289
- "reply.js"
1288
+ "autocomplete",
1289
+ "script.js"
1290
1290
  ]
1291
1291
  },
1292
1292
  "bots:create": {
@@ -2896,10 +2896,16 @@
2896
2896
  "reply.js"
2897
2897
  ]
2898
2898
  },
2899
- "broadcast:create": {
2899
+ "config:get": {
2900
2900
  "aliases": [],
2901
- "args": {},
2902
- "description": "Create a broadcast for channels or segments",
2901
+ "args": {
2902
+ "key": {
2903
+ "description": "Configuration key to retrieve",
2904
+ "name": "key",
2905
+ "required": true
2906
+ }
2907
+ },
2908
+ "description": "Get a configuration value for the current profile",
2903
2909
  "flags": {
2904
2910
  "api-key": {
2905
2911
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -2962,32 +2968,301 @@
2962
2968
  "hasDynamicHelp": false,
2963
2969
  "multiple": false,
2964
2970
  "type": "option"
2971
+ }
2972
+ },
2973
+ "hasDynamicHelp": false,
2974
+ "hiddenAliases": [],
2975
+ "id": "config:get",
2976
+ "pluginAlias": "@instantkom/cli",
2977
+ "pluginName": "@instantkom/cli",
2978
+ "pluginType": "core",
2979
+ "strict": true,
2980
+ "enableJsonFlag": false,
2981
+ "isESM": true,
2982
+ "relativePath": [
2983
+ "dist",
2984
+ "commands",
2985
+ "config",
2986
+ "get.js"
2987
+ ]
2988
+ },
2989
+ "config:set": {
2990
+ "aliases": [],
2991
+ "args": {
2992
+ "key": {
2993
+ "description": "Configuration key to set",
2994
+ "name": "key",
2995
+ "required": true
2965
2996
  },
2966
- "channel": {
2967
- "description": "Channel ID target",
2968
- "name": "channel",
2997
+ "value": {
2998
+ "description": "Value to assign",
2999
+ "name": "value",
3000
+ "required": true
3001
+ }
3002
+ },
3003
+ "description": "Set a configuration value for the current profile",
3004
+ "flags": {
3005
+ "api-key": {
3006
+ "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
3007
+ "env": "IKM_API_KEY",
3008
+ "helpGroup": "GLOBAL",
3009
+ "name": "api-key",
2969
3010
  "hasDynamicHelp": false,
2970
3011
  "multiple": false,
2971
3012
  "type": "option"
2972
3013
  },
2973
- "segment": {
2974
- "description": "Segment ID within --channel",
2975
- "name": "segment",
3014
+ "format": {
3015
+ "description": "Output format: text, json, yaml, or table",
3016
+ "helpGroup": "GLOBAL",
3017
+ "name": "format",
3018
+ "default": "text",
2976
3019
  "hasDynamicHelp": false,
2977
3020
  "multiple": false,
3021
+ "options": [
3022
+ "text",
3023
+ "json",
3024
+ "yaml",
3025
+ "table"
3026
+ ],
2978
3027
  "type": "option"
2979
3028
  },
2980
- "target": {
2981
- "description": "Target as channelId or channelId:segmentId; may be repeated",
2982
- "name": "target",
2983
- "hasDynamicHelp": false,
2984
- "multiple": true,
2985
- "type": "option"
2986
- },
2987
- "text": {
2988
- "description": "Broadcast message text",
2989
- "name": "text",
2990
- "required": true,
3029
+ "json": {
3030
+ "description": "Output in JSON format (alias for --format=json)",
3031
+ "helpGroup": "GLOBAL",
3032
+ "name": "json",
3033
+ "allowNo": false,
3034
+ "type": "boolean"
3035
+ },
3036
+ "quiet": {
3037
+ "description": "Suppress all output except errors",
3038
+ "helpGroup": "GLOBAL",
3039
+ "name": "quiet",
3040
+ "allowNo": false,
3041
+ "type": "boolean"
3042
+ },
3043
+ "no-color": {
3044
+ "description": "Disable color output",
3045
+ "helpGroup": "GLOBAL",
3046
+ "name": "no-color",
3047
+ "allowNo": false,
3048
+ "type": "boolean"
3049
+ },
3050
+ "profile": {
3051
+ "description": "Named configuration profile to use",
3052
+ "helpGroup": "GLOBAL",
3053
+ "name": "profile",
3054
+ "default": "default",
3055
+ "hasDynamicHelp": false,
3056
+ "multiple": false,
3057
+ "type": "option"
3058
+ },
3059
+ "api-url": {
3060
+ "description": "Override the API base URL (e.g. for staging)",
3061
+ "helpGroup": "GLOBAL",
3062
+ "name": "api-url",
3063
+ "hasDynamicHelp": false,
3064
+ "multiple": false,
3065
+ "type": "option"
3066
+ }
3067
+ },
3068
+ "hasDynamicHelp": false,
3069
+ "hiddenAliases": [],
3070
+ "id": "config:set",
3071
+ "pluginAlias": "@instantkom/cli",
3072
+ "pluginName": "@instantkom/cli",
3073
+ "pluginType": "core",
3074
+ "strict": true,
3075
+ "enableJsonFlag": false,
3076
+ "isESM": true,
3077
+ "relativePath": [
3078
+ "dist",
3079
+ "commands",
3080
+ "config",
3081
+ "set.js"
3082
+ ]
3083
+ },
3084
+ "config:unset": {
3085
+ "aliases": [],
3086
+ "args": {
3087
+ "key": {
3088
+ "description": "Configuration key to remove",
3089
+ "name": "key",
3090
+ "required": true
3091
+ }
3092
+ },
3093
+ "description": "Remove a configuration key from the current profile",
3094
+ "flags": {
3095
+ "api-key": {
3096
+ "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
3097
+ "env": "IKM_API_KEY",
3098
+ "helpGroup": "GLOBAL",
3099
+ "name": "api-key",
3100
+ "hasDynamicHelp": false,
3101
+ "multiple": false,
3102
+ "type": "option"
3103
+ },
3104
+ "format": {
3105
+ "description": "Output format: text, json, yaml, or table",
3106
+ "helpGroup": "GLOBAL",
3107
+ "name": "format",
3108
+ "default": "text",
3109
+ "hasDynamicHelp": false,
3110
+ "multiple": false,
3111
+ "options": [
3112
+ "text",
3113
+ "json",
3114
+ "yaml",
3115
+ "table"
3116
+ ],
3117
+ "type": "option"
3118
+ },
3119
+ "json": {
3120
+ "description": "Output in JSON format (alias for --format=json)",
3121
+ "helpGroup": "GLOBAL",
3122
+ "name": "json",
3123
+ "allowNo": false,
3124
+ "type": "boolean"
3125
+ },
3126
+ "quiet": {
3127
+ "description": "Suppress all output except errors",
3128
+ "helpGroup": "GLOBAL",
3129
+ "name": "quiet",
3130
+ "allowNo": false,
3131
+ "type": "boolean"
3132
+ },
3133
+ "no-color": {
3134
+ "description": "Disable color output",
3135
+ "helpGroup": "GLOBAL",
3136
+ "name": "no-color",
3137
+ "allowNo": false,
3138
+ "type": "boolean"
3139
+ },
3140
+ "profile": {
3141
+ "description": "Named configuration profile to use",
3142
+ "helpGroup": "GLOBAL",
3143
+ "name": "profile",
3144
+ "default": "default",
3145
+ "hasDynamicHelp": false,
3146
+ "multiple": false,
3147
+ "type": "option"
3148
+ },
3149
+ "api-url": {
3150
+ "description": "Override the API base URL (e.g. for staging)",
3151
+ "helpGroup": "GLOBAL",
3152
+ "name": "api-url",
3153
+ "hasDynamicHelp": false,
3154
+ "multiple": false,
3155
+ "type": "option"
3156
+ }
3157
+ },
3158
+ "hasDynamicHelp": false,
3159
+ "hiddenAliases": [],
3160
+ "id": "config:unset",
3161
+ "pluginAlias": "@instantkom/cli",
3162
+ "pluginName": "@instantkom/cli",
3163
+ "pluginType": "core",
3164
+ "strict": true,
3165
+ "enableJsonFlag": false,
3166
+ "isESM": true,
3167
+ "relativePath": [
3168
+ "dist",
3169
+ "commands",
3170
+ "config",
3171
+ "unset.js"
3172
+ ]
3173
+ },
3174
+ "broadcast:create": {
3175
+ "aliases": [],
3176
+ "args": {},
3177
+ "description": "Create a broadcast for channels or segments",
3178
+ "flags": {
3179
+ "api-key": {
3180
+ "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
3181
+ "env": "IKM_API_KEY",
3182
+ "helpGroup": "GLOBAL",
3183
+ "name": "api-key",
3184
+ "hasDynamicHelp": false,
3185
+ "multiple": false,
3186
+ "type": "option"
3187
+ },
3188
+ "format": {
3189
+ "description": "Output format: text, json, yaml, or table",
3190
+ "helpGroup": "GLOBAL",
3191
+ "name": "format",
3192
+ "default": "text",
3193
+ "hasDynamicHelp": false,
3194
+ "multiple": false,
3195
+ "options": [
3196
+ "text",
3197
+ "json",
3198
+ "yaml",
3199
+ "table"
3200
+ ],
3201
+ "type": "option"
3202
+ },
3203
+ "json": {
3204
+ "description": "Output in JSON format (alias for --format=json)",
3205
+ "helpGroup": "GLOBAL",
3206
+ "name": "json",
3207
+ "allowNo": false,
3208
+ "type": "boolean"
3209
+ },
3210
+ "quiet": {
3211
+ "description": "Suppress all output except errors",
3212
+ "helpGroup": "GLOBAL",
3213
+ "name": "quiet",
3214
+ "allowNo": false,
3215
+ "type": "boolean"
3216
+ },
3217
+ "no-color": {
3218
+ "description": "Disable color output",
3219
+ "helpGroup": "GLOBAL",
3220
+ "name": "no-color",
3221
+ "allowNo": false,
3222
+ "type": "boolean"
3223
+ },
3224
+ "profile": {
3225
+ "description": "Named configuration profile to use",
3226
+ "helpGroup": "GLOBAL",
3227
+ "name": "profile",
3228
+ "default": "default",
3229
+ "hasDynamicHelp": false,
3230
+ "multiple": false,
3231
+ "type": "option"
3232
+ },
3233
+ "api-url": {
3234
+ "description": "Override the API base URL (e.g. for staging)",
3235
+ "helpGroup": "GLOBAL",
3236
+ "name": "api-url",
3237
+ "hasDynamicHelp": false,
3238
+ "multiple": false,
3239
+ "type": "option"
3240
+ },
3241
+ "channel": {
3242
+ "description": "Channel ID target",
3243
+ "name": "channel",
3244
+ "hasDynamicHelp": false,
3245
+ "multiple": false,
3246
+ "type": "option"
3247
+ },
3248
+ "segment": {
3249
+ "description": "Segment ID within --channel",
3250
+ "name": "segment",
3251
+ "hasDynamicHelp": false,
3252
+ "multiple": false,
3253
+ "type": "option"
3254
+ },
3255
+ "target": {
3256
+ "description": "Target as channelId or channelId:segmentId; may be repeated",
3257
+ "name": "target",
3258
+ "hasDynamicHelp": false,
3259
+ "multiple": true,
3260
+ "type": "option"
3261
+ },
3262
+ "text": {
3263
+ "description": "Broadcast message text",
3264
+ "name": "text",
3265
+ "required": true,
2991
3266
  "hasDynamicHelp": false,
2992
3267
  "multiple": false,
2993
3268
  "type": "option"
@@ -3724,16 +3999,10 @@
3724
3999
  "update.js"
3725
4000
  ]
3726
4001
  },
3727
- "config:get": {
4002
+ "contacts:create": {
3728
4003
  "aliases": [],
3729
- "args": {
3730
- "key": {
3731
- "description": "Configuration key to retrieve",
3732
- "name": "key",
3733
- "required": true
3734
- }
3735
- },
3736
- "description": "Get a configuration value for the current profile",
4004
+ "args": {},
4005
+ "description": "Create a contact",
3737
4006
  "flags": {
3738
4007
  "api-key": {
3739
4008
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -3796,13 +4065,43 @@
3796
4065
  "hasDynamicHelp": false,
3797
4066
  "multiple": false,
3798
4067
  "type": "option"
3799
- }
3800
- },
3801
- "hasDynamicHelp": false,
3802
- "hiddenAliases": [],
3803
- "id": "config:get",
3804
- "pluginAlias": "@instantkom/cli",
3805
- "pluginName": "@instantkom/cli",
4068
+ },
4069
+ "channel": {
4070
+ "description": "Channel ID",
4071
+ "name": "channel",
4072
+ "required": true,
4073
+ "hasDynamicHelp": false,
4074
+ "multiple": false,
4075
+ "type": "option"
4076
+ },
4077
+ "identifier": {
4078
+ "description": "Unique contact identifier",
4079
+ "name": "identifier",
4080
+ "required": true,
4081
+ "hasDynamicHelp": false,
4082
+ "multiple": false,
4083
+ "type": "option"
4084
+ },
4085
+ "name": {
4086
+ "description": "Contact name",
4087
+ "name": "name",
4088
+ "hasDynamicHelp": false,
4089
+ "multiple": false,
4090
+ "type": "option"
4091
+ },
4092
+ "data": {
4093
+ "description": "Additional JSON object payload",
4094
+ "name": "data",
4095
+ "hasDynamicHelp": false,
4096
+ "multiple": false,
4097
+ "type": "option"
4098
+ }
4099
+ },
4100
+ "hasDynamicHelp": false,
4101
+ "hiddenAliases": [],
4102
+ "id": "contacts:create",
4103
+ "pluginAlias": "@instantkom/cli",
4104
+ "pluginName": "@instantkom/cli",
3806
4105
  "pluginType": "core",
3807
4106
  "strict": true,
3808
4107
  "enableJsonFlag": false,
@@ -3810,25 +4109,20 @@
3810
4109
  "relativePath": [
3811
4110
  "dist",
3812
4111
  "commands",
3813
- "config",
3814
- "get.js"
4112
+ "contacts",
4113
+ "create.js"
3815
4114
  ]
3816
4115
  },
3817
- "config:set": {
4116
+ "contacts:delete": {
3818
4117
  "aliases": [],
3819
4118
  "args": {
3820
- "key": {
3821
- "description": "Configuration key to set",
3822
- "name": "key",
3823
- "required": true
3824
- },
3825
- "value": {
3826
- "description": "Value to assign",
3827
- "name": "value",
4119
+ "id": {
4120
+ "description": "Contact ID",
4121
+ "name": "id",
3828
4122
  "required": true
3829
4123
  }
3830
4124
  },
3831
- "description": "Set a configuration value for the current profile",
4125
+ "description": "Delete a contact",
3832
4126
  "flags": {
3833
4127
  "api-key": {
3834
4128
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -3895,7 +4189,7 @@
3895
4189
  },
3896
4190
  "hasDynamicHelp": false,
3897
4191
  "hiddenAliases": [],
3898
- "id": "config:set",
4192
+ "id": "contacts:delete",
3899
4193
  "pluginAlias": "@instantkom/cli",
3900
4194
  "pluginName": "@instantkom/cli",
3901
4195
  "pluginType": "core",
@@ -3905,20 +4199,14 @@
3905
4199
  "relativePath": [
3906
4200
  "dist",
3907
4201
  "commands",
3908
- "config",
3909
- "set.js"
4202
+ "contacts",
4203
+ "delete.js"
3910
4204
  ]
3911
4205
  },
3912
- "config:unset": {
4206
+ "contacts:export": {
3913
4207
  "aliases": [],
3914
- "args": {
3915
- "key": {
3916
- "description": "Configuration key to remove",
3917
- "name": "key",
3918
- "required": true
3919
- }
3920
- },
3921
- "description": "Remove a configuration key from the current profile",
4208
+ "args": {},
4209
+ "description": "Export contacts to CSV",
3922
4210
  "flags": {
3923
4211
  "api-key": {
3924
4212
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -3981,11 +4269,49 @@
3981
4269
  "hasDynamicHelp": false,
3982
4270
  "multiple": false,
3983
4271
  "type": "option"
4272
+ },
4273
+ "file": {
4274
+ "description": "CSV output file path",
4275
+ "name": "file",
4276
+ "required": true,
4277
+ "hasDynamicHelp": false,
4278
+ "multiple": false,
4279
+ "type": "option"
4280
+ },
4281
+ "channel": {
4282
+ "description": "Filter by channel ID",
4283
+ "name": "channel",
4284
+ "hasDynamicHelp": false,
4285
+ "multiple": false,
4286
+ "type": "option"
4287
+ },
4288
+ "search": {
4289
+ "description": "Search by name or identifier",
4290
+ "name": "search",
4291
+ "hasDynamicHelp": false,
4292
+ "multiple": false,
4293
+ "type": "option"
4294
+ },
4295
+ "page": {
4296
+ "description": "Page number",
4297
+ "name": "page",
4298
+ "default": 1,
4299
+ "hasDynamicHelp": false,
4300
+ "multiple": false,
4301
+ "type": "option"
4302
+ },
4303
+ "limit": {
4304
+ "description": "Items per page",
4305
+ "name": "limit",
4306
+ "default": 100,
4307
+ "hasDynamicHelp": false,
4308
+ "multiple": false,
4309
+ "type": "option"
3984
4310
  }
3985
4311
  },
3986
4312
  "hasDynamicHelp": false,
3987
4313
  "hiddenAliases": [],
3988
- "id": "config:unset",
4314
+ "id": "contacts:export",
3989
4315
  "pluginAlias": "@instantkom/cli",
3990
4316
  "pluginName": "@instantkom/cli",
3991
4317
  "pluginType": "core",
@@ -3995,14 +4321,20 @@
3995
4321
  "relativePath": [
3996
4322
  "dist",
3997
4323
  "commands",
3998
- "config",
3999
- "unset.js"
4324
+ "contacts",
4325
+ "export.js"
4000
4326
  ]
4001
4327
  },
4002
- "custom-fields:bulk-delete": {
4328
+ "contacts:get": {
4003
4329
  "aliases": [],
4004
- "args": {},
4005
- "description": "Bulk delete custom fields",
4330
+ "args": {
4331
+ "id": {
4332
+ "description": "Contact ID",
4333
+ "name": "id",
4334
+ "required": true
4335
+ }
4336
+ },
4337
+ "description": "Get a contact by ID",
4006
4338
  "flags": {
4007
4339
  "api-key": {
4008
4340
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -4065,19 +4397,11 @@
4065
4397
  "hasDynamicHelp": false,
4066
4398
  "multiple": false,
4067
4399
  "type": "option"
4068
- },
4069
- "ids": {
4070
- "description": "Comma-separated custom field IDs",
4071
- "name": "ids",
4072
- "required": true,
4073
- "hasDynamicHelp": false,
4074
- "multiple": false,
4075
- "type": "option"
4076
4400
  }
4077
4401
  },
4078
4402
  "hasDynamicHelp": false,
4079
4403
  "hiddenAliases": [],
4080
- "id": "custom-fields:bulk-delete",
4404
+ "id": "contacts:get",
4081
4405
  "pluginAlias": "@instantkom/cli",
4082
4406
  "pluginName": "@instantkom/cli",
4083
4407
  "pluginType": "core",
@@ -4087,14 +4411,14 @@
4087
4411
  "relativePath": [
4088
4412
  "dist",
4089
4413
  "commands",
4090
- "custom-fields",
4091
- "bulk-delete.js"
4414
+ "contacts",
4415
+ "get.js"
4092
4416
  ]
4093
4417
  },
4094
- "custom-fields:create": {
4418
+ "contacts:import": {
4095
4419
  "aliases": [],
4096
4420
  "args": {},
4097
- "description": "Create a custom field",
4421
+ "description": "Import contacts from CSV",
4098
4422
  "flags": {
4099
4423
  "api-key": {
4100
4424
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -4158,71 +4482,26 @@
4158
4482
  "multiple": false,
4159
4483
  "type": "option"
4160
4484
  },
4161
- "name": {
4162
- "description": "Field name",
4163
- "name": "name",
4164
- "required": true,
4165
- "hasDynamicHelp": false,
4166
- "multiple": false,
4167
- "type": "option"
4168
- },
4169
- "key": {
4170
- "description": "Field key",
4171
- "name": "key",
4485
+ "file": {
4486
+ "description": "CSV file path",
4487
+ "name": "file",
4172
4488
  "required": true,
4173
4489
  "hasDynamicHelp": false,
4174
4490
  "multiple": false,
4175
4491
  "type": "option"
4176
4492
  },
4177
- "type": {
4178
- "description": "Field type",
4179
- "name": "type",
4493
+ "channel": {
4494
+ "description": "Channel ID",
4495
+ "name": "channel",
4180
4496
  "required": true,
4181
4497
  "hasDynamicHelp": false,
4182
4498
  "multiple": false,
4183
- "options": [
4184
- "text",
4185
- "number",
4186
- "date",
4187
- "dropdown",
4188
- "checkbox",
4189
- "url",
4190
- "email",
4191
- "phone"
4192
- ],
4193
- "type": "option"
4194
- },
4195
- "required": {
4196
- "description": "Field is required",
4197
- "name": "required",
4198
- "allowNo": false,
4199
- "type": "boolean"
4200
- },
4201
- "default": {
4202
- "description": "Default value",
4203
- "name": "default",
4204
- "hasDynamicHelp": false,
4205
- "multiple": false,
4206
- "type": "option"
4207
- },
4208
- "options": {
4209
- "description": "Comma-separated dropdown options",
4210
- "name": "options",
4211
- "hasDynamicHelp": false,
4212
- "multiple": false,
4213
- "type": "option"
4214
- },
4215
- "data": {
4216
- "description": "Additional JSON object payload",
4217
- "name": "data",
4218
- "hasDynamicHelp": false,
4219
- "multiple": false,
4220
4499
  "type": "option"
4221
4500
  }
4222
4501
  },
4223
4502
  "hasDynamicHelp": false,
4224
4503
  "hiddenAliases": [],
4225
- "id": "custom-fields:create",
4504
+ "id": "contacts:import",
4226
4505
  "pluginAlias": "@instantkom/cli",
4227
4506
  "pluginName": "@instantkom/cli",
4228
4507
  "pluginType": "core",
@@ -4232,20 +4511,14 @@
4232
4511
  "relativePath": [
4233
4512
  "dist",
4234
4513
  "commands",
4235
- "custom-fields",
4236
- "create.js"
4514
+ "contacts",
4515
+ "import.js"
4237
4516
  ]
4238
4517
  },
4239
- "custom-fields:delete": {
4518
+ "contacts:list": {
4240
4519
  "aliases": [],
4241
- "args": {
4242
- "id": {
4243
- "description": "custom field ID",
4244
- "name": "id",
4245
- "required": true
4246
- }
4247
- },
4248
- "description": "Delete custom field",
4520
+ "args": {},
4521
+ "description": "List contacts",
4249
4522
  "flags": {
4250
4523
  "api-key": {
4251
4524
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -4308,93 +4581,98 @@
4308
4581
  "hasDynamicHelp": false,
4309
4582
  "multiple": false,
4310
4583
  "type": "option"
4311
- }
4312
- },
4313
- "hasDynamicHelp": false,
4314
- "hiddenAliases": [],
4315
- "id": "custom-fields:delete",
4316
- "pluginAlias": "@instantkom/cli",
4317
- "pluginName": "@instantkom/cli",
4318
- "pluginType": "core",
4319
- "strict": true,
4320
- "enableJsonFlag": false,
4321
- "isESM": true,
4322
- "relativePath": [
4323
- "dist",
4324
- "commands",
4325
- "custom-fields",
4326
- "delete.js"
4327
- ]
4328
- },
4329
- "custom-fields:get": {
4330
- "aliases": [],
4331
- "args": {
4332
- "id": {
4333
- "description": "custom field ID",
4334
- "name": "id",
4335
- "required": true
4336
- }
4337
- },
4338
- "description": "Get custom field by ID",
4339
- "flags": {
4340
- "api-key": {
4341
- "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
4342
- "env": "IKM_API_KEY",
4343
- "helpGroup": "GLOBAL",
4344
- "name": "api-key",
4584
+ },
4585
+ "channel": {
4586
+ "description": "Filter by channel ID",
4587
+ "name": "channel",
4345
4588
  "hasDynamicHelp": false,
4346
4589
  "multiple": false,
4347
4590
  "type": "option"
4348
4591
  },
4349
- "format": {
4350
- "description": "Output format: text, json, yaml, or table",
4351
- "helpGroup": "GLOBAL",
4352
- "name": "format",
4353
- "default": "text",
4592
+ "search": {
4593
+ "description": "Search by name or identifier",
4594
+ "name": "search",
4595
+ "hasDynamicHelp": false,
4596
+ "multiple": false,
4597
+ "type": "option"
4598
+ },
4599
+ "page": {
4600
+ "description": "Page number",
4601
+ "name": "page",
4602
+ "default": 1,
4603
+ "hasDynamicHelp": false,
4604
+ "multiple": false,
4605
+ "type": "option"
4606
+ },
4607
+ "limit": {
4608
+ "description": "Items per page",
4609
+ "name": "limit",
4610
+ "default": 20,
4611
+ "hasDynamicHelp": false,
4612
+ "multiple": false,
4613
+ "type": "option"
4614
+ },
4615
+ "optin-status": {
4616
+ "description": "Filter by opt-in status",
4617
+ "name": "optin-status",
4354
4618
  "hasDynamicHelp": false,
4355
4619
  "multiple": false,
4356
4620
  "options": [
4357
- "text",
4358
- "json",
4359
- "yaml",
4360
- "table"
4621
+ "0",
4622
+ "1"
4361
4623
  ],
4362
4624
  "type": "option"
4363
4625
  },
4364
- "json": {
4365
- "description": "Output in JSON format (alias for --format=json)",
4366
- "helpGroup": "GLOBAL",
4367
- "name": "json",
4368
- "allowNo": false,
4369
- "type": "boolean"
4626
+ "blocked": {
4627
+ "description": "Filter by blocked status: 1 blocked, 0 not blocked",
4628
+ "name": "blocked",
4629
+ "hasDynamicHelp": false,
4630
+ "multiple": false,
4631
+ "options": [
4632
+ "0",
4633
+ "1"
4634
+ ],
4635
+ "type": "option"
4370
4636
  },
4371
- "quiet": {
4372
- "description": "Suppress all output except errors",
4373
- "helpGroup": "GLOBAL",
4374
- "name": "quiet",
4375
- "allowNo": false,
4376
- "type": "boolean"
4637
+ "segment": {
4638
+ "description": "Filter by segment ID",
4639
+ "name": "segment",
4640
+ "hasDynamicHelp": false,
4641
+ "multiple": false,
4642
+ "type": "option"
4377
4643
  },
4378
- "no-color": {
4379
- "description": "Disable color output",
4380
- "helpGroup": "GLOBAL",
4381
- "name": "no-color",
4382
- "allowNo": false,
4383
- "type": "boolean"
4644
+ "tags": {
4645
+ "description": "Comma-separated tag IDs",
4646
+ "name": "tags",
4647
+ "hasDynamicHelp": false,
4648
+ "multiple": false,
4649
+ "type": "option"
4384
4650
  },
4385
- "profile": {
4386
- "description": "Named configuration profile to use",
4387
- "helpGroup": "GLOBAL",
4388
- "name": "profile",
4389
- "default": "default",
4651
+ "tag-match": {
4652
+ "description": "Tag match mode",
4653
+ "name": "tag-match",
4390
4654
  "hasDynamicHelp": false,
4391
4655
  "multiple": false,
4656
+ "options": [
4657
+ "any",
4658
+ "all"
4659
+ ],
4392
4660
  "type": "option"
4393
4661
  },
4394
- "api-url": {
4395
- "description": "Override the API base URL (e.g. for staging)",
4396
- "helpGroup": "GLOBAL",
4397
- "name": "api-url",
4662
+ "spam": {
4663
+ "description": "Filter by spam status",
4664
+ "name": "spam",
4665
+ "hasDynamicHelp": false,
4666
+ "multiple": false,
4667
+ "options": [
4668
+ "true",
4669
+ "false"
4670
+ ],
4671
+ "type": "option"
4672
+ },
4673
+ "trust-level": {
4674
+ "description": "Comma-separated trust levels",
4675
+ "name": "trust-level",
4398
4676
  "hasDynamicHelp": false,
4399
4677
  "multiple": false,
4400
4678
  "type": "option"
@@ -4402,7 +4680,7 @@
4402
4680
  },
4403
4681
  "hasDynamicHelp": false,
4404
4682
  "hiddenAliases": [],
4405
- "id": "custom-fields:get",
4683
+ "id": "contacts:list",
4406
4684
  "pluginAlias": "@instantkom/cli",
4407
4685
  "pluginName": "@instantkom/cli",
4408
4686
  "pluginType": "core",
@@ -4412,14 +4690,20 @@
4412
4690
  "relativePath": [
4413
4691
  "dist",
4414
4692
  "commands",
4415
- "custom-fields",
4416
- "get.js"
4693
+ "contacts",
4694
+ "list.js"
4417
4695
  ]
4418
4696
  },
4419
- "custom-fields:list": {
4697
+ "contacts:update": {
4420
4698
  "aliases": [],
4421
- "args": {},
4422
- "description": "List custom fields",
4699
+ "args": {
4700
+ "id": {
4701
+ "description": "Contact ID",
4702
+ "name": "id",
4703
+ "required": true
4704
+ }
4705
+ },
4706
+ "description": "Update a contact",
4423
4707
  "flags": {
4424
4708
  "api-key": {
4425
4709
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -4482,11 +4766,32 @@
4482
4766
  "hasDynamicHelp": false,
4483
4767
  "multiple": false,
4484
4768
  "type": "option"
4769
+ },
4770
+ "identifier": {
4771
+ "description": "Unique contact identifier",
4772
+ "name": "identifier",
4773
+ "hasDynamicHelp": false,
4774
+ "multiple": false,
4775
+ "type": "option"
4776
+ },
4777
+ "name": {
4778
+ "description": "Contact name",
4779
+ "name": "name",
4780
+ "hasDynamicHelp": false,
4781
+ "multiple": false,
4782
+ "type": "option"
4783
+ },
4784
+ "data": {
4785
+ "description": "Additional JSON object payload",
4786
+ "name": "data",
4787
+ "hasDynamicHelp": false,
4788
+ "multiple": false,
4789
+ "type": "option"
4485
4790
  }
4486
4791
  },
4487
4792
  "hasDynamicHelp": false,
4488
4793
  "hiddenAliases": [],
4489
- "id": "custom-fields:list",
4794
+ "id": "contacts:update",
4490
4795
  "pluginAlias": "@instantkom/cli",
4491
4796
  "pluginName": "@instantkom/cli",
4492
4797
  "pluginType": "core",
@@ -4496,14 +4801,14 @@
4496
4801
  "relativePath": [
4497
4802
  "dist",
4498
4803
  "commands",
4499
- "custom-fields",
4500
- "list.js"
4804
+ "contacts",
4805
+ "update.js"
4501
4806
  ]
4502
4807
  },
4503
- "custom-fields:reorder": {
4808
+ "custom-fields:bulk-delete": {
4504
4809
  "aliases": [],
4505
4810
  "args": {},
4506
- "description": "Reorder custom fields",
4811
+ "description": "Bulk delete custom fields",
4507
4812
  "flags": {
4508
4813
  "api-key": {
4509
4814
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -4567,9 +4872,9 @@
4567
4872
  "multiple": false,
4568
4873
  "type": "option"
4569
4874
  },
4570
- "order": {
4571
- "description": "Order JSON array payload",
4572
- "name": "order",
4875
+ "ids": {
4876
+ "description": "Comma-separated custom field IDs",
4877
+ "name": "ids",
4573
4878
  "required": true,
4574
4879
  "hasDynamicHelp": false,
4575
4880
  "multiple": false,
@@ -4578,7 +4883,7 @@
4578
4883
  },
4579
4884
  "hasDynamicHelp": false,
4580
4885
  "hiddenAliases": [],
4581
- "id": "custom-fields:reorder",
4886
+ "id": "custom-fields:bulk-delete",
4582
4887
  "pluginAlias": "@instantkom/cli",
4583
4888
  "pluginName": "@instantkom/cli",
4584
4889
  "pluginType": "core",
@@ -4589,19 +4894,13 @@
4589
4894
  "dist",
4590
4895
  "commands",
4591
4896
  "custom-fields",
4592
- "reorder.js"
4897
+ "bulk-delete.js"
4593
4898
  ]
4594
4899
  },
4595
- "custom-fields:update": {
4900
+ "custom-fields:create": {
4596
4901
  "aliases": [],
4597
- "args": {
4598
- "id": {
4599
- "description": "Custom field ID",
4600
- "name": "id",
4601
- "required": true
4602
- }
4603
- },
4604
- "description": "Update a custom field",
4902
+ "args": {},
4903
+ "description": "Create a custom field",
4605
4904
  "flags": {
4606
4905
  "api-key": {
4607
4906
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -4668,6 +4967,15 @@
4668
4967
  "name": {
4669
4968
  "description": "Field name",
4670
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,
4671
4979
  "hasDynamicHelp": false,
4672
4980
  "multiple": false,
4673
4981
  "type": "option"
@@ -4675,6 +4983,7 @@
4675
4983
  "type": {
4676
4984
  "description": "Field type",
4677
4985
  "name": "type",
4986
+ "required": true,
4678
4987
  "hasDynamicHelp": false,
4679
4988
  "multiple": false,
4680
4989
  "options": [
@@ -4692,13 +5001,7 @@
4692
5001
  "required": {
4693
5002
  "description": "Field is required",
4694
5003
  "name": "required",
4695
- "allowNo": true,
4696
- "type": "boolean"
4697
- },
4698
- "status": {
4699
- "description": "Field is active",
4700
- "name": "status",
4701
- "allowNo": true,
5004
+ "allowNo": false,
4702
5005
  "type": "boolean"
4703
5006
  },
4704
5007
  "default": {
@@ -4725,7 +5028,7 @@
4725
5028
  },
4726
5029
  "hasDynamicHelp": false,
4727
5030
  "hiddenAliases": [],
4728
- "id": "custom-fields:update",
5031
+ "id": "custom-fields:create",
4729
5032
  "pluginAlias": "@instantkom/cli",
4730
5033
  "pluginName": "@instantkom/cli",
4731
5034
  "pluginType": "core",
@@ -4736,217 +5039,19 @@
4736
5039
  "dist",
4737
5040
  "commands",
4738
5041
  "custom-fields",
4739
- "update.js"
4740
- ]
4741
- },
4742
- "contacts:create": {
4743
- "aliases": [],
4744
- "args": {},
4745
- "description": "Create a contact",
4746
- "flags": {
4747
- "api-key": {
4748
- "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
4749
- "env": "IKM_API_KEY",
4750
- "helpGroup": "GLOBAL",
4751
- "name": "api-key",
4752
- "hasDynamicHelp": false,
4753
- "multiple": false,
4754
- "type": "option"
4755
- },
4756
- "format": {
4757
- "description": "Output format: text, json, yaml, or table",
4758
- "helpGroup": "GLOBAL",
4759
- "name": "format",
4760
- "default": "text",
4761
- "hasDynamicHelp": false,
4762
- "multiple": false,
4763
- "options": [
4764
- "text",
4765
- "json",
4766
- "yaml",
4767
- "table"
4768
- ],
4769
- "type": "option"
4770
- },
4771
- "json": {
4772
- "description": "Output in JSON format (alias for --format=json)",
4773
- "helpGroup": "GLOBAL",
4774
- "name": "json",
4775
- "allowNo": false,
4776
- "type": "boolean"
4777
- },
4778
- "quiet": {
4779
- "description": "Suppress all output except errors",
4780
- "helpGroup": "GLOBAL",
4781
- "name": "quiet",
4782
- "allowNo": false,
4783
- "type": "boolean"
4784
- },
4785
- "no-color": {
4786
- "description": "Disable color output",
4787
- "helpGroup": "GLOBAL",
4788
- "name": "no-color",
4789
- "allowNo": false,
4790
- "type": "boolean"
4791
- },
4792
- "profile": {
4793
- "description": "Named configuration profile to use",
4794
- "helpGroup": "GLOBAL",
4795
- "name": "profile",
4796
- "default": "default",
4797
- "hasDynamicHelp": false,
4798
- "multiple": false,
4799
- "type": "option"
4800
- },
4801
- "api-url": {
4802
- "description": "Override the API base URL (e.g. for staging)",
4803
- "helpGroup": "GLOBAL",
4804
- "name": "api-url",
4805
- "hasDynamicHelp": false,
4806
- "multiple": false,
4807
- "type": "option"
4808
- },
4809
- "channel": {
4810
- "description": "Channel ID",
4811
- "name": "channel",
4812
- "required": true,
4813
- "hasDynamicHelp": false,
4814
- "multiple": false,
4815
- "type": "option"
4816
- },
4817
- "identifier": {
4818
- "description": "Unique contact identifier",
4819
- "name": "identifier",
4820
- "required": true,
4821
- "hasDynamicHelp": false,
4822
- "multiple": false,
4823
- "type": "option"
4824
- },
4825
- "name": {
4826
- "description": "Contact name",
4827
- "name": "name",
4828
- "hasDynamicHelp": false,
4829
- "multiple": false,
4830
- "type": "option"
4831
- },
4832
- "data": {
4833
- "description": "Additional JSON object payload",
4834
- "name": "data",
4835
- "hasDynamicHelp": false,
4836
- "multiple": false,
4837
- "type": "option"
4838
- }
4839
- },
4840
- "hasDynamicHelp": false,
4841
- "hiddenAliases": [],
4842
- "id": "contacts:create",
4843
- "pluginAlias": "@instantkom/cli",
4844
- "pluginName": "@instantkom/cli",
4845
- "pluginType": "core",
4846
- "strict": true,
4847
- "enableJsonFlag": false,
4848
- "isESM": true,
4849
- "relativePath": [
4850
- "dist",
4851
- "commands",
4852
- "contacts",
4853
- "create.js"
4854
- ]
4855
- },
4856
- "contacts:delete": {
4857
- "aliases": [],
4858
- "args": {
4859
- "id": {
4860
- "description": "Contact ID",
4861
- "name": "id",
4862
- "required": true
4863
- }
4864
- },
4865
- "description": "Delete a contact",
4866
- "flags": {
4867
- "api-key": {
4868
- "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
4869
- "env": "IKM_API_KEY",
4870
- "helpGroup": "GLOBAL",
4871
- "name": "api-key",
4872
- "hasDynamicHelp": false,
4873
- "multiple": false,
4874
- "type": "option"
4875
- },
4876
- "format": {
4877
- "description": "Output format: text, json, yaml, or table",
4878
- "helpGroup": "GLOBAL",
4879
- "name": "format",
4880
- "default": "text",
4881
- "hasDynamicHelp": false,
4882
- "multiple": false,
4883
- "options": [
4884
- "text",
4885
- "json",
4886
- "yaml",
4887
- "table"
4888
- ],
4889
- "type": "option"
4890
- },
4891
- "json": {
4892
- "description": "Output in JSON format (alias for --format=json)",
4893
- "helpGroup": "GLOBAL",
4894
- "name": "json",
4895
- "allowNo": false,
4896
- "type": "boolean"
4897
- },
4898
- "quiet": {
4899
- "description": "Suppress all output except errors",
4900
- "helpGroup": "GLOBAL",
4901
- "name": "quiet",
4902
- "allowNo": false,
4903
- "type": "boolean"
4904
- },
4905
- "no-color": {
4906
- "description": "Disable color output",
4907
- "helpGroup": "GLOBAL",
4908
- "name": "no-color",
4909
- "allowNo": false,
4910
- "type": "boolean"
4911
- },
4912
- "profile": {
4913
- "description": "Named configuration profile to use",
4914
- "helpGroup": "GLOBAL",
4915
- "name": "profile",
4916
- "default": "default",
4917
- "hasDynamicHelp": false,
4918
- "multiple": false,
4919
- "type": "option"
4920
- },
4921
- "api-url": {
4922
- "description": "Override the API base URL (e.g. for staging)",
4923
- "helpGroup": "GLOBAL",
4924
- "name": "api-url",
4925
- "hasDynamicHelp": false,
4926
- "multiple": false,
4927
- "type": "option"
4928
- }
4929
- },
4930
- "hasDynamicHelp": false,
4931
- "hiddenAliases": [],
4932
- "id": "contacts:delete",
4933
- "pluginAlias": "@instantkom/cli",
4934
- "pluginName": "@instantkom/cli",
4935
- "pluginType": "core",
4936
- "strict": true,
4937
- "enableJsonFlag": false,
4938
- "isESM": true,
4939
- "relativePath": [
4940
- "dist",
4941
- "commands",
4942
- "contacts",
4943
- "delete.js"
5042
+ "create.js"
4944
5043
  ]
4945
5044
  },
4946
- "contacts:export": {
5045
+ "custom-fields:delete": {
4947
5046
  "aliases": [],
4948
- "args": {},
4949
- "description": "Export contacts to CSV",
5047
+ "args": {
5048
+ "id": {
5049
+ "description": "custom field ID",
5050
+ "name": "id",
5051
+ "required": true
5052
+ }
5053
+ },
5054
+ "description": "Delete custom field",
4950
5055
  "flags": {
4951
5056
  "api-key": {
4952
5057
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -5009,49 +5114,11 @@
5009
5114
  "hasDynamicHelp": false,
5010
5115
  "multiple": false,
5011
5116
  "type": "option"
5012
- },
5013
- "file": {
5014
- "description": "CSV output file path",
5015
- "name": "file",
5016
- "required": true,
5017
- "hasDynamicHelp": false,
5018
- "multiple": false,
5019
- "type": "option"
5020
- },
5021
- "channel": {
5022
- "description": "Filter by channel ID",
5023
- "name": "channel",
5024
- "hasDynamicHelp": false,
5025
- "multiple": false,
5026
- "type": "option"
5027
- },
5028
- "search": {
5029
- "description": "Search by name or identifier",
5030
- "name": "search",
5031
- "hasDynamicHelp": false,
5032
- "multiple": false,
5033
- "type": "option"
5034
- },
5035
- "page": {
5036
- "description": "Page number",
5037
- "name": "page",
5038
- "default": 1,
5039
- "hasDynamicHelp": false,
5040
- "multiple": false,
5041
- "type": "option"
5042
- },
5043
- "limit": {
5044
- "description": "Items per page",
5045
- "name": "limit",
5046
- "default": 100,
5047
- "hasDynamicHelp": false,
5048
- "multiple": false,
5049
- "type": "option"
5050
5117
  }
5051
5118
  },
5052
5119
  "hasDynamicHelp": false,
5053
5120
  "hiddenAliases": [],
5054
- "id": "contacts:export",
5121
+ "id": "custom-fields:delete",
5055
5122
  "pluginAlias": "@instantkom/cli",
5056
5123
  "pluginName": "@instantkom/cli",
5057
5124
  "pluginType": "core",
@@ -5061,20 +5128,20 @@
5061
5128
  "relativePath": [
5062
5129
  "dist",
5063
5130
  "commands",
5064
- "contacts",
5065
- "export.js"
5131
+ "custom-fields",
5132
+ "delete.js"
5066
5133
  ]
5067
5134
  },
5068
- "contacts:get": {
5135
+ "custom-fields:get": {
5069
5136
  "aliases": [],
5070
5137
  "args": {
5071
5138
  "id": {
5072
- "description": "Contact ID",
5139
+ "description": "custom field ID",
5073
5140
  "name": "id",
5074
5141
  "required": true
5075
5142
  }
5076
5143
  },
5077
- "description": "Get a contact by ID",
5144
+ "description": "Get custom field by ID",
5078
5145
  "flags": {
5079
5146
  "api-key": {
5080
5147
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -5141,7 +5208,7 @@
5141
5208
  },
5142
5209
  "hasDynamicHelp": false,
5143
5210
  "hiddenAliases": [],
5144
- "id": "contacts:get",
5211
+ "id": "custom-fields:get",
5145
5212
  "pluginAlias": "@instantkom/cli",
5146
5213
  "pluginName": "@instantkom/cli",
5147
5214
  "pluginType": "core",
@@ -5151,14 +5218,14 @@
5151
5218
  "relativePath": [
5152
5219
  "dist",
5153
5220
  "commands",
5154
- "contacts",
5221
+ "custom-fields",
5155
5222
  "get.js"
5156
5223
  ]
5157
5224
  },
5158
- "contacts:import": {
5225
+ "custom-fields:list": {
5159
5226
  "aliases": [],
5160
5227
  "args": {},
5161
- "description": "Import contacts from CSV",
5228
+ "description": "List custom fields",
5162
5229
  "flags": {
5163
5230
  "api-key": {
5164
5231
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -5221,27 +5288,11 @@
5221
5288
  "hasDynamicHelp": false,
5222
5289
  "multiple": false,
5223
5290
  "type": "option"
5224
- },
5225
- "file": {
5226
- "description": "CSV file path",
5227
- "name": "file",
5228
- "required": true,
5229
- "hasDynamicHelp": false,
5230
- "multiple": false,
5231
- "type": "option"
5232
- },
5233
- "channel": {
5234
- "description": "Channel ID",
5235
- "name": "channel",
5236
- "required": true,
5237
- "hasDynamicHelp": false,
5238
- "multiple": false,
5239
- "type": "option"
5240
5291
  }
5241
5292
  },
5242
5293
  "hasDynamicHelp": false,
5243
5294
  "hiddenAliases": [],
5244
- "id": "contacts:import",
5295
+ "id": "custom-fields:list",
5245
5296
  "pluginAlias": "@instantkom/cli",
5246
5297
  "pluginName": "@instantkom/cli",
5247
5298
  "pluginType": "core",
@@ -5251,14 +5302,14 @@
5251
5302
  "relativePath": [
5252
5303
  "dist",
5253
5304
  "commands",
5254
- "contacts",
5255
- "import.js"
5305
+ "custom-fields",
5306
+ "list.js"
5256
5307
  ]
5257
5308
  },
5258
- "contacts:list": {
5309
+ "custom-fields:reorder": {
5259
5310
  "aliases": [],
5260
5311
  "args": {},
5261
- "description": "List contacts",
5312
+ "description": "Reorder custom fields",
5262
5313
  "flags": {
5263
5314
  "api-key": {
5264
5315
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -5322,97 +5373,10 @@
5322
5373
  "multiple": false,
5323
5374
  "type": "option"
5324
5375
  },
5325
- "channel": {
5326
- "description": "Filter by channel ID",
5327
- "name": "channel",
5328
- "hasDynamicHelp": false,
5329
- "multiple": false,
5330
- "type": "option"
5331
- },
5332
- "search": {
5333
- "description": "Search by name or identifier",
5334
- "name": "search",
5335
- "hasDynamicHelp": false,
5336
- "multiple": false,
5337
- "type": "option"
5338
- },
5339
- "page": {
5340
- "description": "Page number",
5341
- "name": "page",
5342
- "default": 1,
5343
- "hasDynamicHelp": false,
5344
- "multiple": false,
5345
- "type": "option"
5346
- },
5347
- "limit": {
5348
- "description": "Items per page",
5349
- "name": "limit",
5350
- "default": 20,
5351
- "hasDynamicHelp": false,
5352
- "multiple": false,
5353
- "type": "option"
5354
- },
5355
- "optin-status": {
5356
- "description": "Filter by opt-in status",
5357
- "name": "optin-status",
5358
- "hasDynamicHelp": false,
5359
- "multiple": false,
5360
- "options": [
5361
- "0",
5362
- "1"
5363
- ],
5364
- "type": "option"
5365
- },
5366
- "blocked": {
5367
- "description": "Filter by blocked status: 1 blocked, 0 not blocked",
5368
- "name": "blocked",
5369
- "hasDynamicHelp": false,
5370
- "multiple": false,
5371
- "options": [
5372
- "0",
5373
- "1"
5374
- ],
5375
- "type": "option"
5376
- },
5377
- "segment": {
5378
- "description": "Filter by segment ID",
5379
- "name": "segment",
5380
- "hasDynamicHelp": false,
5381
- "multiple": false,
5382
- "type": "option"
5383
- },
5384
- "tags": {
5385
- "description": "Comma-separated tag IDs",
5386
- "name": "tags",
5387
- "hasDynamicHelp": false,
5388
- "multiple": false,
5389
- "type": "option"
5390
- },
5391
- "tag-match": {
5392
- "description": "Tag match mode",
5393
- "name": "tag-match",
5394
- "hasDynamicHelp": false,
5395
- "multiple": false,
5396
- "options": [
5397
- "any",
5398
- "all"
5399
- ],
5400
- "type": "option"
5401
- },
5402
- "spam": {
5403
- "description": "Filter by spam status",
5404
- "name": "spam",
5405
- "hasDynamicHelp": false,
5406
- "multiple": false,
5407
- "options": [
5408
- "true",
5409
- "false"
5410
- ],
5411
- "type": "option"
5412
- },
5413
- "trust-level": {
5414
- "description": "Comma-separated trust levels",
5415
- "name": "trust-level",
5376
+ "order": {
5377
+ "description": "Order JSON array payload",
5378
+ "name": "order",
5379
+ "required": true,
5416
5380
  "hasDynamicHelp": false,
5417
5381
  "multiple": false,
5418
5382
  "type": "option"
@@ -5420,7 +5384,7 @@
5420
5384
  },
5421
5385
  "hasDynamicHelp": false,
5422
5386
  "hiddenAliases": [],
5423
- "id": "contacts:list",
5387
+ "id": "custom-fields:reorder",
5424
5388
  "pluginAlias": "@instantkom/cli",
5425
5389
  "pluginName": "@instantkom/cli",
5426
5390
  "pluginType": "core",
@@ -5430,20 +5394,20 @@
5430
5394
  "relativePath": [
5431
5395
  "dist",
5432
5396
  "commands",
5433
- "contacts",
5434
- "list.js"
5397
+ "custom-fields",
5398
+ "reorder.js"
5435
5399
  ]
5436
5400
  },
5437
- "contacts:update": {
5401
+ "custom-fields:update": {
5438
5402
  "aliases": [],
5439
5403
  "args": {
5440
5404
  "id": {
5441
- "description": "Contact ID",
5405
+ "description": "Custom field ID",
5442
5406
  "name": "id",
5443
5407
  "required": true
5444
5408
  }
5445
5409
  },
5446
- "description": "Update a contact",
5410
+ "description": "Update a custom field",
5447
5411
  "flags": {
5448
5412
  "api-key": {
5449
5413
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -5507,16 +5471,52 @@
5507
5471
  "multiple": false,
5508
5472
  "type": "option"
5509
5473
  },
5510
- "identifier": {
5511
- "description": "Unique contact identifier",
5512
- "name": "identifier",
5474
+ "name": {
5475
+ "description": "Field name",
5476
+ "name": "name",
5513
5477
  "hasDynamicHelp": false,
5514
5478
  "multiple": false,
5515
5479
  "type": "option"
5516
5480
  },
5517
- "name": {
5518
- "description": "Contact name",
5519
- "name": "name",
5481
+ "type": {
5482
+ "description": "Field type",
5483
+ "name": "type",
5484
+ "hasDynamicHelp": false,
5485
+ "multiple": false,
5486
+ "options": [
5487
+ "text",
5488
+ "number",
5489
+ "date",
5490
+ "dropdown",
5491
+ "checkbox",
5492
+ "url",
5493
+ "email",
5494
+ "phone"
5495
+ ],
5496
+ "type": "option"
5497
+ },
5498
+ "required": {
5499
+ "description": "Field is required",
5500
+ "name": "required",
5501
+ "allowNo": true,
5502
+ "type": "boolean"
5503
+ },
5504
+ "status": {
5505
+ "description": "Field is active",
5506
+ "name": "status",
5507
+ "allowNo": true,
5508
+ "type": "boolean"
5509
+ },
5510
+ "default": {
5511
+ "description": "Default value",
5512
+ "name": "default",
5513
+ "hasDynamicHelp": false,
5514
+ "multiple": false,
5515
+ "type": "option"
5516
+ },
5517
+ "options": {
5518
+ "description": "Comma-separated dropdown options",
5519
+ "name": "options",
5520
5520
  "hasDynamicHelp": false,
5521
5521
  "multiple": false,
5522
5522
  "type": "option"
@@ -5531,7 +5531,7 @@
5531
5531
  },
5532
5532
  "hasDynamicHelp": false,
5533
5533
  "hiddenAliases": [],
5534
- "id": "contacts:update",
5534
+ "id": "custom-fields:update",
5535
5535
  "pluginAlias": "@instantkom/cli",
5536
5536
  "pluginName": "@instantkom/cli",
5537
5537
  "pluginType": "core",
@@ -5541,7 +5541,7 @@
5541
5541
  "relativePath": [
5542
5542
  "dist",
5543
5543
  "commands",
5544
- "contacts",
5544
+ "custom-fields",
5545
5545
  "update.js"
5546
5546
  ]
5547
5547
  },
@@ -17052,5 +17052,5 @@
17052
17052
  ]
17053
17053
  }
17054
17054
  },
17055
- "version": "3.195.5"
17055
+ "version": "3.195.6"
17056
17056
  }