Kim Alvefur <zash@zash.se> [Tue, 23 Mar 2021 20:23:35 +0100] rev 4530
mod_rest: Remove inaccurate comment
It also checks Basic auth here. Removing since it doesn't seem to add
much.
Kim Alvefur <zash@zash.se> [Tue, 23 Mar 2021 17:44:49 +0100] rev 4529
mod_rest: Restore 'kind' property in JSON-mapped objects
The datamapper schema has no 'kind' field, instead handling it as a
top-level property of the currently unused <xmpp> element and doing this
early dispatch on the top level element name.
This puts the field back into the output JSON.
Kim Alvefur <zash@zash.se> [Tue, 23 Mar 2021 15:24:47 +0100] rev 4528
mod_post_msg: Add sendxmpp-curl
I wrote this script around the same time as this module. My local copy
has a last modification timestamp of 2011-03-29, so it's been unchanged
since then.
The original rationale was that it seemed overkill to establish an
entire XMPP session just to send a single message. Nowadays I'm quite
happy using `clix` for this kind task.
Kim Alvefur <zash@zash.se> [Mon, 22 Mar 2021 23:14:25 +0100] rev 4527
mod_rest: Add XEP-0066 to mapping schema (breaking from previous jsonmap)
before:
oob_url: http://example.com/
after:
oob:
url: http://example.com/
desc: optional description
Deals with the fact that the name and namespace differs based on whether
it's in an iq or message stanza, unlike oob_url
Kim Alvefur <zash@zash.se> [Mon, 22 Mar 2021 21:20:03 +0100] rev 4526
mod_pubsub_post: Allow specifying item id by a special mapping
If `{http://jabber.org/protocol/pubsub}id` exists as an attribute at the
top level then it is used, otherwise the previous behavior (.id if string)
Kim Alvefur <zash@zash.se> [Mon, 22 Mar 2021 21:18:35 +0100] rev 4525
mod_pubsub_post: Add support for mapping incoming JSON to XML
Using the new util.datamapper
pubsub_post_mappings[node] = filename or schema
Kim Alvefur <zash@zash.se> [Mon, 22 Mar 2021 00:45:10 +0100] rev 4524
mod_rest: Declare presence priority an integer in -128..127 per RFC6121
util.datamapper doesn't actually understand min/max, but it's
informative and the schema could be used to validate the input at some
point.
Kim Alvefur <zash@zash.se> [Mon, 22 Mar 2021 00:21:27 +0100] rev 4523
mod_rest: Convert XEP-0039 to datamapping
Kim Alvefur <zash@zash.se> [Sun, 21 Mar 2021 23:54:06 +0100] rev 4522
mod_rest: Replace most mappings by using util.datamapper
All the stuff now goes into a JSON file that describes the mappings.
Jonas Schäfer <jonas@wielicki.name> [Mon, 22 Mar 2021 21:32:43 +0100] rev 4521
mod_http_admin_api: support for updating user roles via the API
Requires the most recent of the recent prosody-trunks.