|
71 | 71 | xmlns = <<"jabber:iq:roster">>,
|
72 | 72 | module = rfc6121,
|
73 | 73 | result = {roster_item, '$jid', '$name',
|
74 |
| - '$groups', '$subscription', '$ask'}, |
| 74 | + '$groups', '$subscription', '$ask', '$mix_channel'}, |
75 | 75 | attrs = [#attr{name = <<"jid">>,
|
76 | 76 | required = true,
|
77 | 77 | dec = {jid, decode, []},
|
|
85 | 85 | #attr{name = <<"ask">>,
|
86 | 86 | enc = {enc_enum, []},
|
87 | 87 | dec = {dec_enum, [[subscribe]]}}],
|
88 |
| - refs = [#ref{name = roster_group, label = '$groups'}]}). |
| 88 | + refs = [#ref{name = roster_group, label = '$groups'}, |
| 89 | + #ref{name = mix_roster_channel, label = '$mix_channel', min = 0, max = 1}]}). |
89 | 90 |
|
90 | 91 | -xml(roster_query,
|
91 | 92 | #elem{name = <<"query">>,
|
92 | 93 | xmlns = <<"jabber:iq:roster">>,
|
93 | 94 | module = rfc6121,
|
94 |
| - result = {roster_query, '$items', '$ver'}, |
| 95 | + result = {roster_query, '$items', '$ver', '$mix_annotate'}, |
95 | 96 | attrs = [#attr{name = <<"ver">>, default = undefined}],
|
96 |
| - refs = [#ref{name = roster_item, label = '$items'}]}). |
| 97 | + refs = [#ref{name = roster_item, label = '$items'}, |
| 98 | + #ref{name = mix_roster_annotate, label = '$mix_annotate', min = 0, max = 1}]}). |
97 | 99 |
|
98 | 100 | -xml(rosterver_feature,
|
99 | 101 | #elem{name = <<"ver">>,
|
|
3453 | 3455 |
|
3454 | 3456 | -xml(mix_subscribe,
|
3455 | 3457 | #elem{name = <<"subscribe">>,
|
3456 |
| - xmlns = <<"urn:xmpp:mix:core:0">>, |
| 3458 | + xmlns = [<<"urn:xmpp:mix:core:0">>, <<"urn:xmpp:mix:core:1">>], |
3457 | 3459 | module = 'xep0369',
|
3458 | 3460 | result = '$node',
|
3459 | 3461 | attrs = [#attr{name = <<"node">>,
|
|
3462 | 3464 |
|
3463 | 3465 | -xml(mix_nick,
|
3464 | 3466 | #elem{name = <<"nick">>,
|
3465 |
| - xmlns = <<"urn:xmpp:mix:core:0">>, |
| 3467 | + xmlns = [<<"urn:xmpp:mix:core:0">>, <<"urn:xmpp:mix:core:1">>], |
3466 | 3468 | module = 'xep0369',
|
3467 | 3469 | result = '$cdata',
|
3468 | 3470 | cdata = #cdata{required = true}}).
|
3469 | 3471 |
|
3470 | 3472 | -xml(mix_jid,
|
3471 | 3473 | #elem{name = <<"jid">>,
|
3472 |
| - xmlns = <<"urn:xmpp:mix:core:0">>, |
| 3474 | + xmlns = [<<"urn:xmpp:mix:core:0">>, <<"urn:xmpp:mix:core:1">>], |
3473 | 3475 | module = 'xep0369',
|
3474 | 3476 | result = '$cdata',
|
3475 | 3477 | cdata = #cdata{required = true,
|
|
3485 | 3487 |
|
3486 | 3488 | -xml(mix_setnick,
|
3487 | 3489 | #elem{name = <<"setnick">>,
|
3488 |
| - xmlns = <<"urn:xmpp:mix:core:0">>, |
| 3490 | + xmlns = [<<"urn:xmpp:mix:core:0">>, <<"urn:xmpp:mix:core:1">>], |
3489 | 3491 | module = 'xep0369',
|
3490 | 3492 | result = {mix_setnick, '$nick'},
|
3491 | 3493 | refs = [#ref{name = mix_nick, min = 1, max = 1,
|
3492 | 3494 | label = '$nick'}]}).
|
3493 | 3495 |
|
3494 | 3496 | -xml(mix_join,
|
3495 | 3497 | #elem{name = <<"join">>,
|
3496 |
| - xmlns = <<"urn:xmpp:mix:core:0">>, |
| 3498 | + xmlns = [<<"urn:xmpp:mix:core:0">>, <<"urn:xmpp:mix:core:1">>], |
3497 | 3499 | module = 'xep0369',
|
3498 | 3500 | result = {mix_join, '$id', '$jid', '$nick', '$subscribe'},
|
3499 | 3501 | attrs = [#attr{name = <<"id">>},
|
|
3509 | 3511 |
|
3510 | 3512 | -xml(mix_client_join,
|
3511 | 3513 | #elem{name = <<"client-join">>,
|
3512 |
| - xmlns = <<"urn:xmpp:mix:pam:0">>, |
| 3514 | + xmlns = [<<"urn:xmpp:mix:pam:0">>, <<"urn:xmpp:mix:pam:2">>], |
3513 | 3515 | module = 'xep0405',
|
3514 | 3516 | result = {mix_client_join, '$channel', '$join'},
|
3515 | 3517 | attrs = [#attr{name = <<"channel">>,
|
|
3519 | 3521 |
|
3520 | 3522 | -xml(mix_leave,
|
3521 | 3523 | #elem{name = <<"leave">>,
|
3522 |
| - xmlns = <<"urn:xmpp:mix:core:0">>, |
| 3524 | + xmlns = [<<"urn:xmpp:mix:core:0">>, <<"urn:xmpp:mix:core:1">>], |
3523 | 3525 | module = 'xep0369',
|
3524 | 3526 | result = {mix_leave}}).
|
3525 | 3527 |
|
3526 | 3528 | -xml(mix_client_leave,
|
3527 | 3529 | #elem{name = <<"client-leave">>,
|
3528 |
| - xmlns = <<"urn:xmpp:mix:pam:0">>, |
| 3530 | + xmlns = [<<"urn:xmpp:mix:pam:0">>, <<"urn:xmpp:mix:pam:2">>], |
3529 | 3531 | module = 'xep0405',
|
3530 | 3532 | result = {mix_client_leave, '$channel', '$leave'},
|
3531 | 3533 | attrs = [#attr{name = <<"channel">>,
|
|
3535 | 3537 |
|
3536 | 3538 | -xml(mix_participant,
|
3537 | 3539 | #elem{name = <<"participant">>,
|
3538 |
| - xmlns = <<"urn:xmpp:mix:core:0">>, |
| 3540 | + xmlns = [<<"urn:xmpp:mix:core:0">>, <<"urn:xmpp:mix:core:1">>], |
3539 | 3541 | module = 'xep0369',
|
3540 | 3542 | result = {mix_participant, '$jid', '$nick'},
|
3541 | 3543 | attrs = [#attr{name = <<"jid">>,
|
|
3548 | 3550 |
|
3549 | 3551 | -xml(mix_create,
|
3550 | 3552 | #elem{name = <<"create">>,
|
3551 |
| - xmlns = <<"urn:xmpp:mix:core:0">>, |
| 3553 | + xmlns = [<<"urn:xmpp:mix:core:0">>, <<"urn:xmpp:mix:core:1">>], |
3552 | 3554 | module = 'xep0369',
|
3553 | 3555 | result = {mix_create, '$channel'},
|
3554 | 3556 | attrs = [#attr{name = <<"channel">>,
|
|
3557 | 3559 |
|
3558 | 3560 | -xml(mix_destroy,
|
3559 | 3561 | #elem{name = <<"destroy">>,
|
3560 |
| - xmlns = <<"urn:xmpp:mix:core:0">>, |
| 3562 | + xmlns = [<<"urn:xmpp:mix:core:0">>, <<"urn:xmpp:mix:core:1">>], |
3561 | 3563 | module = 'xep0369',
|
3562 | 3564 | result = {mix_destroy, '$channel'},
|
3563 | 3565 | attrs = [#attr{name = <<"channel">>,
|
|
3566 | 3568 |
|
3567 | 3569 | -xml(mix,
|
3568 | 3570 | #elem{name = <<"mix">>,
|
3569 |
| - xmlns = <<"urn:xmpp:mix:core:0">>, |
| 3571 | + xmlns = [<<"urn:xmpp:mix:core:0">>, <<"urn:xmpp:mix:core:1">>], |
3570 | 3572 | module = 'xep0369',
|
3571 | 3573 | result = {mix, '$submission_id', '$jid', '$nick'},
|
3572 | 3574 | refs = [#ref{name = mix_submission_id, default = <<"">>,
|
|
3575 | 3577 | #ref{name = mix_nick, min = 0, max = 1,
|
3576 | 3578 | label = '$nick', default = <<"">>}]}).
|
3577 | 3579 |
|
| 3580 | +-xml(mix_roster_channel, |
| 3581 | + #elem{name = <<"channel">>, |
| 3582 | + xmlns = <<"urn:xmpp:mix:roster:0">>, |
| 3583 | + module = 'xep0405', |
| 3584 | + result = {mix_roster_channel, '$participant-id'}, |
| 3585 | + attrs = [#attr{name = <<"participant-id">>, |
| 3586 | + required = true}]}). |
| 3587 | + |
| 3588 | +-xml(mix_roster_annotate, |
| 3589 | + #elem{name = <<"annotate">>, |
| 3590 | + xmlns = <<"urn:xmpp:mix:roster:0">>, |
| 3591 | + module = 'xep0405', |
| 3592 | + result = {mix_roster_annotate}}). |
| 3593 | + |
3578 | 3594 | -record(hint, {type :: 'no-copy' | 'no-store' | 'no-storage' | 'store' |
|
3579 | 3595 | 'no-permanent-store' | 'no-permanent-storage'}).
|
3580 | 3596 | -type hint() :: #hint{}.
|
|
0 commit comments