@kyoji2/intercom-cli 0.1.0 → 0.1.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -62,7 +62,7 @@ intercom contact delete <id>
62
62
  intercom conversation list
63
63
  intercom conversation search --state open
64
64
  intercom conversation get <id>
65
- intercom conversation reply <id> --admin <admin-id> --body "Thank you!"
65
+ intercom conversation reply <id> --admin <admin-id> --body "Internal triage note" --type note
66
66
  intercom conversation close <id> --admin <admin-id>
67
67
 
68
68
  # Manage companies
@@ -81,6 +81,17 @@ intercom article get <id>
81
81
 
82
82
  # Track events
83
83
  intercom event track --name "purchase" --user-id "user123"
84
+
85
+ # Manage tickets
86
+ intercom ticket create --type-id 1234 --contact-id abc123 --title "Issue"
87
+ intercom ticket search --state open
88
+ intercom ticket get <id>
89
+ intercom ticket reply <id> --admin <admin-id> --body "We're on it!" --type comment
90
+ intercom ticket reply <id> --admin <admin-id> --body "Internal note" --json '{"message_type":"note"}'
91
+ intercom ticket close <id> --admin <admin-id>
92
+
93
+ # List ticket types
94
+ intercom ticket-type list
84
95
  ```
85
96
 
86
97
  ## Commands
@@ -123,6 +134,10 @@ intercom event track --name "purchase" --user-id "user123"
123
134
  | `intercom conversation close <id>` | Close conversation |
124
135
  | `intercom conversation open <id>` | Reopen conversation |
125
136
  | `intercom conversation snooze <id>` | Snooze conversation |
137
+ | `intercom conversation convert <id>` | Convert conversation to ticket |
138
+
139
+ `intercom conversation reply` supports `--type <comment|note>` and `--json <json>`.
140
+ Message type precedence: `--type` > `--json.message_type` > `comment`.
126
141
 
127
142
  ### Companies
128
143
 
@@ -167,6 +182,29 @@ intercom event track --name "purchase" --user-id "user123"
167
182
  | `intercom event track` | Track a custom event |
168
183
  | `intercom event list` | List events for a user |
169
184
 
185
+ ### Tickets
186
+
187
+ | Command | Description |
188
+ |---------|-------------|
189
+ | `intercom ticket create` | Create a new ticket |
190
+ | `intercom ticket get <id>` | Get ticket details |
191
+ | `intercom ticket update <id>` | Update a ticket |
192
+ | `intercom ticket delete <id>` | Delete a ticket |
193
+ | `intercom ticket search` | Search tickets |
194
+ | `intercom ticket reply <id>` | Reply to a ticket |
195
+ | `intercom ticket close <id>` | Close a ticket |
196
+ | `intercom ticket assign <id>` | Assign ticket to admin/team |
197
+
198
+ `intercom ticket reply` supports `--type <comment|note>` and `--json <json>`.
199
+ Message type precedence: `--type` > `--json.message_type` > `comment`.
200
+
201
+ ### Ticket Types
202
+
203
+ | Command | Description |
204
+ |---------|-------------|
205
+ | `intercom ticket-type list` | List all ticket types |
206
+ | `intercom ticket-type get <id>` | Get ticket type details |
207
+
170
208
  ## Global Options
171
209
 
172
210
  All commands support:
@@ -174,6 +212,7 @@ All commands support:
174
212
  ```bash
175
213
  --dry-run # Log actions without making API calls
176
214
  -f, --format <format> # Output format: toon (default) or json
215
+ --config-dir <path> # Config directory (default: ~/.config/intercom-cli)
177
216
  -v, --version # Show version
178
217
  -h, --help # Show help
179
218
  ```