25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-11-28 16:34:13 +01:00
xmpp.chapril.org-ejabberd/include/xmpp_codec.hrl

1013 lines
36 KiB
Erlang
Raw Normal View History

2016-02-10 14:15:43 +01:00
%% Created automatically by XML generator (fxml_gen.erl)
2013-06-14 10:47:50 +02:00
%% Source: xmpp_codec.spec
2016-07-18 14:01:32 +02:00
-record(vcard_xupdate, {us :: {binary(), binary()},
hash :: binary()}).
-type vcard_xupdate() :: #vcard_xupdate{}.
2014-09-13 20:54:07 +02:00
-record(chatstate, {type :: active | composing | gone | inactive | paused}).
2016-07-18 14:01:32 +02:00
-type chatstate() :: #chatstate{}.
2014-09-13 20:54:07 +02:00
-record(csi, {type :: active | inactive}).
2016-07-18 14:01:32 +02:00
-type csi() :: #csi{}.
-record(hint, {type :: 'no-copy' | 'no-store' | 'no-storage' | 'store' |
'no-permanent-store' | 'no-permanent-storage'}).
2016-07-18 14:01:32 +02:00
-type hint() :: #hint{}.
2014-09-13 20:54:07 +02:00
2016-07-31 07:51:47 +02:00
-record(iq, {id :: binary(),
type :: 'error' | 'get' | 'result' | 'set',
lang :: binary(),
from :: any(),
to :: any(),
sub_els = [] :: [any()]}).
-type iq() :: #iq{}.
2013-06-16 20:00:19 +02:00
-record(feature_register, {}).
2016-07-18 14:01:32 +02:00
-type feature_register() :: #feature_register{}.
-record(adhoc_note, {type = info :: 'error' | 'info' | 'warn',
data = <<>> :: binary()}).
-type adhoc_note() :: #adhoc_note{}.
-record(address, {type :: 'bcc' | 'cc' | 'noreply' | 'ofrom' | 'replyroom' | 'replyto' | 'to',
jid :: any(),
desc :: binary(),
node :: binary(),
delivered :: any()}).
-type address() :: #address{}.
-record(sasl_success, {text :: any()}).
2016-07-18 14:01:32 +02:00
-type sasl_success() :: #sasl_success{}.
2015-06-22 15:56:08 +02:00
-record(mam_result, {xmlns :: binary(),
queryid :: binary(),
id :: binary(),
sub_els = [] :: [any()]}).
2016-07-18 14:01:32 +02:00
-type mam_result() :: #mam_result{}.
2015-06-22 15:56:08 +02:00
-record(rsm_first, {index :: non_neg_integer(),
data :: binary()}).
2016-07-18 14:01:32 +02:00
-type rsm_first() :: #rsm_first{}.
2015-06-22 15:56:08 +02:00
-record(text, {lang :: binary(),
data :: binary()}).
2016-07-18 14:01:32 +02:00
-type text() :: #text{}.
-record(streamhost, {jid :: any(),
host :: binary(),
port = 1080 :: non_neg_integer()}).
2016-07-18 14:01:32 +02:00
-type streamhost() :: #streamhost{}.
2014-07-22 11:59:31 +02:00
-record(sm_resume, {h :: non_neg_integer(),
previd :: binary(),
xmlns :: binary()}).
2016-07-18 14:01:32 +02:00
-type sm_resume() :: #sm_resume{}.
2014-07-22 11:59:31 +02:00
2014-07-20 20:43:16 +02:00
-record(carbons_enable, {}).
2016-07-18 14:01:32 +02:00
-type carbons_enable() :: #carbons_enable{}.
2014-07-20 20:43:16 +02:00
-record(carbons_private, {}).
2016-07-18 14:01:32 +02:00
-type carbons_private() :: #carbons_private{}.
2014-07-20 20:43:16 +02:00
-record(expire, {seconds :: non_neg_integer(),
stored :: non_neg_integer()}).
-type expire() :: #expire{}.
-record(muc_unsubscribe, {}).
-type muc_unsubscribe() :: #muc_unsubscribe{}.
2013-06-25 19:00:27 +02:00
-record(pubsub_unsubscribe, {node :: binary(),
jid :: any(),
subid :: binary()}).
2016-07-18 14:01:32 +02:00
-type pubsub_unsubscribe() :: #pubsub_unsubscribe{}.
2013-06-25 19:00:27 +02:00
2016-03-10 15:42:37 +01:00
-record(mix_leave, {}).
2016-07-18 14:01:32 +02:00
-type mix_leave() :: #mix_leave{}.
2016-03-10 15:42:37 +01:00
-record(ping, {}).
2016-07-18 14:01:32 +02:00
-type ping() :: #ping{}.
-record(delay, {stamp :: any(),
2016-07-18 14:01:32 +02:00
from :: any(),
desc = <<>> :: binary()}).
-type delay() :: #delay{}.
-record(muc_history, {maxchars :: non_neg_integer(),
maxstanzas :: non_neg_integer(),
seconds :: non_neg_integer(),
since :: any()}).
2016-07-18 14:01:32 +02:00
-type muc_history() :: #muc_history{}.
-record(thumbnail, {uri :: binary(),
'media-type' = <<>> :: binary(),
width :: non_neg_integer(),
height :: non_neg_integer()}).
-type thumbnail() :: #thumbnail{}.
-record(pubsub_affiliation, {node :: binary(),
type :: 'member' | 'none' | 'outcast' | 'owner' | 'publish-only' | 'publisher'}).
2016-07-18 14:01:32 +02:00
-type pubsub_affiliation() :: #pubsub_affiliation{}.
-record(muc_decline, {reason = <<>> :: 'undefined' | binary(),
from :: any(),
to :: any()}).
2016-07-18 14:01:32 +02:00
-type muc_decline() :: #muc_decline{}.
-record(sm_a, {h :: non_neg_integer(),
xmlns :: binary()}).
2016-07-18 14:01:32 +02:00
-type sm_a() :: #sm_a{}.
2014-07-22 11:59:31 +02:00
-record(stream_start, {from :: any(),
to :: any(),
id = <<>> :: binary(),
version = <<>> :: binary(),
xmlns :: binary(),
stream_xmlns = <<>> :: binary(),
db_xmlns = <<>> :: binary(),
lang = <<>> :: binary()}).
-type stream_start() :: #stream_start{}.
-record(muc_subscribe, {nick :: binary(),
events = [] :: [binary()]}).
-type muc_subscribe() :: #muc_subscribe{}.
-record(stanza_id, {by :: any(),
id :: binary()}).
-type stanza_id() :: #stanza_id{}.
-record(starttls_proceed, {}).
2016-07-18 14:01:32 +02:00
-type starttls_proceed() :: #starttls_proceed{}.
-record(client_id, {id :: binary()}).
-type client_id() :: #client_id{}.
2014-07-22 11:59:31 +02:00
-record(sm_resumed, {h :: non_neg_integer(),
previd :: binary(),
xmlns :: binary()}).
2016-07-18 14:01:32 +02:00
-type sm_resumed() :: #sm_resumed{}.
2014-07-22 11:59:31 +02:00
2014-07-20 20:43:16 +02:00
-record(forwarded, {delay :: #delay{},
sub_els = [] :: [any()]}).
2016-07-18 14:01:32 +02:00
-type forwarded() :: #forwarded{}.
2014-07-20 20:43:16 +02:00
2014-07-22 11:59:31 +02:00
-record(sm_enable, {max :: non_neg_integer(),
resume = false :: any(),
xmlns :: binary()}).
2016-07-18 14:01:32 +02:00
-type sm_enable() :: #sm_enable{}.
2014-07-22 11:59:31 +02:00
-record(starttls_failure, {}).
2016-07-18 14:01:32 +02:00
-type starttls_failure() :: #starttls_failure{}.
-record(sasl_challenge, {text :: any()}).
2016-07-18 14:01:32 +02:00
-type sasl_challenge() :: #sasl_challenge{}.
-record(handshake, {data = <<>> :: binary()}).
-type handshake() :: #handshake{}.
-record(gone, {uri :: binary()}).
2016-07-18 14:01:32 +02:00
-type gone() :: #gone{}.
-record(x_conference, {jid :: any(),
password = <<>> :: binary(),
reason = <<>> :: binary(),
continue :: any(),
thread = <<>> :: binary()}).
-type x_conference() :: #x_conference{}.
-record(private, {xml_els = [] :: [any()]}).
2016-07-18 14:01:32 +02:00
-type private() :: #private{}.
2016-07-31 07:51:47 +02:00
-record(db_verify, {from :: any(),
to :: any(),
id :: binary(),
type :: 'error' | 'invalid' | 'valid',
key = <<>> :: binary(),
sub_els = [] :: [any()]}).
-type db_verify() :: #db_verify{}.
-record(nick, {name :: binary()}).
-type nick() :: #nick{}.
2013-06-16 20:00:19 +02:00
-record(p1_ack, {}).
2016-07-18 14:01:32 +02:00
-type p1_ack() :: #p1_ack{}.
-record(feature_sm, {xmlns :: binary()}).
2016-07-18 14:01:32 +02:00
-type feature_sm() :: #feature_sm{}.
2014-07-22 11:59:31 +02:00
-record(pubsub_item, {id :: binary(),
xml_els = [] :: [any()]}).
2016-07-18 14:01:32 +02:00
-type pubsub_item() :: #pubsub_item{}.
2013-06-14 16:45:04 +02:00
2013-06-25 19:00:27 +02:00
-record(pubsub_publish, {node :: binary(),
items = [] :: [#pubsub_item{}]}).
2016-07-18 14:01:32 +02:00
-type pubsub_publish() :: #pubsub_publish{}.
2013-06-25 19:00:27 +02:00
-record(roster_item, {jid :: any(),
2016-07-18 14:01:32 +02:00
name = <<>> :: binary(),
groups = [] :: [binary()],
subscription = none :: 'both' | 'from' | 'none' | 'remove' | 'to',
ask :: 'subscribe'}).
2016-07-18 14:01:32 +02:00
-type roster_item() :: #roster_item{}.
2013-06-14 16:45:04 +02:00
2016-07-18 14:01:32 +02:00
-record(roster_query, {items = [] :: [#roster_item{}],
ver :: binary()}).
-type roster_query() :: #roster_query{}.
2013-06-14 16:45:04 +02:00
-record(pubsub_event_item, {id :: binary(),
node :: binary(),
2016-03-10 15:42:37 +01:00
publisher :: binary(),
xml_els = [] :: [any()]}).
2016-07-18 14:01:32 +02:00
-type pubsub_event_item() :: #pubsub_event_item{}.
2013-06-14 16:45:04 +02:00
-record(sm_r, {xmlns :: binary()}).
2016-07-18 14:01:32 +02:00
-type sm_r() :: #sm_r{}.
2014-07-22 11:59:31 +02:00
-record(muc_actor, {jid :: any(),
nick :: binary()}).
2016-07-18 14:01:32 +02:00
-type muc_actor() :: #muc_actor{}.
2016-07-31 13:51:16 +02:00
-record(stat_error, {code :: integer(),
reason = <<>> :: binary()}).
-type stat_error() :: #stat_error{}.
-record(stat, {name :: binary(),
2016-07-31 13:51:16 +02:00
units = <<>> :: binary(),
value = <<>> :: binary(),
error :: #stat_error{}}).
2016-07-18 14:01:32 +02:00
-type stat() :: #stat{}.
-record(addresses, {list = [] :: [#address{}]}).
-type addresses() :: #addresses{}.
-record('see-other-host', {host :: binary()}).
2016-07-18 14:01:32 +02:00
-type 'see-other-host'() :: #'see-other-host'{}.
-record(compress, {methods = [] :: [binary()]}).
2016-07-18 14:01:32 +02:00
-type compress() :: #compress{}.
-record(starttls, {required = false :: boolean()}).
2016-07-18 14:01:32 +02:00
-type starttls() :: #starttls{}.
-record(last, {seconds :: non_neg_integer(),
2016-07-18 14:01:32 +02:00
status = <<>> :: binary()}).
-type last() :: #last{}.
2013-06-16 20:00:19 +02:00
2014-07-22 11:59:31 +02:00
-record(redirect, {uri :: binary()}).
2016-07-18 14:01:32 +02:00
-type redirect() :: #redirect{}.
2014-07-22 11:59:31 +02:00
-record(sm_enabled, {id :: binary(),
location :: binary(),
max :: non_neg_integer(),
resume = false :: any(),
xmlns :: binary()}).
2016-07-18 14:01:32 +02:00
-type sm_enabled() :: #sm_enabled{}.
2014-07-22 11:59:31 +02:00
-record(pubsub_event_items, {node :: binary(),
retract = [] :: [binary()],
items = [] :: [#pubsub_event_item{}]}).
2016-07-18 14:01:32 +02:00
-type pubsub_event_items() :: #pubsub_event_items{}.
2013-06-16 20:00:19 +02:00
-record(pubsub_event, {items = [] :: [#pubsub_event_items{}]}).
2016-07-18 14:01:32 +02:00
-type pubsub_event() :: #pubsub_event{}.
2013-06-16 20:00:19 +02:00
-record(muc_unique, {name = <<>> :: binary()}).
-type muc_unique() :: #muc_unique{}.
-record(sasl_response, {text :: any()}).
2016-07-18 14:01:32 +02:00
-type sasl_response() :: #sasl_response{}.
-record(legacy_auth, {username :: 'none' | binary(),
password :: 'none' | binary(),
digest :: 'none' | binary(),
resource :: 'none' | binary()}).
-type legacy_auth() :: #legacy_auth{}.
2013-06-25 19:00:27 +02:00
-record(pubsub_subscribe, {node :: binary(),
jid :: any()}).
2016-07-18 14:01:32 +02:00
-type pubsub_subscribe() :: #pubsub_subscribe{}.
2013-06-25 19:00:27 +02:00
2016-07-31 07:51:47 +02:00
-record(message, {id :: binary(),
type = normal :: 'chat' | 'error' | 'groupchat' | 'headline' | 'normal',
lang :: binary(),
from :: any(),
to :: any(),
subject = [] :: [#text{}],
body = [] :: [#text{}],
thread :: binary(),
sub_els = [] :: [any()]}).
-type message() :: #message{}.
-record(sasl_auth, {mechanism :: binary(),
text :: any()}).
2016-07-18 14:01:32 +02:00
-type sasl_auth() :: #sasl_auth{}.
-record(p1_push, {}).
2016-07-18 14:01:32 +02:00
-type p1_push() :: #p1_push{}.
-record(feature_csi, {xmlns :: binary()}).
2016-07-18 14:01:32 +02:00
-type feature_csi() :: #feature_csi{}.
-record(disco_item, {jid :: any(),
name :: binary(),
node :: binary()}).
2016-07-18 14:01:32 +02:00
-type disco_item() :: #disco_item{}.
-record(unblock, {items = [] :: [any()]}).
2016-07-18 14:01:32 +02:00
-type unblock() :: #unblock{}.
-record(block, {items = [] :: [any()]}).
2016-07-18 14:01:32 +02:00
-type block() :: #block{}.
-record(compression, {methods = [] :: [binary()]}).
2016-07-18 14:01:32 +02:00
-type compression() :: #compression{}.
-record(muc_subscriptions, {list = [] :: [any()]}).
-type muc_subscriptions() :: #muc_subscriptions{}.
-record(pubsub_subscription, {jid :: any(),
node :: binary(),
subid :: binary(),
type :: 'none' | 'pending' | 'subscribed' | 'unconfigured'}).
2016-07-18 14:01:32 +02:00
-type pubsub_subscription() :: #pubsub_subscription{}.
2016-07-28 14:10:41 +02:00
-record(bob_data, {cid :: binary(),
'max-age' :: non_neg_integer(),
type :: binary(),
data = <<>> :: any()}).
-type bob_data() :: #bob_data{}.
-record(muc_item, {actor :: #muc_actor{},
continue :: binary(),
reason = <<>> :: 'undefined' | binary(),
affiliation :: 'admin' | 'member' | 'none' | 'outcast' | 'owner',
role :: 'moderator' | 'none' | 'participant' | 'visitor',
jid :: any(),
nick :: binary()}).
2016-07-18 14:01:32 +02:00
-type muc_item() :: #muc_item{}.
-record(muc_admin, {items = [] :: [#muc_item{}]}).
2016-07-18 14:01:32 +02:00
-type muc_admin() :: #muc_admin{}.
2014-07-19 15:23:13 +02:00
2013-06-25 19:00:27 +02:00
-record(shim, {headers = [] :: [{binary(),'undefined' | binary()}]}).
2016-07-18 14:01:32 +02:00
-type shim() :: #shim{}.
2013-06-25 19:00:27 +02:00
2015-06-22 15:56:08 +02:00
-record(mam_prefs, {xmlns :: binary(),
default :: 'always' | 'never' | 'roster',
always :: [any()],
never :: [any()]}).
2016-07-18 14:01:32 +02:00
-type mam_prefs() :: #mam_prefs{}.
2015-06-22 15:56:08 +02:00
2016-07-18 14:01:32 +02:00
-record(caps, {node :: binary(),
version :: binary(),
hash :: binary(),
exts = [] :: any()}).
-type caps() :: #caps{}.
-record(muc, {history :: #muc_history{},
password :: binary()}).
2016-07-18 14:01:32 +02:00
-type muc() :: #muc{}.
-record(stream_features, {sub_els = [] :: [any()]}).
2016-07-18 14:01:32 +02:00
-type stream_features() :: #stream_features{}.
2013-06-16 20:00:19 +02:00
2016-07-31 13:51:16 +02:00
-record(stats, {list = [] :: [#stat{}],
node = <<>> :: binary()}).
2016-07-18 14:01:32 +02:00
-type stats() :: #stats{}.
2013-06-16 20:00:19 +02:00
-record(pubsub_items, {node :: binary(),
max_items :: non_neg_integer(),
subid :: binary(),
items = [] :: [#pubsub_item{}]}).
2016-07-18 14:01:32 +02:00
-type pubsub_items() :: #pubsub_items{}.
2013-06-16 20:00:19 +02:00
2016-07-31 07:51:47 +02:00
-record(presence, {id :: binary(),
type = available :: 'available' | 'error' | 'probe' | 'subscribe' | 'subscribed' | 'unavailable' | 'unsubscribe' | 'unsubscribed',
lang :: binary(),
from :: any(),
to :: any(),
show :: 'away' | 'chat' | 'dnd' | 'xa',
status = [] :: [#text{}],
priority :: integer(),
sub_els = [] :: [any()]}).
-type presence() :: #presence{}.
2016-07-30 12:30:29 +02:00
-record(sic, {ip :: any(),
port :: non_neg_integer(),
xmlns :: binary()}).
-type sic() :: #sic{}.
2014-07-20 20:43:16 +02:00
-record(carbons_sent, {forwarded :: #forwarded{}}).
2016-07-18 14:01:32 +02:00
-type carbons_sent() :: #carbons_sent{}.
2014-07-20 20:43:16 +02:00
2015-06-22 15:56:08 +02:00
-record(mam_archived, {by :: any(),
id :: binary()}).
2016-07-18 14:01:32 +02:00
-type mam_archived() :: #mam_archived{}.
2015-06-22 15:56:08 +02:00
-record(p1_rebind, {}).
2016-07-18 14:01:32 +02:00
-type p1_rebind() :: #p1_rebind{}.
-record(compress_failure, {reason :: 'processing-failed' | 'setup-failed' | 'unsupported-method'}).
2016-07-18 14:01:32 +02:00
-type compress_failure() :: #compress_failure{}.
-record(sasl_abort, {}).
2016-07-18 14:01:32 +02:00
-type sasl_abort() :: #sasl_abort{}.
-record(xevent, {offline = false :: boolean(),
delivered = false :: boolean(),
displayed = false :: boolean(),
composing = false :: boolean(),
id :: binary()}).
-type xevent() :: #xevent{}.
-record(vcard_email, {home = false :: boolean(),
work = false :: boolean(),
internet = false :: boolean(),
pref = false :: boolean(),
x400 = false :: boolean(),
userid :: binary()}).
2016-07-18 14:01:32 +02:00
-type vcard_email() :: #vcard_email{}.
2016-07-31 07:51:47 +02:00
-record(db_result, {from :: any(),
to :: any(),
type :: 'error' | 'invalid' | 'valid',
key = <<>> :: binary(),
sub_els = [] :: [any()]}).
-type db_result() :: #db_result{}.
2014-07-20 20:43:16 +02:00
-record(carbons_received, {forwarded :: #forwarded{}}).
2016-07-18 14:01:32 +02:00
-type carbons_received() :: #carbons_received{}.
2014-07-20 20:43:16 +02:00
2013-06-25 19:00:27 +02:00
-record(pubsub_retract, {node :: binary(),
notify = false :: any(),
items = [] :: [#pubsub_item{}]}).
2016-07-18 14:01:32 +02:00
-type pubsub_retract() :: #pubsub_retract{}.
2013-06-25 19:00:27 +02:00
-record(upload_slot, {get :: binary(),
put :: binary(),
xmlns :: binary()}).
-type upload_slot() :: #upload_slot{}.
2016-03-10 15:42:37 +01:00
-record(mix_participant, {jid :: any(),
nick :: binary()}).
2016-07-18 14:01:32 +02:00
-type mix_participant() :: #mix_participant{}.
2016-03-10 15:42:37 +01:00
-record(vcard_geo, {lat :: binary(),
lon :: binary()}).
2016-07-18 14:01:32 +02:00
-type vcard_geo() :: #vcard_geo{}.
2013-06-14 10:47:50 +02:00
-record(compressed, {}).
2016-07-18 14:01:32 +02:00
-type compressed() :: #compressed{}.
2013-06-15 18:45:18 +02:00
2016-07-18 14:01:32 +02:00
-record(sasl_failure, {reason :: 'aborted' | 'account-disabled' | 'bad-protocol' | 'credentials-expired' | 'encryption-required' | 'incorrect-encoding' | 'invalid-authzid' | 'invalid-mechanism' | 'malformed-request' | 'mechanism-too-weak' | 'not-authorized' | 'temporary-auth-failure',
text = [] :: [#text{}]}).
2016-07-18 14:01:32 +02:00
-type sasl_failure() :: #sasl_failure{}.
2013-06-15 18:45:18 +02:00
-record(block_list, {items = [] :: [any()]}).
2016-07-18 14:01:32 +02:00
-type block_list() :: #block_list{}.
2013-06-16 20:00:19 +02:00
-record(upload_request, {filename :: binary(),
size :: non_neg_integer(),
'content-type' = <<>> :: binary(),
xmlns :: binary()}).
-type upload_request() :: #upload_request{}.
-record(xdata_option, {label :: binary(),
value :: binary()}).
-type xdata_option() :: #xdata_option{}.
-record(xdata_field, {label :: binary(),
type :: 'boolean' | 'fixed' | 'hidden' | 'jid-multi' | 'jid-single' | 'list-multi' | 'list-single' | 'text-multi' | 'text-private' | 'text-single',
var :: binary(),
required = false :: boolean(),
desc :: binary(),
values = [] :: [binary()],
2016-07-28 14:10:41 +02:00
options = [] :: [#xdata_option{}],
sub_els = [] :: [any()]}).
2016-07-18 14:01:32 +02:00
-type xdata_field() :: #xdata_field{}.
2013-06-25 19:00:27 +02:00
-record(version, {name :: binary(),
ver :: binary(),
os :: binary()}).
2016-07-18 14:01:32 +02:00
-type version() :: #version{}.
-record(bind, {jid :: any(),
resource :: any()}).
2016-07-18 14:01:32 +02:00
-type bind() :: #bind{}.
-record(rosterver_feature, {}).
-type rosterver_feature() :: #rosterver_feature{}.
-record(muc_invite, {reason = <<>> :: 'undefined' | binary(),
from :: any(),
to :: any(),
continue :: binary()}).
-type muc_invite() :: #muc_invite{}.
2014-10-30 21:54:02 +01:00
2014-07-20 20:43:16 +02:00
-record(carbons_disable, {}).
2016-07-18 14:01:32 +02:00
-type carbons_disable() :: #carbons_disable{}.
2014-07-20 20:43:16 +02:00
-record(bytestreams, {hosts = [] :: [#streamhost{}],
used :: any(),
activate :: any(),
dstaddr :: binary(),
mode = tcp :: 'tcp' | 'udp',
sid :: binary()}).
2016-07-18 14:01:32 +02:00
-type bytestreams() :: #bytestreams{}.
-record(adhoc_actions, {execute :: 'complete' | 'next' | 'prev',
prev = false :: boolean(),
next = false :: boolean(),
complete = false :: boolean()}).
-type adhoc_actions() :: #adhoc_actions{}.
-record(vcard_org, {name :: binary(),
units = [] :: [binary()]}).
2016-07-18 14:01:32 +02:00
-type vcard_org() :: #vcard_org{}.
2015-06-22 15:56:08 +02:00
-record(rsm_set, {'after' :: binary(),
before :: binary(),
2015-06-22 15:56:08 +02:00
count :: non_neg_integer(),
first :: #rsm_first{},
index :: non_neg_integer(),
last :: binary(),
max :: non_neg_integer()}).
2016-07-18 14:01:32 +02:00
-type rsm_set() :: #rsm_set{}.
2015-06-22 15:56:08 +02:00
-record(mam_fin, {id :: binary(),
rsm :: #rsm_set{},
stable :: any(),
complete :: any()}).
2016-07-18 14:01:32 +02:00
-type mam_fin() :: #mam_fin{}.
2015-06-22 15:56:08 +02:00
-record(disco_items, {node :: binary(),
items = [] :: [#disco_item{}],
rsm :: #rsm_set{}}).
-type disco_items() :: #disco_items{}.
-record(vcard_tel, {home = false :: boolean(),
work = false :: boolean(),
voice = false :: boolean(),
fax = false :: boolean(),
pager = false :: boolean(),
msg = false :: boolean(),
cell = false :: boolean(),
video = false :: boolean(),
bbs = false :: boolean(),
modem = false :: boolean(),
isdn = false :: boolean(),
pcs = false :: boolean(),
pref = false :: boolean(),
number :: binary()}).
2016-07-18 14:01:32 +02:00
-type vcard_tel() :: #vcard_tel{}.
2016-07-28 14:10:41 +02:00
-record(media_uri, {type :: binary(),
uri = <<>> :: binary()}).
-type media_uri() :: #media_uri{}.
-record(media, {height :: non_neg_integer(),
width :: non_neg_integer(),
uri = [] :: [#media_uri{}]}).
-type media() :: #media{}.
-record(muc_destroy, {xmlns :: binary(),
jid :: any(),
reason = <<>> :: 'undefined' | binary(),
password :: binary()}).
-type muc_destroy() :: #muc_destroy{}.
-record(muc_user, {decline :: #muc_decline{},
destroy :: #muc_destroy{},
invites = [] :: [#muc_invite{}],
items = [] :: [#muc_item{}],
status_codes = [] :: [pos_integer()],
password :: binary()}).
-type muc_user() :: #muc_user{}.
-record(vcard_key, {type :: binary(),
cred :: binary()}).
2016-07-18 14:01:32 +02:00
-type vcard_key() :: #vcard_key{}.
-record(vcard_name, {family :: binary(),
given :: binary(),
middle :: binary(),
prefix :: binary(),
suffix :: binary()}).
2016-07-18 14:01:32 +02:00
-type vcard_name() :: #vcard_name{}.
-record(identity, {category :: binary(),
type :: binary(),
2013-06-25 19:00:27 +02:00
lang :: binary(),
name :: binary()}).
2016-07-18 14:01:32 +02:00
-type identity() :: #identity{}.
-record(bookmark_conference, {name :: binary(),
jid :: any(),
autojoin = false :: any(),
nick :: binary(),
password :: binary()}).
2016-07-18 14:01:32 +02:00
-type bookmark_conference() :: #bookmark_conference{}.
-record(xmpp_session, {optional = false :: boolean()}).
-type xmpp_session() :: #xmpp_session{}.
-record(bookmark_url, {name :: binary(),
url :: binary()}).
2016-07-18 14:01:32 +02:00
-type bookmark_url() :: #bookmark_url{}.
-record(bookmark_storage, {conference = [] :: [#bookmark_conference{}],
url = [] :: [#bookmark_url{}]}).
2016-07-18 14:01:32 +02:00
-type bookmark_storage() :: #bookmark_storage{}.
2016-07-28 14:10:41 +02:00
-record(oob_x, {url :: binary(),
desc = <<>> :: binary(),
sid = <<>> :: binary()}).
-type oob_x() :: #oob_x{}.
-record(vcard_sound, {phonetic :: binary(),
binval :: any(),
extval :: binary()}).
2016-07-18 14:01:32 +02:00
-type vcard_sound() :: #vcard_sound{}.
-record(vcard_photo, {type :: binary(),
binval :: any(),
extval :: binary()}).
2016-07-18 14:01:32 +02:00
-type vcard_photo() :: #vcard_photo{}.
-record(vcard_label, {home = false :: boolean(),
work = false :: boolean(),
postal = false :: boolean(),
parcel = false :: boolean(),
dom = false :: boolean(),
intl = false :: boolean(),
pref = false :: boolean(),
line = [] :: [binary()]}).
2016-07-18 14:01:32 +02:00
-type vcard_label() :: #vcard_label{}.
-record(vcard_adr, {home = false :: boolean(),
work = false :: boolean(),
postal = false :: boolean(),
parcel = false :: boolean(),
dom = false :: boolean(),
intl = false :: boolean(),
pref = false :: boolean(),
pobox :: binary(),
extadd :: binary(),
street :: binary(),
locality :: binary(),
region :: binary(),
pcode :: binary(),
ctry :: binary()}).
2016-07-18 14:01:32 +02:00
-type vcard_adr() :: #vcard_adr{}.
-record(search_item, {jid :: any(),
first :: binary(),
last :: binary(),
nick :: binary(),
email :: binary()}).
-type search_item() :: #search_item{}.
-record(xdata, {type :: 'cancel' | 'form' | 'result' | 'submit',
instructions = [] :: [binary()],
title :: binary(),
reported :: [#xdata_field{}],
items = [] :: [[#xdata_field{}]],
fields = [] :: [#xdata_field{}]}).
2016-07-18 14:01:32 +02:00
-type xdata() :: #xdata{}.
2016-07-28 14:10:41 +02:00
-record(xcaptcha, {xdata :: #xdata{}}).
-type xcaptcha() :: #xcaptcha{}.
-record(adhoc_command, {node :: binary(),
action = execute :: 'cancel' | 'complete' | 'execute' | 'next' | 'prev',
sid :: binary(),
status :: 'canceled' | 'completed' | 'executing',
lang :: binary(),
actions :: #adhoc_actions{},
notes = [] :: [#adhoc_note{}],
xdata :: #xdata{}}).
-type adhoc_command() :: #adhoc_command{}.
2016-07-18 14:01:32 +02:00
-record(search, {instructions :: binary(),
first :: binary(),
last :: binary(),
nick :: binary(),
email :: binary(),
items = [] :: [#search_item{}],
xdata :: #xdata{}}).
-type search() :: #search{}.
2015-06-22 15:56:08 +02:00
-record(mam_query, {xmlns :: binary(),
id :: binary(),
start :: any(),
'end' :: any(),
with :: any(),
withtext :: binary(),
2015-06-22 15:56:08 +02:00
rsm :: #rsm_set{},
xdata :: #xdata{}}).
2016-07-18 14:01:32 +02:00
-type mam_query() :: #mam_query{}.
2015-06-22 15:56:08 +02:00
2013-06-25 19:00:27 +02:00
-record(pubsub_options, {node :: binary(),
jid :: any(),
subid :: binary(),
xdata :: #xdata{}}).
2016-07-18 14:01:32 +02:00
-type pubsub_options() :: #pubsub_options{}.
2013-06-25 19:00:27 +02:00
-record(pubsub, {subscriptions :: {'none' | binary(),[#pubsub_subscription{}]},
affiliations :: [#pubsub_affiliation{}],
publish :: #pubsub_publish{},
subscribe :: #pubsub_subscribe{},
unsubscribe :: #pubsub_unsubscribe{},
options :: #pubsub_options{},
items :: #pubsub_items{},
retract :: #pubsub_retract{}}).
2016-07-18 14:01:32 +02:00
-type pubsub() :: #pubsub{}.
2013-06-25 19:00:27 +02:00
2014-09-03 19:27:35 +02:00
-record(register, {registered = false :: boolean(),
remove = false :: boolean(),
instructions :: binary(),
username :: 'none' | binary(),
nick :: 'none' | binary(),
password :: 'none' | binary(),
name :: 'none' | binary(),
first :: 'none' | binary(),
last :: 'none' | binary(),
email :: 'none' | binary(),
address :: 'none' | binary(),
city :: 'none' | binary(),
state :: 'none' | binary(),
zip :: 'none' | binary(),
phone :: 'none' | binary(),
url :: 'none' | binary(),
date :: 'none' | binary(),
misc :: 'none' | binary(),
text :: 'none' | binary(),
key :: 'none' | binary(),
2016-07-28 14:10:41 +02:00
xdata :: #xdata{},
sub_els = [] :: [any()]}).
2016-07-18 14:01:32 +02:00
-type register() :: #register{}.
2014-09-03 19:27:35 +02:00
-record(disco_info, {node :: binary(),
2013-06-25 19:32:08 +02:00
identities = [] :: [#identity{}],
features = [] :: [binary()],
xdata = [] :: [#xdata{}]}).
2016-07-18 14:01:32 +02:00
-type disco_info() :: #disco_info{}.
2016-02-10 14:15:43 +01:00
-record(offline_item, {node :: binary(),
action :: 'remove' | 'view'}).
2016-07-18 14:01:32 +02:00
-type offline_item() :: #offline_item{}.
2016-02-10 14:15:43 +01:00
-record(offline, {items = [] :: [#offline_item{}],
purge = false :: boolean(),
fetch = false :: boolean()}).
2016-07-18 14:01:32 +02:00
-type offline() :: #offline{}.
2016-02-10 14:15:43 +01:00
-record(muc_owner, {destroy :: #muc_destroy{},
config :: #xdata{},
items = [] :: [#muc_item{}]}).
-type muc_owner() :: #muc_owner{}.
-record(sasl_mechanisms, {list = [] :: [binary()]}).
2016-07-18 14:01:32 +02:00
-type sasl_mechanisms() :: #sasl_mechanisms{}.
-record(sm_failed, {reason :: atom() | #gone{} | #redirect{},
h :: non_neg_integer(),
xmlns :: binary()}).
2016-07-18 14:01:32 +02:00
-type sm_failed() :: #sm_failed{}.
2014-07-22 11:59:31 +02:00
-record(error, {type :: 'auth' | 'cancel' | 'continue' | 'modify' | 'wait',
2016-07-18 14:01:32 +02:00
code :: non_neg_integer(),
by :: binary(),
reason :: atom() | #gone{} | #redirect{},
2016-07-31 07:51:47 +02:00
text :: #text{},
sub_els = [] :: [any()]}).
2016-07-18 14:01:32 +02:00
-type error() :: #error{}.
2016-03-10 15:42:37 +01:00
-record(mix_join, {jid :: any(),
subscribe = [] :: [binary()]}).
2016-07-18 14:01:32 +02:00
-type mix_join() :: #mix_join{}.
2016-03-10 15:42:37 +01:00
-record(privacy_item, {order :: non_neg_integer(),
action :: 'allow' | 'deny',
type :: 'group' | 'jid' | 'subscription',
value :: binary(),
2016-07-18 14:01:32 +02:00
message = false :: boolean(),
iq = false :: boolean(),
presence_in = false :: boolean(),
presence_out = false :: boolean()}).
-type privacy_item() :: #privacy_item{}.
-record(privacy_list, {name :: binary(),
items = [] :: [#privacy_item{}]}).
2016-07-18 14:01:32 +02:00
-type privacy_list() :: #privacy_list{}.
2016-07-18 14:01:32 +02:00
-record(privacy_query, {lists = [] :: [#privacy_list{}],
default :: 'none' | binary(),
active :: 'none' | binary()}).
-type privacy_query() :: #privacy_query{}.
-record(stream_error, {reason :: atom() | #'see-other-host'{},
text :: #text{}}).
2016-07-18 14:01:32 +02:00
-type stream_error() :: #stream_error{}.
-record(vcard_logo, {type :: binary(),
binval :: any(),
extval :: binary()}).
2016-07-18 14:01:32 +02:00
-type vcard_logo() :: #vcard_logo{}.
-record(vcard_temp, {version :: binary(),
fn :: binary(),
n :: #vcard_name{},
nickname :: binary(),
photo :: #vcard_photo{},
bday :: binary(),
adr = [] :: [#vcard_adr{}],
label = [] :: [#vcard_label{}],
tel = [] :: [#vcard_tel{}],
email = [] :: [#vcard_email{}],
jabberid :: binary(),
mailer :: binary(),
tz :: binary(),
geo :: #vcard_geo{},
title :: binary(),
role :: binary(),
logo :: #vcard_logo{},
org :: #vcard_org{},
categories = [] :: [binary()],
note :: binary(),
prodid :: binary(),
rev :: binary(),
sort_string :: binary(),
sound :: #vcard_sound{},
uid :: binary(),
url :: binary(),
class :: 'confidential' | 'private' | 'public',
key :: #vcard_key{},
desc :: binary()}).
-type vcard_temp() :: #vcard_temp{}.
-record(time, {tzo :: any(),
utc :: any()}).
2016-07-18 14:01:32 +02:00
-type time() :: #time{}.
-type xmpp_element() :: muc_admin() |
compression() |
2016-07-18 14:01:32 +02:00
pubsub_subscription() |
xdata_option() |
2016-07-18 14:01:32 +02:00
version() |
pubsub_affiliation() |
mam_fin() |
sm_a() |
2016-07-28 14:10:41 +02:00
bob_data() |
media() |
2016-07-18 14:01:32 +02:00
carbons_sent() |
mam_archived() |
p1_rebind() |
sasl_abort() |
2016-07-31 07:51:47 +02:00
db_result() |
2016-07-18 14:01:32 +02:00
carbons_received() |
pubsub_retract() |
upload_slot() |
2016-07-18 14:01:32 +02:00
mix_participant() |
compressed() |
block_list() |
rsm_set() |
'see-other-host'() |
hint() |
stream_start() |
stanza_id() |
2016-07-18 14:01:32 +02:00
starttls_proceed() |
client_id() |
2016-07-18 14:01:32 +02:00
sm_resumed() |
forwarded() |
xevent() |
2016-07-18 14:01:32 +02:00
privacy_list() |
text() |
vcard_org() |
shim() |
search_item() |
offline_item() |
feature_sm() |
pubsub_item() |
roster_item() |
pubsub_event_item() |
muc_item() |
vcard_temp() |
address() |
2016-07-18 14:01:32 +02:00
sasl_success() |
addresses() |
2016-07-18 14:01:32 +02:00
pubsub_event_items() |
muc_subscriptions() |
2016-07-18 14:01:32 +02:00
disco_items() |
pubsub_options() |
compress() |
bytestreams() |
adhoc_actions() |
muc_history() |
2016-07-18 14:01:32 +02:00
identity() |
feature_csi() |
privacy_query() |
delay() |
thumbnail() |
2016-07-18 14:01:32 +02:00
vcard_tel() |
vcard_geo() |
vcard_photo() |
pubsub() |
muc_owner() |
2016-07-18 14:01:32 +02:00
muc_actor() |
vcard_name() |
adhoc_note() |
2016-07-18 14:01:32 +02:00
rosterver_feature() |
muc_invite() |
2016-07-18 14:01:32 +02:00
vcard_xupdate() |
carbons_disable() |
bookmark_conference() |
offline() |
time() |
sm_enable() |
starttls_failure() |
sasl_challenge() |
handshake() |
x_conference() |
2016-07-18 14:01:32 +02:00
private() |
compress_failure() |
sasl_failure() |
bookmark_storage() |
muc_decline() |
legacy_auth() |
search() |
nick() |
2016-07-18 14:01:32 +02:00
p1_ack() |
block() |
mix_join() |
xmpp_session() |
xdata() |
iq() |
2016-07-31 07:51:47 +02:00
xcaptcha() |
2016-07-18 14:01:32 +02:00
streamhost() |
bind() |
last() |
redirect() |
sm_enabled() |
pubsub_event() |
vcard_sound() |
mam_result() |
rsm_first() |
stat() |
upload_request() |
2016-07-18 14:01:32 +02:00
xdata_field() |
adhoc_command() |
2016-07-18 14:01:32 +02:00
sm_failed() |
ping() |
privacy_item() |
disco_item() |
2016-07-18 14:01:32 +02:00
caps() |
muc() |
stream_features() |
stats() |
pubsub_items() |
2016-07-30 12:30:29 +02:00
sic() |
2016-07-18 14:01:32 +02:00
starttls() |
mam_prefs() |
sasl_mechanisms() |
2016-07-28 14:10:41 +02:00
media_uri() |
muc_destroy() |
2016-07-18 14:01:32 +02:00
vcard_key() |
csi() |
2016-07-31 07:51:47 +02:00
db_verify() |
2016-07-18 14:01:32 +02:00
roster_query() |
mam_query() |
bookmark_url() |
vcard_email() |
vcard_label() |
vcard_logo() |
disco_info() |
feature_register() |
register() |
sm_r() |
2016-07-31 13:51:16 +02:00
stat_error() |
error() |
stream_error() |
muc_user() |
vcard_adr() |
carbons_private() |
mix_leave() |
muc_subscribe() |
muc_unique() |
sasl_response() |
pubsub_subscribe() |
message() |
2016-07-31 07:51:47 +02:00
presence() |
gone() |
sm_resume() |
carbons_enable() |
expire() |
muc_unsubscribe() |
pubsub_unsubscribe() |
2016-07-28 14:10:41 +02:00
chatstate() |
sasl_auth() |
p1_push() |
oob_x() |
2016-07-30 12:30:29 +02:00
pubsub_publish() |
unblock().