2
0

index.js 831 B

123456789101112131415161718192021222324252627282930
  1. import connection_api from '../connection/api.js';
  2. import events_api from './events.js';
  3. import promise_api from './promise.js';
  4. import send_api from './send.js';
  5. import user_api from './user.js';
  6. import { settings_api } from '../settings/api.js';
  7. /**
  8. * ### The private API
  9. *
  10. * The private API methods are only accessible via the closured {@link _converse}
  11. * object, which is only available to plugins.
  12. *
  13. * These methods are kept private (i.e. not global) because they may return
  14. * sensitive data which should be kept off-limits to other 3rd-party scripts
  15. * that might be running in the page.
  16. *
  17. * @namespace _converse.api
  18. * @memberOf _converse
  19. */
  20. const api = {
  21. connection: connection_api,
  22. settings: settings_api,
  23. ...send_api,
  24. ...user_api,
  25. ...events_api,
  26. ...promise_api,
  27. };
  28. export default api;