@instantkom/cli 3.186.1 → 3.187.1

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,
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
- ],
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",
5319
+ "hasDynamicHelp": false,
5320
+ "multiple": false,
5364
5321
  "type": "option"
5365
5322
  },
5366
- "blocked": {
5367
- "description": "Filter by blocked status: 1 blocked, 0 not blocked",
5368
- "name": "blocked",
5323
+ "format": {
5324
+ "description": "Output format: text, json, yaml, or table",
5325
+ "helpGroup": "GLOBAL",
5326
+ "name": "format",
5327
+ "default": "text",
5369
5328
  "hasDynamicHelp": false,
5370
5329
  "multiple": false,
5371
5330
  "options": [
5372
- "0",
5373
- "1"
5331
+ "text",
5332
+ "json",
5333
+ "yaml",
5334
+ "table"
5374
5335
  ],
5375
5336
  "type": "option"
5376
5337
  },
5377
- "segment": {
5378
- "description": "Filter by segment ID",
5379
- "name": "segment",
5380
- "hasDynamicHelp": false,
5381
- "multiple": false,
5382
- "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"
5383
5344
  },
5384
- "tags": {
5385
- "description": "Comma-separated tag IDs",
5386
- "name": "tags",
5387
- "hasDynamicHelp": false,
5388
- "multiple": false,
5389
- "type": "option"
5345
+ "quiet": {
5346
+ "description": "Suppress all output except errors",
5347
+ "helpGroup": "GLOBAL",
5348
+ "name": "quiet",
5349
+ "allowNo": false,
5350
+ "type": "boolean"
5390
5351
  },
5391
- "tag-match": {
5392
- "description": "Tag match mode",
5393
- "name": "tag-match",
5352
+ "no-color": {
5353
+ "description": "Disable color output",
5354
+ "helpGroup": "GLOBAL",
5355
+ "name": "no-color",
5356
+ "allowNo": false,
5357
+ "type": "boolean"
5358
+ },
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
  },
@@ -6076,10 +6076,10 @@
6076
6076
  "list.js"
6077
6077
  ]
6078
6078
  },
6079
- "flows:create": {
6079
+ "messages:bulk-spam": {
6080
6080
  "aliases": [],
6081
6081
  "args": {},
6082
- "description": "Create a flow",
6082
+ "description": "Mark or unmark multiple messages as spam",
6083
6083
  "flags": {
6084
6084
  "api-key": {
6085
6085
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -6143,39 +6143,120 @@
6143
6143
  "multiple": false,
6144
6144
  "type": "option"
6145
6145
  },
6146
- "channel": {
6147
- "description": "Channel ID",
6148
- "name": "channel",
6146
+ "ids": {
6147
+ "description": "Comma-separated message IDs",
6148
+ "name": "ids",
6149
6149
  "required": true,
6150
6150
  "hasDynamicHelp": false,
6151
6151
  "multiple": false,
6152
6152
  "type": "option"
6153
6153
  },
6154
- "name": {
6155
- "description": "Flow name",
6156
- "name": "name",
6157
- "required": true,
6154
+ "spam": {
6155
+ "description": "Mark messages as spam",
6156
+ "name": "spam",
6157
+ "allowNo": true,
6158
+ "type": "boolean"
6159
+ }
6160
+ },
6161
+ "hasDynamicHelp": false,
6162
+ "hiddenAliases": [],
6163
+ "id": "messages:bulk-spam",
6164
+ "pluginAlias": "@instantkom/cli",
6165
+ "pluginName": "@instantkom/cli",
6166
+ "pluginType": "core",
6167
+ "strict": true,
6168
+ "enableJsonFlag": false,
6169
+ "isESM": true,
6170
+ "relativePath": [
6171
+ "dist",
6172
+ "commands",
6173
+ "messages",
6174
+ "bulk-spam.js"
6175
+ ]
6176
+ },
6177
+ "messages:create-ticket": {
6178
+ "aliases": [],
6179
+ "args": {
6180
+ "id": {
6181
+ "description": "Message ID",
6182
+ "name": "id",
6183
+ "required": true
6184
+ }
6185
+ },
6186
+ "description": "Create a ticket from a message",
6187
+ "flags": {
6188
+ "api-key": {
6189
+ "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
6190
+ "env": "IKM_API_KEY",
6191
+ "helpGroup": "GLOBAL",
6192
+ "name": "api-key",
6158
6193
  "hasDynamicHelp": false,
6159
6194
  "multiple": false,
6160
6195
  "type": "option"
6161
6196
  },
6162
- "description": {
6163
- "description": "Flow description",
6164
- "name": "description",
6197
+ "format": {
6198
+ "description": "Output format: text, json, yaml, or table",
6199
+ "helpGroup": "GLOBAL",
6200
+ "name": "format",
6201
+ "default": "text",
6165
6202
  "hasDynamicHelp": false,
6166
6203
  "multiple": false,
6204
+ "options": [
6205
+ "text",
6206
+ "json",
6207
+ "yaml",
6208
+ "table"
6209
+ ],
6167
6210
  "type": "option"
6168
6211
  },
6169
- "color": {
6170
- "description": "Flow color as HEX",
6171
- "name": "color",
6212
+ "json": {
6213
+ "description": "Output in JSON format (alias for --format=json)",
6214
+ "helpGroup": "GLOBAL",
6215
+ "name": "json",
6216
+ "allowNo": false,
6217
+ "type": "boolean"
6218
+ },
6219
+ "quiet": {
6220
+ "description": "Suppress all output except errors",
6221
+ "helpGroup": "GLOBAL",
6222
+ "name": "quiet",
6223
+ "allowNo": false,
6224
+ "type": "boolean"
6225
+ },
6226
+ "no-color": {
6227
+ "description": "Disable color output",
6228
+ "helpGroup": "GLOBAL",
6229
+ "name": "no-color",
6230
+ "allowNo": false,
6231
+ "type": "boolean"
6232
+ },
6233
+ "profile": {
6234
+ "description": "Named configuration profile to use",
6235
+ "helpGroup": "GLOBAL",
6236
+ "name": "profile",
6237
+ "default": "default",
6172
6238
  "hasDynamicHelp": false,
6173
6239
  "multiple": false,
6174
6240
  "type": "option"
6175
6241
  },
6176
- "folder": {
6177
- "description": "Folder ID",
6178
- "name": "folder",
6242
+ "api-url": {
6243
+ "description": "Override the API base URL (e.g. for staging)",
6244
+ "helpGroup": "GLOBAL",
6245
+ "name": "api-url",
6246
+ "hasDynamicHelp": false,
6247
+ "multiple": false,
6248
+ "type": "option"
6249
+ },
6250
+ "subject": {
6251
+ "description": "Ticket subject",
6252
+ "name": "subject",
6253
+ "hasDynamicHelp": false,
6254
+ "multiple": false,
6255
+ "type": "option"
6256
+ },
6257
+ "priority": {
6258
+ "description": "Ticket priority",
6259
+ "name": "priority",
6179
6260
  "hasDynamicHelp": false,
6180
6261
  "multiple": false,
6181
6262
  "type": "option"
@@ -6190,7 +6271,7 @@
6190
6271
  },
6191
6272
  "hasDynamicHelp": false,
6192
6273
  "hiddenAliases": [],
6193
- "id": "flows:create",
6274
+ "id": "messages:create-ticket",
6194
6275
  "pluginAlias": "@instantkom/cli",
6195
6276
  "pluginName": "@instantkom/cli",
6196
6277
  "pluginType": "core",
@@ -6200,20 +6281,20 @@
6200
6281
  "relativePath": [
6201
6282
  "dist",
6202
6283
  "commands",
6203
- "flows",
6204
- "create.js"
6284
+ "messages",
6285
+ "create-ticket.js"
6205
6286
  ]
6206
6287
  },
6207
- "flows:delete": {
6288
+ "messages:delete": {
6208
6289
  "aliases": [],
6209
6290
  "args": {
6210
6291
  "id": {
6211
- "description": "Flow ID",
6292
+ "description": "message ID",
6212
6293
  "name": "id",
6213
6294
  "required": true
6214
6295
  }
6215
6296
  },
6216
- "description": "Delete a flow",
6297
+ "description": "Delete message",
6217
6298
  "flags": {
6218
6299
  "api-key": {
6219
6300
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -6280,7 +6361,7 @@
6280
6361
  },
6281
6362
  "hasDynamicHelp": false,
6282
6363
  "hiddenAliases": [],
6283
- "id": "flows:delete",
6364
+ "id": "messages:delete",
6284
6365
  "pluginAlias": "@instantkom/cli",
6285
6366
  "pluginName": "@instantkom/cli",
6286
6367
  "pluginType": "core",
@@ -6290,20 +6371,20 @@
6290
6371
  "relativePath": [
6291
6372
  "dist",
6292
6373
  "commands",
6293
- "flows",
6374
+ "messages",
6294
6375
  "delete.js"
6295
6376
  ]
6296
6377
  },
6297
- "flows:get": {
6378
+ "messages:get": {
6298
6379
  "aliases": [],
6299
6380
  "args": {
6300
6381
  "id": {
6301
- "description": "Flow ID",
6382
+ "description": "message ID",
6302
6383
  "name": "id",
6303
6384
  "required": true
6304
6385
  }
6305
6386
  },
6306
- "description": "Get a flow by ID",
6387
+ "description": "Get message by ID",
6307
6388
  "flags": {
6308
6389
  "api-key": {
6309
6390
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -6370,7 +6451,7 @@
6370
6451
  },
6371
6452
  "hasDynamicHelp": false,
6372
6453
  "hiddenAliases": [],
6373
- "id": "flows:get",
6454
+ "id": "messages:get",
6374
6455
  "pluginAlias": "@instantkom/cli",
6375
6456
  "pluginName": "@instantkom/cli",
6376
6457
  "pluginType": "core",
@@ -6380,14 +6461,14 @@
6380
6461
  "relativePath": [
6381
6462
  "dist",
6382
6463
  "commands",
6383
- "flows",
6464
+ "messages",
6384
6465
  "get.js"
6385
6466
  ]
6386
6467
  },
6387
- "flows:list": {
6468
+ "messages:list": {
6388
6469
  "aliases": [],
6389
6470
  "args": {},
6390
- "description": "List flows",
6471
+ "description": "List messages",
6391
6472
  "flags": {
6392
6473
  "api-key": {
6393
6474
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -6474,24 +6555,48 @@
6474
6555
  "multiple": false,
6475
6556
  "type": "option"
6476
6557
  },
6477
- "search": {
6478
- "description": "Search in flow name or description",
6479
- "name": "search",
6558
+ "recipient": {
6559
+ "description": "Filter by recipient ID",
6560
+ "name": "recipient",
6480
6561
  "hasDynamicHelp": false,
6481
6562
  "multiple": false,
6482
6563
  "type": "option"
6483
6564
  },
6484
- "folder": {
6485
- "description": "Filter by folder ID",
6486
- "name": "folder",
6565
+ "direction": {
6566
+ "description": "Direction",
6567
+ "name": "direction",
6568
+ "hasDynamicHelp": false,
6569
+ "multiple": false,
6570
+ "options": [
6571
+ "s",
6572
+ "r"
6573
+ ],
6574
+ "type": "option"
6575
+ },
6576
+ "type": {
6577
+ "description": "Message type",
6578
+ "name": "type",
6487
6579
  "hasDynamicHelp": false,
6488
6580
  "multiple": false,
6489
6581
  "type": "option"
6582
+ },
6583
+ "search": {
6584
+ "description": "Search messages",
6585
+ "name": "search",
6586
+ "hasDynamicHelp": false,
6587
+ "multiple": false,
6588
+ "type": "option"
6589
+ },
6590
+ "spam": {
6591
+ "description": "Filter spam messages",
6592
+ "name": "spam",
6593
+ "allowNo": false,
6594
+ "type": "boolean"
6490
6595
  }
6491
6596
  },
6492
6597
  "hasDynamicHelp": false,
6493
6598
  "hiddenAliases": [],
6494
- "id": "flows:list",
6599
+ "id": "messages:list",
6495
6600
  "pluginAlias": "@instantkom/cli",
6496
6601
  "pluginName": "@instantkom/cli",
6497
6602
  "pluginType": "core",
@@ -6501,20 +6606,20 @@
6501
6606
  "relativePath": [
6502
6607
  "dist",
6503
6608
  "commands",
6504
- "flows",
6609
+ "messages",
6505
6610
  "list.js"
6506
6611
  ]
6507
6612
  },
6508
- "flows:update": {
6613
+ "messages:reactions": {
6509
6614
  "aliases": [],
6510
6615
  "args": {
6511
6616
  "id": {
6512
- "description": "Flow ID",
6617
+ "description": "Message ID",
6513
6618
  "name": "id",
6514
6619
  "required": true
6515
6620
  }
6516
6621
  },
6517
- "description": "Update a flow",
6622
+ "description": "Get reactions to a message",
6518
6623
  "flags": {
6519
6624
  "api-key": {
6520
6625
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -6577,46 +6682,11 @@
6577
6682
  "hasDynamicHelp": false,
6578
6683
  "multiple": false,
6579
6684
  "type": "option"
6580
- },
6581
- "name": {
6582
- "description": "Flow name",
6583
- "name": "name",
6584
- "hasDynamicHelp": false,
6585
- "multiple": false,
6586
- "type": "option"
6587
- },
6588
- "description": {
6589
- "description": "Flow description",
6590
- "name": "description",
6591
- "hasDynamicHelp": false,
6592
- "multiple": false,
6593
- "type": "option"
6594
- },
6595
- "color": {
6596
- "description": "Flow color as HEX",
6597
- "name": "color",
6598
- "hasDynamicHelp": false,
6599
- "multiple": false,
6600
- "type": "option"
6601
- },
6602
- "folder": {
6603
- "description": "Folder ID",
6604
- "name": "folder",
6605
- "hasDynamicHelp": false,
6606
- "multiple": false,
6607
- "type": "option"
6608
- },
6609
- "data": {
6610
- "description": "Additional JSON object payload",
6611
- "name": "data",
6612
- "hasDynamicHelp": false,
6613
- "multiple": false,
6614
- "type": "option"
6615
6685
  }
6616
6686
  },
6617
6687
  "hasDynamicHelp": false,
6618
6688
  "hiddenAliases": [],
6619
- "id": "flows:update",
6689
+ "id": "messages:reactions",
6620
6690
  "pluginAlias": "@instantkom/cli",
6621
6691
  "pluginName": "@instantkom/cli",
6622
6692
  "pluginType": "core",
@@ -6626,14 +6696,20 @@
6626
6696
  "relativePath": [
6627
6697
  "dist",
6628
6698
  "commands",
6629
- "flows",
6630
- "update.js"
6699
+ "messages",
6700
+ "reactions.js"
6631
6701
  ]
6632
6702
  },
6633
- "messages:bulk-spam": {
6703
+ "messages:spam": {
6634
6704
  "aliases": [],
6635
- "args": {},
6636
- "description": "Mark or unmark multiple messages as spam",
6705
+ "args": {
6706
+ "id": {
6707
+ "description": "Message ID",
6708
+ "name": "id",
6709
+ "required": true
6710
+ }
6711
+ },
6712
+ "description": "Mark or unmark a message as spam",
6637
6713
  "flags": {
6638
6714
  "api-key": {
6639
6715
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -6697,16 +6773,8 @@
6697
6773
  "multiple": false,
6698
6774
  "type": "option"
6699
6775
  },
6700
- "ids": {
6701
- "description": "Comma-separated message IDs",
6702
- "name": "ids",
6703
- "required": true,
6704
- "hasDynamicHelp": false,
6705
- "multiple": false,
6706
- "type": "option"
6707
- },
6708
6776
  "spam": {
6709
- "description": "Mark messages as spam",
6777
+ "description": "Mark as spam",
6710
6778
  "name": "spam",
6711
6779
  "allowNo": true,
6712
6780
  "type": "boolean"
@@ -6714,7 +6782,7 @@
6714
6782
  },
6715
6783
  "hasDynamicHelp": false,
6716
6784
  "hiddenAliases": [],
6717
- "id": "messages:bulk-spam",
6785
+ "id": "messages:spam",
6718
6786
  "pluginAlias": "@instantkom/cli",
6719
6787
  "pluginName": "@instantkom/cli",
6720
6788
  "pluginType": "core",
@@ -6725,19 +6793,13 @@
6725
6793
  "dist",
6726
6794
  "commands",
6727
6795
  "messages",
6728
- "bulk-spam.js"
6796
+ "spam.js"
6729
6797
  ]
6730
6798
  },
6731
- "messages:create-ticket": {
6799
+ "messages:unread-count": {
6732
6800
  "aliases": [],
6733
- "args": {
6734
- "id": {
6735
- "description": "Message ID",
6736
- "name": "id",
6737
- "required": true
6738
- }
6739
- },
6740
- "description": "Create a ticket from a message",
6801
+ "args": {},
6802
+ "description": "Get unread inbox message count",
6741
6803
  "flags": {
6742
6804
  "api-key": {
6743
6805
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -6800,32 +6862,11 @@
6800
6862
  "hasDynamicHelp": false,
6801
6863
  "multiple": false,
6802
6864
  "type": "option"
6803
- },
6804
- "subject": {
6805
- "description": "Ticket subject",
6806
- "name": "subject",
6807
- "hasDynamicHelp": false,
6808
- "multiple": false,
6809
- "type": "option"
6810
- },
6811
- "priority": {
6812
- "description": "Ticket priority",
6813
- "name": "priority",
6814
- "hasDynamicHelp": false,
6815
- "multiple": false,
6816
- "type": "option"
6817
- },
6818
- "data": {
6819
- "description": "Additional JSON object payload",
6820
- "name": "data",
6821
- "hasDynamicHelp": false,
6822
- "multiple": false,
6823
- "type": "option"
6824
6865
  }
6825
6866
  },
6826
6867
  "hasDynamicHelp": false,
6827
6868
  "hiddenAliases": [],
6828
- "id": "messages:create-ticket",
6869
+ "id": "messages:unread-count",
6829
6870
  "pluginAlias": "@instantkom/cli",
6830
6871
  "pluginName": "@instantkom/cli",
6831
6872
  "pluginType": "core",
@@ -6836,19 +6877,19 @@
6836
6877
  "dist",
6837
6878
  "commands",
6838
6879
  "messages",
6839
- "create-ticket.js"
6880
+ "unread-count.js"
6840
6881
  ]
6841
6882
  },
6842
- "messages:delete": {
6883
+ "messages:update": {
6843
6884
  "aliases": [],
6844
6885
  "args": {
6845
6886
  "id": {
6846
- "description": "message ID",
6887
+ "description": "Message ID",
6847
6888
  "name": "id",
6848
6889
  "required": true
6849
6890
  }
6850
6891
  },
6851
- "description": "Delete message",
6892
+ "description": "Update a message",
6852
6893
  "flags": {
6853
6894
  "api-key": {
6854
6895
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -6911,93 +6952,50 @@
6911
6952
  "hasDynamicHelp": false,
6912
6953
  "multiple": false,
6913
6954
  "type": "option"
6914
- }
6915
- },
6916
- "hasDynamicHelp": false,
6917
- "hiddenAliases": [],
6918
- "id": "messages:delete",
6919
- "pluginAlias": "@instantkom/cli",
6920
- "pluginName": "@instantkom/cli",
6921
- "pluginType": "core",
6922
- "strict": true,
6923
- "enableJsonFlag": false,
6924
- "isESM": true,
6925
- "relativePath": [
6926
- "dist",
6927
- "commands",
6928
- "messages",
6929
- "delete.js"
6930
- ]
6931
- },
6932
- "messages:get": {
6933
- "aliases": [],
6934
- "args": {
6935
- "id": {
6936
- "description": "message ID",
6937
- "name": "id",
6938
- "required": true
6939
- }
6940
- },
6941
- "description": "Get message by ID",
6942
- "flags": {
6943
- "api-key": {
6944
- "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
6945
- "env": "IKM_API_KEY",
6946
- "helpGroup": "GLOBAL",
6947
- "name": "api-key",
6955
+ },
6956
+ "message": {
6957
+ "description": "Message content",
6958
+ "name": "message",
6948
6959
  "hasDynamicHelp": false,
6949
6960
  "multiple": false,
6950
6961
  "type": "option"
6951
6962
  },
6952
- "format": {
6953
- "description": "Output format: text, json, yaml, or table",
6954
- "helpGroup": "GLOBAL",
6955
- "name": "format",
6956
- "default": "text",
6963
+ "scheduled-at": {
6964
+ "description": "Unix timestamp for scheduled send",
6965
+ "name": "scheduled-at",
6957
6966
  "hasDynamicHelp": false,
6958
6967
  "multiple": false,
6959
- "options": [
6960
- "text",
6961
- "json",
6962
- "yaml",
6963
- "table"
6964
- ],
6965
6968
  "type": "option"
6966
6969
  },
6967
- "json": {
6968
- "description": "Output in JSON format (alias for --format=json)",
6969
- "helpGroup": "GLOBAL",
6970
- "name": "json",
6971
- "allowNo": false,
6972
- "type": "boolean"
6973
- },
6974
- "quiet": {
6975
- "description": "Suppress all output except errors",
6976
- "helpGroup": "GLOBAL",
6977
- "name": "quiet",
6978
- "allowNo": false,
6970
+ "hidden": {
6971
+ "description": "Hide message",
6972
+ "name": "hidden",
6973
+ "allowNo": true,
6979
6974
  "type": "boolean"
6980
6975
  },
6981
- "no-color": {
6982
- "description": "Disable color output",
6983
- "helpGroup": "GLOBAL",
6984
- "name": "no-color",
6985
- "allowNo": false,
6976
+ "locked": {
6977
+ "description": "Lock message",
6978
+ "name": "locked",
6979
+ "allowNo": true,
6986
6980
  "type": "boolean"
6987
6981
  },
6988
- "profile": {
6989
- "description": "Named configuration profile to use",
6990
- "helpGroup": "GLOBAL",
6991
- "name": "profile",
6992
- "default": "default",
6982
+ "buttons": {
6983
+ "description": "Buttons JSON array",
6984
+ "name": "buttons",
6993
6985
  "hasDynamicHelp": false,
6994
6986
  "multiple": false,
6995
6987
  "type": "option"
6996
6988
  },
6997
- "api-url": {
6998
- "description": "Override the API base URL (e.g. for staging)",
6999
- "helpGroup": "GLOBAL",
7000
- "name": "api-url",
6989
+ "header-footer": {
6990
+ "description": "Header/footer JSON object",
6991
+ "name": "header-footer",
6992
+ "hasDynamicHelp": false,
6993
+ "multiple": false,
6994
+ "type": "option"
6995
+ },
6996
+ "data": {
6997
+ "description": "Additional JSON object payload",
6998
+ "name": "data",
7001
6999
  "hasDynamicHelp": false,
7002
7000
  "multiple": false,
7003
7001
  "type": "option"
@@ -7005,7 +7003,7 @@
7005
7003
  },
7006
7004
  "hasDynamicHelp": false,
7007
7005
  "hiddenAliases": [],
7008
- "id": "messages:get",
7006
+ "id": "messages:update",
7009
7007
  "pluginAlias": "@instantkom/cli",
7010
7008
  "pluginName": "@instantkom/cli",
7011
7009
  "pluginType": "core",
@@ -7016,13 +7014,13 @@
7016
7014
  "dist",
7017
7015
  "commands",
7018
7016
  "messages",
7019
- "get.js"
7017
+ "update.js"
7020
7018
  ]
7021
7019
  },
7022
- "messages:list": {
7020
+ "flows:create": {
7023
7021
  "aliases": [],
7024
7022
  "args": {},
7025
- "description": "List messages",
7023
+ "description": "Create a flow",
7026
7024
  "flags": {
7027
7025
  "api-key": {
7028
7026
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -7086,71 +7084,54 @@
7086
7084
  "multiple": false,
7087
7085
  "type": "option"
7088
7086
  },
7089
- "page": {
7090
- "description": "Page number",
7091
- "name": "page",
7092
- "default": 1,
7093
- "hasDynamicHelp": false,
7094
- "multiple": false,
7095
- "type": "option"
7096
- },
7097
- "limit": {
7098
- "description": "Items per page",
7099
- "name": "limit",
7100
- "default": 20,
7087
+ "channel": {
7088
+ "description": "Channel ID",
7089
+ "name": "channel",
7090
+ "required": true,
7101
7091
  "hasDynamicHelp": false,
7102
7092
  "multiple": false,
7103
7093
  "type": "option"
7104
7094
  },
7105
- "channel": {
7106
- "description": "Filter by channel ID",
7107
- "name": "channel",
7095
+ "name": {
7096
+ "description": "Flow name",
7097
+ "name": "name",
7098
+ "required": true,
7108
7099
  "hasDynamicHelp": false,
7109
7100
  "multiple": false,
7110
7101
  "type": "option"
7111
7102
  },
7112
- "recipient": {
7113
- "description": "Filter by recipient ID",
7114
- "name": "recipient",
7103
+ "description": {
7104
+ "description": "Flow description",
7105
+ "name": "description",
7115
7106
  "hasDynamicHelp": false,
7116
7107
  "multiple": false,
7117
7108
  "type": "option"
7118
7109
  },
7119
- "direction": {
7120
- "description": "Direction",
7121
- "name": "direction",
7110
+ "color": {
7111
+ "description": "Flow color as HEX",
7112
+ "name": "color",
7122
7113
  "hasDynamicHelp": false,
7123
7114
  "multiple": false,
7124
- "options": [
7125
- "s",
7126
- "r"
7127
- ],
7128
7115
  "type": "option"
7129
7116
  },
7130
- "type": {
7131
- "description": "Message type",
7132
- "name": "type",
7117
+ "folder": {
7118
+ "description": "Folder ID",
7119
+ "name": "folder",
7133
7120
  "hasDynamicHelp": false,
7134
7121
  "multiple": false,
7135
7122
  "type": "option"
7136
7123
  },
7137
- "search": {
7138
- "description": "Search messages",
7139
- "name": "search",
7124
+ "data": {
7125
+ "description": "Additional JSON object payload",
7126
+ "name": "data",
7140
7127
  "hasDynamicHelp": false,
7141
7128
  "multiple": false,
7142
7129
  "type": "option"
7143
- },
7144
- "spam": {
7145
- "description": "Filter spam messages",
7146
- "name": "spam",
7147
- "allowNo": false,
7148
- "type": "boolean"
7149
7130
  }
7150
7131
  },
7151
7132
  "hasDynamicHelp": false,
7152
7133
  "hiddenAliases": [],
7153
- "id": "messages:list",
7134
+ "id": "flows:create",
7154
7135
  "pluginAlias": "@instantkom/cli",
7155
7136
  "pluginName": "@instantkom/cli",
7156
7137
  "pluginType": "core",
@@ -7160,20 +7141,20 @@
7160
7141
  "relativePath": [
7161
7142
  "dist",
7162
7143
  "commands",
7163
- "messages",
7164
- "list.js"
7144
+ "flows",
7145
+ "create.js"
7165
7146
  ]
7166
7147
  },
7167
- "messages:reactions": {
7148
+ "flows:delete": {
7168
7149
  "aliases": [],
7169
7150
  "args": {
7170
7151
  "id": {
7171
- "description": "Message ID",
7152
+ "description": "Flow ID",
7172
7153
  "name": "id",
7173
7154
  "required": true
7174
7155
  }
7175
7156
  },
7176
- "description": "Get reactions to a message",
7157
+ "description": "Delete a flow",
7177
7158
  "flags": {
7178
7159
  "api-key": {
7179
7160
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -7240,7 +7221,7 @@
7240
7221
  },
7241
7222
  "hasDynamicHelp": false,
7242
7223
  "hiddenAliases": [],
7243
- "id": "messages:reactions",
7224
+ "id": "flows:delete",
7244
7225
  "pluginAlias": "@instantkom/cli",
7245
7226
  "pluginName": "@instantkom/cli",
7246
7227
  "pluginType": "core",
@@ -7250,20 +7231,20 @@
7250
7231
  "relativePath": [
7251
7232
  "dist",
7252
7233
  "commands",
7253
- "messages",
7254
- "reactions.js"
7234
+ "flows",
7235
+ "delete.js"
7255
7236
  ]
7256
7237
  },
7257
- "messages:spam": {
7238
+ "flows:get": {
7258
7239
  "aliases": [],
7259
7240
  "args": {
7260
7241
  "id": {
7261
- "description": "Message ID",
7242
+ "description": "Flow ID",
7262
7243
  "name": "id",
7263
7244
  "required": true
7264
7245
  }
7265
7246
  },
7266
- "description": "Mark or unmark a message as spam",
7247
+ "description": "Get a flow by ID",
7267
7248
  "flags": {
7268
7249
  "api-key": {
7269
7250
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -7326,17 +7307,11 @@
7326
7307
  "hasDynamicHelp": false,
7327
7308
  "multiple": false,
7328
7309
  "type": "option"
7329
- },
7330
- "spam": {
7331
- "description": "Mark as spam",
7332
- "name": "spam",
7333
- "allowNo": true,
7334
- "type": "boolean"
7335
7310
  }
7336
7311
  },
7337
7312
  "hasDynamicHelp": false,
7338
7313
  "hiddenAliases": [],
7339
- "id": "messages:spam",
7314
+ "id": "flows:get",
7340
7315
  "pluginAlias": "@instantkom/cli",
7341
7316
  "pluginName": "@instantkom/cli",
7342
7317
  "pluginType": "core",
@@ -7346,14 +7321,14 @@
7346
7321
  "relativePath": [
7347
7322
  "dist",
7348
7323
  "commands",
7349
- "messages",
7350
- "spam.js"
7324
+ "flows",
7325
+ "get.js"
7351
7326
  ]
7352
7327
  },
7353
- "messages:unread-count": {
7328
+ "flows:list": {
7354
7329
  "aliases": [],
7355
7330
  "args": {},
7356
- "description": "Get unread inbox message count",
7331
+ "description": "List flows",
7357
7332
  "flags": {
7358
7333
  "api-key": {
7359
7334
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -7416,11 +7391,48 @@
7416
7391
  "hasDynamicHelp": false,
7417
7392
  "multiple": false,
7418
7393
  "type": "option"
7394
+ },
7395
+ "page": {
7396
+ "description": "Page number",
7397
+ "name": "page",
7398
+ "default": 1,
7399
+ "hasDynamicHelp": false,
7400
+ "multiple": false,
7401
+ "type": "option"
7402
+ },
7403
+ "limit": {
7404
+ "description": "Items per page",
7405
+ "name": "limit",
7406
+ "default": 20,
7407
+ "hasDynamicHelp": false,
7408
+ "multiple": false,
7409
+ "type": "option"
7410
+ },
7411
+ "channel": {
7412
+ "description": "Filter by channel ID",
7413
+ "name": "channel",
7414
+ "hasDynamicHelp": false,
7415
+ "multiple": false,
7416
+ "type": "option"
7417
+ },
7418
+ "search": {
7419
+ "description": "Search in flow name or description",
7420
+ "name": "search",
7421
+ "hasDynamicHelp": false,
7422
+ "multiple": false,
7423
+ "type": "option"
7424
+ },
7425
+ "folder": {
7426
+ "description": "Filter by folder ID",
7427
+ "name": "folder",
7428
+ "hasDynamicHelp": false,
7429
+ "multiple": false,
7430
+ "type": "option"
7419
7431
  }
7420
7432
  },
7421
7433
  "hasDynamicHelp": false,
7422
7434
  "hiddenAliases": [],
7423
- "id": "messages:unread-count",
7435
+ "id": "flows:list",
7424
7436
  "pluginAlias": "@instantkom/cli",
7425
7437
  "pluginName": "@instantkom/cli",
7426
7438
  "pluginType": "core",
@@ -7430,20 +7442,20 @@
7430
7442
  "relativePath": [
7431
7443
  "dist",
7432
7444
  "commands",
7433
- "messages",
7434
- "unread-count.js"
7445
+ "flows",
7446
+ "list.js"
7435
7447
  ]
7436
7448
  },
7437
- "messages:update": {
7449
+ "flows:update": {
7438
7450
  "aliases": [],
7439
7451
  "args": {
7440
7452
  "id": {
7441
- "description": "Message ID",
7453
+ "description": "Flow ID",
7442
7454
  "name": "id",
7443
7455
  "required": true
7444
7456
  }
7445
7457
  },
7446
- "description": "Update a message",
7458
+ "description": "Update a flow",
7447
7459
  "flags": {
7448
7460
  "api-key": {
7449
7461
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -7507,42 +7519,30 @@
7507
7519
  "multiple": false,
7508
7520
  "type": "option"
7509
7521
  },
7510
- "message": {
7511
- "description": "Message content",
7512
- "name": "message",
7522
+ "name": {
7523
+ "description": "Flow name",
7524
+ "name": "name",
7513
7525
  "hasDynamicHelp": false,
7514
7526
  "multiple": false,
7515
7527
  "type": "option"
7516
7528
  },
7517
- "scheduled-at": {
7518
- "description": "Unix timestamp for scheduled send",
7519
- "name": "scheduled-at",
7529
+ "description": {
7530
+ "description": "Flow description",
7531
+ "name": "description",
7520
7532
  "hasDynamicHelp": false,
7521
7533
  "multiple": false,
7522
7534
  "type": "option"
7523
7535
  },
7524
- "hidden": {
7525
- "description": "Hide message",
7526
- "name": "hidden",
7527
- "allowNo": true,
7528
- "type": "boolean"
7529
- },
7530
- "locked": {
7531
- "description": "Lock message",
7532
- "name": "locked",
7533
- "allowNo": true,
7534
- "type": "boolean"
7535
- },
7536
- "buttons": {
7537
- "description": "Buttons JSON array",
7538
- "name": "buttons",
7536
+ "color": {
7537
+ "description": "Flow color as HEX",
7538
+ "name": "color",
7539
7539
  "hasDynamicHelp": false,
7540
7540
  "multiple": false,
7541
7541
  "type": "option"
7542
7542
  },
7543
- "header-footer": {
7544
- "description": "Header/footer JSON object",
7545
- "name": "header-footer",
7543
+ "folder": {
7544
+ "description": "Folder ID",
7545
+ "name": "folder",
7546
7546
  "hasDynamicHelp": false,
7547
7547
  "multiple": false,
7548
7548
  "type": "option"
@@ -7557,7 +7557,7 @@
7557
7557
  },
7558
7558
  "hasDynamicHelp": false,
7559
7559
  "hiddenAliases": [],
7560
- "id": "messages:update",
7560
+ "id": "flows:update",
7561
7561
  "pluginAlias": "@instantkom/cli",
7562
7562
  "pluginName": "@instantkom/cli",
7563
7563
  "pluginType": "core",
@@ -7567,7 +7567,7 @@
7567
7567
  "relativePath": [
7568
7568
  "dist",
7569
7569
  "commands",
7570
- "messages",
7570
+ "flows",
7571
7571
  "update.js"
7572
7572
  ]
7573
7573
  },
@@ -9293,10 +9293,10 @@
9293
9293
  "list.js"
9294
9294
  ]
9295
9295
  },
9296
- "templates:create": {
9296
+ "tickets:create": {
9297
9297
  "aliases": [],
9298
9298
  "args": {},
9299
- "description": "Create a message template",
9299
+ "description": "Create a ticket",
9300
9300
  "flags": {
9301
9301
  "api-key": {
9302
9302
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -9368,70 +9368,45 @@
9368
9368
  "multiple": false,
9369
9369
  "type": "option"
9370
9370
  },
9371
- "name": {
9372
- "description": "Template name",
9373
- "name": "name",
9374
- "required": true,
9375
- "hasDynamicHelp": false,
9376
- "multiple": false,
9377
- "type": "option"
9378
- },
9379
- "type": {
9380
- "description": "Template type",
9381
- "name": "type",
9382
- "default": "text",
9383
- "hasDynamicHelp": false,
9384
- "multiple": false,
9385
- "options": [
9386
- "text",
9387
- "image",
9388
- "video",
9389
- "document",
9390
- "audio",
9391
- "location",
9392
- "contact",
9393
- "interactive"
9394
- ],
9395
- "type": "option"
9396
- },
9397
- "message": {
9398
- "description": "Template message",
9399
- "name": "message",
9371
+ "subject": {
9372
+ "description": "Ticket subject",
9373
+ "name": "subject",
9400
9374
  "required": true,
9401
9375
  "hasDynamicHelp": false,
9402
9376
  "multiple": false,
9403
9377
  "type": "option"
9404
9378
  },
9405
- "color": {
9406
- "description": "Template color as HEX",
9407
- "name": "color",
9379
+ "recipient": {
9380
+ "description": "Existing recipient ID",
9381
+ "name": "recipient",
9408
9382
  "hasDynamicHelp": false,
9409
9383
  "multiple": false,
9410
9384
  "type": "option"
9411
9385
  },
9412
- "status": {
9413
- "description": "Template is active",
9414
- "name": "status",
9415
- "allowNo": true,
9416
- "type": "boolean"
9386
+ "email": {
9387
+ "description": "Customer email",
9388
+ "name": "email",
9389
+ "hasDynamicHelp": false,
9390
+ "multiple": false,
9391
+ "type": "option"
9417
9392
  },
9418
- "whatsapp-language": {
9419
- "description": "WhatsApp template language",
9420
- "name": "whatsapp-language",
9393
+ "name": {
9394
+ "description": "Customer name",
9395
+ "name": "name",
9421
9396
  "hasDynamicHelp": false,
9422
9397
  "multiple": false,
9423
9398
  "type": "option"
9424
9399
  },
9425
- "buttons": {
9426
- "description": "Buttons JSON array/object",
9427
- "name": "buttons",
9400
+ "priority": {
9401
+ "description": "Ticket priority",
9402
+ "name": "priority",
9428
9403
  "hasDynamicHelp": false,
9429
9404
  "multiple": false,
9430
9405
  "type": "option"
9431
9406
  },
9432
- "header-footer": {
9433
- "description": "Header/footer JSON object",
9434
- "name": "header-footer",
9407
+ "source": {
9408
+ "description": "Ticket source",
9409
+ "name": "source",
9435
9410
  "hasDynamicHelp": false,
9436
9411
  "multiple": false,
9437
9412
  "type": "option"
@@ -9446,7 +9421,7 @@
9446
9421
  },
9447
9422
  "hasDynamicHelp": false,
9448
9423
  "hiddenAliases": [],
9449
- "id": "templates:create",
9424
+ "id": "tickets:create",
9450
9425
  "pluginAlias": "@instantkom/cli",
9451
9426
  "pluginName": "@instantkom/cli",
9452
9427
  "pluginType": "core",
@@ -9456,20 +9431,20 @@
9456
9431
  "relativePath": [
9457
9432
  "dist",
9458
9433
  "commands",
9459
- "templates",
9434
+ "tickets",
9460
9435
  "create.js"
9461
9436
  ]
9462
9437
  },
9463
- "templates:delete": {
9438
+ "tickets:delete": {
9464
9439
  "aliases": [],
9465
9440
  "args": {
9466
9441
  "id": {
9467
- "description": "template ID",
9442
+ "description": "Ticket ID",
9468
9443
  "name": "id",
9469
9444
  "required": true
9470
9445
  }
9471
9446
  },
9472
- "description": "Delete template",
9447
+ "description": "Delete a ticket",
9473
9448
  "flags": {
9474
9449
  "api-key": {
9475
9450
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -9532,11 +9507,19 @@
9532
9507
  "hasDynamicHelp": false,
9533
9508
  "multiple": false,
9534
9509
  "type": "option"
9510
+ },
9511
+ "channel": {
9512
+ "description": "Channel ID",
9513
+ "name": "channel",
9514
+ "required": true,
9515
+ "hasDynamicHelp": false,
9516
+ "multiple": false,
9517
+ "type": "option"
9535
9518
  }
9536
9519
  },
9537
9520
  "hasDynamicHelp": false,
9538
9521
  "hiddenAliases": [],
9539
- "id": "templates:delete",
9522
+ "id": "tickets:delete",
9540
9523
  "pluginAlias": "@instantkom/cli",
9541
9524
  "pluginName": "@instantkom/cli",
9542
9525
  "pluginType": "core",
@@ -9546,14 +9529,20 @@
9546
9529
  "relativePath": [
9547
9530
  "dist",
9548
9531
  "commands",
9549
- "templates",
9532
+ "tickets",
9550
9533
  "delete.js"
9551
9534
  ]
9552
9535
  },
9553
- "templates:export": {
9536
+ "tickets:get": {
9554
9537
  "aliases": [],
9555
- "args": {},
9556
- "description": "Export templates to a file",
9538
+ "args": {
9539
+ "id": {
9540
+ "description": "Ticket ID",
9541
+ "name": "id",
9542
+ "required": true
9543
+ }
9544
+ },
9545
+ "description": "Get a ticket by ID",
9557
9546
  "flags": {
9558
9547
  "api-key": {
9559
9548
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -9565,14 +9554,17 @@
9565
9554
  "type": "option"
9566
9555
  },
9567
9556
  "format": {
9568
- "description": "Export format",
9557
+ "description": "Output format: text, json, yaml, or table",
9558
+ "helpGroup": "GLOBAL",
9569
9559
  "name": "format",
9570
- "default": "json",
9560
+ "default": "text",
9571
9561
  "hasDynamicHelp": false,
9572
9562
  "multiple": false,
9573
9563
  "options": [
9574
- "csv",
9575
- "json"
9564
+ "text",
9565
+ "json",
9566
+ "yaml",
9567
+ "table"
9576
9568
  ],
9577
9569
  "type": "option"
9578
9570
  },
@@ -9614,17 +9606,10 @@
9614
9606
  "multiple": false,
9615
9607
  "type": "option"
9616
9608
  },
9617
- "file": {
9618
- "description": "Output file path",
9619
- "name": "file",
9620
- "required": true,
9621
- "hasDynamicHelp": false,
9622
- "multiple": false,
9623
- "type": "option"
9624
- },
9625
9609
  "channel": {
9626
- "description": "Filter by channel ID",
9610
+ "description": "Channel ID",
9627
9611
  "name": "channel",
9612
+ "required": true,
9628
9613
  "hasDynamicHelp": false,
9629
9614
  "multiple": false,
9630
9615
  "type": "option"
@@ -9632,7 +9617,7 @@
9632
9617
  },
9633
9618
  "hasDynamicHelp": false,
9634
9619
  "hiddenAliases": [],
9635
- "id": "templates:export",
9620
+ "id": "tickets:get",
9636
9621
  "pluginAlias": "@instantkom/cli",
9637
9622
  "pluginName": "@instantkom/cli",
9638
9623
  "pluginType": "core",
@@ -9642,20 +9627,14 @@
9642
9627
  "relativePath": [
9643
9628
  "dist",
9644
9629
  "commands",
9645
- "templates",
9646
- "export.js"
9630
+ "tickets",
9631
+ "get.js"
9647
9632
  ]
9648
9633
  },
9649
- "templates:get": {
9634
+ "tickets:list": {
9650
9635
  "aliases": [],
9651
- "args": {
9652
- "id": {
9653
- "description": "Template ID",
9654
- "name": "id",
9655
- "required": true
9656
- }
9657
- },
9658
- "description": "Get a message template by ID",
9636
+ "args": {},
9637
+ "description": "List tickets for a channel",
9659
9638
  "flags": {
9660
9639
  "api-key": {
9661
9640
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -9718,11 +9697,35 @@
9718
9697
  "hasDynamicHelp": false,
9719
9698
  "multiple": false,
9720
9699
  "type": "option"
9700
+ },
9701
+ "channel": {
9702
+ "description": "Channel ID",
9703
+ "name": "channel",
9704
+ "required": true,
9705
+ "hasDynamicHelp": false,
9706
+ "multiple": false,
9707
+ "type": "option"
9708
+ },
9709
+ "limit": {
9710
+ "description": "Maximum tickets to return",
9711
+ "name": "limit",
9712
+ "default": 500,
9713
+ "hasDynamicHelp": false,
9714
+ "multiple": false,
9715
+ "type": "option"
9716
+ },
9717
+ "offset": {
9718
+ "description": "Number of tickets to skip",
9719
+ "name": "offset",
9720
+ "default": 0,
9721
+ "hasDynamicHelp": false,
9722
+ "multiple": false,
9723
+ "type": "option"
9721
9724
  }
9722
9725
  },
9723
9726
  "hasDynamicHelp": false,
9724
9727
  "hiddenAliases": [],
9725
- "id": "templates:get",
9728
+ "id": "tickets:list",
9726
9729
  "pluginAlias": "@instantkom/cli",
9727
9730
  "pluginName": "@instantkom/cli",
9728
9731
  "pluginType": "core",
@@ -9732,14 +9735,20 @@
9732
9735
  "relativePath": [
9733
9736
  "dist",
9734
9737
  "commands",
9735
- "templates",
9736
- "get.js"
9738
+ "tickets",
9739
+ "list.js"
9737
9740
  ]
9738
9741
  },
9739
- "templates:import": {
9742
+ "tickets:reply": {
9740
9743
  "aliases": [],
9741
- "args": {},
9742
- "description": "Import templates from JSON",
9744
+ "args": {
9745
+ "id": {
9746
+ "description": "Ticket ID",
9747
+ "name": "id",
9748
+ "required": true
9749
+ }
9750
+ },
9751
+ "description": "Send a real support reply on a ticket. Delivers the message to the customer and records it in both the ticket history and the Nachrichtenprotokoll. Provide raw body text only; the ticket system auto-prepends the personalised salutation and auto-appends the localised footer for email-channel tickets. Adding your own greetings causes duplicated headers/footers.",
9743
9752
  "flags": {
9744
9753
  "api-key": {
9745
9754
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -9803,32 +9812,24 @@
9803
9812
  "multiple": false,
9804
9813
  "type": "option"
9805
9814
  },
9806
- "file": {
9807
- "description": "JSON file path",
9808
- "name": "file",
9809
- "required": true,
9810
- "hasDynamicHelp": false,
9811
- "multiple": false,
9812
- "type": "option"
9813
- },
9814
- "channel": {
9815
- "description": "Target channel ID",
9816
- "name": "channel",
9815
+ "message": {
9816
+ "description": "Reply body (raw text, no salutation or sign-off)",
9817
+ "name": "message",
9817
9818
  "required": true,
9818
9819
  "hasDynamicHelp": false,
9819
9820
  "multiple": false,
9820
9821
  "type": "option"
9821
9822
  },
9822
- "skip-duplicates": {
9823
- "description": "Skip duplicate templates",
9824
- "name": "skip-duplicates",
9825
- "allowNo": true,
9823
+ "close": {
9824
+ "description": "Close the ticket after sending the reply",
9825
+ "name": "close",
9826
+ "allowNo": false,
9826
9827
  "type": "boolean"
9827
9828
  }
9828
9829
  },
9829
9830
  "hasDynamicHelp": false,
9830
9831
  "hiddenAliases": [],
9831
- "id": "templates:import",
9832
+ "id": "tickets:reply",
9832
9833
  "pluginAlias": "@instantkom/cli",
9833
9834
  "pluginName": "@instantkom/cli",
9834
9835
  "pluginType": "core",
@@ -9838,14 +9839,20 @@
9838
9839
  "relativePath": [
9839
9840
  "dist",
9840
9841
  "commands",
9841
- "templates",
9842
- "import.js"
9842
+ "tickets",
9843
+ "reply.js"
9843
9844
  ]
9844
9845
  },
9845
- "templates:list": {
9846
+ "tickets:update": {
9846
9847
  "aliases": [],
9847
- "args": {},
9848
- "description": "List message templates",
9848
+ "args": {
9849
+ "id": {
9850
+ "description": "Ticket ID",
9851
+ "name": "id",
9852
+ "required": true
9853
+ }
9854
+ },
9855
+ "description": "Update a ticket",
9849
9856
  "flags": {
9850
9857
  "api-key": {
9851
9858
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -9910,31 +9917,50 @@
9910
9917
  "type": "option"
9911
9918
  },
9912
9919
  "channel": {
9913
- "description": "Filter by channel ID",
9920
+ "description": "Channel ID",
9914
9921
  "name": "channel",
9922
+ "required": true,
9915
9923
  "hasDynamicHelp": false,
9916
9924
  "multiple": false,
9917
9925
  "type": "option"
9918
9926
  },
9919
- "search": {
9920
- "description": "Search templates by name or content",
9921
- "name": "search",
9927
+ "subject": {
9928
+ "description": "Ticket subject",
9929
+ "name": "subject",
9922
9930
  "hasDynamicHelp": false,
9923
9931
  "multiple": false,
9924
9932
  "type": "option"
9925
9933
  },
9926
- "page": {
9927
- "description": "Page number",
9928
- "name": "page",
9929
- "default": 1,
9934
+ "priority": {
9935
+ "description": "Ticket priority",
9936
+ "name": "priority",
9930
9937
  "hasDynamicHelp": false,
9931
9938
  "multiple": false,
9932
9939
  "type": "option"
9933
9940
  },
9934
- "limit": {
9935
- "description": "Items per page",
9936
- "name": "limit",
9937
- "default": 20,
9941
+ "status": {
9942
+ "description": "Ticket status",
9943
+ "name": "status",
9944
+ "hasDynamicHelp": false,
9945
+ "multiple": false,
9946
+ "type": "option"
9947
+ },
9948
+ "assigned-to": {
9949
+ "description": "User ID to assign the ticket to (use -1 or omit to leave unchanged)",
9950
+ "name": "assigned-to",
9951
+ "hasDynamicHelp": false,
9952
+ "multiple": false,
9953
+ "type": "option"
9954
+ },
9955
+ "notify": {
9956
+ "description": "Trigger the legacy notification chain for transitions that have one. On --assigned-to change: fires TICKET_ASSIGN (assignee email plus optional customer reply via tickets_assign_reply_sts). On --status closed transition: fires TICKET_CLOSE (optional customer reply via tickets_close_reply_sts). Defaults to true. Use --no-notify for silent updates.",
9957
+ "name": "notify",
9958
+ "allowNo": true,
9959
+ "type": "boolean"
9960
+ },
9961
+ "data": {
9962
+ "description": "Additional JSON object payload",
9963
+ "name": "data",
9938
9964
  "hasDynamicHelp": false,
9939
9965
  "multiple": false,
9940
9966
  "type": "option"
@@ -9942,7 +9968,7 @@
9942
9968
  },
9943
9969
  "hasDynamicHelp": false,
9944
9970
  "hiddenAliases": [],
9945
- "id": "templates:list",
9971
+ "id": "tickets:update",
9946
9972
  "pluginAlias": "@instantkom/cli",
9947
9973
  "pluginName": "@instantkom/cli",
9948
9974
  "pluginType": "core",
@@ -9952,20 +9978,14 @@
9952
9978
  "relativePath": [
9953
9979
  "dist",
9954
9980
  "commands",
9955
- "templates",
9956
- "list.js"
9981
+ "tickets",
9982
+ "update.js"
9957
9983
  ]
9958
9984
  },
9959
- "templates:render": {
9960
- "aliases": [],
9961
- "args": {
9962
- "id": {
9963
- "description": "Template ID",
9964
- "name": "id",
9965
- "required": true
9966
- }
9967
- },
9968
- "description": "Render a message template locally",
9985
+ "webhooks:add": {
9986
+ "aliases": [],
9987
+ "args": {},
9988
+ "description": "Add a webhook subscription",
9969
9989
  "flags": {
9970
9990
  "api-key": {
9971
9991
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -10029,17 +10049,33 @@
10029
10049
  "multiple": false,
10030
10050
  "type": "option"
10031
10051
  },
10032
- "vars": {
10033
- "description": "Template variable as key=value; may be repeated",
10034
- "name": "vars",
10052
+ "event": {
10053
+ "description": "Webhook event to subscribe to",
10054
+ "name": "event",
10055
+ "required": true,
10035
10056
  "hasDynamicHelp": false,
10036
- "multiple": true,
10057
+ "multiple": false,
10058
+ "options": [
10059
+ "new_contact",
10060
+ "new_message",
10061
+ "broadcast_sent",
10062
+ "contact_updated",
10063
+ "contact_opted_out"
10064
+ ],
10065
+ "type": "option"
10066
+ },
10067
+ "url": {
10068
+ "description": "HTTPS target URL that receives webhook POSTs",
10069
+ "name": "url",
10070
+ "required": true,
10071
+ "hasDynamicHelp": false,
10072
+ "multiple": false,
10037
10073
  "type": "option"
10038
10074
  }
10039
10075
  },
10040
10076
  "hasDynamicHelp": false,
10041
10077
  "hiddenAliases": [],
10042
- "id": "templates:render",
10078
+ "id": "webhooks:add",
10043
10079
  "pluginAlias": "@instantkom/cli",
10044
10080
  "pluginName": "@instantkom/cli",
10045
10081
  "pluginType": "core",
@@ -10049,20 +10085,14 @@
10049
10085
  "relativePath": [
10050
10086
  "dist",
10051
10087
  "commands",
10052
- "templates",
10053
- "render.js"
10088
+ "webhooks",
10089
+ "add.js"
10054
10090
  ]
10055
10091
  },
10056
- "templates:update": {
10092
+ "webhooks:events": {
10057
10093
  "aliases": [],
10058
- "args": {
10059
- "id": {
10060
- "description": "Template ID",
10061
- "name": "id",
10062
- "required": true
10063
- }
10064
- },
10065
- "description": "Update a message template",
10094
+ "args": {},
10095
+ "description": "List supported webhook event names",
10066
10096
  "flags": {
10067
10097
  "api-key": {
10068
10098
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -10125,89 +10155,11 @@
10125
10155
  "hasDynamicHelp": false,
10126
10156
  "multiple": false,
10127
10157
  "type": "option"
10128
- },
10129
- "name": {
10130
- "description": "Template name",
10131
- "name": "name",
10132
- "hasDynamicHelp": false,
10133
- "multiple": false,
10134
- "type": "option"
10135
- },
10136
- "type": {
10137
- "description": "Template type",
10138
- "name": "type",
10139
- "hasDynamicHelp": false,
10140
- "multiple": false,
10141
- "options": [
10142
- "text",
10143
- "image",
10144
- "video",
10145
- "document",
10146
- "audio",
10147
- "location",
10148
- "contact",
10149
- "interactive"
10150
- ],
10151
- "type": "option"
10152
- },
10153
- "message": {
10154
- "description": "Template message",
10155
- "name": "message",
10156
- "hasDynamicHelp": false,
10157
- "multiple": false,
10158
- "type": "option"
10159
- },
10160
- "color": {
10161
- "description": "Template color as HEX",
10162
- "name": "color",
10163
- "hasDynamicHelp": false,
10164
- "multiple": false,
10165
- "type": "option"
10166
- },
10167
- "status": {
10168
- "description": "Template is active",
10169
- "name": "status",
10170
- "allowNo": true,
10171
- "type": "boolean"
10172
- },
10173
- "remove-media": {
10174
- "description": "Remove existing media",
10175
- "name": "remove-media",
10176
- "allowNo": false,
10177
- "type": "boolean"
10178
- },
10179
- "whatsapp-language": {
10180
- "description": "WhatsApp template language",
10181
- "name": "whatsapp-language",
10182
- "hasDynamicHelp": false,
10183
- "multiple": false,
10184
- "type": "option"
10185
- },
10186
- "buttons": {
10187
- "description": "Buttons JSON array/object",
10188
- "name": "buttons",
10189
- "hasDynamicHelp": false,
10190
- "multiple": false,
10191
- "type": "option"
10192
- },
10193
- "header-footer": {
10194
- "description": "Header/footer JSON object",
10195
- "name": "header-footer",
10196
- "hasDynamicHelp": false,
10197
- "multiple": false,
10198
- "type": "option"
10199
- },
10200
- "data": {
10201
- "description": "Additional JSON object payload",
10202
- "name": "data",
10203
- "hasDynamicHelp": false,
10204
- "multiple": false,
10205
- "type": "option"
10206
10158
  }
10207
10159
  },
10208
10160
  "hasDynamicHelp": false,
10209
10161
  "hiddenAliases": [],
10210
- "id": "templates:update",
10162
+ "id": "webhooks:events",
10211
10163
  "pluginAlias": "@instantkom/cli",
10212
10164
  "pluginName": "@instantkom/cli",
10213
10165
  "pluginType": "core",
@@ -10217,14 +10169,14 @@
10217
10169
  "relativePath": [
10218
10170
  "dist",
10219
10171
  "commands",
10220
- "templates",
10221
- "update.js"
10172
+ "webhooks",
10173
+ "events.js"
10222
10174
  ]
10223
10175
  },
10224
- "templates:validate-import": {
10176
+ "webhooks:list": {
10225
10177
  "aliases": [],
10226
10178
  "args": {},
10227
- "description": "Validate templates import JSON",
10179
+ "description": "List webhook subscriptions",
10228
10180
  "flags": {
10229
10181
  "api-key": {
10230
10182
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -10287,27 +10239,11 @@
10287
10239
  "hasDynamicHelp": false,
10288
10240
  "multiple": false,
10289
10241
  "type": "option"
10290
- },
10291
- "file": {
10292
- "description": "JSON file path",
10293
- "name": "file",
10294
- "required": true,
10295
- "hasDynamicHelp": false,
10296
- "multiple": false,
10297
- "type": "option"
10298
- },
10299
- "channel": {
10300
- "description": "Target channel ID",
10301
- "name": "channel",
10302
- "required": true,
10303
- "hasDynamicHelp": false,
10304
- "multiple": false,
10305
- "type": "option"
10306
10242
  }
10307
10243
  },
10308
10244
  "hasDynamicHelp": false,
10309
10245
  "hiddenAliases": [],
10310
- "id": "templates:validate-import",
10246
+ "id": "webhooks:list",
10311
10247
  "pluginAlias": "@instantkom/cli",
10312
10248
  "pluginName": "@instantkom/cli",
10313
10249
  "pluginType": "core",
@@ -10317,14 +10253,14 @@
10317
10253
  "relativePath": [
10318
10254
  "dist",
10319
10255
  "commands",
10320
- "templates",
10321
- "validate-import.js"
10256
+ "webhooks",
10257
+ "list.js"
10322
10258
  ]
10323
10259
  },
10324
- "tickets:create": {
10260
+ "webhooks:logs": {
10325
10261
  "aliases": [],
10326
10262
  "args": {},
10327
- "description": "Create a ticket",
10263
+ "description": "Explain webhook log availability",
10328
10264
  "flags": {
10329
10265
  "api-key": {
10330
10266
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -10387,69 +10323,11 @@
10387
10323
  "hasDynamicHelp": false,
10388
10324
  "multiple": false,
10389
10325
  "type": "option"
10390
- },
10391
- "channel": {
10392
- "description": "Channel ID",
10393
- "name": "channel",
10394
- "required": true,
10395
- "hasDynamicHelp": false,
10396
- "multiple": false,
10397
- "type": "option"
10398
- },
10399
- "subject": {
10400
- "description": "Ticket subject",
10401
- "name": "subject",
10402
- "required": true,
10403
- "hasDynamicHelp": false,
10404
- "multiple": false,
10405
- "type": "option"
10406
- },
10407
- "recipient": {
10408
- "description": "Existing recipient ID",
10409
- "name": "recipient",
10410
- "hasDynamicHelp": false,
10411
- "multiple": false,
10412
- "type": "option"
10413
- },
10414
- "email": {
10415
- "description": "Customer email",
10416
- "name": "email",
10417
- "hasDynamicHelp": false,
10418
- "multiple": false,
10419
- "type": "option"
10420
- },
10421
- "name": {
10422
- "description": "Customer name",
10423
- "name": "name",
10424
- "hasDynamicHelp": false,
10425
- "multiple": false,
10426
- "type": "option"
10427
- },
10428
- "priority": {
10429
- "description": "Ticket priority",
10430
- "name": "priority",
10431
- "hasDynamicHelp": false,
10432
- "multiple": false,
10433
- "type": "option"
10434
- },
10435
- "source": {
10436
- "description": "Ticket source",
10437
- "name": "source",
10438
- "hasDynamicHelp": false,
10439
- "multiple": false,
10440
- "type": "option"
10441
- },
10442
- "data": {
10443
- "description": "Additional JSON object payload",
10444
- "name": "data",
10445
- "hasDynamicHelp": false,
10446
- "multiple": false,
10447
- "type": "option"
10448
10326
  }
10449
10327
  },
10450
10328
  "hasDynamicHelp": false,
10451
10329
  "hiddenAliases": [],
10452
- "id": "tickets:create",
10330
+ "id": "webhooks:logs",
10453
10331
  "pluginAlias": "@instantkom/cli",
10454
10332
  "pluginName": "@instantkom/cli",
10455
10333
  "pluginType": "core",
@@ -10459,20 +10337,20 @@
10459
10337
  "relativePath": [
10460
10338
  "dist",
10461
10339
  "commands",
10462
- "tickets",
10463
- "create.js"
10340
+ "webhooks",
10341
+ "logs.js"
10464
10342
  ]
10465
10343
  },
10466
- "tickets:delete": {
10344
+ "webhooks:remove": {
10467
10345
  "aliases": [],
10468
10346
  "args": {
10469
10347
  "id": {
10470
- "description": "Ticket ID",
10348
+ "description": "Webhook subscription ID",
10471
10349
  "name": "id",
10472
10350
  "required": true
10473
10351
  }
10474
10352
  },
10475
- "description": "Delete a ticket",
10353
+ "description": "Remove a webhook subscription",
10476
10354
  "flags": {
10477
10355
  "api-key": {
10478
10356
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -10535,19 +10413,11 @@
10535
10413
  "hasDynamicHelp": false,
10536
10414
  "multiple": false,
10537
10415
  "type": "option"
10538
- },
10539
- "channel": {
10540
- "description": "Channel ID",
10541
- "name": "channel",
10542
- "required": true,
10543
- "hasDynamicHelp": false,
10544
- "multiple": false,
10545
- "type": "option"
10546
10416
  }
10547
10417
  },
10548
10418
  "hasDynamicHelp": false,
10549
10419
  "hiddenAliases": [],
10550
- "id": "tickets:delete",
10420
+ "id": "webhooks:remove",
10551
10421
  "pluginAlias": "@instantkom/cli",
10552
10422
  "pluginName": "@instantkom/cli",
10553
10423
  "pluginType": "core",
@@ -10557,20 +10427,14 @@
10557
10427
  "relativePath": [
10558
10428
  "dist",
10559
10429
  "commands",
10560
- "tickets",
10561
- "delete.js"
10562
- ]
10563
- },
10564
- "tickets:get": {
10565
- "aliases": [],
10566
- "args": {
10567
- "id": {
10568
- "description": "Ticket ID",
10569
- "name": "id",
10570
- "required": true
10571
- }
10572
- },
10573
- "description": "Get a ticket by ID",
10430
+ "webhooks",
10431
+ "remove.js"
10432
+ ]
10433
+ },
10434
+ "webhooks:test": {
10435
+ "aliases": [],
10436
+ "args": {},
10437
+ "description": "Send a test webhook payload to a URL",
10574
10438
  "flags": {
10575
10439
  "api-key": {
10576
10440
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -10634,18 +10498,33 @@
10634
10498
  "multiple": false,
10635
10499
  "type": "option"
10636
10500
  },
10637
- "channel": {
10638
- "description": "Channel ID",
10639
- "name": "channel",
10501
+ "url": {
10502
+ "description": "Webhook URL to call",
10503
+ "name": "url",
10640
10504
  "required": true,
10641
10505
  "hasDynamicHelp": false,
10642
10506
  "multiple": false,
10643
10507
  "type": "option"
10508
+ },
10509
+ "event": {
10510
+ "description": "Event name",
10511
+ "name": "event",
10512
+ "default": "cli.test",
10513
+ "hasDynamicHelp": false,
10514
+ "multiple": false,
10515
+ "type": "option"
10516
+ },
10517
+ "payload": {
10518
+ "description": "Payload JSON",
10519
+ "name": "payload",
10520
+ "hasDynamicHelp": false,
10521
+ "multiple": false,
10522
+ "type": "option"
10644
10523
  }
10645
10524
  },
10646
10525
  "hasDynamicHelp": false,
10647
10526
  "hiddenAliases": [],
10648
- "id": "tickets:get",
10527
+ "id": "webhooks:test",
10649
10528
  "pluginAlias": "@instantkom/cli",
10650
10529
  "pluginName": "@instantkom/cli",
10651
10530
  "pluginType": "core",
@@ -10655,14 +10534,14 @@
10655
10534
  "relativePath": [
10656
10535
  "dist",
10657
10536
  "commands",
10658
- "tickets",
10659
- "get.js"
10537
+ "webhooks",
10538
+ "test.js"
10660
10539
  ]
10661
10540
  },
10662
- "tickets:list": {
10541
+ "templates:create": {
10663
10542
  "aliases": [],
10664
10543
  "args": {},
10665
- "description": "List tickets for a channel",
10544
+ "description": "Create a message template",
10666
10545
  "flags": {
10667
10546
  "api-key": {
10668
10547
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -10734,18 +10613,77 @@
10734
10613
  "multiple": false,
10735
10614
  "type": "option"
10736
10615
  },
10737
- "limit": {
10738
- "description": "Maximum tickets to return",
10739
- "name": "limit",
10740
- "default": 500,
10616
+ "name": {
10617
+ "description": "Template name",
10618
+ "name": "name",
10619
+ "required": true,
10741
10620
  "hasDynamicHelp": false,
10742
10621
  "multiple": false,
10743
10622
  "type": "option"
10744
10623
  },
10745
- "offset": {
10746
- "description": "Number of tickets to skip",
10747
- "name": "offset",
10748
- "default": 0,
10624
+ "type": {
10625
+ "description": "Template type",
10626
+ "name": "type",
10627
+ "default": "text",
10628
+ "hasDynamicHelp": false,
10629
+ "multiple": false,
10630
+ "options": [
10631
+ "text",
10632
+ "image",
10633
+ "video",
10634
+ "document",
10635
+ "audio",
10636
+ "location",
10637
+ "contact",
10638
+ "interactive"
10639
+ ],
10640
+ "type": "option"
10641
+ },
10642
+ "message": {
10643
+ "description": "Template message",
10644
+ "name": "message",
10645
+ "required": true,
10646
+ "hasDynamicHelp": false,
10647
+ "multiple": false,
10648
+ "type": "option"
10649
+ },
10650
+ "color": {
10651
+ "description": "Template color as HEX",
10652
+ "name": "color",
10653
+ "hasDynamicHelp": false,
10654
+ "multiple": false,
10655
+ "type": "option"
10656
+ },
10657
+ "status": {
10658
+ "description": "Template is active",
10659
+ "name": "status",
10660
+ "allowNo": true,
10661
+ "type": "boolean"
10662
+ },
10663
+ "whatsapp-language": {
10664
+ "description": "WhatsApp template language",
10665
+ "name": "whatsapp-language",
10666
+ "hasDynamicHelp": false,
10667
+ "multiple": false,
10668
+ "type": "option"
10669
+ },
10670
+ "buttons": {
10671
+ "description": "Buttons JSON array/object",
10672
+ "name": "buttons",
10673
+ "hasDynamicHelp": false,
10674
+ "multiple": false,
10675
+ "type": "option"
10676
+ },
10677
+ "header-footer": {
10678
+ "description": "Header/footer JSON object",
10679
+ "name": "header-footer",
10680
+ "hasDynamicHelp": false,
10681
+ "multiple": false,
10682
+ "type": "option"
10683
+ },
10684
+ "data": {
10685
+ "description": "Additional JSON object payload",
10686
+ "name": "data",
10749
10687
  "hasDynamicHelp": false,
10750
10688
  "multiple": false,
10751
10689
  "type": "option"
@@ -10753,7 +10691,7 @@
10753
10691
  },
10754
10692
  "hasDynamicHelp": false,
10755
10693
  "hiddenAliases": [],
10756
- "id": "tickets:list",
10694
+ "id": "templates:create",
10757
10695
  "pluginAlias": "@instantkom/cli",
10758
10696
  "pluginName": "@instantkom/cli",
10759
10697
  "pluginType": "core",
@@ -10763,20 +10701,20 @@
10763
10701
  "relativePath": [
10764
10702
  "dist",
10765
10703
  "commands",
10766
- "tickets",
10767
- "list.js"
10704
+ "templates",
10705
+ "create.js"
10768
10706
  ]
10769
10707
  },
10770
- "tickets:reply": {
10708
+ "templates:delete": {
10771
10709
  "aliases": [],
10772
10710
  "args": {
10773
10711
  "id": {
10774
- "description": "Ticket ID",
10712
+ "description": "template ID",
10775
10713
  "name": "id",
10776
10714
  "required": true
10777
10715
  }
10778
10716
  },
10779
- "description": "Send a real support reply on a ticket. Delivers the message to the customer and records it in both the ticket history and the Nachrichtenprotokoll. Provide raw body text only; the ticket system auto-prepends the personalised salutation and auto-appends the localised footer for email-channel tickets. Adding your own greetings causes duplicated headers/footers.",
10717
+ "description": "Delete template",
10780
10718
  "flags": {
10781
10719
  "api-key": {
10782
10720
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -10839,25 +10777,11 @@
10839
10777
  "hasDynamicHelp": false,
10840
10778
  "multiple": false,
10841
10779
  "type": "option"
10842
- },
10843
- "message": {
10844
- "description": "Reply body (raw text, no salutation or sign-off)",
10845
- "name": "message",
10846
- "required": true,
10847
- "hasDynamicHelp": false,
10848
- "multiple": false,
10849
- "type": "option"
10850
- },
10851
- "close": {
10852
- "description": "Close the ticket after sending the reply",
10853
- "name": "close",
10854
- "allowNo": false,
10855
- "type": "boolean"
10856
10780
  }
10857
10781
  },
10858
10782
  "hasDynamicHelp": false,
10859
10783
  "hiddenAliases": [],
10860
- "id": "tickets:reply",
10784
+ "id": "templates:delete",
10861
10785
  "pluginAlias": "@instantkom/cli",
10862
10786
  "pluginName": "@instantkom/cli",
10863
10787
  "pluginType": "core",
@@ -10867,20 +10791,14 @@
10867
10791
  "relativePath": [
10868
10792
  "dist",
10869
10793
  "commands",
10870
- "tickets",
10871
- "reply.js"
10794
+ "templates",
10795
+ "delete.js"
10872
10796
  ]
10873
10797
  },
10874
- "tickets:update": {
10798
+ "templates:export": {
10875
10799
  "aliases": [],
10876
- "args": {
10877
- "id": {
10878
- "description": "Ticket ID",
10879
- "name": "id",
10880
- "required": true
10881
- }
10882
- },
10883
- "description": "Update a ticket",
10800
+ "args": {},
10801
+ "description": "Export templates to a file",
10884
10802
  "flags": {
10885
10803
  "api-key": {
10886
10804
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -10892,17 +10810,14 @@
10892
10810
  "type": "option"
10893
10811
  },
10894
10812
  "format": {
10895
- "description": "Output format: text, json, yaml, or table",
10896
- "helpGroup": "GLOBAL",
10813
+ "description": "Export format",
10897
10814
  "name": "format",
10898
- "default": "text",
10815
+ "default": "json",
10899
10816
  "hasDynamicHelp": false,
10900
10817
  "multiple": false,
10901
10818
  "options": [
10902
- "text",
10903
- "json",
10904
- "yaml",
10905
- "table"
10819
+ "csv",
10820
+ "json"
10906
10821
  ],
10907
10822
  "type": "option"
10908
10823
  },
@@ -10944,51 +10859,17 @@
10944
10859
  "multiple": false,
10945
10860
  "type": "option"
10946
10861
  },
10947
- "channel": {
10948
- "description": "Channel ID",
10949
- "name": "channel",
10862
+ "file": {
10863
+ "description": "Output file path",
10864
+ "name": "file",
10950
10865
  "required": true,
10951
10866
  "hasDynamicHelp": false,
10952
10867
  "multiple": false,
10953
10868
  "type": "option"
10954
10869
  },
10955
- "subject": {
10956
- "description": "Ticket subject",
10957
- "name": "subject",
10958
- "hasDynamicHelp": false,
10959
- "multiple": false,
10960
- "type": "option"
10961
- },
10962
- "priority": {
10963
- "description": "Ticket priority",
10964
- "name": "priority",
10965
- "hasDynamicHelp": false,
10966
- "multiple": false,
10967
- "type": "option"
10968
- },
10969
- "status": {
10970
- "description": "Ticket status",
10971
- "name": "status",
10972
- "hasDynamicHelp": false,
10973
- "multiple": false,
10974
- "type": "option"
10975
- },
10976
- "assigned-to": {
10977
- "description": "User ID to assign the ticket to (use -1 or omit to leave unchanged)",
10978
- "name": "assigned-to",
10979
- "hasDynamicHelp": false,
10980
- "multiple": false,
10981
- "type": "option"
10982
- },
10983
- "notify": {
10984
- "description": "Trigger the legacy notification chain for transitions that have one. On --assigned-to change: fires TICKET_ASSIGN (assignee email plus optional customer reply via tickets_assign_reply_sts). On --status closed transition: fires TICKET_CLOSE (optional customer reply via tickets_close_reply_sts). Defaults to true. Use --no-notify for silent updates.",
10985
- "name": "notify",
10986
- "allowNo": true,
10987
- "type": "boolean"
10988
- },
10989
- "data": {
10990
- "description": "Additional JSON object payload",
10991
- "name": "data",
10870
+ "channel": {
10871
+ "description": "Filter by channel ID",
10872
+ "name": "channel",
10992
10873
  "hasDynamicHelp": false,
10993
10874
  "multiple": false,
10994
10875
  "type": "option"
@@ -10996,7 +10877,7 @@
10996
10877
  },
10997
10878
  "hasDynamicHelp": false,
10998
10879
  "hiddenAliases": [],
10999
- "id": "tickets:update",
10880
+ "id": "templates:export",
11000
10881
  "pluginAlias": "@instantkom/cli",
11001
10882
  "pluginName": "@instantkom/cli",
11002
10883
  "pluginType": "core",
@@ -11006,14 +10887,20 @@
11006
10887
  "relativePath": [
11007
10888
  "dist",
11008
10889
  "commands",
11009
- "tickets",
11010
- "update.js"
10890
+ "templates",
10891
+ "export.js"
11011
10892
  ]
11012
10893
  },
11013
- "webhooks:add": {
10894
+ "templates:get": {
11014
10895
  "aliases": [],
11015
- "args": {},
11016
- "description": "Add a webhook subscription",
10896
+ "args": {
10897
+ "id": {
10898
+ "description": "Template ID",
10899
+ "name": "id",
10900
+ "required": true
10901
+ }
10902
+ },
10903
+ "description": "Get a message template by ID",
11017
10904
  "flags": {
11018
10905
  "api-key": {
11019
10906
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -11071,31 +10958,8 @@
11071
10958
  },
11072
10959
  "api-url": {
11073
10960
  "description": "Override the API base URL (e.g. for staging)",
11074
- "helpGroup": "GLOBAL",
11075
- "name": "api-url",
11076
- "hasDynamicHelp": false,
11077
- "multiple": false,
11078
- "type": "option"
11079
- },
11080
- "event": {
11081
- "description": "Webhook event to subscribe to",
11082
- "name": "event",
11083
- "required": true,
11084
- "hasDynamicHelp": false,
11085
- "multiple": false,
11086
- "options": [
11087
- "new_contact",
11088
- "new_message",
11089
- "broadcast_sent",
11090
- "contact_updated",
11091
- "contact_opted_out"
11092
- ],
11093
- "type": "option"
11094
- },
11095
- "url": {
11096
- "description": "HTTPS target URL that receives webhook POSTs",
11097
- "name": "url",
11098
- "required": true,
10961
+ "helpGroup": "GLOBAL",
10962
+ "name": "api-url",
11099
10963
  "hasDynamicHelp": false,
11100
10964
  "multiple": false,
11101
10965
  "type": "option"
@@ -11103,7 +10967,7 @@
11103
10967
  },
11104
10968
  "hasDynamicHelp": false,
11105
10969
  "hiddenAliases": [],
11106
- "id": "webhooks:add",
10970
+ "id": "templates:get",
11107
10971
  "pluginAlias": "@instantkom/cli",
11108
10972
  "pluginName": "@instantkom/cli",
11109
10973
  "pluginType": "core",
@@ -11113,14 +10977,14 @@
11113
10977
  "relativePath": [
11114
10978
  "dist",
11115
10979
  "commands",
11116
- "webhooks",
11117
- "add.js"
10980
+ "templates",
10981
+ "get.js"
11118
10982
  ]
11119
10983
  },
11120
- "webhooks:events": {
10984
+ "templates:import": {
11121
10985
  "aliases": [],
11122
10986
  "args": {},
11123
- "description": "List supported webhook event names",
10987
+ "description": "Import templates from JSON",
11124
10988
  "flags": {
11125
10989
  "api-key": {
11126
10990
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -11183,11 +11047,33 @@
11183
11047
  "hasDynamicHelp": false,
11184
11048
  "multiple": false,
11185
11049
  "type": "option"
11050
+ },
11051
+ "file": {
11052
+ "description": "JSON file path",
11053
+ "name": "file",
11054
+ "required": true,
11055
+ "hasDynamicHelp": false,
11056
+ "multiple": false,
11057
+ "type": "option"
11058
+ },
11059
+ "channel": {
11060
+ "description": "Target channel ID",
11061
+ "name": "channel",
11062
+ "required": true,
11063
+ "hasDynamicHelp": false,
11064
+ "multiple": false,
11065
+ "type": "option"
11066
+ },
11067
+ "skip-duplicates": {
11068
+ "description": "Skip duplicate templates",
11069
+ "name": "skip-duplicates",
11070
+ "allowNo": true,
11071
+ "type": "boolean"
11186
11072
  }
11187
11073
  },
11188
11074
  "hasDynamicHelp": false,
11189
11075
  "hiddenAliases": [],
11190
- "id": "webhooks:events",
11076
+ "id": "templates:import",
11191
11077
  "pluginAlias": "@instantkom/cli",
11192
11078
  "pluginName": "@instantkom/cli",
11193
11079
  "pluginType": "core",
@@ -11197,14 +11083,14 @@
11197
11083
  "relativePath": [
11198
11084
  "dist",
11199
11085
  "commands",
11200
- "webhooks",
11201
- "events.js"
11086
+ "templates",
11087
+ "import.js"
11202
11088
  ]
11203
11089
  },
11204
- "webhooks:list": {
11090
+ "templates:list": {
11205
11091
  "aliases": [],
11206
11092
  "args": {},
11207
- "description": "List webhook subscriptions",
11093
+ "description": "List message templates",
11208
11094
  "flags": {
11209
11095
  "api-key": {
11210
11096
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -11267,11 +11153,41 @@
11267
11153
  "hasDynamicHelp": false,
11268
11154
  "multiple": false,
11269
11155
  "type": "option"
11156
+ },
11157
+ "channel": {
11158
+ "description": "Filter by channel ID",
11159
+ "name": "channel",
11160
+ "hasDynamicHelp": false,
11161
+ "multiple": false,
11162
+ "type": "option"
11163
+ },
11164
+ "search": {
11165
+ "description": "Search templates by name or content",
11166
+ "name": "search",
11167
+ "hasDynamicHelp": false,
11168
+ "multiple": false,
11169
+ "type": "option"
11170
+ },
11171
+ "page": {
11172
+ "description": "Page number",
11173
+ "name": "page",
11174
+ "default": 1,
11175
+ "hasDynamicHelp": false,
11176
+ "multiple": false,
11177
+ "type": "option"
11178
+ },
11179
+ "limit": {
11180
+ "description": "Items per page",
11181
+ "name": "limit",
11182
+ "default": 20,
11183
+ "hasDynamicHelp": false,
11184
+ "multiple": false,
11185
+ "type": "option"
11270
11186
  }
11271
11187
  },
11272
11188
  "hasDynamicHelp": false,
11273
11189
  "hiddenAliases": [],
11274
- "id": "webhooks:list",
11190
+ "id": "templates:list",
11275
11191
  "pluginAlias": "@instantkom/cli",
11276
11192
  "pluginName": "@instantkom/cli",
11277
11193
  "pluginType": "core",
@@ -11281,14 +11197,20 @@
11281
11197
  "relativePath": [
11282
11198
  "dist",
11283
11199
  "commands",
11284
- "webhooks",
11200
+ "templates",
11285
11201
  "list.js"
11286
11202
  ]
11287
11203
  },
11288
- "webhooks:logs": {
11204
+ "templates:render": {
11289
11205
  "aliases": [],
11290
- "args": {},
11291
- "description": "Explain webhook log availability",
11206
+ "args": {
11207
+ "id": {
11208
+ "description": "Template ID",
11209
+ "name": "id",
11210
+ "required": true
11211
+ }
11212
+ },
11213
+ "description": "Render a message template locally",
11292
11214
  "flags": {
11293
11215
  "api-key": {
11294
11216
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -11351,11 +11273,18 @@
11351
11273
  "hasDynamicHelp": false,
11352
11274
  "multiple": false,
11353
11275
  "type": "option"
11276
+ },
11277
+ "vars": {
11278
+ "description": "Template variable as key=value; may be repeated",
11279
+ "name": "vars",
11280
+ "hasDynamicHelp": false,
11281
+ "multiple": true,
11282
+ "type": "option"
11354
11283
  }
11355
11284
  },
11356
11285
  "hasDynamicHelp": false,
11357
11286
  "hiddenAliases": [],
11358
- "id": "webhooks:logs",
11287
+ "id": "templates:render",
11359
11288
  "pluginAlias": "@instantkom/cli",
11360
11289
  "pluginName": "@instantkom/cli",
11361
11290
  "pluginType": "core",
@@ -11365,20 +11294,20 @@
11365
11294
  "relativePath": [
11366
11295
  "dist",
11367
11296
  "commands",
11368
- "webhooks",
11369
- "logs.js"
11297
+ "templates",
11298
+ "render.js"
11370
11299
  ]
11371
11300
  },
11372
- "webhooks:remove": {
11301
+ "templates:update": {
11373
11302
  "aliases": [],
11374
11303
  "args": {
11375
11304
  "id": {
11376
- "description": "Webhook subscription ID",
11305
+ "description": "Template ID",
11377
11306
  "name": "id",
11378
11307
  "required": true
11379
11308
  }
11380
11309
  },
11381
- "description": "Remove a webhook subscription",
11310
+ "description": "Update a message template",
11382
11311
  "flags": {
11383
11312
  "api-key": {
11384
11313
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -11441,11 +11370,89 @@
11441
11370
  "hasDynamicHelp": false,
11442
11371
  "multiple": false,
11443
11372
  "type": "option"
11373
+ },
11374
+ "name": {
11375
+ "description": "Template name",
11376
+ "name": "name",
11377
+ "hasDynamicHelp": false,
11378
+ "multiple": false,
11379
+ "type": "option"
11380
+ },
11381
+ "type": {
11382
+ "description": "Template type",
11383
+ "name": "type",
11384
+ "hasDynamicHelp": false,
11385
+ "multiple": false,
11386
+ "options": [
11387
+ "text",
11388
+ "image",
11389
+ "video",
11390
+ "document",
11391
+ "audio",
11392
+ "location",
11393
+ "contact",
11394
+ "interactive"
11395
+ ],
11396
+ "type": "option"
11397
+ },
11398
+ "message": {
11399
+ "description": "Template message",
11400
+ "name": "message",
11401
+ "hasDynamicHelp": false,
11402
+ "multiple": false,
11403
+ "type": "option"
11404
+ },
11405
+ "color": {
11406
+ "description": "Template color as HEX",
11407
+ "name": "color",
11408
+ "hasDynamicHelp": false,
11409
+ "multiple": false,
11410
+ "type": "option"
11411
+ },
11412
+ "status": {
11413
+ "description": "Template is active",
11414
+ "name": "status",
11415
+ "allowNo": true,
11416
+ "type": "boolean"
11417
+ },
11418
+ "remove-media": {
11419
+ "description": "Remove existing media",
11420
+ "name": "remove-media",
11421
+ "allowNo": false,
11422
+ "type": "boolean"
11423
+ },
11424
+ "whatsapp-language": {
11425
+ "description": "WhatsApp template language",
11426
+ "name": "whatsapp-language",
11427
+ "hasDynamicHelp": false,
11428
+ "multiple": false,
11429
+ "type": "option"
11430
+ },
11431
+ "buttons": {
11432
+ "description": "Buttons JSON array/object",
11433
+ "name": "buttons",
11434
+ "hasDynamicHelp": false,
11435
+ "multiple": false,
11436
+ "type": "option"
11437
+ },
11438
+ "header-footer": {
11439
+ "description": "Header/footer JSON object",
11440
+ "name": "header-footer",
11441
+ "hasDynamicHelp": false,
11442
+ "multiple": false,
11443
+ "type": "option"
11444
+ },
11445
+ "data": {
11446
+ "description": "Additional JSON object payload",
11447
+ "name": "data",
11448
+ "hasDynamicHelp": false,
11449
+ "multiple": false,
11450
+ "type": "option"
11444
11451
  }
11445
11452
  },
11446
11453
  "hasDynamicHelp": false,
11447
11454
  "hiddenAliases": [],
11448
- "id": "webhooks:remove",
11455
+ "id": "templates:update",
11449
11456
  "pluginAlias": "@instantkom/cli",
11450
11457
  "pluginName": "@instantkom/cli",
11451
11458
  "pluginType": "core",
@@ -11455,14 +11462,14 @@
11455
11462
  "relativePath": [
11456
11463
  "dist",
11457
11464
  "commands",
11458
- "webhooks",
11459
- "remove.js"
11465
+ "templates",
11466
+ "update.js"
11460
11467
  ]
11461
11468
  },
11462
- "webhooks:test": {
11469
+ "templates:validate-import": {
11463
11470
  "aliases": [],
11464
11471
  "args": {},
11465
- "description": "Send a test webhook payload to a URL",
11472
+ "description": "Validate templates import JSON",
11466
11473
  "flags": {
11467
11474
  "api-key": {
11468
11475
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -11526,25 +11533,18 @@
11526
11533
  "multiple": false,
11527
11534
  "type": "option"
11528
11535
  },
11529
- "url": {
11530
- "description": "Webhook URL to call",
11531
- "name": "url",
11536
+ "file": {
11537
+ "description": "JSON file path",
11538
+ "name": "file",
11532
11539
  "required": true,
11533
11540
  "hasDynamicHelp": false,
11534
11541
  "multiple": false,
11535
11542
  "type": "option"
11536
11543
  },
11537
- "event": {
11538
- "description": "Event name",
11539
- "name": "event",
11540
- "default": "cli.test",
11541
- "hasDynamicHelp": false,
11542
- "multiple": false,
11543
- "type": "option"
11544
- },
11545
- "payload": {
11546
- "description": "Payload JSON",
11547
- "name": "payload",
11544
+ "channel": {
11545
+ "description": "Target channel ID",
11546
+ "name": "channel",
11547
+ "required": true,
11548
11548
  "hasDynamicHelp": false,
11549
11549
  "multiple": false,
11550
11550
  "type": "option"
@@ -11552,7 +11552,7 @@
11552
11552
  },
11553
11553
  "hasDynamicHelp": false,
11554
11554
  "hiddenAliases": [],
11555
- "id": "webhooks:test",
11555
+ "id": "templates:validate-import",
11556
11556
  "pluginAlias": "@instantkom/cli",
11557
11557
  "pluginName": "@instantkom/cli",
11558
11558
  "pluginType": "core",
@@ -11562,8 +11562,8 @@
11562
11562
  "relativePath": [
11563
11563
  "dist",
11564
11564
  "commands",
11565
- "webhooks",
11566
- "test.js"
11565
+ "templates",
11566
+ "validate-import.js"
11567
11567
  ]
11568
11568
  },
11569
11569
  "auth:tokens:create": {
@@ -14380,7 +14380,7 @@
14380
14380
  "remove.js"
14381
14381
  ]
14382
14382
  },
14383
- "flow:edges:create": {
14383
+ "flow:nodes:create": {
14384
14384
  "aliases": [],
14385
14385
  "args": {
14386
14386
  "flowId": {
@@ -14389,7 +14389,7 @@
14389
14389
  "required": true
14390
14390
  }
14391
14391
  },
14392
- "description": "Create a flow edge",
14392
+ "description": "Create a flow node",
14393
14393
  "flags": {
14394
14394
  "api-key": {
14395
14395
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -14453,33 +14453,33 @@
14453
14453
  "multiple": false,
14454
14454
  "type": "option"
14455
14455
  },
14456
- "source": {
14457
- "description": "Source node ID",
14458
- "name": "source",
14459
- "required": true,
14456
+ "bot": {
14457
+ "description": "Bot ID",
14458
+ "name": "bot",
14460
14459
  "hasDynamicHelp": false,
14461
14460
  "multiple": false,
14462
14461
  "type": "option"
14463
14462
  },
14464
- "target": {
14465
- "description": "Target node ID",
14466
- "name": "target",
14463
+ "type": {
14464
+ "description": "Node type",
14465
+ "name": "type",
14467
14466
  "required": true,
14468
14467
  "hasDynamicHelp": false,
14469
14468
  "multiple": false,
14470
14469
  "type": "option"
14471
14470
  },
14472
- "label": {
14473
- "description": "Edge label",
14474
- "name": "label",
14471
+ "x": {
14472
+ "description": "X position",
14473
+ "name": "x",
14474
+ "required": true,
14475
14475
  "hasDynamicHelp": false,
14476
14476
  "multiple": false,
14477
14477
  "type": "option"
14478
14478
  },
14479
- "type": {
14480
- "description": "Edge type",
14481
- "name": "type",
14482
- "default": "default",
14479
+ "y": {
14480
+ "description": "Y position",
14481
+ "name": "y",
14482
+ "required": true,
14483
14483
  "hasDynamicHelp": false,
14484
14484
  "multiple": false,
14485
14485
  "type": "option"
@@ -14494,7 +14494,7 @@
14494
14494
  },
14495
14495
  "hasDynamicHelp": false,
14496
14496
  "hiddenAliases": [],
14497
- "id": "flow:edges:create",
14497
+ "id": "flow:nodes:create",
14498
14498
  "pluginAlias": "@instantkom/cli",
14499
14499
  "pluginName": "@instantkom/cli",
14500
14500
  "pluginType": "core",
@@ -14505,11 +14505,11 @@
14505
14505
  "dist",
14506
14506
  "commands",
14507
14507
  "flow",
14508
- "edges",
14508
+ "nodes",
14509
14509
  "create.js"
14510
14510
  ]
14511
14511
  },
14512
- "flow:edges:delete": {
14512
+ "flow:nodes:delete": {
14513
14513
  "aliases": [],
14514
14514
  "args": {
14515
14515
  "flowId": {
@@ -14517,13 +14517,13 @@
14517
14517
  "name": "flowId",
14518
14518
  "required": true
14519
14519
  },
14520
- "edgeId": {
14521
- "description": "Edge ID",
14522
- "name": "edgeId",
14520
+ "nodeId": {
14521
+ "description": "Node ID",
14522
+ "name": "nodeId",
14523
14523
  "required": true
14524
14524
  }
14525
14525
  },
14526
- "description": "Delete a flow edge",
14526
+ "description": "Delete a flow node",
14527
14527
  "flags": {
14528
14528
  "api-key": {
14529
14529
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -14590,7 +14590,7 @@
14590
14590
  },
14591
14591
  "hasDynamicHelp": false,
14592
14592
  "hiddenAliases": [],
14593
- "id": "flow:edges:delete",
14593
+ "id": "flow:nodes:delete",
14594
14594
  "pluginAlias": "@instantkom/cli",
14595
14595
  "pluginName": "@instantkom/cli",
14596
14596
  "pluginType": "core",
@@ -14601,11 +14601,11 @@
14601
14601
  "dist",
14602
14602
  "commands",
14603
14603
  "flow",
14604
- "edges",
14604
+ "nodes",
14605
14605
  "delete.js"
14606
14606
  ]
14607
14607
  },
14608
- "flow:edges:get": {
14608
+ "flow:nodes:get": {
14609
14609
  "aliases": [],
14610
14610
  "args": {
14611
14611
  "flowId": {
@@ -14613,13 +14613,13 @@
14613
14613
  "name": "flowId",
14614
14614
  "required": true
14615
14615
  },
14616
- "edgeId": {
14617
- "description": "Edge ID",
14618
- "name": "edgeId",
14616
+ "nodeId": {
14617
+ "description": "Node ID",
14618
+ "name": "nodeId",
14619
14619
  "required": true
14620
14620
  }
14621
14621
  },
14622
- "description": "Get a flow edge",
14622
+ "description": "Get a flow node",
14623
14623
  "flags": {
14624
14624
  "api-key": {
14625
14625
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -14686,7 +14686,7 @@
14686
14686
  },
14687
14687
  "hasDynamicHelp": false,
14688
14688
  "hiddenAliases": [],
14689
- "id": "flow:edges:get",
14689
+ "id": "flow:nodes:get",
14690
14690
  "pluginAlias": "@instantkom/cli",
14691
14691
  "pluginName": "@instantkom/cli",
14692
14692
  "pluginType": "core",
@@ -14697,11 +14697,11 @@
14697
14697
  "dist",
14698
14698
  "commands",
14699
14699
  "flow",
14700
- "edges",
14700
+ "nodes",
14701
14701
  "get.js"
14702
14702
  ]
14703
14703
  },
14704
- "flow:edges:list": {
14704
+ "flow:nodes:list": {
14705
14705
  "aliases": [],
14706
14706
  "args": {
14707
14707
  "flowId": {
@@ -14710,7 +14710,7 @@
14710
14710
  "required": true
14711
14711
  }
14712
14712
  },
14713
- "description": "List edges in a flow",
14713
+ "description": "List nodes in a flow",
14714
14714
  "flags": {
14715
14715
  "api-key": {
14716
14716
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -14777,7 +14777,7 @@
14777
14777
  },
14778
14778
  "hasDynamicHelp": false,
14779
14779
  "hiddenAliases": [],
14780
- "id": "flow:edges:list",
14780
+ "id": "flow:nodes:list",
14781
14781
  "pluginAlias": "@instantkom/cli",
14782
14782
  "pluginName": "@instantkom/cli",
14783
14783
  "pluginType": "core",
@@ -14788,11 +14788,11 @@
14788
14788
  "dist",
14789
14789
  "commands",
14790
14790
  "flow",
14791
- "edges",
14791
+ "nodes",
14792
14792
  "list.js"
14793
14793
  ]
14794
14794
  },
14795
- "flow:edges:update": {
14795
+ "flow:nodes:update": {
14796
14796
  "aliases": [],
14797
14797
  "args": {
14798
14798
  "flowId": {
@@ -14800,13 +14800,13 @@
14800
14800
  "name": "flowId",
14801
14801
  "required": true
14802
14802
  },
14803
- "edgeId": {
14804
- "description": "Edge ID",
14805
- "name": "edgeId",
14803
+ "nodeId": {
14804
+ "description": "Node ID",
14805
+ "name": "nodeId",
14806
14806
  "required": true
14807
14807
  }
14808
14808
  },
14809
- "description": "Update a flow edge",
14809
+ "description": "Update a flow node",
14810
14810
  "flags": {
14811
14811
  "api-key": {
14812
14812
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -14870,30 +14870,30 @@
14870
14870
  "multiple": false,
14871
14871
  "type": "option"
14872
14872
  },
14873
- "source": {
14874
- "description": "Source node ID",
14875
- "name": "source",
14873
+ "bot": {
14874
+ "description": "Bot ID",
14875
+ "name": "bot",
14876
14876
  "hasDynamicHelp": false,
14877
14877
  "multiple": false,
14878
14878
  "type": "option"
14879
14879
  },
14880
- "target": {
14881
- "description": "Target node ID",
14882
- "name": "target",
14880
+ "type": {
14881
+ "description": "Node type",
14882
+ "name": "type",
14883
14883
  "hasDynamicHelp": false,
14884
14884
  "multiple": false,
14885
14885
  "type": "option"
14886
14886
  },
14887
- "label": {
14888
- "description": "Edge label",
14889
- "name": "label",
14887
+ "x": {
14888
+ "description": "X position",
14889
+ "name": "x",
14890
14890
  "hasDynamicHelp": false,
14891
14891
  "multiple": false,
14892
14892
  "type": "option"
14893
14893
  },
14894
- "type": {
14895
- "description": "Edge type",
14896
- "name": "type",
14894
+ "y": {
14895
+ "description": "Y position",
14896
+ "name": "y",
14897
14897
  "hasDynamicHelp": false,
14898
14898
  "multiple": false,
14899
14899
  "type": "option"
@@ -14908,7 +14908,7 @@
14908
14908
  },
14909
14909
  "hasDynamicHelp": false,
14910
14910
  "hiddenAliases": [],
14911
- "id": "flow:edges:update",
14911
+ "id": "flow:nodes:update",
14912
14912
  "pluginAlias": "@instantkom/cli",
14913
14913
  "pluginName": "@instantkom/cli",
14914
14914
  "pluginType": "core",
@@ -14919,11 +14919,11 @@
14919
14919
  "dist",
14920
14920
  "commands",
14921
14921
  "flow",
14922
- "edges",
14922
+ "nodes",
14923
14923
  "update.js"
14924
14924
  ]
14925
14925
  },
14926
- "flow:nodes:create": {
14926
+ "flow:edges:create": {
14927
14927
  "aliases": [],
14928
14928
  "args": {
14929
14929
  "flowId": {
@@ -14932,7 +14932,7 @@
14932
14932
  "required": true
14933
14933
  }
14934
14934
  },
14935
- "description": "Create a flow node",
14935
+ "description": "Create a flow edge",
14936
14936
  "flags": {
14937
14937
  "api-key": {
14938
14938
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -14996,33 +14996,33 @@
14996
14996
  "multiple": false,
14997
14997
  "type": "option"
14998
14998
  },
14999
- "bot": {
15000
- "description": "Bot ID",
15001
- "name": "bot",
14999
+ "source": {
15000
+ "description": "Source node ID",
15001
+ "name": "source",
15002
+ "required": true,
15002
15003
  "hasDynamicHelp": false,
15003
15004
  "multiple": false,
15004
15005
  "type": "option"
15005
15006
  },
15006
- "type": {
15007
- "description": "Node type",
15008
- "name": "type",
15007
+ "target": {
15008
+ "description": "Target node ID",
15009
+ "name": "target",
15009
15010
  "required": true,
15010
15011
  "hasDynamicHelp": false,
15011
15012
  "multiple": false,
15012
15013
  "type": "option"
15013
15014
  },
15014
- "x": {
15015
- "description": "X position",
15016
- "name": "x",
15017
- "required": true,
15015
+ "label": {
15016
+ "description": "Edge label",
15017
+ "name": "label",
15018
15018
  "hasDynamicHelp": false,
15019
15019
  "multiple": false,
15020
15020
  "type": "option"
15021
15021
  },
15022
- "y": {
15023
- "description": "Y position",
15024
- "name": "y",
15025
- "required": true,
15022
+ "type": {
15023
+ "description": "Edge type",
15024
+ "name": "type",
15025
+ "default": "default",
15026
15026
  "hasDynamicHelp": false,
15027
15027
  "multiple": false,
15028
15028
  "type": "option"
@@ -15037,7 +15037,7 @@
15037
15037
  },
15038
15038
  "hasDynamicHelp": false,
15039
15039
  "hiddenAliases": [],
15040
- "id": "flow:nodes:create",
15040
+ "id": "flow:edges:create",
15041
15041
  "pluginAlias": "@instantkom/cli",
15042
15042
  "pluginName": "@instantkom/cli",
15043
15043
  "pluginType": "core",
@@ -15048,11 +15048,11 @@
15048
15048
  "dist",
15049
15049
  "commands",
15050
15050
  "flow",
15051
- "nodes",
15051
+ "edges",
15052
15052
  "create.js"
15053
15053
  ]
15054
15054
  },
15055
- "flow:nodes:delete": {
15055
+ "flow:edges:delete": {
15056
15056
  "aliases": [],
15057
15057
  "args": {
15058
15058
  "flowId": {
@@ -15060,13 +15060,13 @@
15060
15060
  "name": "flowId",
15061
15061
  "required": true
15062
15062
  },
15063
- "nodeId": {
15064
- "description": "Node ID",
15065
- "name": "nodeId",
15063
+ "edgeId": {
15064
+ "description": "Edge ID",
15065
+ "name": "edgeId",
15066
15066
  "required": true
15067
15067
  }
15068
15068
  },
15069
- "description": "Delete a flow node",
15069
+ "description": "Delete a flow edge",
15070
15070
  "flags": {
15071
15071
  "api-key": {
15072
15072
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -15133,7 +15133,7 @@
15133
15133
  },
15134
15134
  "hasDynamicHelp": false,
15135
15135
  "hiddenAliases": [],
15136
- "id": "flow:nodes:delete",
15136
+ "id": "flow:edges:delete",
15137
15137
  "pluginAlias": "@instantkom/cli",
15138
15138
  "pluginName": "@instantkom/cli",
15139
15139
  "pluginType": "core",
@@ -15144,11 +15144,11 @@
15144
15144
  "dist",
15145
15145
  "commands",
15146
15146
  "flow",
15147
- "nodes",
15147
+ "edges",
15148
15148
  "delete.js"
15149
15149
  ]
15150
15150
  },
15151
- "flow:nodes:get": {
15151
+ "flow:edges:get": {
15152
15152
  "aliases": [],
15153
15153
  "args": {
15154
15154
  "flowId": {
@@ -15156,13 +15156,13 @@
15156
15156
  "name": "flowId",
15157
15157
  "required": true
15158
15158
  },
15159
- "nodeId": {
15160
- "description": "Node ID",
15161
- "name": "nodeId",
15159
+ "edgeId": {
15160
+ "description": "Edge ID",
15161
+ "name": "edgeId",
15162
15162
  "required": true
15163
15163
  }
15164
15164
  },
15165
- "description": "Get a flow node",
15165
+ "description": "Get a flow edge",
15166
15166
  "flags": {
15167
15167
  "api-key": {
15168
15168
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -15229,7 +15229,7 @@
15229
15229
  },
15230
15230
  "hasDynamicHelp": false,
15231
15231
  "hiddenAliases": [],
15232
- "id": "flow:nodes:get",
15232
+ "id": "flow:edges:get",
15233
15233
  "pluginAlias": "@instantkom/cli",
15234
15234
  "pluginName": "@instantkom/cli",
15235
15235
  "pluginType": "core",
@@ -15240,11 +15240,11 @@
15240
15240
  "dist",
15241
15241
  "commands",
15242
15242
  "flow",
15243
- "nodes",
15243
+ "edges",
15244
15244
  "get.js"
15245
15245
  ]
15246
15246
  },
15247
- "flow:nodes:list": {
15247
+ "flow:edges:list": {
15248
15248
  "aliases": [],
15249
15249
  "args": {
15250
15250
  "flowId": {
@@ -15253,7 +15253,7 @@
15253
15253
  "required": true
15254
15254
  }
15255
15255
  },
15256
- "description": "List nodes in a flow",
15256
+ "description": "List edges in a flow",
15257
15257
  "flags": {
15258
15258
  "api-key": {
15259
15259
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -15320,7 +15320,7 @@
15320
15320
  },
15321
15321
  "hasDynamicHelp": false,
15322
15322
  "hiddenAliases": [],
15323
- "id": "flow:nodes:list",
15323
+ "id": "flow:edges:list",
15324
15324
  "pluginAlias": "@instantkom/cli",
15325
15325
  "pluginName": "@instantkom/cli",
15326
15326
  "pluginType": "core",
@@ -15331,11 +15331,11 @@
15331
15331
  "dist",
15332
15332
  "commands",
15333
15333
  "flow",
15334
- "nodes",
15334
+ "edges",
15335
15335
  "list.js"
15336
15336
  ]
15337
15337
  },
15338
- "flow:nodes:update": {
15338
+ "flow:edges:update": {
15339
15339
  "aliases": [],
15340
15340
  "args": {
15341
15341
  "flowId": {
@@ -15343,13 +15343,13 @@
15343
15343
  "name": "flowId",
15344
15344
  "required": true
15345
15345
  },
15346
- "nodeId": {
15347
- "description": "Node ID",
15348
- "name": "nodeId",
15346
+ "edgeId": {
15347
+ "description": "Edge ID",
15348
+ "name": "edgeId",
15349
15349
  "required": true
15350
15350
  }
15351
15351
  },
15352
- "description": "Update a flow node",
15352
+ "description": "Update a flow edge",
15353
15353
  "flags": {
15354
15354
  "api-key": {
15355
15355
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -15413,30 +15413,30 @@
15413
15413
  "multiple": false,
15414
15414
  "type": "option"
15415
15415
  },
15416
- "bot": {
15417
- "description": "Bot ID",
15418
- "name": "bot",
15416
+ "source": {
15417
+ "description": "Source node ID",
15418
+ "name": "source",
15419
15419
  "hasDynamicHelp": false,
15420
15420
  "multiple": false,
15421
15421
  "type": "option"
15422
15422
  },
15423
- "type": {
15424
- "description": "Node type",
15425
- "name": "type",
15423
+ "target": {
15424
+ "description": "Target node ID",
15425
+ "name": "target",
15426
15426
  "hasDynamicHelp": false,
15427
15427
  "multiple": false,
15428
15428
  "type": "option"
15429
15429
  },
15430
- "x": {
15431
- "description": "X position",
15432
- "name": "x",
15430
+ "label": {
15431
+ "description": "Edge label",
15432
+ "name": "label",
15433
15433
  "hasDynamicHelp": false,
15434
15434
  "multiple": false,
15435
15435
  "type": "option"
15436
15436
  },
15437
- "y": {
15438
- "description": "Y position",
15439
- "name": "y",
15437
+ "type": {
15438
+ "description": "Edge type",
15439
+ "name": "type",
15440
15440
  "hasDynamicHelp": false,
15441
15441
  "multiple": false,
15442
15442
  "type": "option"
@@ -15451,7 +15451,7 @@
15451
15451
  },
15452
15452
  "hasDynamicHelp": false,
15453
15453
  "hiddenAliases": [],
15454
- "id": "flow:nodes:update",
15454
+ "id": "flow:edges:update",
15455
15455
  "pluginAlias": "@instantkom/cli",
15456
15456
  "pluginName": "@instantkom/cli",
15457
15457
  "pluginType": "core",
@@ -15462,7 +15462,7 @@
15462
15462
  "dist",
15463
15463
  "commands",
15464
15464
  "flow",
15465
- "nodes",
15465
+ "edges",
15466
15466
  "update.js"
15467
15467
  ]
15468
15468
  },
@@ -15856,16 +15856,16 @@
15856
15856
  "list.js"
15857
15857
  ]
15858
15858
  },
15859
- "tags:segments:list": {
15859
+ "tags:recipients:add": {
15860
15860
  "aliases": [],
15861
15861
  "args": {
15862
- "id": {
15862
+ "tagId": {
15863
15863
  "description": "Tag ID",
15864
- "name": "id",
15864
+ "name": "tagId",
15865
15865
  "required": true
15866
15866
  }
15867
15867
  },
15868
- "description": "List segments that use a specific tag",
15868
+ "description": "Assign a tag to recipients",
15869
15869
  "flags": {
15870
15870
  "api-key": {
15871
15871
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -15929,18 +15929,10 @@
15929
15929
  "multiple": false,
15930
15930
  "type": "option"
15931
15931
  },
15932
- "page": {
15933
- "description": "Page number",
15934
- "name": "page",
15935
- "default": 1,
15936
- "hasDynamicHelp": false,
15937
- "multiple": false,
15938
- "type": "option"
15939
- },
15940
- "limit": {
15941
- "description": "Items per page",
15942
- "name": "limit",
15943
- "default": 20,
15932
+ "recipients": {
15933
+ "description": "Comma-separated recipient IDs",
15934
+ "name": "recipients",
15935
+ "required": true,
15944
15936
  "hasDynamicHelp": false,
15945
15937
  "multiple": false,
15946
15938
  "type": "option"
@@ -15948,7 +15940,7 @@
15948
15940
  },
15949
15941
  "hasDynamicHelp": false,
15950
15942
  "hiddenAliases": [],
15951
- "id": "tags:segments:list",
15943
+ "id": "tags:recipients:add",
15952
15944
  "pluginAlias": "@instantkom/cli",
15953
15945
  "pluginName": "@instantkom/cli",
15954
15946
  "pluginType": "core",
@@ -15959,11 +15951,11 @@
15959
15951
  "dist",
15960
15952
  "commands",
15961
15953
  "tags",
15962
- "segments",
15963
- "list.js"
15954
+ "recipients",
15955
+ "add.js"
15964
15956
  ]
15965
15957
  },
15966
- "tags:recipients:add": {
15958
+ "tags:recipients:remove": {
15967
15959
  "aliases": [],
15968
15960
  "args": {
15969
15961
  "tagId": {
@@ -15972,7 +15964,7 @@
15972
15964
  "required": true
15973
15965
  }
15974
15966
  },
15975
- "description": "Assign a tag to recipients",
15967
+ "description": "Remove a tag from recipients",
15976
15968
  "flags": {
15977
15969
  "api-key": {
15978
15970
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -16047,7 +16039,7 @@
16047
16039
  },
16048
16040
  "hasDynamicHelp": false,
16049
16041
  "hiddenAliases": [],
16050
- "id": "tags:recipients:add",
16042
+ "id": "tags:recipients:remove",
16051
16043
  "pluginAlias": "@instantkom/cli",
16052
16044
  "pluginName": "@instantkom/cli",
16053
16045
  "pluginType": "core",
@@ -16059,19 +16051,19 @@
16059
16051
  "commands",
16060
16052
  "tags",
16061
16053
  "recipients",
16062
- "add.js"
16054
+ "remove.js"
16063
16055
  ]
16064
16056
  },
16065
- "tags:recipients:remove": {
16057
+ "tags:segments:list": {
16066
16058
  "aliases": [],
16067
16059
  "args": {
16068
- "tagId": {
16060
+ "id": {
16069
16061
  "description": "Tag ID",
16070
- "name": "tagId",
16062
+ "name": "id",
16071
16063
  "required": true
16072
16064
  }
16073
16065
  },
16074
- "description": "Remove a tag from recipients",
16066
+ "description": "List segments that use a specific tag",
16075
16067
  "flags": {
16076
16068
  "api-key": {
16077
16069
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -16135,10 +16127,18 @@
16135
16127
  "multiple": false,
16136
16128
  "type": "option"
16137
16129
  },
16138
- "recipients": {
16139
- "description": "Comma-separated recipient IDs",
16140
- "name": "recipients",
16141
- "required": true,
16130
+ "page": {
16131
+ "description": "Page number",
16132
+ "name": "page",
16133
+ "default": 1,
16134
+ "hasDynamicHelp": false,
16135
+ "multiple": false,
16136
+ "type": "option"
16137
+ },
16138
+ "limit": {
16139
+ "description": "Items per page",
16140
+ "name": "limit",
16141
+ "default": 20,
16142
16142
  "hasDynamicHelp": false,
16143
16143
  "multiple": false,
16144
16144
  "type": "option"
@@ -16146,7 +16146,7 @@
16146
16146
  },
16147
16147
  "hasDynamicHelp": false,
16148
16148
  "hiddenAliases": [],
16149
- "id": "tags:recipients:remove",
16149
+ "id": "tags:segments:list",
16150
16150
  "pluginAlias": "@instantkom/cli",
16151
16151
  "pluginName": "@instantkom/cli",
16152
16152
  "pluginType": "core",
@@ -16157,8 +16157,8 @@
16157
16157
  "dist",
16158
16158
  "commands",
16159
16159
  "tags",
16160
- "recipients",
16161
- "remove.js"
16160
+ "segments",
16161
+ "list.js"
16162
16162
  ]
16163
16163
  },
16164
16164
  "ticket:messages:create": {
@@ -17052,5 +17052,5 @@
17052
17052
  ]
17053
17053
  }
17054
17054
  },
17055
- "version": "3.186.1"
17055
+ "version": "3.187.1"
17056
17056
  }