LinkChatFiles inserts file associations into the chat_file_links join table with deduplication (ON CONFLICT DO NOTHING). The INSERT is conditional: it only proceeds when the total number of links (existing + genuinely new) does not exceed max_file_links. Returns the number of genuinely new file IDs
(ctx context.Context, arg LinkChatFilesParams)
| 1036 | // already linked). A positive value means the cap blocked that many |
| 1037 | // new links. |
| 1038 | LinkChatFiles(ctx context.Context, arg LinkChatFilesParams) (int32, error) |
| 1039 | ListAIBridgeClients(ctx context.Context, arg ListAIBridgeClientsParams) ([]string, error) |
| 1040 | ListAIBridgeInterceptions(ctx context.Context, arg ListAIBridgeInterceptionsParams) ([]ListAIBridgeInterceptionsRow, error) |
| 1041 | // Finds all unique AI Bridge interception telemetry summaries combinations |
no outgoing calls