@@ -12,6 +12,71 @@ type Tool struct {
1212
1313// Error represents the Error schema from the OpenAPI specification
1414type Error struct {
15- Code int `json:"code,omitempty"`
1615 Message string `json:"message,omitempty"`
16+ Code int `json:"code,omitempty"`
17+ }
18+
19+ // ErrorResponse represents the ErrorResponse schema from the OpenAPI specification
20+ type ErrorResponse struct {
21+ Timestamp string `json:"timestamp,omitempty"` // Error timestamp
22+ ErrorField string `json:"error,omitempty"` // Technical error details
23+ Message string `json:"message,omitempty"` // Error message
24+ }
25+
26+ // APIResponse represents the APIResponse schema from the OpenAPI specification
27+ type APIResponse struct {
28+ Data map [string ]interface {} `json:"data,omitempty"` // Response data
29+ Message string `json:"message,omitempty"` // Response message
30+ Success bool `json:"success,omitempty"` // Operation success status
31+ }
32+
33+ // CustomerResponse represents the CustomerResponse schema from the OpenAPI specification
34+ type CustomerResponse struct {
35+ Message string `json:"message,omitempty"` // Response message
36+ Success bool `json:"success,omitempty"` // Operation success status
37+ Customer Customer `json:"customer,omitempty"`
38+ }
39+
40+ // Success represents the Success schema from the OpenAPI specification
41+ type Success struct {
42+ Data map [string ]interface {} `json:"data,omitempty"` // Response data
43+ Message string `json:"message,omitempty"` // Success message
44+ Success bool `json:"success,omitempty"` // Operation success status
45+ }
46+
47+ // Broker represents the Broker schema from the OpenAPI specification
48+ type Broker struct {
49+ Name string `json:"name,omitempty"` // Broker name
50+ Status string `json:"status,omitempty"` // Broker status
51+ Endpoint string `json:"endpoint,omitempty"` // Broker endpoint URL
52+ Id string `json:"id,omitempty"` // Broker unique identifier
53+ }
54+
55+ // Artifact represents the Artifact schema from the OpenAPI specification
56+ type Artifact struct {
57+ Customerid string `json:"customerId,omitempty"` // Customer ID associated with the artifact
58+ Id string `json:"id,omitempty"` // Artifact unique identifier
59+ Name string `json:"name,omitempty"` // Artifact name
60+ Size int `json:"size,omitempty"` // Artifact size in bytes
61+ TypeField string `json:"type,omitempty"` // Artifact type
62+ Updatedat string `json:"updatedAt,omitempty"` // Last update timestamp
63+ Createdat string `json:"createdAt,omitempty"` // Creation timestamp
64+ }
65+
66+ // Customer represents the Customer schema from the OpenAPI specification
67+ type Customer struct {
68+ Createdat string `json:"createdAt,omitempty"` // Creation timestamp
69+ Email string `json:"email,omitempty"` // Customer email address
70+ Id string `json:"id,omitempty"` // Customer unique identifier
71+ Name string `json:"name,omitempty"` // Customer name
72+ }
73+
74+ // BrokerInfo represents the BrokerInfo schema from the OpenAPI specification
75+ type BrokerInfo struct {
76+ Id string `json:"id,omitempty"` // Broker unique identifier
77+ Lasthealthcheck string `json:"lastHealthCheck,omitempty"` // Last health check timestamp
78+ Name string `json:"name,omitempty"` // Broker name
79+ Status string `json:"status,omitempty"` // Broker status
80+ TypeField string `json:"type,omitempty"` // Broker type
81+ Endpoint string `json:"endpoint,omitempty"` // Broker endpoint URL
1782}
0 commit comments