@sinch/mcp
Version:
Sinch MCP server
21 lines • 720 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.formatListAllAppsResponse = void 0;
const formatListAllAppsResponse = (response) => {
if (!response || !response.apps) {
return { apps: [] };
}
return {
apps: response.apps?.map(app => ({
id: app.id,
display_name: app.display_name,
channel_credentials: app.channel_credentials
?.filter(cred => cred.state?.status === 'ACTIVE')
.map(cred => ({
channel: cred.channel
}))
}))
};
};
exports.formatListAllAppsResponse = formatListAllAppsResponse;
//# sourceMappingURL=format-list-all-apps-response.js.map