mirror of
https://github.com/moparisthebest/xeps
synced 2024-11-27 19:52:18 -05:00
XEP-0401: Use namespace for ad-hoc command nodes
Add "urn:xmpp:invite" namespace to ad-hoc command nodes to avoid possible collisions with other extensions.
This commit is contained in:
parent
97f21995a2
commit
e2214445d4
16
xep-0401.xml
16
xep-0401.xml
@ -103,10 +103,10 @@
|
|||||||
<query xmlns='http://jabber.org/protocol/disco#items'
|
<query xmlns='http://jabber.org/protocol/disco#items'
|
||||||
node='http://jabber.org/protocol/commands'>
|
node='http://jabber.org/protocol/commands'>
|
||||||
<item jid='example.com'
|
<item jid='example.com'
|
||||||
node='invite'
|
node='urn:xmpp:invite#invite'
|
||||||
name='Invite user'/>
|
name='Invite user'/>
|
||||||
<item jid='example.com'
|
<item jid='example.com'
|
||||||
node='create-account'
|
node='urn:xmpp:invite#create-account'
|
||||||
name='Create account'/>
|
name='Create account'/>
|
||||||
</query>
|
</query>
|
||||||
</iq>
|
</iq>
|
||||||
@ -125,14 +125,14 @@
|
|||||||
<example caption="Exceute user invitation command"><![CDATA[
|
<example caption="Exceute user invitation command"><![CDATA[
|
||||||
<iq type='set' from='romeo@example.com' to='example.com' id='exec1'>
|
<iq type='set' from='romeo@example.com' to='example.com' id='exec1'>
|
||||||
<command xmlns='http://jabber.org/protocol/commands'
|
<command xmlns='http://jabber.org/protocol/commands'
|
||||||
node='invite'
|
node='urn:xmpp:invite#invite'
|
||||||
action='execute'/>
|
action='execute'/>
|
||||||
</iq>
|
</iq>
|
||||||
]]></example>
|
]]></example>
|
||||||
<example caption="User invitation finished"><![CDATA[
|
<example caption="User invitation finished"><![CDATA[
|
||||||
<iq type='result' to='romeo@example.com' from='example.com' id='exec2'>
|
<iq type='result' to='romeo@example.com' from='example.com' id='exec2'>
|
||||||
<command xmlns='http://jabber.org/protocol/commands'
|
<command xmlns='http://jabber.org/protocol/commands'
|
||||||
node='invite'
|
node='urn:xmpp:invite#invite'
|
||||||
status='completed'>
|
status='completed'>
|
||||||
<x xmlns='jabber:x:data' type='result'>
|
<x xmlns='jabber:x:data' type='result'>
|
||||||
<item>
|
<item>
|
||||||
@ -240,7 +240,7 @@
|
|||||||
<example caption="Exceute account creation command"><![CDATA[
|
<example caption="Exceute account creation command"><![CDATA[
|
||||||
<iq type='set' from='romeo@example.com' to='example.com' id='exec1'>
|
<iq type='set' from='romeo@example.com' to='example.com' id='exec1'>
|
||||||
<command xmlns='http://jabber.org/protocol/commands'
|
<command xmlns='http://jabber.org/protocol/commands'
|
||||||
node='create-account'
|
node='urn:xmpp:invite#create-account'
|
||||||
action='execute'/>
|
action='execute'/>
|
||||||
</iq>
|
</iq>
|
||||||
]]></example>
|
]]></example>
|
||||||
@ -248,7 +248,7 @@
|
|||||||
<iq type='result' to='romeo@example.com' from='example.com' id='exec1'>
|
<iq type='result' to='romeo@example.com' from='example.com' id='exec1'>
|
||||||
<command xmlns='http://jabber.org/protocol/commands'
|
<command xmlns='http://jabber.org/protocol/commands'
|
||||||
sessionid='config:20020923T213616Z-700'
|
sessionid='config:20020923T213616Z-700'
|
||||||
node='create-account'
|
node='urn:xmpp:invite#create-account'
|
||||||
status='executing'>
|
status='executing'>
|
||||||
<actions execute='complete'>
|
<actions execute='complete'>
|
||||||
<complete/>
|
<complete/>
|
||||||
@ -268,7 +268,7 @@
|
|||||||
<iq type='set' from='romeo@example.com' to='example.com' id='exec2'>
|
<iq type='set' from='romeo@example.com' to='example.com' id='exec2'>
|
||||||
<command xmlns='http://jabber.org/protocol/commands'
|
<command xmlns='http://jabber.org/protocol/commands'
|
||||||
sessionid='config:20020923T213616Z-700'
|
sessionid='config:20020923T213616Z-700'
|
||||||
node='create-account'>
|
node='urn:xmpp:invite#create-account'>
|
||||||
<x xmlns='jabber:x:data' type='submit'>
|
<x xmlns='jabber:x:data' type='submit'>
|
||||||
<field var='username'>
|
<field var='username'>
|
||||||
<value>juliet</value>
|
<value>juliet</value>
|
||||||
@ -281,7 +281,7 @@
|
|||||||
<iq type='result' to='romeo@example.com' from='example.com' id='exec2'>
|
<iq type='result' to='romeo@example.com' from='example.com' id='exec2'>
|
||||||
<command xmlns='http://jabber.org/protocol/commands'
|
<command xmlns='http://jabber.org/protocol/commands'
|
||||||
sessionid='config:20020923T213616Z-700'
|
sessionid='config:20020923T213616Z-700'
|
||||||
node='create-account'
|
node='urn:xmpp:invite#create-account'
|
||||||
status='completed'>
|
status='completed'>
|
||||||
<x xmlns='jabber:x:data' type='result'>
|
<x xmlns='jabber:x:data' type='result'>
|
||||||
<item>
|
<item>
|
||||||
|
Loading…
Reference in New Issue
Block a user