2018-02-14 21:23:20 +01:00
|
|
|
// Matrix Construct
|
|
|
|
//
|
|
|
|
// Copyright (C) Matrix Construct Developers, Authors & Contributors
|
|
|
|
// Copyright (C) 2016-2018 Jason Volk <jason@zemos.net>
|
|
|
|
//
|
|
|
|
// Permission to use, copy, modify, and/or distribute this software for any
|
|
|
|
// purpose with or without fee is hereby granted, provided that the above
|
|
|
|
// copyright notice and this permission notice is present in all copies. The
|
|
|
|
// full license for this software is available in the LICENSE file.
|
|
|
|
|
2019-09-29 01:12:07 +02:00
|
|
|
extern ircd::m::resource rooms_resource;
|
2018-02-14 21:23:20 +01:00
|
|
|
|
2019-02-17 02:29:58 +01:00
|
|
|
///////////////////////////////////////////////////////////////////////////////
|
|
|
|
//
|
|
|
|
// event.cc
|
|
|
|
//
|
|
|
|
|
2019-09-29 01:12:07 +02:00
|
|
|
ircd::m::resource::response
|
2019-02-17 02:29:58 +01:00
|
|
|
get__event(ircd::client &client,
|
2019-09-29 01:12:07 +02:00
|
|
|
const ircd::m::resource::request &request,
|
2019-02-17 02:29:58 +01:00
|
|
|
const ircd::m::room::id &room_id);
|
|
|
|
|
2018-02-14 21:23:20 +01:00
|
|
|
///////////////////////////////////////////////////////////////////////////////
|
|
|
|
//
|
|
|
|
// messages.cc
|
|
|
|
//
|
|
|
|
|
2019-09-29 01:12:07 +02:00
|
|
|
ircd::m::resource::response
|
2018-02-14 21:23:20 +01:00
|
|
|
get__messages(ircd::client &,
|
2019-09-29 01:12:07 +02:00
|
|
|
const ircd::m::resource::request &,
|
2018-02-14 21:23:20 +01:00
|
|
|
const ircd::m::room::id &);
|
|
|
|
|
|
|
|
///////////////////////////////////////////////////////////////////////////////
|
|
|
|
//
|
|
|
|
// state.cc
|
|
|
|
//
|
|
|
|
|
2019-09-29 01:12:07 +02:00
|
|
|
ircd::m::resource::response
|
2018-02-14 21:23:20 +01:00
|
|
|
get__state(ircd::client &client,
|
2019-09-29 01:12:07 +02:00
|
|
|
const ircd::m::resource::request &request,
|
2018-02-14 21:23:20 +01:00
|
|
|
const ircd::m::room::id &room_id);
|
|
|
|
|
2019-09-29 01:12:07 +02:00
|
|
|
ircd::m::resource::response
|
2018-02-16 21:43:30 +01:00
|
|
|
put__state(ircd::client &client,
|
2019-09-29 01:12:07 +02:00
|
|
|
const ircd::m::resource::request &request,
|
2018-02-16 21:43:30 +01:00
|
|
|
const ircd::m::room::id &room_id);
|
|
|
|
|
2018-02-14 21:23:20 +01:00
|
|
|
///////////////////////////////////////////////////////////////////////////////
|
|
|
|
//
|
|
|
|
// members.cc
|
|
|
|
//
|
|
|
|
|
2019-09-29 01:12:07 +02:00
|
|
|
ircd::m::resource::response
|
2018-02-14 21:23:20 +01:00
|
|
|
get__members(ircd::client &client,
|
2019-09-29 01:12:07 +02:00
|
|
|
const ircd::m::resource::request &request,
|
2018-02-14 21:23:20 +01:00
|
|
|
const ircd::m::room::id &room_id);
|
|
|
|
|
2019-09-29 01:12:07 +02:00
|
|
|
ircd::m::resource::response
|
2018-02-16 21:36:30 +01:00
|
|
|
get__joined_members(ircd::client &client,
|
2019-09-29 01:12:07 +02:00
|
|
|
const ircd::m::resource::request &request,
|
2018-02-16 21:36:30 +01:00
|
|
|
const ircd::m::room::id &room_id);
|
|
|
|
|
2018-02-14 21:23:20 +01:00
|
|
|
///////////////////////////////////////////////////////////////////////////////
|
|
|
|
//
|
|
|
|
// context.cc
|
|
|
|
//
|
|
|
|
|
2019-09-29 01:12:07 +02:00
|
|
|
ircd::m::resource::response
|
2018-02-14 21:23:20 +01:00
|
|
|
get__context(ircd::client &client,
|
2019-09-29 01:12:07 +02:00
|
|
|
const ircd::m::resource::request &request,
|
2018-02-14 21:23:20 +01:00
|
|
|
const ircd::m::room::id &room_id);
|
|
|
|
|
|
|
|
///////////////////////////////////////////////////////////////////////////////
|
|
|
|
//
|
|
|
|
// send.cc
|
|
|
|
//
|
|
|
|
|
2019-09-29 01:12:07 +02:00
|
|
|
ircd::m::resource::response
|
2018-02-14 21:23:20 +01:00
|
|
|
put__send(ircd::client &client,
|
2019-09-29 01:12:07 +02:00
|
|
|
const ircd::m::resource::request &request,
|
2018-02-14 21:23:20 +01:00
|
|
|
const ircd::m::room::id &room_id);
|
|
|
|
|
|
|
|
///////////////////////////////////////////////////////////////////////////////
|
|
|
|
//
|
|
|
|
// typing.cc
|
|
|
|
//
|
|
|
|
|
2019-09-29 01:12:07 +02:00
|
|
|
ircd::m::resource::response
|
2018-02-14 21:23:20 +01:00
|
|
|
put__typing(ircd::client &client,
|
2019-09-29 01:12:07 +02:00
|
|
|
const ircd::m::resource::request &request,
|
2018-02-14 21:23:20 +01:00
|
|
|
const ircd::m::room::id &room_id);
|
|
|
|
|
2018-02-16 01:07:02 +01:00
|
|
|
///////////////////////////////////////////////////////////////////////////////
|
|
|
|
//
|
|
|
|
// redact.cc
|
|
|
|
//
|
|
|
|
|
2019-09-29 01:12:07 +02:00
|
|
|
ircd::m::resource::response
|
2018-02-16 01:07:02 +01:00
|
|
|
put__redact(ircd::client &client,
|
2019-09-29 01:12:07 +02:00
|
|
|
const ircd::m::resource::request &request,
|
2018-02-16 01:07:02 +01:00
|
|
|
const ircd::m::room::id &room_id);
|
|
|
|
|
2019-09-29 01:12:07 +02:00
|
|
|
ircd::m::resource::response
|
2018-02-16 01:26:17 +01:00
|
|
|
post__redact(ircd::client &client,
|
2019-09-29 01:12:07 +02:00
|
|
|
const ircd::m::resource::request &request,
|
2018-02-16 01:26:17 +01:00
|
|
|
const ircd::m::room::id &room_id);
|
|
|
|
|
2018-02-14 21:23:20 +01:00
|
|
|
///////////////////////////////////////////////////////////////////////////////
|
|
|
|
//
|
|
|
|
// receipt.cc
|
|
|
|
//
|
|
|
|
|
2019-09-29 01:12:07 +02:00
|
|
|
ircd::m::resource::response
|
2018-02-14 21:23:20 +01:00
|
|
|
post__receipt(ircd::client &,
|
2019-09-29 01:12:07 +02:00
|
|
|
const ircd::m::resource::request &,
|
2018-02-14 21:23:20 +01:00
|
|
|
const ircd::m::room::id &);
|
|
|
|
|
|
|
|
///////////////////////////////////////////////////////////////////////////////
|
|
|
|
//
|
|
|
|
// join.cc
|
|
|
|
//
|
|
|
|
|
2019-09-29 01:12:07 +02:00
|
|
|
ircd::m::resource::response
|
2018-02-14 21:23:20 +01:00
|
|
|
post__join(ircd::client &,
|
2019-09-29 01:12:07 +02:00
|
|
|
const ircd::m::resource::request &,
|
2018-02-14 21:23:20 +01:00
|
|
|
const ircd::m::room::id &);
|
|
|
|
|
2018-02-22 00:22:04 +01:00
|
|
|
///////////////////////////////////////////////////////////////////////////////
|
|
|
|
//
|
|
|
|
// invite.cc
|
|
|
|
//
|
|
|
|
|
2019-09-29 01:12:07 +02:00
|
|
|
ircd::m::resource::response
|
2018-02-22 00:22:04 +01:00
|
|
|
post__invite(ircd::client &,
|
2019-09-29 01:12:07 +02:00
|
|
|
const ircd::m::resource::request &,
|
2018-02-22 00:22:04 +01:00
|
|
|
const ircd::m::room::id &);
|
|
|
|
|
|
|
|
///////////////////////////////////////////////////////////////////////////////
|
|
|
|
//
|
|
|
|
// leave.cc
|
|
|
|
//
|
|
|
|
|
2019-09-29 01:12:07 +02:00
|
|
|
ircd::m::resource::response
|
2018-02-22 00:22:04 +01:00
|
|
|
post__leave(ircd::client &,
|
2019-09-29 01:12:07 +02:00
|
|
|
const ircd::m::resource::request &,
|
2018-02-22 00:22:04 +01:00
|
|
|
const ircd::m::room::id &);
|
|
|
|
|
|
|
|
///////////////////////////////////////////////////////////////////////////////
|
|
|
|
//
|
|
|
|
// forget.cc
|
|
|
|
//
|
|
|
|
|
2019-09-29 01:12:07 +02:00
|
|
|
ircd::m::resource::response
|
2018-02-22 00:22:04 +01:00
|
|
|
post__forget(ircd::client &,
|
2019-09-29 01:12:07 +02:00
|
|
|
const ircd::m::resource::request &,
|
2018-02-22 00:22:04 +01:00
|
|
|
const ircd::m::room::id &);
|
|
|
|
|
|
|
|
///////////////////////////////////////////////////////////////////////////////
|
|
|
|
//
|
|
|
|
// kick.cc
|
|
|
|
//
|
|
|
|
|
2019-09-29 01:12:07 +02:00
|
|
|
ircd::m::resource::response
|
2018-02-22 00:22:04 +01:00
|
|
|
post__kick(ircd::client &,
|
2019-09-29 01:12:07 +02:00
|
|
|
const ircd::m::resource::request &,
|
2018-02-22 00:22:04 +01:00
|
|
|
const ircd::m::room::id &);
|
|
|
|
|
|
|
|
///////////////////////////////////////////////////////////////////////////////
|
|
|
|
//
|
|
|
|
// ban.cc
|
|
|
|
//
|
|
|
|
|
2019-09-29 01:12:07 +02:00
|
|
|
ircd::m::resource::response
|
2018-02-22 00:22:04 +01:00
|
|
|
post__ban(ircd::client &,
|
2019-09-29 01:12:07 +02:00
|
|
|
const ircd::m::resource::request &,
|
2018-02-22 00:22:04 +01:00
|
|
|
const ircd::m::room::id &);
|
|
|
|
|
|
|
|
///////////////////////////////////////////////////////////////////////////////
|
|
|
|
//
|
|
|
|
// unban.cc
|
|
|
|
//
|
|
|
|
|
2019-09-29 01:12:07 +02:00
|
|
|
ircd::m::resource::response
|
2018-02-22 00:22:04 +01:00
|
|
|
post__unban(ircd::client &,
|
2019-09-29 01:12:07 +02:00
|
|
|
const ircd::m::resource::request &,
|
2018-02-22 00:22:04 +01:00
|
|
|
const ircd::m::room::id &);
|
|
|
|
|
2018-02-14 21:23:20 +01:00
|
|
|
///////////////////////////////////////////////////////////////////////////////
|
|
|
|
//
|
|
|
|
// read_markers.cc
|
|
|
|
//
|
|
|
|
|
2019-09-29 01:12:07 +02:00
|
|
|
ircd::m::resource::response
|
2018-02-14 21:23:20 +01:00
|
|
|
post__read_markers(ircd::client &,
|
2019-09-29 01:12:07 +02:00
|
|
|
const ircd::m::resource::request &,
|
2018-02-14 21:23:20 +01:00
|
|
|
const ircd::m::room::id &);
|
2018-02-25 13:07:48 +01:00
|
|
|
|
|
|
|
///////////////////////////////////////////////////////////////////////////////
|
|
|
|
//
|
|
|
|
// initialsync.cc
|
|
|
|
//
|
|
|
|
|
2019-09-29 01:12:07 +02:00
|
|
|
ircd::m::resource::response
|
2018-02-25 13:07:48 +01:00
|
|
|
get__initialsync(ircd::client &,
|
2019-09-29 01:12:07 +02:00
|
|
|
const ircd::m::resource::request &,
|
2018-02-25 13:07:48 +01:00
|
|
|
const ircd::m::room::id &);
|
2019-03-15 00:01:41 +01:00
|
|
|
|
|
|
|
///////////////////////////////////////////////////////////////////////////////
|
|
|
|
//
|
|
|
|
// report.cc
|
|
|
|
//
|
|
|
|
|
2019-09-29 01:12:07 +02:00
|
|
|
ircd::m::resource::response
|
2019-03-15 00:01:41 +01:00
|
|
|
post__report(ircd::client &,
|
2019-09-29 01:12:07 +02:00
|
|
|
const ircd::m::resource::request &,
|
2019-03-15 00:01:41 +01:00
|
|
|
const ircd::m::room::id &);
|
2019-08-14 18:28:05 +02:00
|
|
|
|
|
|
|
///////////////////////////////////////////////////////////////////////////////
|
|
|
|
//
|
|
|
|
// relations.cc
|
|
|
|
//
|
|
|
|
|
2019-09-29 01:12:07 +02:00
|
|
|
ircd::m::resource::response
|
2019-08-14 18:28:05 +02:00
|
|
|
get__relations(ircd::client &,
|
2019-09-29 01:12:07 +02:00
|
|
|
const ircd::m::resource::request &,
|
2019-08-14 18:28:05 +02:00
|
|
|
const ircd::m::room::id &);
|
2020-03-23 21:14:53 +01:00
|
|
|
|
|
|
|
///////////////////////////////////////////////////////////////////////////////
|
|
|
|
//
|
|
|
|
// upgrade.cc
|
|
|
|
//
|
|
|
|
|
|
|
|
ircd::m::resource::response
|
|
|
|
post__upgrade(ircd::client &,
|
|
|
|
const ircd::m::resource::request &,
|
|
|
|
const ircd::m::room::id &);
|
2020-12-14 12:15:28 +01:00
|
|
|
|
|
|
|
///////////////////////////////////////////////////////////////////////////////
|
|
|
|
//
|
|
|
|
// aliases.cc
|
|
|
|
//
|
|
|
|
|
|
|
|
ircd::m::resource::response
|
|
|
|
get__aliases(ircd::client &,
|
|
|
|
const ircd::m::resource::request &,
|
|
|
|
const ircd::m::room::id &);
|
2022-06-19 21:38:16 +02:00
|
|
|
|
|
|
|
///////////////////////////////////////////////////////////////////////////////
|
|
|
|
//
|
|
|
|
// hierarchy.cc
|
|
|
|
//
|
|
|
|
|
|
|
|
ircd::m::resource::response
|
|
|
|
get__hierarchy(ircd::client &,
|
|
|
|
const ircd::m::resource::request &,
|
|
|
|
const ircd::m::room::id &);
|