@instantkom/cli 3.188.0 → 3.190.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.
@@ -3999,10 +3999,10 @@
3999
3999
  "unset.js"
4000
4000
  ]
4001
4001
  },
4002
- "custom-fields:bulk-delete": {
4002
+ "contacts:create": {
4003
4003
  "aliases": [],
4004
4004
  "args": {},
4005
- "description": "Bulk delete custom fields",
4005
+ "description": "Create a contact",
4006
4006
  "flags": {
4007
4007
  "api-key": {
4008
4008
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -4066,18 +4066,40 @@
4066
4066
  "multiple": false,
4067
4067
  "type": "option"
4068
4068
  },
4069
- "ids": {
4070
- "description": "Comma-separated custom field IDs",
4071
- "name": "ids",
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",
4072
4080
  "required": true,
4073
4081
  "hasDynamicHelp": false,
4074
4082
  "multiple": false,
4075
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"
4076
4098
  }
4077
4099
  },
4078
4100
  "hasDynamicHelp": false,
4079
4101
  "hiddenAliases": [],
4080
- "id": "custom-fields:bulk-delete",
4102
+ "id": "contacts:create",
4081
4103
  "pluginAlias": "@instantkom/cli",
4082
4104
  "pluginName": "@instantkom/cli",
4083
4105
  "pluginType": "core",
@@ -4087,14 +4109,20 @@
4087
4109
  "relativePath": [
4088
4110
  "dist",
4089
4111
  "commands",
4090
- "custom-fields",
4091
- "bulk-delete.js"
4112
+ "contacts",
4113
+ "create.js"
4092
4114
  ]
4093
4115
  },
4094
- "custom-fields:create": {
4116
+ "contacts:delete": {
4095
4117
  "aliases": [],
4096
- "args": {},
4097
- "description": "Create a custom field",
4118
+ "args": {
4119
+ "id": {
4120
+ "description": "Contact ID",
4121
+ "name": "id",
4122
+ "required": true
4123
+ }
4124
+ },
4125
+ "description": "Delete a contact",
4098
4126
  "flags": {
4099
4127
  "api-key": {
4100
4128
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -4157,72 +4185,11 @@
4157
4185
  "hasDynamicHelp": false,
4158
4186
  "multiple": false,
4159
4187
  "type": "option"
4160
- },
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",
4172
- "required": true,
4173
- "hasDynamicHelp": false,
4174
- "multiple": false,
4175
- "type": "option"
4176
- },
4177
- "type": {
4178
- "description": "Field type",
4179
- "name": "type",
4180
- "required": true,
4181
- "hasDynamicHelp": false,
4182
- "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
- "type": "option"
4221
4188
  }
4222
4189
  },
4223
4190
  "hasDynamicHelp": false,
4224
4191
  "hiddenAliases": [],
4225
- "id": "custom-fields:create",
4192
+ "id": "contacts:delete",
4226
4193
  "pluginAlias": "@instantkom/cli",
4227
4194
  "pluginName": "@instantkom/cli",
4228
4195
  "pluginType": "core",
@@ -4232,20 +4199,14 @@
4232
4199
  "relativePath": [
4233
4200
  "dist",
4234
4201
  "commands",
4235
- "custom-fields",
4236
- "create.js"
4202
+ "contacts",
4203
+ "delete.js"
4237
4204
  ]
4238
4205
  },
4239
- "custom-fields:delete": {
4206
+ "contacts:export": {
4240
4207
  "aliases": [],
4241
- "args": {
4242
- "id": {
4243
- "description": "custom field ID",
4244
- "name": "id",
4245
- "required": true
4246
- }
4247
- },
4248
- "description": "Delete custom field",
4208
+ "args": {},
4209
+ "description": "Export contacts to CSV",
4249
4210
  "flags": {
4250
4211
  "api-key": {
4251
4212
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -4308,11 +4269,49 @@
4308
4269
  "hasDynamicHelp": false,
4309
4270
  "multiple": false,
4310
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"
4311
4310
  }
4312
4311
  },
4313
4312
  "hasDynamicHelp": false,
4314
4313
  "hiddenAliases": [],
4315
- "id": "custom-fields:delete",
4314
+ "id": "contacts:export",
4316
4315
  "pluginAlias": "@instantkom/cli",
4317
4316
  "pluginName": "@instantkom/cli",
4318
4317
  "pluginType": "core",
@@ -4322,20 +4321,20 @@
4322
4321
  "relativePath": [
4323
4322
  "dist",
4324
4323
  "commands",
4325
- "custom-fields",
4326
- "delete.js"
4324
+ "contacts",
4325
+ "export.js"
4327
4326
  ]
4328
4327
  },
4329
- "custom-fields:get": {
4328
+ "contacts:get": {
4330
4329
  "aliases": [],
4331
4330
  "args": {
4332
4331
  "id": {
4333
- "description": "custom field ID",
4332
+ "description": "Contact ID",
4334
4333
  "name": "id",
4335
4334
  "required": true
4336
4335
  }
4337
4336
  },
4338
- "description": "Get custom field by ID",
4337
+ "description": "Get a contact by ID",
4339
4338
  "flags": {
4340
4339
  "api-key": {
4341
4340
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -4402,7 +4401,7 @@
4402
4401
  },
4403
4402
  "hasDynamicHelp": false,
4404
4403
  "hiddenAliases": [],
4405
- "id": "custom-fields:get",
4404
+ "id": "contacts:get",
4406
4405
  "pluginAlias": "@instantkom/cli",
4407
4406
  "pluginName": "@instantkom/cli",
4408
4407
  "pluginType": "core",
@@ -4412,14 +4411,14 @@
4412
4411
  "relativePath": [
4413
4412
  "dist",
4414
4413
  "commands",
4415
- "custom-fields",
4414
+ "contacts",
4416
4415
  "get.js"
4417
4416
  ]
4418
4417
  },
4419
- "custom-fields:list": {
4418
+ "contacts:import": {
4420
4419
  "aliases": [],
4421
4420
  "args": {},
4422
- "description": "List custom fields",
4421
+ "description": "Import contacts from CSV",
4423
4422
  "flags": {
4424
4423
  "api-key": {
4425
4424
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -4482,11 +4481,27 @@
4482
4481
  "hasDynamicHelp": false,
4483
4482
  "multiple": false,
4484
4483
  "type": "option"
4484
+ },
4485
+ "file": {
4486
+ "description": "CSV file path",
4487
+ "name": "file",
4488
+ "required": true,
4489
+ "hasDynamicHelp": false,
4490
+ "multiple": false,
4491
+ "type": "option"
4492
+ },
4493
+ "channel": {
4494
+ "description": "Channel ID",
4495
+ "name": "channel",
4496
+ "required": true,
4497
+ "hasDynamicHelp": false,
4498
+ "multiple": false,
4499
+ "type": "option"
4485
4500
  }
4486
4501
  },
4487
4502
  "hasDynamicHelp": false,
4488
4503
  "hiddenAliases": [],
4489
- "id": "custom-fields:list",
4504
+ "id": "contacts:import",
4490
4505
  "pluginAlias": "@instantkom/cli",
4491
4506
  "pluginName": "@instantkom/cli",
4492
4507
  "pluginType": "core",
@@ -4496,14 +4511,14 @@
4496
4511
  "relativePath": [
4497
4512
  "dist",
4498
4513
  "commands",
4499
- "custom-fields",
4500
- "list.js"
4514
+ "contacts",
4515
+ "import.js"
4501
4516
  ]
4502
4517
  },
4503
- "custom-fields:reorder": {
4518
+ "contacts:list": {
4504
4519
  "aliases": [],
4505
4520
  "args": {},
4506
- "description": "Reorder custom fields",
4521
+ "description": "List contacts",
4507
4522
  "flags": {
4508
4523
  "api-key": {
4509
4524
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -4567,157 +4582,97 @@
4567
4582
  "multiple": false,
4568
4583
  "type": "option"
4569
4584
  },
4570
- "order": {
4571
- "description": "Order JSON array payload",
4572
- "name": "order",
4573
- "required": true,
4574
- "hasDynamicHelp": false,
4575
- "multiple": false,
4576
- "type": "option"
4577
- }
4578
- },
4579
- "hasDynamicHelp": false,
4580
- "hiddenAliases": [],
4581
- "id": "custom-fields:reorder",
4582
- "pluginAlias": "@instantkom/cli",
4583
- "pluginName": "@instantkom/cli",
4584
- "pluginType": "core",
4585
- "strict": true,
4586
- "enableJsonFlag": false,
4587
- "isESM": true,
4588
- "relativePath": [
4589
- "dist",
4590
- "commands",
4591
- "custom-fields",
4592
- "reorder.js"
4593
- ]
4594
- },
4595
- "custom-fields:update": {
4596
- "aliases": [],
4597
- "args": {
4598
- "id": {
4599
- "description": "Custom field ID",
4600
- "name": "id",
4601
- "required": true
4602
- }
4603
- },
4604
- "description": "Update a custom field",
4605
- "flags": {
4606
- "api-key": {
4607
- "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
4608
- "env": "IKM_API_KEY",
4609
- "helpGroup": "GLOBAL",
4610
- "name": "api-key",
4585
+ "channel": {
4586
+ "description": "Filter by channel ID",
4587
+ "name": "channel",
4611
4588
  "hasDynamicHelp": false,
4612
4589
  "multiple": false,
4613
4590
  "type": "option"
4614
4591
  },
4615
- "format": {
4616
- "description": "Output format: text, json, yaml, or table",
4617
- "helpGroup": "GLOBAL",
4618
- "name": "format",
4619
- "default": "text",
4592
+ "search": {
4593
+ "description": "Search by name or identifier",
4594
+ "name": "search",
4620
4595
  "hasDynamicHelp": false,
4621
4596
  "multiple": false,
4622
- "options": [
4623
- "text",
4624
- "json",
4625
- "yaml",
4626
- "table"
4627
- ],
4628
4597
  "type": "option"
4629
4598
  },
4630
- "json": {
4631
- "description": "Output in JSON format (alias for --format=json)",
4632
- "helpGroup": "GLOBAL",
4633
- "name": "json",
4634
- "allowNo": false,
4635
- "type": "boolean"
4636
- },
4637
- "quiet": {
4638
- "description": "Suppress all output except errors",
4639
- "helpGroup": "GLOBAL",
4640
- "name": "quiet",
4641
- "allowNo": false,
4642
- "type": "boolean"
4643
- },
4644
- "no-color": {
4645
- "description": "Disable color output",
4646
- "helpGroup": "GLOBAL",
4647
- "name": "no-color",
4648
- "allowNo": false,
4649
- "type": "boolean"
4650
- },
4651
- "profile": {
4652
- "description": "Named configuration profile to use",
4653
- "helpGroup": "GLOBAL",
4654
- "name": "profile",
4655
- "default": "default",
4599
+ "page": {
4600
+ "description": "Page number",
4601
+ "name": "page",
4602
+ "default": 1,
4656
4603
  "hasDynamicHelp": false,
4657
4604
  "multiple": false,
4658
4605
  "type": "option"
4659
4606
  },
4660
- "api-url": {
4661
- "description": "Override the API base URL (e.g. for staging)",
4662
- "helpGroup": "GLOBAL",
4663
- "name": "api-url",
4607
+ "limit": {
4608
+ "description": "Items per page",
4609
+ "name": "limit",
4610
+ "default": 20,
4664
4611
  "hasDynamicHelp": false,
4665
4612
  "multiple": false,
4666
4613
  "type": "option"
4667
4614
  },
4668
- "name": {
4669
- "description": "Field name",
4670
- "name": "name",
4615
+ "optin-status": {
4616
+ "description": "Filter by opt-in status",
4617
+ "name": "optin-status",
4671
4618
  "hasDynamicHelp": false,
4672
4619
  "multiple": false,
4620
+ "options": [
4621
+ "0",
4622
+ "1"
4623
+ ],
4673
4624
  "type": "option"
4674
4625
  },
4675
- "type": {
4676
- "description": "Field type",
4677
- "name": "type",
4626
+ "blocked": {
4627
+ "description": "Filter by blocked status: 1 blocked, 0 not blocked",
4628
+ "name": "blocked",
4678
4629
  "hasDynamicHelp": false,
4679
4630
  "multiple": false,
4680
4631
  "options": [
4681
- "text",
4682
- "number",
4683
- "date",
4684
- "dropdown",
4685
- "checkbox",
4686
- "url",
4687
- "email",
4688
- "phone"
4632
+ "0",
4633
+ "1"
4689
4634
  ],
4690
4635
  "type": "option"
4691
4636
  },
4692
- "required": {
4693
- "description": "Field is required",
4694
- "name": "required",
4695
- "allowNo": true,
4696
- "type": "boolean"
4637
+ "segment": {
4638
+ "description": "Filter by segment ID",
4639
+ "name": "segment",
4640
+ "hasDynamicHelp": false,
4641
+ "multiple": false,
4642
+ "type": "option"
4697
4643
  },
4698
- "status": {
4699
- "description": "Field is active",
4700
- "name": "status",
4701
- "allowNo": true,
4702
- "type": "boolean"
4644
+ "tags": {
4645
+ "description": "Comma-separated tag IDs",
4646
+ "name": "tags",
4647
+ "hasDynamicHelp": false,
4648
+ "multiple": false,
4649
+ "type": "option"
4703
4650
  },
4704
- "default": {
4705
- "description": "Default value",
4706
- "name": "default",
4651
+ "tag-match": {
4652
+ "description": "Tag match mode",
4653
+ "name": "tag-match",
4707
4654
  "hasDynamicHelp": false,
4708
4655
  "multiple": false,
4656
+ "options": [
4657
+ "any",
4658
+ "all"
4659
+ ],
4709
4660
  "type": "option"
4710
4661
  },
4711
- "options": {
4712
- "description": "Comma-separated dropdown options",
4713
- "name": "options",
4662
+ "spam": {
4663
+ "description": "Filter by spam status",
4664
+ "name": "spam",
4714
4665
  "hasDynamicHelp": false,
4715
4666
  "multiple": false,
4667
+ "options": [
4668
+ "true",
4669
+ "false"
4670
+ ],
4716
4671
  "type": "option"
4717
4672
  },
4718
- "data": {
4719
- "description": "Additional JSON object payload",
4720
- "name": "data",
4673
+ "trust-level": {
4674
+ "description": "Comma-separated trust levels",
4675
+ "name": "trust-level",
4721
4676
  "hasDynamicHelp": false,
4722
4677
  "multiple": false,
4723
4678
  "type": "option"
@@ -4725,7 +4680,7 @@
4725
4680
  },
4726
4681
  "hasDynamicHelp": false,
4727
4682
  "hiddenAliases": [],
4728
- "id": "custom-fields:update",
4683
+ "id": "contacts:list",
4729
4684
  "pluginAlias": "@instantkom/cli",
4730
4685
  "pluginName": "@instantkom/cli",
4731
4686
  "pluginType": "core",
@@ -4735,14 +4690,20 @@
4735
4690
  "relativePath": [
4736
4691
  "dist",
4737
4692
  "commands",
4738
- "custom-fields",
4739
- "update.js"
4693
+ "contacts",
4694
+ "list.js"
4740
4695
  ]
4741
4696
  },
4742
- "contacts:create": {
4697
+ "contacts:update": {
4743
4698
  "aliases": [],
4744
- "args": {},
4745
- "description": "Create a contact",
4699
+ "args": {
4700
+ "id": {
4701
+ "description": "Contact ID",
4702
+ "name": "id",
4703
+ "required": true
4704
+ }
4705
+ },
4706
+ "description": "Update a contact",
4746
4707
  "flags": {
4747
4708
  "api-key": {
4748
4709
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -4806,18 +4767,9 @@
4806
4767
  "multiple": false,
4807
4768
  "type": "option"
4808
4769
  },
4809
- "channel": {
4810
- "description": "Channel ID",
4811
- "name": "channel",
4812
- "required": true,
4813
- "hasDynamicHelp": false,
4814
- "multiple": false,
4815
- "type": "option"
4816
- },
4817
4770
  "identifier": {
4818
4771
  "description": "Unique contact identifier",
4819
4772
  "name": "identifier",
4820
- "required": true,
4821
4773
  "hasDynamicHelp": false,
4822
4774
  "multiple": false,
4823
4775
  "type": "option"
@@ -4839,7 +4791,7 @@
4839
4791
  },
4840
4792
  "hasDynamicHelp": false,
4841
4793
  "hiddenAliases": [],
4842
- "id": "contacts:create",
4794
+ "id": "contacts:update",
4843
4795
  "pluginAlias": "@instantkom/cli",
4844
4796
  "pluginName": "@instantkom/cli",
4845
4797
  "pluginType": "core",
@@ -4850,19 +4802,13 @@
4850
4802
  "dist",
4851
4803
  "commands",
4852
4804
  "contacts",
4853
- "create.js"
4805
+ "update.js"
4854
4806
  ]
4855
4807
  },
4856
- "contacts:delete": {
4808
+ "custom-fields:bulk-delete": {
4857
4809
  "aliases": [],
4858
- "args": {
4859
- "id": {
4860
- "description": "Contact ID",
4861
- "name": "id",
4862
- "required": true
4863
- }
4864
- },
4865
- "description": "Delete a contact",
4810
+ "args": {},
4811
+ "description": "Bulk delete custom fields",
4866
4812
  "flags": {
4867
4813
  "api-key": {
4868
4814
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -4925,11 +4871,19 @@
4925
4871
  "hasDynamicHelp": false,
4926
4872
  "multiple": false,
4927
4873
  "type": "option"
4874
+ },
4875
+ "ids": {
4876
+ "description": "Comma-separated custom field IDs",
4877
+ "name": "ids",
4878
+ "required": true,
4879
+ "hasDynamicHelp": false,
4880
+ "multiple": false,
4881
+ "type": "option"
4928
4882
  }
4929
4883
  },
4930
4884
  "hasDynamicHelp": false,
4931
4885
  "hiddenAliases": [],
4932
- "id": "contacts:delete",
4886
+ "id": "custom-fields:bulk-delete",
4933
4887
  "pluginAlias": "@instantkom/cli",
4934
4888
  "pluginName": "@instantkom/cli",
4935
4889
  "pluginType": "core",
@@ -4939,14 +4893,14 @@
4939
4893
  "relativePath": [
4940
4894
  "dist",
4941
4895
  "commands",
4942
- "contacts",
4943
- "delete.js"
4896
+ "custom-fields",
4897
+ "bulk-delete.js"
4944
4898
  ]
4945
4899
  },
4946
- "contacts:export": {
4900
+ "custom-fields:create": {
4947
4901
  "aliases": [],
4948
4902
  "args": {},
4949
- "description": "Export contacts to CSV",
4903
+ "description": "Create a custom field",
4950
4904
  "flags": {
4951
4905
  "api-key": {
4952
4906
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -5010,40 +4964,63 @@
5010
4964
  "multiple": false,
5011
4965
  "type": "option"
5012
4966
  },
5013
- "file": {
5014
- "description": "CSV output file path",
5015
- "name": "file",
4967
+ "name": {
4968
+ "description": "Field name",
4969
+ "name": "name",
5016
4970
  "required": true,
5017
4971
  "hasDynamicHelp": false,
5018
4972
  "multiple": false,
5019
4973
  "type": "option"
5020
4974
  },
5021
- "channel": {
5022
- "description": "Filter by channel ID",
5023
- "name": "channel",
4975
+ "key": {
4976
+ "description": "Field key",
4977
+ "name": "key",
4978
+ "required": true,
5024
4979
  "hasDynamicHelp": false,
5025
4980
  "multiple": false,
5026
4981
  "type": "option"
5027
4982
  },
5028
- "search": {
5029
- "description": "Search by name or identifier",
5030
- "name": "search",
4983
+ "type": {
4984
+ "description": "Field type",
4985
+ "name": "type",
4986
+ "required": true,
5031
4987
  "hasDynamicHelp": false,
5032
4988
  "multiple": false,
4989
+ "options": [
4990
+ "text",
4991
+ "number",
4992
+ "date",
4993
+ "dropdown",
4994
+ "checkbox",
4995
+ "url",
4996
+ "email",
4997
+ "phone"
4998
+ ],
5033
4999
  "type": "option"
5034
5000
  },
5035
- "page": {
5036
- "description": "Page number",
5037
- "name": "page",
5038
- "default": 1,
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",
5039
5010
  "hasDynamicHelp": false,
5040
5011
  "multiple": false,
5041
5012
  "type": "option"
5042
5013
  },
5043
- "limit": {
5044
- "description": "Items per page",
5045
- "name": "limit",
5046
- "default": 100,
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",
5047
5024
  "hasDynamicHelp": false,
5048
5025
  "multiple": false,
5049
5026
  "type": "option"
@@ -5051,7 +5028,7 @@
5051
5028
  },
5052
5029
  "hasDynamicHelp": false,
5053
5030
  "hiddenAliases": [],
5054
- "id": "contacts:export",
5031
+ "id": "custom-fields:create",
5055
5032
  "pluginAlias": "@instantkom/cli",
5056
5033
  "pluginName": "@instantkom/cli",
5057
5034
  "pluginType": "core",
@@ -5061,20 +5038,20 @@
5061
5038
  "relativePath": [
5062
5039
  "dist",
5063
5040
  "commands",
5064
- "contacts",
5065
- "export.js"
5041
+ "custom-fields",
5042
+ "create.js"
5066
5043
  ]
5067
5044
  },
5068
- "contacts:get": {
5045
+ "custom-fields:delete": {
5069
5046
  "aliases": [],
5070
5047
  "args": {
5071
5048
  "id": {
5072
- "description": "Contact ID",
5049
+ "description": "custom field ID",
5073
5050
  "name": "id",
5074
5051
  "required": true
5075
5052
  }
5076
5053
  },
5077
- "description": "Get a contact by ID",
5054
+ "description": "Delete custom field",
5078
5055
  "flags": {
5079
5056
  "api-key": {
5080
5057
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -5141,7 +5118,7 @@
5141
5118
  },
5142
5119
  "hasDynamicHelp": false,
5143
5120
  "hiddenAliases": [],
5144
- "id": "contacts:get",
5121
+ "id": "custom-fields:delete",
5145
5122
  "pluginAlias": "@instantkom/cli",
5146
5123
  "pluginName": "@instantkom/cli",
5147
5124
  "pluginType": "core",
@@ -5151,14 +5128,20 @@
5151
5128
  "relativePath": [
5152
5129
  "dist",
5153
5130
  "commands",
5154
- "contacts",
5155
- "get.js"
5131
+ "custom-fields",
5132
+ "delete.js"
5156
5133
  ]
5157
5134
  },
5158
- "contacts:import": {
5135
+ "custom-fields:get": {
5159
5136
  "aliases": [],
5160
- "args": {},
5161
- "description": "Import contacts from CSV",
5137
+ "args": {
5138
+ "id": {
5139
+ "description": "custom field ID",
5140
+ "name": "id",
5141
+ "required": true
5142
+ }
5143
+ },
5144
+ "description": "Get custom field by ID",
5162
5145
  "flags": {
5163
5146
  "api-key": {
5164
5147
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -5221,27 +5204,11 @@
5221
5204
  "hasDynamicHelp": false,
5222
5205
  "multiple": false,
5223
5206
  "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
5207
  }
5241
5208
  },
5242
5209
  "hasDynamicHelp": false,
5243
5210
  "hiddenAliases": [],
5244
- "id": "contacts:import",
5211
+ "id": "custom-fields:get",
5245
5212
  "pluginAlias": "@instantkom/cli",
5246
5213
  "pluginName": "@instantkom/cli",
5247
5214
  "pluginType": "core",
@@ -5251,14 +5218,14 @@
5251
5218
  "relativePath": [
5252
5219
  "dist",
5253
5220
  "commands",
5254
- "contacts",
5255
- "import.js"
5221
+ "custom-fields",
5222
+ "get.js"
5256
5223
  ]
5257
5224
  },
5258
- "contacts:list": {
5225
+ "custom-fields:list": {
5259
5226
  "aliases": [],
5260
5227
  "args": {},
5261
- "description": "List contacts",
5228
+ "description": "List custom fields",
5262
5229
  "flags": {
5263
5230
  "api-key": {
5264
5231
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -5321,98 +5288,95 @@
5321
5288
  "hasDynamicHelp": false,
5322
5289
  "multiple": false,
5323
5290
  "type": "option"
5324
- },
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,
5291
+ }
5292
+ },
5293
+ "hasDynamicHelp": false,
5294
+ "hiddenAliases": [],
5295
+ "id": "custom-fields:list",
5296
+ "pluginAlias": "@instantkom/cli",
5297
+ "pluginName": "@instantkom/cli",
5298
+ "pluginType": "core",
5299
+ "strict": true,
5300
+ "enableJsonFlag": false,
5301
+ "isESM": true,
5302
+ "relativePath": [
5303
+ "dist",
5304
+ "commands",
5305
+ "custom-fields",
5306
+ "list.js"
5307
+ ]
5308
+ },
5309
+ "custom-fields:reorder": {
5310
+ "aliases": [],
5311
+ "args": {},
5312
+ "description": "Reorder custom fields",
5313
+ "flags": {
5314
+ "api-key": {
5315
+ "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
5316
+ "env": "IKM_API_KEY",
5317
+ "helpGroup": "GLOBAL",
5318
+ "name": "api-key",
5351
5319
  "hasDynamicHelp": false,
5352
5320
  "multiple": false,
5353
5321
  "type": "option"
5354
5322
  },
5355
- "optin-status": {
5356
- "description": "Filter by opt-in status",
5357
- "name": "optin-status",
5323
+ "format": {
5324
+ "description": "Output format: text, json, yaml, or table",
5325
+ "helpGroup": "GLOBAL",
5326
+ "name": "format",
5327
+ "default": "text",
5358
5328
  "hasDynamicHelp": false,
5359
5329
  "multiple": false,
5360
5330
  "options": [
5361
- "0",
5362
- "1"
5331
+ "text",
5332
+ "json",
5333
+ "yaml",
5334
+ "table"
5363
5335
  ],
5364
5336
  "type": "option"
5365
5337
  },
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"
5338
+ "json": {
5339
+ "description": "Output in JSON format (alias for --format=json)",
5340
+ "helpGroup": "GLOBAL",
5341
+ "name": "json",
5342
+ "allowNo": false,
5343
+ "type": "boolean"
5376
5344
  },
5377
- "segment": {
5378
- "description": "Filter by segment ID",
5379
- "name": "segment",
5380
- "hasDynamicHelp": false,
5381
- "multiple": false,
5382
- "type": "option"
5345
+ "quiet": {
5346
+ "description": "Suppress all output except errors",
5347
+ "helpGroup": "GLOBAL",
5348
+ "name": "quiet",
5349
+ "allowNo": false,
5350
+ "type": "boolean"
5383
5351
  },
5384
- "tags": {
5385
- "description": "Comma-separated tag IDs",
5386
- "name": "tags",
5387
- "hasDynamicHelp": false,
5388
- "multiple": false,
5389
- "type": "option"
5352
+ "no-color": {
5353
+ "description": "Disable color output",
5354
+ "helpGroup": "GLOBAL",
5355
+ "name": "no-color",
5356
+ "allowNo": false,
5357
+ "type": "boolean"
5390
5358
  },
5391
- "tag-match": {
5392
- "description": "Tag match mode",
5393
- "name": "tag-match",
5359
+ "profile": {
5360
+ "description": "Named configuration profile to use",
5361
+ "helpGroup": "GLOBAL",
5362
+ "name": "profile",
5363
+ "default": "default",
5394
5364
  "hasDynamicHelp": false,
5395
5365
  "multiple": false,
5396
- "options": [
5397
- "any",
5398
- "all"
5399
- ],
5400
5366
  "type": "option"
5401
5367
  },
5402
- "spam": {
5403
- "description": "Filter by spam status",
5404
- "name": "spam",
5368
+ "api-url": {
5369
+ "description": "Override the API base URL (e.g. for staging)",
5370
+ "helpGroup": "GLOBAL",
5371
+ "name": "api-url",
5405
5372
  "hasDynamicHelp": false,
5406
5373
  "multiple": false,
5407
- "options": [
5408
- "true",
5409
- "false"
5410
- ],
5411
5374
  "type": "option"
5412
5375
  },
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
  },
@@ -12046,16 +12046,16 @@
12046
12046
  "update.js"
12047
12047
  ]
12048
12048
  },
12049
- "bots:filters:create": {
12049
+ "bots:env-vars:bots": {
12050
12050
  "aliases": [],
12051
12051
  "args": {
12052
- "botId": {
12053
- "description": "Bot ID",
12054
- "name": "botId",
12052
+ "id": {
12053
+ "description": "Environment variable ID",
12054
+ "name": "id",
12055
12055
  "required": true
12056
12056
  }
12057
12057
  },
12058
- "description": "Create a bot filter",
12058
+ "description": "List bots using a bot environment variable",
12059
12059
  "flags": {
12060
12060
  "api-key": {
12061
12061
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -12118,64 +12118,112 @@
12118
12118
  "hasDynamicHelp": false,
12119
12119
  "multiple": false,
12120
12120
  "type": "option"
12121
- },
12122
- "name": {
12123
- "description": "Filter name",
12124
- "name": "name",
12125
- "required": true,
12121
+ }
12122
+ },
12123
+ "hasDynamicHelp": false,
12124
+ "hiddenAliases": [],
12125
+ "id": "bots:env-vars:bots",
12126
+ "pluginAlias": "@instantkom/cli",
12127
+ "pluginName": "@instantkom/cli",
12128
+ "pluginType": "core",
12129
+ "strict": true,
12130
+ "enableJsonFlag": false,
12131
+ "isESM": true,
12132
+ "relativePath": [
12133
+ "dist",
12134
+ "commands",
12135
+ "bots",
12136
+ "env-vars",
12137
+ "bots.js"
12138
+ ]
12139
+ },
12140
+ "bots:env-vars:create": {
12141
+ "aliases": [],
12142
+ "args": {},
12143
+ "description": "Create a bot environment variable",
12144
+ "flags": {
12145
+ "api-key": {
12146
+ "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
12147
+ "env": "IKM_API_KEY",
12148
+ "helpGroup": "GLOBAL",
12149
+ "name": "api-key",
12126
12150
  "hasDynamicHelp": false,
12127
12151
  "multiple": false,
12128
12152
  "type": "option"
12129
12153
  },
12130
- "operator": {
12131
- "description": "Logical operator",
12132
- "name": "operator",
12133
- "default": "and",
12154
+ "format": {
12155
+ "description": "Output format: text, json, yaml, or table",
12156
+ "helpGroup": "GLOBAL",
12157
+ "name": "format",
12158
+ "default": "text",
12134
12159
  "hasDynamicHelp": false,
12135
12160
  "multiple": false,
12161
+ "options": [
12162
+ "text",
12163
+ "json",
12164
+ "yaml",
12165
+ "table"
12166
+ ],
12136
12167
  "type": "option"
12137
12168
  },
12138
- "filter-object": {
12139
- "description": "Filter object type",
12140
- "name": "filter-object",
12141
- "default": "msg",
12169
+ "json": {
12170
+ "description": "Output in JSON format (alias for --format=json)",
12171
+ "helpGroup": "GLOBAL",
12172
+ "name": "json",
12173
+ "allowNo": false,
12174
+ "type": "boolean"
12175
+ },
12176
+ "quiet": {
12177
+ "description": "Suppress all output except errors",
12178
+ "helpGroup": "GLOBAL",
12179
+ "name": "quiet",
12180
+ "allowNo": false,
12181
+ "type": "boolean"
12182
+ },
12183
+ "no-color": {
12184
+ "description": "Disable color output",
12185
+ "helpGroup": "GLOBAL",
12186
+ "name": "no-color",
12187
+ "allowNo": false,
12188
+ "type": "boolean"
12189
+ },
12190
+ "profile": {
12191
+ "description": "Named configuration profile to use",
12192
+ "helpGroup": "GLOBAL",
12193
+ "name": "profile",
12194
+ "default": "default",
12142
12195
  "hasDynamicHelp": false,
12143
12196
  "multiple": false,
12144
12197
  "type": "option"
12145
12198
  },
12146
- "filter-attribute": {
12147
- "description": "Filter attribute",
12148
- "name": "filter-attribute",
12149
- "default": "text",
12199
+ "api-url": {
12200
+ "description": "Override the API base URL (e.g. for staging)",
12201
+ "helpGroup": "GLOBAL",
12202
+ "name": "api-url",
12150
12203
  "hasDynamicHelp": false,
12151
12204
  "multiple": false,
12152
12205
  "type": "option"
12153
- },
12154
- "filter-comparator": {
12155
- "description": "Filter comparator",
12156
- "name": "filter-comparator",
12157
- "default": "contains",
12206
+ },
12207
+ "key": {
12208
+ "description": "Variable key (max 16 chars, letters, digits, underscore)",
12209
+ "name": "key",
12210
+ "required": true,
12158
12211
  "hasDynamicHelp": false,
12159
12212
  "multiple": false,
12160
12213
  "type": "option"
12161
12214
  },
12162
- "filter-value": {
12163
- "description": "Filter value",
12164
- "name": "filter-value",
12165
- "required": true,
12215
+ "description": {
12216
+ "description": "Variable description",
12217
+ "name": "description",
12166
12218
  "hasDynamicHelp": false,
12167
12219
  "multiple": false,
12168
12220
  "type": "option"
12169
12221
  },
12170
- "status": {
12171
- "description": "Status: 0 inactive, 1 active",
12172
- "name": "status",
12222
+ "color": {
12223
+ "description": "Variable color as HEX",
12224
+ "name": "color",
12173
12225
  "hasDynamicHelp": false,
12174
12226
  "multiple": false,
12175
- "options": [
12176
- "0",
12177
- "1"
12178
- ],
12179
12227
  "type": "option"
12180
12228
  },
12181
12229
  "data": {
@@ -12188,7 +12236,7 @@
12188
12236
  },
12189
12237
  "hasDynamicHelp": false,
12190
12238
  "hiddenAliases": [],
12191
- "id": "bots:filters:create",
12239
+ "id": "bots:env-vars:create",
12192
12240
  "pluginAlias": "@instantkom/cli",
12193
12241
  "pluginName": "@instantkom/cli",
12194
12242
  "pluginType": "core",
@@ -12199,25 +12247,20 @@
12199
12247
  "dist",
12200
12248
  "commands",
12201
12249
  "bots",
12202
- "filters",
12250
+ "env-vars",
12203
12251
  "create.js"
12204
12252
  ]
12205
12253
  },
12206
- "bots:filters:delete": {
12254
+ "bots:env-vars:delete": {
12207
12255
  "aliases": [],
12208
12256
  "args": {
12209
- "botId": {
12210
- "description": "Bot ID",
12211
- "name": "botId",
12212
- "required": true
12213
- },
12214
- "filterId": {
12215
- "description": "Filter ID",
12216
- "name": "filterId",
12257
+ "id": {
12258
+ "description": "Environment variable ID",
12259
+ "name": "id",
12217
12260
  "required": true
12218
12261
  }
12219
12262
  },
12220
- "description": "Delete a bot filter",
12263
+ "description": "Delete a bot environment variable",
12221
12264
  "flags": {
12222
12265
  "api-key": {
12223
12266
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -12284,7 +12327,7 @@
12284
12327
  },
12285
12328
  "hasDynamicHelp": false,
12286
12329
  "hiddenAliases": [],
12287
- "id": "bots:filters:delete",
12330
+ "id": "bots:env-vars:delete",
12288
12331
  "pluginAlias": "@instantkom/cli",
12289
12332
  "pluginName": "@instantkom/cli",
12290
12333
  "pluginType": "core",
@@ -12295,25 +12338,20 @@
12295
12338
  "dist",
12296
12339
  "commands",
12297
12340
  "bots",
12298
- "filters",
12341
+ "env-vars",
12299
12342
  "delete.js"
12300
12343
  ]
12301
12344
  },
12302
- "bots:filters:get": {
12345
+ "bots:env-vars:get": {
12303
12346
  "aliases": [],
12304
12347
  "args": {
12305
- "botId": {
12306
- "description": "Bot ID",
12307
- "name": "botId",
12308
- "required": true
12309
- },
12310
- "filterId": {
12311
- "description": "Filter ID",
12312
- "name": "filterId",
12348
+ "id": {
12349
+ "description": "Environment variable ID",
12350
+ "name": "id",
12313
12351
  "required": true
12314
12352
  }
12315
12353
  },
12316
- "description": "Get a bot filter",
12354
+ "description": "Get a bot environment variable",
12317
12355
  "flags": {
12318
12356
  "api-key": {
12319
12357
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -12380,7 +12418,7 @@
12380
12418
  },
12381
12419
  "hasDynamicHelp": false,
12382
12420
  "hiddenAliases": [],
12383
- "id": "bots:filters:get",
12421
+ "id": "bots:env-vars:get",
12384
12422
  "pluginAlias": "@instantkom/cli",
12385
12423
  "pluginName": "@instantkom/cli",
12386
12424
  "pluginType": "core",
@@ -12391,20 +12429,14 @@
12391
12429
  "dist",
12392
12430
  "commands",
12393
12431
  "bots",
12394
- "filters",
12432
+ "env-vars",
12395
12433
  "get.js"
12396
12434
  ]
12397
12435
  },
12398
- "bots:filters:list": {
12436
+ "bots:env-vars:list": {
12399
12437
  "aliases": [],
12400
- "args": {
12401
- "botId": {
12402
- "description": "Bot ID",
12403
- "name": "botId",
12404
- "required": true
12405
- }
12406
- },
12407
- "description": "List bot filters",
12438
+ "args": {},
12439
+ "description": "List bot environment variables",
12408
12440
  "flags": {
12409
12441
  "api-key": {
12410
12442
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -12484,20 +12516,16 @@
12484
12516
  "multiple": false,
12485
12517
  "type": "option"
12486
12518
  },
12487
- "status": {
12488
- "description": "Status filter: 0 inactive, 1 active",
12489
- "name": "status",
12519
+ "search": {
12520
+ "description": "Search in key or description",
12521
+ "name": "search",
12490
12522
  "hasDynamicHelp": false,
12491
12523
  "multiple": false,
12492
- "options": [
12493
- "0",
12494
- "1"
12495
- ],
12496
12524
  "type": "option"
12497
12525
  },
12498
- "search": {
12499
- "description": "Search in name or description",
12500
- "name": "search",
12526
+ "color": {
12527
+ "description": "Filter by color",
12528
+ "name": "color",
12501
12529
  "hasDynamicHelp": false,
12502
12530
  "multiple": false,
12503
12531
  "type": "option"
@@ -12505,7 +12533,7 @@
12505
12533
  },
12506
12534
  "hasDynamicHelp": false,
12507
12535
  "hiddenAliases": [],
12508
- "id": "bots:filters:list",
12536
+ "id": "bots:env-vars:list",
12509
12537
  "pluginAlias": "@instantkom/cli",
12510
12538
  "pluginName": "@instantkom/cli",
12511
12539
  "pluginType": "core",
@@ -12516,25 +12544,20 @@
12516
12544
  "dist",
12517
12545
  "commands",
12518
12546
  "bots",
12519
- "filters",
12547
+ "env-vars",
12520
12548
  "list.js"
12521
12549
  ]
12522
12550
  },
12523
- "bots:filters:update": {
12551
+ "bots:env-vars:update": {
12524
12552
  "aliases": [],
12525
12553
  "args": {
12526
- "botId": {
12527
- "description": "Bot ID",
12528
- "name": "botId",
12529
- "required": true
12530
- },
12531
- "filterId": {
12532
- "description": "Filter ID",
12533
- "name": "filterId",
12554
+ "id": {
12555
+ "description": "Environment variable ID",
12556
+ "name": "id",
12534
12557
  "required": true
12535
12558
  }
12536
12559
  },
12537
- "description": "Update a bot filter",
12560
+ "description": "Update a bot environment variable",
12538
12561
  "flags": {
12539
12562
  "api-key": {
12540
12563
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -12598,57 +12621,18 @@
12598
12621
  "multiple": false,
12599
12622
  "type": "option"
12600
12623
  },
12601
- "name": {
12602
- "description": "Filter name",
12603
- "name": "name",
12604
- "hasDynamicHelp": false,
12605
- "multiple": false,
12606
- "type": "option"
12607
- },
12608
- "operator": {
12609
- "description": "Logical operator",
12610
- "name": "operator",
12611
- "hasDynamicHelp": false,
12612
- "multiple": false,
12613
- "type": "option"
12614
- },
12615
- "filter-object": {
12616
- "description": "Filter object type",
12617
- "name": "filter-object",
12618
- "hasDynamicHelp": false,
12619
- "multiple": false,
12620
- "type": "option"
12621
- },
12622
- "filter-attribute": {
12623
- "description": "Filter attribute",
12624
- "name": "filter-attribute",
12625
- "hasDynamicHelp": false,
12626
- "multiple": false,
12627
- "type": "option"
12628
- },
12629
- "filter-comparator": {
12630
- "description": "Filter comparator",
12631
- "name": "filter-comparator",
12632
- "hasDynamicHelp": false,
12633
- "multiple": false,
12634
- "type": "option"
12635
- },
12636
- "filter-value": {
12637
- "description": "Filter value",
12638
- "name": "filter-value",
12624
+ "description": {
12625
+ "description": "Variable description",
12626
+ "name": "description",
12639
12627
  "hasDynamicHelp": false,
12640
12628
  "multiple": false,
12641
12629
  "type": "option"
12642
12630
  },
12643
- "status": {
12644
- "description": "Status: 0 inactive, 1 active",
12645
- "name": "status",
12631
+ "color": {
12632
+ "description": "Variable color as HEX",
12633
+ "name": "color",
12646
12634
  "hasDynamicHelp": false,
12647
12635
  "multiple": false,
12648
- "options": [
12649
- "0",
12650
- "1"
12651
- ],
12652
12636
  "type": "option"
12653
12637
  },
12654
12638
  "data": {
@@ -12661,7 +12645,7 @@
12661
12645
  },
12662
12646
  "hasDynamicHelp": false,
12663
12647
  "hiddenAliases": [],
12664
- "id": "bots:filters:update",
12648
+ "id": "bots:env-vars:update",
12665
12649
  "pluginAlias": "@instantkom/cli",
12666
12650
  "pluginName": "@instantkom/cli",
12667
12651
  "pluginType": "core",
@@ -12672,11 +12656,11 @@
12672
12656
  "dist",
12673
12657
  "commands",
12674
12658
  "bots",
12675
- "filters",
12659
+ "env-vars",
12676
12660
  "update.js"
12677
12661
  ]
12678
12662
  },
12679
- "bots:env-vars:bots": {
12663
+ "bots:env-vars:values": {
12680
12664
  "aliases": [],
12681
12665
  "args": {
12682
12666
  "id": {
@@ -12685,7 +12669,7 @@
12685
12669
  "required": true
12686
12670
  }
12687
12671
  },
12688
- "description": "List bots using a bot environment variable",
12672
+ "description": "List recipient values for a bot environment variable",
12689
12673
  "flags": {
12690
12674
  "api-key": {
12691
12675
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -12748,11 +12732,41 @@
12748
12732
  "hasDynamicHelp": false,
12749
12733
  "multiple": false,
12750
12734
  "type": "option"
12735
+ },
12736
+ "page": {
12737
+ "description": "Page number",
12738
+ "name": "page",
12739
+ "default": 1,
12740
+ "hasDynamicHelp": false,
12741
+ "multiple": false,
12742
+ "type": "option"
12743
+ },
12744
+ "limit": {
12745
+ "description": "Items per page",
12746
+ "name": "limit",
12747
+ "default": 20,
12748
+ "hasDynamicHelp": false,
12749
+ "multiple": false,
12750
+ "type": "option"
12751
+ },
12752
+ "search": {
12753
+ "description": "Search in recipient name or identifier",
12754
+ "name": "search",
12755
+ "hasDynamicHelp": false,
12756
+ "multiple": false,
12757
+ "type": "option"
12758
+ },
12759
+ "recipient": {
12760
+ "description": "Filter by recipient ID",
12761
+ "name": "recipient",
12762
+ "hasDynamicHelp": false,
12763
+ "multiple": false,
12764
+ "type": "option"
12751
12765
  }
12752
12766
  },
12753
12767
  "hasDynamicHelp": false,
12754
12768
  "hiddenAliases": [],
12755
- "id": "bots:env-vars:bots",
12769
+ "id": "bots:env-vars:values",
12756
12770
  "pluginAlias": "@instantkom/cli",
12757
12771
  "pluginName": "@instantkom/cli",
12758
12772
  "pluginType": "core",
@@ -12764,13 +12778,19 @@
12764
12778
  "commands",
12765
12779
  "bots",
12766
12780
  "env-vars",
12767
- "bots.js"
12781
+ "values.js"
12768
12782
  ]
12769
12783
  },
12770
- "bots:env-vars:create": {
12784
+ "bots:filters:create": {
12771
12785
  "aliases": [],
12772
- "args": {},
12773
- "description": "Create a bot environment variable",
12786
+ "args": {
12787
+ "botId": {
12788
+ "description": "Bot ID",
12789
+ "name": "botId",
12790
+ "required": true
12791
+ }
12792
+ },
12793
+ "description": "Create a bot filter",
12774
12794
  "flags": {
12775
12795
  "api-key": {
12776
12796
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -12834,26 +12854,63 @@
12834
12854
  "multiple": false,
12835
12855
  "type": "option"
12836
12856
  },
12837
- "key": {
12838
- "description": "Variable key (max 16 chars, letters, digits, underscore)",
12839
- "name": "key",
12857
+ "name": {
12858
+ "description": "Filter name",
12859
+ "name": "name",
12860
+ "required": true,
12861
+ "hasDynamicHelp": false,
12862
+ "multiple": false,
12863
+ "type": "option"
12864
+ },
12865
+ "operator": {
12866
+ "description": "Logical operator",
12867
+ "name": "operator",
12868
+ "default": "and",
12869
+ "hasDynamicHelp": false,
12870
+ "multiple": false,
12871
+ "type": "option"
12872
+ },
12873
+ "filter-object": {
12874
+ "description": "Filter object type",
12875
+ "name": "filter-object",
12876
+ "default": "msg",
12877
+ "hasDynamicHelp": false,
12878
+ "multiple": false,
12879
+ "type": "option"
12880
+ },
12881
+ "filter-attribute": {
12882
+ "description": "Filter attribute",
12883
+ "name": "filter-attribute",
12884
+ "default": "text",
12885
+ "hasDynamicHelp": false,
12886
+ "multiple": false,
12887
+ "type": "option"
12888
+ },
12889
+ "filter-comparator": {
12890
+ "description": "Filter comparator",
12891
+ "name": "filter-comparator",
12892
+ "default": "contains",
12893
+ "hasDynamicHelp": false,
12894
+ "multiple": false,
12895
+ "type": "option"
12896
+ },
12897
+ "filter-value": {
12898
+ "description": "Filter value",
12899
+ "name": "filter-value",
12840
12900
  "required": true,
12841
12901
  "hasDynamicHelp": false,
12842
12902
  "multiple": false,
12843
12903
  "type": "option"
12844
12904
  },
12845
- "description": {
12846
- "description": "Variable description",
12847
- "name": "description",
12848
- "hasDynamicHelp": false,
12849
- "multiple": false,
12850
- "type": "option"
12851
- },
12852
- "color": {
12853
- "description": "Variable color as HEX",
12854
- "name": "color",
12905
+ "status": {
12906
+ "description": "Status: 0 inactive, 1 active",
12907
+ "name": "status",
12855
12908
  "hasDynamicHelp": false,
12856
12909
  "multiple": false,
12910
+ "options": [
12911
+ "0",
12912
+ "1"
12913
+ ],
12857
12914
  "type": "option"
12858
12915
  },
12859
12916
  "data": {
@@ -12866,7 +12923,7 @@
12866
12923
  },
12867
12924
  "hasDynamicHelp": false,
12868
12925
  "hiddenAliases": [],
12869
- "id": "bots:env-vars:create",
12926
+ "id": "bots:filters:create",
12870
12927
  "pluginAlias": "@instantkom/cli",
12871
12928
  "pluginName": "@instantkom/cli",
12872
12929
  "pluginType": "core",
@@ -12877,20 +12934,25 @@
12877
12934
  "dist",
12878
12935
  "commands",
12879
12936
  "bots",
12880
- "env-vars",
12937
+ "filters",
12881
12938
  "create.js"
12882
12939
  ]
12883
12940
  },
12884
- "bots:env-vars:delete": {
12941
+ "bots:filters:delete": {
12885
12942
  "aliases": [],
12886
12943
  "args": {
12887
- "id": {
12888
- "description": "Environment variable ID",
12889
- "name": "id",
12944
+ "botId": {
12945
+ "description": "Bot ID",
12946
+ "name": "botId",
12947
+ "required": true
12948
+ },
12949
+ "filterId": {
12950
+ "description": "Filter ID",
12951
+ "name": "filterId",
12890
12952
  "required": true
12891
12953
  }
12892
12954
  },
12893
- "description": "Delete a bot environment variable",
12955
+ "description": "Delete a bot filter",
12894
12956
  "flags": {
12895
12957
  "api-key": {
12896
12958
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -12957,7 +13019,7 @@
12957
13019
  },
12958
13020
  "hasDynamicHelp": false,
12959
13021
  "hiddenAliases": [],
12960
- "id": "bots:env-vars:delete",
13022
+ "id": "bots:filters:delete",
12961
13023
  "pluginAlias": "@instantkom/cli",
12962
13024
  "pluginName": "@instantkom/cli",
12963
13025
  "pluginType": "core",
@@ -12968,20 +13030,25 @@
12968
13030
  "dist",
12969
13031
  "commands",
12970
13032
  "bots",
12971
- "env-vars",
13033
+ "filters",
12972
13034
  "delete.js"
12973
13035
  ]
12974
13036
  },
12975
- "bots:env-vars:get": {
13037
+ "bots:filters:get": {
12976
13038
  "aliases": [],
12977
13039
  "args": {
12978
- "id": {
12979
- "description": "Environment variable ID",
12980
- "name": "id",
13040
+ "botId": {
13041
+ "description": "Bot ID",
13042
+ "name": "botId",
13043
+ "required": true
13044
+ },
13045
+ "filterId": {
13046
+ "description": "Filter ID",
13047
+ "name": "filterId",
12981
13048
  "required": true
12982
13049
  }
12983
13050
  },
12984
- "description": "Get a bot environment variable",
13051
+ "description": "Get a bot filter",
12985
13052
  "flags": {
12986
13053
  "api-key": {
12987
13054
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -13048,7 +13115,7 @@
13048
13115
  },
13049
13116
  "hasDynamicHelp": false,
13050
13117
  "hiddenAliases": [],
13051
- "id": "bots:env-vars:get",
13118
+ "id": "bots:filters:get",
13052
13119
  "pluginAlias": "@instantkom/cli",
13053
13120
  "pluginName": "@instantkom/cli",
13054
13121
  "pluginType": "core",
@@ -13059,14 +13126,20 @@
13059
13126
  "dist",
13060
13127
  "commands",
13061
13128
  "bots",
13062
- "env-vars",
13129
+ "filters",
13063
13130
  "get.js"
13064
13131
  ]
13065
13132
  },
13066
- "bots:env-vars:list": {
13133
+ "bots:filters:list": {
13067
13134
  "aliases": [],
13068
- "args": {},
13069
- "description": "List bot environment variables",
13135
+ "args": {
13136
+ "botId": {
13137
+ "description": "Bot ID",
13138
+ "name": "botId",
13139
+ "required": true
13140
+ }
13141
+ },
13142
+ "description": "List bot filters",
13070
13143
  "flags": {
13071
13144
  "api-key": {
13072
13145
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -13146,16 +13219,20 @@
13146
13219
  "multiple": false,
13147
13220
  "type": "option"
13148
13221
  },
13149
- "search": {
13150
- "description": "Search in key or description",
13151
- "name": "search",
13222
+ "status": {
13223
+ "description": "Status filter: 0 inactive, 1 active",
13224
+ "name": "status",
13152
13225
  "hasDynamicHelp": false,
13153
13226
  "multiple": false,
13227
+ "options": [
13228
+ "0",
13229
+ "1"
13230
+ ],
13154
13231
  "type": "option"
13155
13232
  },
13156
- "color": {
13157
- "description": "Filter by color",
13158
- "name": "color",
13233
+ "search": {
13234
+ "description": "Search in name or description",
13235
+ "name": "search",
13159
13236
  "hasDynamicHelp": false,
13160
13237
  "multiple": false,
13161
13238
  "type": "option"
@@ -13163,7 +13240,7 @@
13163
13240
  },
13164
13241
  "hasDynamicHelp": false,
13165
13242
  "hiddenAliases": [],
13166
- "id": "bots:env-vars:list",
13243
+ "id": "bots:filters:list",
13167
13244
  "pluginAlias": "@instantkom/cli",
13168
13245
  "pluginName": "@instantkom/cli",
13169
13246
  "pluginType": "core",
@@ -13174,20 +13251,25 @@
13174
13251
  "dist",
13175
13252
  "commands",
13176
13253
  "bots",
13177
- "env-vars",
13254
+ "filters",
13178
13255
  "list.js"
13179
13256
  ]
13180
13257
  },
13181
- "bots:env-vars:update": {
13258
+ "bots:filters:update": {
13182
13259
  "aliases": [],
13183
13260
  "args": {
13184
- "id": {
13185
- "description": "Environment variable ID",
13186
- "name": "id",
13261
+ "botId": {
13262
+ "description": "Bot ID",
13263
+ "name": "botId",
13264
+ "required": true
13265
+ },
13266
+ "filterId": {
13267
+ "description": "Filter ID",
13268
+ "name": "filterId",
13187
13269
  "required": true
13188
13270
  }
13189
13271
  },
13190
- "description": "Update a bot environment variable",
13272
+ "description": "Update a bot filter",
13191
13273
  "flags": {
13192
13274
  "api-key": {
13193
13275
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -13251,144 +13333,62 @@
13251
13333
  "multiple": false,
13252
13334
  "type": "option"
13253
13335
  },
13254
- "description": {
13255
- "description": "Variable description",
13256
- "name": "description",
13257
- "hasDynamicHelp": false,
13258
- "multiple": false,
13259
- "type": "option"
13260
- },
13261
- "color": {
13262
- "description": "Variable color as HEX",
13263
- "name": "color",
13264
- "hasDynamicHelp": false,
13265
- "multiple": false,
13266
- "type": "option"
13267
- },
13268
- "data": {
13269
- "description": "Additional JSON object payload",
13270
- "name": "data",
13271
- "hasDynamicHelp": false,
13272
- "multiple": false,
13273
- "type": "option"
13274
- }
13275
- },
13276
- "hasDynamicHelp": false,
13277
- "hiddenAliases": [],
13278
- "id": "bots:env-vars:update",
13279
- "pluginAlias": "@instantkom/cli",
13280
- "pluginName": "@instantkom/cli",
13281
- "pluginType": "core",
13282
- "strict": true,
13283
- "enableJsonFlag": false,
13284
- "isESM": true,
13285
- "relativePath": [
13286
- "dist",
13287
- "commands",
13288
- "bots",
13289
- "env-vars",
13290
- "update.js"
13291
- ]
13292
- },
13293
- "bots:env-vars:values": {
13294
- "aliases": [],
13295
- "args": {
13296
- "id": {
13297
- "description": "Environment variable ID",
13298
- "name": "id",
13299
- "required": true
13300
- }
13301
- },
13302
- "description": "List recipient values for a bot environment variable",
13303
- "flags": {
13304
- "api-key": {
13305
- "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
13306
- "env": "IKM_API_KEY",
13307
- "helpGroup": "GLOBAL",
13308
- "name": "api-key",
13336
+ "name": {
13337
+ "description": "Filter name",
13338
+ "name": "name",
13309
13339
  "hasDynamicHelp": false,
13310
13340
  "multiple": false,
13311
13341
  "type": "option"
13312
13342
  },
13313
- "format": {
13314
- "description": "Output format: text, json, yaml, or table",
13315
- "helpGroup": "GLOBAL",
13316
- "name": "format",
13317
- "default": "text",
13343
+ "operator": {
13344
+ "description": "Logical operator",
13345
+ "name": "operator",
13318
13346
  "hasDynamicHelp": false,
13319
13347
  "multiple": false,
13320
- "options": [
13321
- "text",
13322
- "json",
13323
- "yaml",
13324
- "table"
13325
- ],
13326
13348
  "type": "option"
13327
13349
  },
13328
- "json": {
13329
- "description": "Output in JSON format (alias for --format=json)",
13330
- "helpGroup": "GLOBAL",
13331
- "name": "json",
13332
- "allowNo": false,
13333
- "type": "boolean"
13334
- },
13335
- "quiet": {
13336
- "description": "Suppress all output except errors",
13337
- "helpGroup": "GLOBAL",
13338
- "name": "quiet",
13339
- "allowNo": false,
13340
- "type": "boolean"
13341
- },
13342
- "no-color": {
13343
- "description": "Disable color output",
13344
- "helpGroup": "GLOBAL",
13345
- "name": "no-color",
13346
- "allowNo": false,
13347
- "type": "boolean"
13348
- },
13349
- "profile": {
13350
- "description": "Named configuration profile to use",
13351
- "helpGroup": "GLOBAL",
13352
- "name": "profile",
13353
- "default": "default",
13350
+ "filter-object": {
13351
+ "description": "Filter object type",
13352
+ "name": "filter-object",
13354
13353
  "hasDynamicHelp": false,
13355
13354
  "multiple": false,
13356
13355
  "type": "option"
13357
13356
  },
13358
- "api-url": {
13359
- "description": "Override the API base URL (e.g. for staging)",
13360
- "helpGroup": "GLOBAL",
13361
- "name": "api-url",
13357
+ "filter-attribute": {
13358
+ "description": "Filter attribute",
13359
+ "name": "filter-attribute",
13362
13360
  "hasDynamicHelp": false,
13363
13361
  "multiple": false,
13364
13362
  "type": "option"
13365
13363
  },
13366
- "page": {
13367
- "description": "Page number",
13368
- "name": "page",
13369
- "default": 1,
13364
+ "filter-comparator": {
13365
+ "description": "Filter comparator",
13366
+ "name": "filter-comparator",
13370
13367
  "hasDynamicHelp": false,
13371
13368
  "multiple": false,
13372
13369
  "type": "option"
13373
13370
  },
13374
- "limit": {
13375
- "description": "Items per page",
13376
- "name": "limit",
13377
- "default": 20,
13371
+ "filter-value": {
13372
+ "description": "Filter value",
13373
+ "name": "filter-value",
13378
13374
  "hasDynamicHelp": false,
13379
13375
  "multiple": false,
13380
13376
  "type": "option"
13381
13377
  },
13382
- "search": {
13383
- "description": "Search in recipient name or identifier",
13384
- "name": "search",
13378
+ "status": {
13379
+ "description": "Status: 0 inactive, 1 active",
13380
+ "name": "status",
13385
13381
  "hasDynamicHelp": false,
13386
13382
  "multiple": false,
13383
+ "options": [
13384
+ "0",
13385
+ "1"
13386
+ ],
13387
13387
  "type": "option"
13388
13388
  },
13389
- "recipient": {
13390
- "description": "Filter by recipient ID",
13391
- "name": "recipient",
13389
+ "data": {
13390
+ "description": "Additional JSON object payload",
13391
+ "name": "data",
13392
13392
  "hasDynamicHelp": false,
13393
13393
  "multiple": false,
13394
13394
  "type": "option"
@@ -13396,7 +13396,7 @@
13396
13396
  },
13397
13397
  "hasDynamicHelp": false,
13398
13398
  "hiddenAliases": [],
13399
- "id": "bots:env-vars:values",
13399
+ "id": "bots:filters:update",
13400
13400
  "pluginAlias": "@instantkom/cli",
13401
13401
  "pluginName": "@instantkom/cli",
13402
13402
  "pluginType": "core",
@@ -13407,8 +13407,8 @@
13407
13407
  "dist",
13408
13408
  "commands",
13409
13409
  "bots",
13410
- "env-vars",
13411
- "values.js"
13410
+ "filters",
13411
+ "update.js"
13412
13412
  ]
13413
13413
  },
13414
13414
  "bots:tags:add": {
@@ -17052,5 +17052,5 @@
17052
17052
  ]
17053
17053
  }
17054
17054
  },
17055
- "version": "3.188.0"
17055
+ "version": "3.190.0"
17056
17056
  }