more more bug fix in ticket tools
This commit is contained in:
parent
82623c0df8
commit
88bc35d85d
|
@ -25,17 +25,12 @@ class TicketService
|
||||||
'parameters' => [
|
'parameters' => [
|
||||||
'type' => 'object',
|
'type' => 'object',
|
||||||
'properties' => [
|
'properties' => [
|
||||||
'user_id' => [
|
'user' => [
|
||||||
'type' => 'string',
|
'type' => 'object',
|
||||||
'description' => 'The ID of the user whose tickets to retrieve'
|
'description' => 'The user object'
|
||||||
],
|
|
||||||
'status' => [
|
|
||||||
'type' => 'string',
|
|
||||||
'description' => 'Filter tickets by status (optional)',
|
|
||||||
'enum' => ['open', 'closed', 'pending']
|
|
||||||
]
|
]
|
||||||
],
|
],
|
||||||
'required' => ['user_id']
|
'required' => ['user']
|
||||||
]
|
]
|
||||||
],
|
],
|
||||||
[
|
[
|
||||||
|
@ -44,47 +39,49 @@ class TicketService
|
||||||
'parameters' => [
|
'parameters' => [
|
||||||
'type' => 'object',
|
'type' => 'object',
|
||||||
'properties' => [
|
'properties' => [
|
||||||
'ticket_id' => [
|
'params' => [
|
||||||
'type' => 'string',
|
'type' => 'object',
|
||||||
'description' => 'Ticket ID (required for updates, omit for new tickets)'
|
'description' => 'The ticket parameters',
|
||||||
|
'properties' => [
|
||||||
|
'subject' => [
|
||||||
|
'type' => 'string',
|
||||||
|
'description' => 'The subject/title of the ticket'
|
||||||
|
],
|
||||||
|
'message' => [
|
||||||
|
'type' => 'string',
|
||||||
|
'description' => 'The ticket message or description'
|
||||||
|
],
|
||||||
|
'priority' => [
|
||||||
|
'type' => 'string',
|
||||||
|
'description' => 'Ticket priority level',
|
||||||
|
'enum' => ['low', 'medium', 'high']
|
||||||
|
],
|
||||||
|
'department' => [
|
||||||
|
'type' => 'string',
|
||||||
|
'description' => 'The department this ticket belongs to',
|
||||||
|
'enum' => ['technical', 'financial', 'general']
|
||||||
|
]
|
||||||
|
],
|
||||||
|
'required' => ['subject', 'message']
|
||||||
],
|
],
|
||||||
'subject' => [
|
'files' => [
|
||||||
'type' => 'string',
|
|
||||||
'description' => 'The subject/title of the ticket'
|
|
||||||
],
|
|
||||||
'message' => [
|
|
||||||
'type' => 'string',
|
|
||||||
'description' => 'The ticket message or description'
|
|
||||||
],
|
|
||||||
'priority' => [
|
|
||||||
'type' => 'string',
|
|
||||||
'description' => 'Ticket priority level',
|
|
||||||
'enum' => ['low', 'medium', 'high']
|
|
||||||
],
|
|
||||||
'department' => [
|
|
||||||
'type' => 'string',
|
|
||||||
'description' => 'The department this ticket belongs to',
|
|
||||||
'enum' => ['technical', 'financial', 'general']
|
|
||||||
],
|
|
||||||
'attachments' => [
|
|
||||||
'type' => 'array',
|
'type' => 'array',
|
||||||
'description' => 'Array of file attachments',
|
'description' => 'Array of file attachments',
|
||||||
'items' => [
|
'items' => [
|
||||||
'type' => 'object',
|
'type' => 'object',
|
||||||
'properties' => [
|
'description' => 'File object'
|
||||||
'filename' => [
|
|
||||||
'type' => 'string',
|
|
||||||
'description' => 'Name of the attached file'
|
|
||||||
],
|
|
||||||
'content' => [
|
|
||||||
'type' => 'string',
|
|
||||||
'description' => 'Base64 encoded content of the file'
|
|
||||||
]
|
|
||||||
}
|
|
||||||
]
|
]
|
||||||
}
|
],
|
||||||
|
'user' => [
|
||||||
|
'type' => 'object',
|
||||||
|
'description' => 'The user object'
|
||||||
|
],
|
||||||
|
'id' => [
|
||||||
|
'type' => 'string',
|
||||||
|
'description' => 'Ticket ID (required for updates, omit for new tickets)'
|
||||||
|
]
|
||||||
],
|
],
|
||||||
'required' => ['subject', 'message', 'priority', 'department']
|
'required' => ['params', 'files', 'user']
|
||||||
]
|
]
|
||||||
],
|
],
|
||||||
[
|
[
|
||||||
|
@ -93,16 +90,16 @@ class TicketService
|
||||||
'parameters' => [
|
'parameters' => [
|
||||||
'type' => 'object',
|
'type' => 'object',
|
||||||
'properties' => [
|
'properties' => [
|
||||||
'ticket_id' => [
|
'id' => [
|
||||||
'type' => 'string',
|
'type' => 'string',
|
||||||
'description' => 'The unique identifier of the ticket'
|
'description' => 'The unique identifier of the ticket'
|
||||||
],
|
],
|
||||||
'include_messages' => [
|
'user' => [
|
||||||
'type' => 'boolean',
|
'type' => 'object',
|
||||||
'description' => 'Whether to include the full conversation history'
|
'description' => 'The user object'
|
||||||
]
|
]
|
||||||
],
|
],
|
||||||
'required' => ['ticket_id']
|
'required' => ['id', 'user']
|
||||||
]
|
]
|
||||||
]
|
]
|
||||||
];
|
];
|
||||||
|
|
Loading…
Reference in a new issue