Welcome to mirror list, hosted at ThFree Co, Russian Federation.

xmpp_codec.hrl « tools - github.com/processone/ejabberd.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 7996f6a11446e0f279a2d3fcb87e23e417504b0c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
%% Created automatically by XML generator (xml_gen.erl)
%% Source: xmpp_codec.spec

-record(chatstate, {type :: active | composing | gone | inactive | paused}).

-record(csi, {type :: active | inactive}).

-record(feature_register, {}).

-record(sasl_success, {text :: any()}).

-record(mam_result, {xmlns :: binary(),
                     queryid :: binary(),
                     id :: binary(),
                     sub_els = [] :: [any()]}).

-record(rsm_first, {index :: non_neg_integer(),
                    data :: binary()}).

-record(text, {lang :: binary(),
               data :: binary()}).

-record(streamhost, {jid :: any(),
                     host :: binary(),
                     port = 1080 :: non_neg_integer()}).

-record(sm_resume, {h :: non_neg_integer(),
                    previd :: binary(),
                    xmlns :: binary()}).

-record(carbons_enable, {}).

-record(carbons_private, {}).

-record(pubsub_unsubscribe, {node :: binary(),
                             jid :: any(),
                             subid :: binary()}).

-record(ping, {}).

-record(delay, {stamp :: any(),
                from :: any()}).

-record(muc_history, {maxchars :: non_neg_integer(),
                      maxstanzas :: non_neg_integer(),
                      seconds :: non_neg_integer(),
                      since :: any()}).

-record(pubsub_affiliation, {node :: binary(),
                             type :: 'member' | 'none' | 'outcast' | 'owner' | 'publish-only' | 'publisher'}).

-record(muc_decline, {reason :: binary(),
                      from :: any(),
                      to :: any()}).

-record(sm_a, {h :: non_neg_integer(),
               xmlns :: binary()}).

-record(starttls_proceed, {}).

-record(sm_resumed, {h :: non_neg_integer(),
                     previd :: binary(),
                     xmlns :: binary()}).

-record(forwarded, {delay :: #delay{},
                    sub_els = [] :: [any()]}).

-record(sm_enable, {max :: non_neg_integer(),
                    resume = false :: any(),
                    xmlns :: binary()}).

-record(starttls_failure, {}).

-record(sasl_challenge, {text :: any()}).

-record(gone, {uri :: binary()}).

-record(private, {xml_els = [] :: [any()]}).

-record(p1_ack, {}).

-record(feature_sm, {xmlns :: binary()}).

-record(pubsub_item, {id :: binary(),
                      xml_els = [] :: [any()]}).

-record(pubsub_publish, {node :: binary(),
                         items = [] :: [#pubsub_item{}]}).

-record(roster_item, {jid :: any(),
                      name :: binary(),
                      groups = [] :: [binary()],
                      subscription = none :: 'both' | 'from' | 'none' | 'remove' | 'to',
                      ask :: 'subscribe'}).

-record(roster, {items = [] :: [#roster_item{}],
                 ver :: binary()}).

-record(pubsub_event_item, {id :: binary(),
                            node :: binary(),
                            publisher :: binary()}).

-record(sm_r, {xmlns :: binary()}).

-record(muc_actor, {jid :: any(),
                    nick :: binary()}).

-record(stat, {name :: binary(),
               units :: binary(),
               value :: binary(),
               error = [] :: [{integer(),'undefined' | binary()}]}).

-record('see-other-host', {host :: binary()}).

-record(compress, {methods = [] :: [binary()]}).

-record(starttls, {required = false :: boolean()}).

-record(last, {seconds :: non_neg_integer(),
               text :: binary()}).

-record(redirect, {uri :: binary()}).

-record(sm_enabled, {id :: binary(),
                     location :: binary(),
                     max :: non_neg_integer(),
                     resume = false :: any(),
                     xmlns :: binary()}).

-record(pubsub_event_items, {node :: binary(),
                             retract = [] :: [binary()],
                             items = [] :: [#pubsub_event_item{}]}).

-record(pubsub_event, {items = [] :: [#pubsub_event_items{}]}).

-record(sasl_response, {text :: any()}).

-record(pubsub_subscribe, {node :: binary(),
                           jid :: any()}).

-record(sasl_auth, {mechanism :: binary(),
                    text :: any()}).

-record(p1_push, {}).

-record(feature_csi, {xmlns :: binary()}).

-record(muc_user_destroy, {reason :: binary(),
                           jid :: any()}).

-record(disco_item, {jid :: any(),
                     name :: binary(),
                     node :: binary()}).

-record(disco_items, {node :: binary(),
                      items = [] :: [#disco_item{}]}).

-record(unblock, {items = [] :: [any()]}).

-record(block, {items = [] :: [any()]}).

-record(session, {}).

-record(compression, {methods = [] :: [binary()]}).

-record(muc_owner_destroy, {jid :: any(),
                            reason :: binary(),
                            password :: binary()}).

-record(pubsub_subscription, {jid :: any(),
                              node :: binary(),
                              subid :: binary(),
                              type :: 'none' | 'pending' | 'subscribed' | 'unconfigured'}).

-record(muc_item, {actor :: #muc_actor{},
                   continue :: binary(),
                   reason :: binary(),
                   affiliation :: 'admin' | 'member' | 'none' | 'outcast' | 'owner',
                   role :: 'moderator' | 'none' | 'participant' | 'visitor',
                   jid :: any(),
                   nick :: binary()}).

-record(muc_admin, {items = [] :: [#muc_item{}]}).

-record(shim, {headers = [] :: [{binary(),'undefined' | binary()}]}).

-record(mam_prefs, {xmlns :: binary(),
                    default :: 'always' | 'never' | 'roster',
                    always = [] :: [any()],
                    never = [] :: [any()]}).

-record(caps, {hash :: binary(),
               node :: binary(),
               ver :: any()}).

-record(muc, {history :: #muc_history{},
              password :: binary()}).

-record(stream_features, {sub_els = [] :: [any()]}).

-record(stats, {stat = [] :: [#stat{}]}).

-record(pubsub_items, {node :: binary(),
                       max_items :: non_neg_integer(),
                       subid :: binary(),
                       items = [] :: [#pubsub_item{}]}).

-record(carbons_sent, {forwarded :: #forwarded{}}).

-record(mam_archived, {by :: any(),
                       id :: binary()}).

-record(p1_rebind, {}).

-record(compress_failure, {reason :: 'processing-failed' | 'setup-failed' | 'unsupported-method'}).

-record(sasl_abort, {}).

-record(vcard_email, {home = false :: boolean(),
                      work = false :: boolean(),
                      internet = false :: boolean(),
                      pref = false :: boolean(),
                      x400 = false :: boolean(),
                      userid :: binary()}).

-record(carbons_received, {forwarded :: #forwarded{}}).

-record(pubsub_retract, {node :: binary(),
                         notify = false :: any(),
                         items = [] :: [#pubsub_item{}]}).

-record(vcard_geo, {lat :: binary(),
                    lon :: binary()}).

-record(compressed, {}).

-record(sasl_failure, {reason :: 'aborted' | 'account-disabled' | 'credentials-expired' | 'encryption-required' | 'incorrect-encoding' | 'invalid-authzid' | 'invalid-mechanism' | 'malformed-request' | 'mechanism-too-weak' | 'not-authorized' | 'temporary-auth-failure',
                       text = [] :: [#text{}]}).

-record(block_list, {}).

-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()],
                      options = [] :: [binary()]}).

-record(version, {name :: binary(),
                  ver :: binary(),
                  os :: binary()}).

-record(muc_invite, {reason :: binary(),
                     from :: any(),
                     to :: any()}).

-record(bind, {jid :: any(),
               resource :: any()}).

-record(muc_user, {decline :: #muc_decline{},
                   destroy :: #muc_user_destroy{},
                   invites = [] :: [#muc_invite{}],
                   items = [] :: [#muc_item{}],
                   status_codes = [] :: [pos_integer()],
                   password :: binary()}).

-record(vcard_xupdate, {photo :: binary()}).

-record(carbons_disable, {}).

-record(bytestreams, {hosts = [] :: [#streamhost{}],
                      used :: any(),
                      activate :: any(),
                      dstaddr :: binary(),
                      mode = tcp :: 'tcp' | 'udp',
                      sid :: binary()}).

-record(vcard_org, {name :: binary(),
                    units = [] :: [binary()]}).

-record(rsm_set, {'after' :: binary(),
                  before :: 'none' | binary(),
                  count :: non_neg_integer(),
                  first :: #rsm_first{},
                  index :: non_neg_integer(),
                  last :: binary(),
                  max :: non_neg_integer()}).

-record(mam_fin, {id :: binary(),
                  rsm :: #rsm_set{},
                  stable :: any(),
                  complete :: any()}).

-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()}).

-record(vcard_key, {type :: binary(),
                    cred :: binary()}).

-record(vcard_name, {family :: binary(),
                     given :: binary(),
                     middle :: binary(),
                     prefix :: binary(),
                     suffix :: binary()}).

-record(identity, {category :: binary(),
                   type :: binary(),
                   lang :: binary(),
                   name :: binary()}).

-record(bookmark_conference, {name :: binary(),
                              jid :: any(),
                              autojoin = false :: any(),
                              nick :: binary(),
                              password :: binary()}).

-record(bookmark_url, {name :: binary(),
                       url :: binary()}).

-record(bookmark_storage, {conference = [] :: [#bookmark_conference{}],
                           url = [] :: [#bookmark_url{}]}).

-record(vcard_sound, {phonetic :: binary(),
                      binval :: any(),
                      extval :: binary()}).

-record(vcard_photo, {type :: binary(),
                      binval :: any(),
                      extval :: binary()}).

-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()]}).

-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()}).

-record(xdata, {type :: 'cancel' | 'form' | 'result' | 'submit',
                instructions = [] :: [binary()],
                title :: binary(),
                reported :: [#xdata_field{}],
                items = [] :: [[#xdata_field{}]],
                fields = [] :: [#xdata_field{}]}).

-record(mam_query, {xmlns :: binary(),
                    id :: binary(),
                    start :: any(),
                    'end' :: any(),
                    with :: any(),
                    rsm :: #rsm_set{},
                    xdata :: #xdata{}}).

-record(muc_owner, {destroy :: #muc_owner_destroy{},
                    config :: #xdata{}}).

-record(pubsub_options, {node :: binary(),
                         jid :: any(),
                         subid :: binary(),
                         xdata :: #xdata{}}).

-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{}}).

-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(),
                   xdata :: #xdata{}}).

-record(disco_info, {node :: binary(),
                     identities = [] :: [#identity{}],
                     features = [] :: [binary()],
                     xdata = [] :: [#xdata{}]}).

-record(sasl_mechanisms, {list = [] :: [binary()]}).

-record(sm_failed, {reason :: atom() | #gone{} | #redirect{},
                    xmlns :: binary()}).

-record(error, {type :: 'auth' | 'cancel' | 'continue' | 'modify' | 'wait',
                by :: binary(),
                reason :: atom() | #gone{} | #redirect{},
                text :: #text{}}).

-record(presence, {id :: binary(),
                   type :: 'error' | 'probe' | 'subscribe' | 'subscribed' | 'unavailable' | 'unsubscribe' | 'unsubscribed',
                   lang :: binary(),
                   from :: any(),
                   to :: any(),
                   show :: 'away' | 'chat' | 'dnd' | 'xa',
                   status = [] :: [#text{}],
                   priority :: integer(),
                   error :: #error{},
                   sub_els = [] :: [any()]}).

-record(message, {id :: binary(),
                  type = normal :: 'chat' | 'error' | 'groupchat' | 'headline' | 'normal',
                  lang :: binary(),
                  from :: any(),
                  to :: any(),
                  subject = [] :: [#text{}],
                  body = [] :: [#text{}],
                  thread :: binary(),
                  error :: #error{},
                  sub_els = [] :: [any()]}).

-record(iq, {id :: binary(),
             type :: 'error' | 'get' | 'result' | 'set',
             lang :: binary(),
             from :: any(),
             to :: any(),
             error :: #error{},
             sub_els = [] :: [any()]}).

-record(privacy_item, {order :: non_neg_integer(),
                       action :: 'allow' | 'deny',
                       type :: 'group' | 'jid' | 'subscription',
                       value :: binary(),
                       kinds = [] :: ['iq' | 'message' | 'presence-in' | 'presence-out']}).

-record(privacy_list, {name :: binary(),
                       items = [] :: [#privacy_item{}]}).

-record(privacy, {lists = [] :: [#privacy_list{}],
                  default :: 'none' | binary(),
                  active :: 'none' | binary()}).

-record(stream_error, {reason :: atom() | #'see-other-host'{},
                       text :: #text{}}).

-record(vcard_logo, {type :: binary(),
                     binval :: any(),
                     extval :: binary()}).

-record(vcard, {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()}).

-record(time, {tzo :: any(),
               utc :: any()}).