()
| 90 | |
| 91 | |
| 92 | def _connections_payload() -> dict[str, Any]: |
| 93 | store = ConnectionsStore() |
| 94 | effective = resolve_primary_connection(store=store) |
| 95 | return { |
| 96 | "stored": store.export(), |
| 97 | "effective": { |
| 98 | "upstream": effective.upstream, |
| 99 | "has_api_key": bool(effective.api_key), |
| 100 | "api_key_preview": mask_api_key(effective.api_key), |
| 101 | "source": effective.source, |
| 102 | "upstream_source": effective.upstream_source, |
| 103 | "api_key_source": effective.api_key_source, |
| 104 | "editable": effective.editable, |
| 105 | }, |
| 106 | } |
| 107 | |
| 108 | |
| 109 | def _spending_payload() -> dict[str, Any]: |
no test coverage detected