more more bug fix in ticket tools

This commit is contained in:
Hesabix 2025-07-26 12:34:04 -07:00
parent 82623c0df8
commit 88bc35d85d

View file

@ -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,10 +39,10 @@ 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' => [ 'subject' => [
'type' => 'string', 'type' => 'string',
'description' => 'The subject/title of the ticket' 'description' => 'The subject/title of the ticket'
@ -65,26 +60,28 @@ class TicketService
'type' => 'string', 'type' => 'string',
'description' => 'The department this ticket belongs to', 'description' => 'The department this ticket belongs to',
'enum' => ['technical', 'financial', 'general'] 'enum' => ['technical', 'financial', 'general']
]
], ],
'attachments' => [ 'required' => ['subject', 'message']
],
'files' => [
'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'
] ]
}
]
}
], ],
'required' => ['subject', 'message', 'priority', 'department'] 'user' => [
'type' => 'object',
'description' => 'The user object'
],
'id' => [
'type' => 'string',
'description' => 'Ticket ID (required for updates, omit for new tickets)'
]
],
'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']
] ]
] ]
]; ];