Documentation
¶
Index ¶
- func Execute(version, commit, date string)
- type ArgInfo
- type CommandInfo
- type CreateTicketInput
- type CustomFieldInput
- type DeleteTicketInput
- type FlagInfo
- type ListArticlesInput
- type ListCommentsInput
- type ListTicketsInput
- type SearchArticlesInput
- type SearchTicketsInput
- type ShowArticleInput
- type ShowTicketInput
- type UpdateTicketInput
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CommandInfo ¶
type CreateTicketInput ¶ added in v0.4.0
type CreateTicketInput struct {
Subject string `json:"subject" jsonschema:"Ticket subject (required)"`
Comment string `json:"comment" jsonschema:"Ticket body/description (required)"`
Priority string `json:"priority,omitempty" jsonschema:"Priority: urgent, high, normal, low"`
Type string `json:"type,omitempty" jsonschema:"Type: problem, incident, question, task"`
Status string `json:"status,omitempty" jsonschema:"Status: new, open, pending, hold, solved, closed"`
AssigneeID int64 `json:"assignee_id,omitempty" jsonschema:"Assignee user ID"`
GroupID int64 `json:"group_id,omitempty" jsonschema:"Group ID"`
Tags []string `json:"tags,omitempty" jsonschema:"Tags to add to the ticket"`
CustomFields []CustomFieldInput `json:"custom_fields,omitempty" jsonschema:"Custom fields"`
RequesterEmail string `json:"requester_email,omitempty" jsonschema:"Requester email (for on-behalf-of creation)"`
RequesterName string `json:"requester_name,omitempty" jsonschema:"Requester display name"`
}
type CustomFieldInput ¶ added in v0.4.13
type CustomFieldInput struct {
ID int64 `json:"id" jsonschema:"Custom field ID"`
Value interface{} `json:"value" jsonschema:"Custom field value"`
}
type DeleteTicketInput ¶ added in v0.4.0
type DeleteTicketInput struct {
ID int64 `json:"id" jsonschema:"Zendesk ticket ID (required)"`
}
type ListArticlesInput ¶ added in v0.4.13
type ListArticlesInput struct {
Limit int `json:"limit,omitempty" jsonschema:"Max articles to return (default 25, max 100)"`
Cursor string `json:"cursor,omitempty" jsonschema:"Pagination cursor"`
SortBy string `json:"sort_by,omitempty" jsonschema:"Sort: title, created_at, updated_at"`
SortOrder string `json:"sort_order,omitempty" jsonschema:"Sort order: asc or desc (default: desc)"`
}
type ListCommentsInput ¶ added in v0.4.13
type ListCommentsInput struct {
TicketID int64 `json:"ticket_id" jsonschema:"Zendesk ticket ID (required)"`
Limit int `json:"limit,omitempty" jsonschema:"Max comments to return (default 100)"`
Cursor string `json:"cursor,omitempty" jsonschema:"Pagination cursor"`
SortOrder string `json:"sort_order,omitempty" jsonschema:"Sort order: asc or desc (default: asc)"`
}
type ListTicketsInput ¶ added in v0.4.0
type ListTicketsInput struct {
Status string `json:"status,omitempty" jsonschema:"Filter by status (new/open/pending/hold/solved/closed)"`
AssigneeID int64 `json:"assignee_id,omitempty" jsonschema:"Filter by assignee user ID"`
GroupID int64 `json:"group_id,omitempty" jsonschema:"Filter by group ID"`
Limit int `json:"limit,omitempty" jsonschema:"Max tickets to return (default 20, max 100)"`
Cursor string `json:"cursor,omitempty" jsonschema:"Pagination cursor for next page"`
Sort string `json:"sort,omitempty" jsonschema:"Sort field (default: updated_at)"`
SortOrder string `json:"sort_order,omitempty" jsonschema:"Sort order: asc or desc (default: desc)"`
}
type SearchArticlesInput ¶ added in v0.4.13
type SearchTicketsInput ¶ added in v0.4.0
type SearchTicketsInput struct {
Query string `` /* 149-byte string literal not displayed */
Limit int `json:"limit,omitempty" jsonschema:"Max results to return (default 20, max 100)"`
Cursor string `json:"cursor,omitempty" jsonschema:"Pagination cursor for next page"`
SortBy string `json:"sort_by,omitempty" jsonschema:"Sort field"`
SortOrder string `json:"sort_order,omitempty" jsonschema:"Sort order: asc or desc (default: desc)"`
}
type ShowArticleInput ¶ added in v0.4.13
type ShowArticleInput struct {
ID int64 `json:"id" jsonschema:"Help Center article ID (required)"`
}
type ShowTicketInput ¶ added in v0.4.0
type ShowTicketInput struct {
ID int64 `json:"id" jsonschema:"Zendesk ticket ID (required)"`
}
type UpdateTicketInput ¶ added in v0.4.0
type UpdateTicketInput struct {
ID int64 `json:"id" jsonschema:"Zendesk ticket ID (required)"`
Subject string `json:"subject,omitempty" jsonschema:"Update ticket subject"`
Comment string `json:"comment,omitempty" jsonschema:"Add a comment to the ticket"`
Public *bool `json:"public,omitempty" jsonschema:"Whether comment is public (default true). Set to false for internal notes"`
Status string `json:"status,omitempty" jsonschema:"Set status: new, open, pending, hold, solved, closed"`
Priority string `json:"priority,omitempty" jsonschema:"Set priority: urgent, high, normal, low"`
AssigneeID *int64 `json:"assignee_id,omitempty" jsonschema:"Assignee user ID (send 0 to unassign)"`
GroupID *int64 `json:"group_id,omitempty" jsonschema:"Group ID (send 0 to unset)"`
Tags []string `json:"tags,omitempty" jsonschema:"Replace all tags"`
AddTags []string `json:"add_tags,omitempty" jsonschema:"Tags to add"`
RemoveTags []string `json:"remove_tags,omitempty" jsonschema:"Tags to remove"`
CustomFields []CustomFieldInput `json:"custom_fields,omitempty" jsonschema:"Custom fields"`
SafeUpdate bool `json:"safe_update,omitempty" jsonschema:"Enable conflict detection"`
CC []string `json:"cc,omitempty" jsonschema:"Add CCs to the comment (emails or user IDs). Ignored for internal notes"`
}
Source Files
¶
- articles.go
- articles_list.go
- articles_search.go
- articles_show.go
- auth.go
- auth_login.go
- auth_logout.go
- auth_status.go
- commands.go
- completion.go
- config.go
- config_set.go
- config_show.go
- man.go
- mcp.go
- mcp_tools.go
- root.go
- schema.go
- tickets.go
- tickets_comments.go
- tickets_create.go
- tickets_delete.go
- tickets_list.go
- tickets_search.go
- tickets_show.go
- tickets_update.go
- tui.go
- version.go
Click to show internal directories.
Click to hide internal directories.