Software /
code /
prosody
Annotate
teal-src/util/stanza.d.tl @ 12953:ebe3b2f96cad
mod_tokenauth: Switch to new token format (invalidates existing tokens!)
The new format has the following properties:
- 5 bytes longer than the previous format
- The token now has separate 'id' and 'secret' parts - the token itself is no
longer stored in the DB, and the secret part is hashed
- The only variable length field (JID) has been moved to the end
- The 'secret-token:' prefix (RFC 8959) is now included
Compatibility with the old token format was not maintained, and all previously
issued tokens are invalid after this commit (they will be removed from the DB
if used).
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Tue, 21 Mar 2023 14:33:29 +0000 |
parent | 12774:fc4adc32a537 |
rev | line source |
---|---|
11432
113f3912c7cb
util: Add Teal interface definition files
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
1 local record lib |
113f3912c7cb
util: Add Teal interface definition files
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
2 |
113f3912c7cb
util: Add Teal interface definition files
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
3 type children_iter = function ( stanza_t ) : stanza_t |
113f3912c7cb
util: Add Teal interface definition files
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
4 type childtags_iter = function () : stanza_t |
113f3912c7cb
util: Add Teal interface definition files
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
5 type maptags_cb = function ( stanza_t ) : stanza_t |
113f3912c7cb
util: Add Teal interface definition files
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
6 |
12516
d76ac22f3571
util.stanza: Document error conditions in Teal definition
Kim Alvefur <zash@zash.se>
parents:
11642
diff
changeset
|
7 |
d76ac22f3571
util.stanza: Document error conditions in Teal definition
Kim Alvefur <zash@zash.se>
parents:
11642
diff
changeset
|
8 enum stanza_error_type |
d76ac22f3571
util.stanza: Document error conditions in Teal definition
Kim Alvefur <zash@zash.se>
parents:
11642
diff
changeset
|
9 "auth" |
d76ac22f3571
util.stanza: Document error conditions in Teal definition
Kim Alvefur <zash@zash.se>
parents:
11642
diff
changeset
|
10 "cancel" |
d76ac22f3571
util.stanza: Document error conditions in Teal definition
Kim Alvefur <zash@zash.se>
parents:
11642
diff
changeset
|
11 "continue" |
d76ac22f3571
util.stanza: Document error conditions in Teal definition
Kim Alvefur <zash@zash.se>
parents:
11642
diff
changeset
|
12 "modify" |
d76ac22f3571
util.stanza: Document error conditions in Teal definition
Kim Alvefur <zash@zash.se>
parents:
11642
diff
changeset
|
13 "wait" |
d76ac22f3571
util.stanza: Document error conditions in Teal definition
Kim Alvefur <zash@zash.se>
parents:
11642
diff
changeset
|
14 end |
d76ac22f3571
util.stanza: Document error conditions in Teal definition
Kim Alvefur <zash@zash.se>
parents:
11642
diff
changeset
|
15 enum stanza_error_condition |
d76ac22f3571
util.stanza: Document error conditions in Teal definition
Kim Alvefur <zash@zash.se>
parents:
11642
diff
changeset
|
16 "bad-request" |
d76ac22f3571
util.stanza: Document error conditions in Teal definition
Kim Alvefur <zash@zash.se>
parents:
11642
diff
changeset
|
17 "conflict" |
d76ac22f3571
util.stanza: Document error conditions in Teal definition
Kim Alvefur <zash@zash.se>
parents:
11642
diff
changeset
|
18 "feature-not-implemented" |
d76ac22f3571
util.stanza: Document error conditions in Teal definition
Kim Alvefur <zash@zash.se>
parents:
11642
diff
changeset
|
19 "forbidden" |
d76ac22f3571
util.stanza: Document error conditions in Teal definition
Kim Alvefur <zash@zash.se>
parents:
11642
diff
changeset
|
20 "gone" |
d76ac22f3571
util.stanza: Document error conditions in Teal definition
Kim Alvefur <zash@zash.se>
parents:
11642
diff
changeset
|
21 "internal-server-error" |
d76ac22f3571
util.stanza: Document error conditions in Teal definition
Kim Alvefur <zash@zash.se>
parents:
11642
diff
changeset
|
22 "item-not-found" |
d76ac22f3571
util.stanza: Document error conditions in Teal definition
Kim Alvefur <zash@zash.se>
parents:
11642
diff
changeset
|
23 "jid-malformed" |
d76ac22f3571
util.stanza: Document error conditions in Teal definition
Kim Alvefur <zash@zash.se>
parents:
11642
diff
changeset
|
24 "not-acceptable" |
d76ac22f3571
util.stanza: Document error conditions in Teal definition
Kim Alvefur <zash@zash.se>
parents:
11642
diff
changeset
|
25 "not-allowed" |
d76ac22f3571
util.stanza: Document error conditions in Teal definition
Kim Alvefur <zash@zash.se>
parents:
11642
diff
changeset
|
26 "not-authorized" |
d76ac22f3571
util.stanza: Document error conditions in Teal definition
Kim Alvefur <zash@zash.se>
parents:
11642
diff
changeset
|
27 "policy-violation" |
d76ac22f3571
util.stanza: Document error conditions in Teal definition
Kim Alvefur <zash@zash.se>
parents:
11642
diff
changeset
|
28 "recipient-unavailable" |
d76ac22f3571
util.stanza: Document error conditions in Teal definition
Kim Alvefur <zash@zash.se>
parents:
11642
diff
changeset
|
29 "redirect" |
d76ac22f3571
util.stanza: Document error conditions in Teal definition
Kim Alvefur <zash@zash.se>
parents:
11642
diff
changeset
|
30 "registration-required" |
d76ac22f3571
util.stanza: Document error conditions in Teal definition
Kim Alvefur <zash@zash.se>
parents:
11642
diff
changeset
|
31 "remote-server-not-found" |
d76ac22f3571
util.stanza: Document error conditions in Teal definition
Kim Alvefur <zash@zash.se>
parents:
11642
diff
changeset
|
32 "remote-server-timeout" |
d76ac22f3571
util.stanza: Document error conditions in Teal definition
Kim Alvefur <zash@zash.se>
parents:
11642
diff
changeset
|
33 "resource-constraint" |
d76ac22f3571
util.stanza: Document error conditions in Teal definition
Kim Alvefur <zash@zash.se>
parents:
11642
diff
changeset
|
34 "service-unavailable" |
d76ac22f3571
util.stanza: Document error conditions in Teal definition
Kim Alvefur <zash@zash.se>
parents:
11642
diff
changeset
|
35 "subscription-required" |
d76ac22f3571
util.stanza: Document error conditions in Teal definition
Kim Alvefur <zash@zash.se>
parents:
11642
diff
changeset
|
36 "undefined-condition" |
d76ac22f3571
util.stanza: Document error conditions in Teal definition
Kim Alvefur <zash@zash.se>
parents:
11642
diff
changeset
|
37 "unexpected-request" |
d76ac22f3571
util.stanza: Document error conditions in Teal definition
Kim Alvefur <zash@zash.se>
parents:
11642
diff
changeset
|
38 end |
d76ac22f3571
util.stanza: Document error conditions in Teal definition
Kim Alvefur <zash@zash.se>
parents:
11642
diff
changeset
|
39 |
11432
113f3912c7cb
util: Add Teal interface definition files
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
40 record stanza_t |
113f3912c7cb
util: Add Teal interface definition files
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
41 name : string |
113f3912c7cb
util: Add Teal interface definition files
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
42 attr : { string : string } |
113f3912c7cb
util: Add Teal interface definition files
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
43 { stanza_t | string } |
113f3912c7cb
util: Add Teal interface definition files
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
44 tags : { stanza_t } |
113f3912c7cb
util: Add Teal interface definition files
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
45 |
113f3912c7cb
util: Add Teal interface definition files
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
46 query : function ( stanza_t, string ) : stanza_t |
113f3912c7cb
util: Add Teal interface definition files
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
47 body : function ( stanza_t, string, { string : string } ) : stanza_t |
113f3912c7cb
util: Add Teal interface definition files
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
48 text_tag : function ( stanza_t, string, string, { string : string } ) : stanza_t |
113f3912c7cb
util: Add Teal interface definition files
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
49 tag : function ( stanza_t, string, { string : string } ) : stanza_t |
113f3912c7cb
util: Add Teal interface definition files
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
50 text : function ( stanza_t, string ) : stanza_t |
113f3912c7cb
util: Add Teal interface definition files
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
51 up : function ( stanza_t ) : stanza_t |
12774
fc4adc32a537
util.stanza: Add new methods to Teal interface specification
Kim Alvefur <zash@zash.se>
parents:
12517
diff
changeset
|
52 at_top : function ( stanza_t ) : boolean |
11432
113f3912c7cb
util: Add Teal interface definition files
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
53 reset : function ( stanza_t ) : stanza_t |
113f3912c7cb
util: Add Teal interface definition files
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
54 add_direct_child : function ( stanza_t, stanza_t ) |
113f3912c7cb
util: Add Teal interface definition files
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
55 add_child : function ( stanza_t, stanza_t ) |
113f3912c7cb
util: Add Teal interface definition files
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
56 remove_children : function ( stanza_t, string, string ) : stanza_t |
113f3912c7cb
util: Add Teal interface definition files
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
57 |
113f3912c7cb
util: Add Teal interface definition files
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
58 get_child : function ( stanza_t, string, string ) : stanza_t |
113f3912c7cb
util: Add Teal interface definition files
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
59 get_text : function ( stanza_t ) : string |
113f3912c7cb
util: Add Teal interface definition files
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
60 get_child_text : function ( stanza_t, string, string ) : string |
12774
fc4adc32a537
util.stanza: Add new methods to Teal interface specification
Kim Alvefur <zash@zash.se>
parents:
12517
diff
changeset
|
61 get_child_attr : function ( stanza_t, string, string ) : string |
fc4adc32a537
util.stanza: Add new methods to Teal interface specification
Kim Alvefur <zash@zash.se>
parents:
12517
diff
changeset
|
62 get_child_with_attr : function ( stanza_t, string, string, string, function (string) : boolean ) : string |
11432
113f3912c7cb
util: Add Teal interface definition files
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
63 child_with_name : function ( stanza_t, string, string ) : stanza_t |
113f3912c7cb
util: Add Teal interface definition files
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
64 child_with_ns : function ( stanza_t, string, string ) : stanza_t |
11459
86904555bffc
teal: Use new integer support in Teal 0.13.0
Kim Alvefur <zash@zash.se>
parents:
11432
diff
changeset
|
65 children : function ( stanza_t ) : children_iter, stanza_t, integer |
11432
113f3912c7cb
util: Add Teal interface definition files
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
66 childtags : function ( stanza_t, string, string ) : childtags_iter |
113f3912c7cb
util: Add Teal interface definition files
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
67 maptags : function ( stanza_t, maptags_cb ) : stanza_t |
113f3912c7cb
util: Add Teal interface definition files
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
68 find : function ( stanza_t, string ) : stanza_t | string |
113f3912c7cb
util: Add Teal interface definition files
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
69 |
113f3912c7cb
util: Add Teal interface definition files
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
70 top_tag : function ( stanza_t ) : string |
113f3912c7cb
util: Add Teal interface definition files
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
71 pretty_print : function ( stanza_t ) : string |
113f3912c7cb
util: Add Teal interface definition files
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
72 pretty_top_tag : function ( stanza_t ) : string |
113f3912c7cb
util: Add Teal interface definition files
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
73 |
12774
fc4adc32a537
util.stanza: Add new methods to Teal interface specification
Kim Alvefur <zash@zash.se>
parents:
12517
diff
changeset
|
74 -- FIXME Represent util.error support |
12516
d76ac22f3571
util.stanza: Document error conditions in Teal definition
Kim Alvefur <zash@zash.se>
parents:
11642
diff
changeset
|
75 get_error : function ( stanza_t ) : stanza_error_type, stanza_error_condition, string, stanza_t |
12774
fc4adc32a537
util.stanza: Add new methods to Teal interface specification
Kim Alvefur <zash@zash.se>
parents:
12517
diff
changeset
|
76 add_error : function ( stanza_t, stanza_error_type, stanza_error_condition, string, string ) |
11459
86904555bffc
teal: Use new integer support in Teal 0.13.0
Kim Alvefur <zash@zash.se>
parents:
11432
diff
changeset
|
77 indent : function ( stanza_t, integer, string ) : stanza_t |
11432
113f3912c7cb
util: Add Teal interface definition files
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
78 end |
113f3912c7cb
util: Add Teal interface definition files
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
79 |
113f3912c7cb
util: Add Teal interface definition files
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
80 record serialized_stanza_t |
113f3912c7cb
util: Add Teal interface definition files
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
81 name : string |
113f3912c7cb
util: Add Teal interface definition files
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
82 attr : { string : string } |
113f3912c7cb
util: Add Teal interface definition files
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
83 { serialized_stanza_t | string } |
113f3912c7cb
util: Add Teal interface definition files
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
84 end |
113f3912c7cb
util: Add Teal interface definition files
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
85 |
12517
a8c17c95ef4d
util.stanza: Document top level attributes in Teal definition
Kim Alvefur <zash@zash.se>
parents:
12516
diff
changeset
|
86 record message_attr |
a8c17c95ef4d
util.stanza: Document top level attributes in Teal definition
Kim Alvefur <zash@zash.se>
parents:
12516
diff
changeset
|
87 ["xml:lang"] : string |
a8c17c95ef4d
util.stanza: Document top level attributes in Teal definition
Kim Alvefur <zash@zash.se>
parents:
12516
diff
changeset
|
88 from : string |
a8c17c95ef4d
util.stanza: Document top level attributes in Teal definition
Kim Alvefur <zash@zash.se>
parents:
12516
diff
changeset
|
89 id : string |
a8c17c95ef4d
util.stanza: Document top level attributes in Teal definition
Kim Alvefur <zash@zash.se>
parents:
12516
diff
changeset
|
90 to : string |
a8c17c95ef4d
util.stanza: Document top level attributes in Teal definition
Kim Alvefur <zash@zash.se>
parents:
12516
diff
changeset
|
91 type : message_type |
a8c17c95ef4d
util.stanza: Document top level attributes in Teal definition
Kim Alvefur <zash@zash.se>
parents:
12516
diff
changeset
|
92 enum message_type |
a8c17c95ef4d
util.stanza: Document top level attributes in Teal definition
Kim Alvefur <zash@zash.se>
parents:
12516
diff
changeset
|
93 "chat" |
a8c17c95ef4d
util.stanza: Document top level attributes in Teal definition
Kim Alvefur <zash@zash.se>
parents:
12516
diff
changeset
|
94 "error" |
a8c17c95ef4d
util.stanza: Document top level attributes in Teal definition
Kim Alvefur <zash@zash.se>
parents:
12516
diff
changeset
|
95 "groupchat" |
a8c17c95ef4d
util.stanza: Document top level attributes in Teal definition
Kim Alvefur <zash@zash.se>
parents:
12516
diff
changeset
|
96 "headline" |
a8c17c95ef4d
util.stanza: Document top level attributes in Teal definition
Kim Alvefur <zash@zash.se>
parents:
12516
diff
changeset
|
97 "normal" |
a8c17c95ef4d
util.stanza: Document top level attributes in Teal definition
Kim Alvefur <zash@zash.se>
parents:
12516
diff
changeset
|
98 end |
a8c17c95ef4d
util.stanza: Document top level attributes in Teal definition
Kim Alvefur <zash@zash.se>
parents:
12516
diff
changeset
|
99 end |
a8c17c95ef4d
util.stanza: Document top level attributes in Teal definition
Kim Alvefur <zash@zash.se>
parents:
12516
diff
changeset
|
100 |
a8c17c95ef4d
util.stanza: Document top level attributes in Teal definition
Kim Alvefur <zash@zash.se>
parents:
12516
diff
changeset
|
101 record presence_attr |
a8c17c95ef4d
util.stanza: Document top level attributes in Teal definition
Kim Alvefur <zash@zash.se>
parents:
12516
diff
changeset
|
102 ["xml:lang"] : string |
a8c17c95ef4d
util.stanza: Document top level attributes in Teal definition
Kim Alvefur <zash@zash.se>
parents:
12516
diff
changeset
|
103 from : string |
a8c17c95ef4d
util.stanza: Document top level attributes in Teal definition
Kim Alvefur <zash@zash.se>
parents:
12516
diff
changeset
|
104 id : string |
a8c17c95ef4d
util.stanza: Document top level attributes in Teal definition
Kim Alvefur <zash@zash.se>
parents:
12516
diff
changeset
|
105 to : string |
a8c17c95ef4d
util.stanza: Document top level attributes in Teal definition
Kim Alvefur <zash@zash.se>
parents:
12516
diff
changeset
|
106 type : presence_type |
a8c17c95ef4d
util.stanza: Document top level attributes in Teal definition
Kim Alvefur <zash@zash.se>
parents:
12516
diff
changeset
|
107 enum presence_type |
a8c17c95ef4d
util.stanza: Document top level attributes in Teal definition
Kim Alvefur <zash@zash.se>
parents:
12516
diff
changeset
|
108 "error" |
a8c17c95ef4d
util.stanza: Document top level attributes in Teal definition
Kim Alvefur <zash@zash.se>
parents:
12516
diff
changeset
|
109 "probe" |
a8c17c95ef4d
util.stanza: Document top level attributes in Teal definition
Kim Alvefur <zash@zash.se>
parents:
12516
diff
changeset
|
110 "subscribe" |
a8c17c95ef4d
util.stanza: Document top level attributes in Teal definition
Kim Alvefur <zash@zash.se>
parents:
12516
diff
changeset
|
111 "subscribed" |
a8c17c95ef4d
util.stanza: Document top level attributes in Teal definition
Kim Alvefur <zash@zash.se>
parents:
12516
diff
changeset
|
112 "unsubscribe" |
a8c17c95ef4d
util.stanza: Document top level attributes in Teal definition
Kim Alvefur <zash@zash.se>
parents:
12516
diff
changeset
|
113 "unsubscribed" |
a8c17c95ef4d
util.stanza: Document top level attributes in Teal definition
Kim Alvefur <zash@zash.se>
parents:
12516
diff
changeset
|
114 end |
a8c17c95ef4d
util.stanza: Document top level attributes in Teal definition
Kim Alvefur <zash@zash.se>
parents:
12516
diff
changeset
|
115 end |
a8c17c95ef4d
util.stanza: Document top level attributes in Teal definition
Kim Alvefur <zash@zash.se>
parents:
12516
diff
changeset
|
116 |
a8c17c95ef4d
util.stanza: Document top level attributes in Teal definition
Kim Alvefur <zash@zash.se>
parents:
12516
diff
changeset
|
117 record iq_attr |
a8c17c95ef4d
util.stanza: Document top level attributes in Teal definition
Kim Alvefur <zash@zash.se>
parents:
12516
diff
changeset
|
118 ["xml:lang"] : string |
a8c17c95ef4d
util.stanza: Document top level attributes in Teal definition
Kim Alvefur <zash@zash.se>
parents:
12516
diff
changeset
|
119 from : string |
a8c17c95ef4d
util.stanza: Document top level attributes in Teal definition
Kim Alvefur <zash@zash.se>
parents:
12516
diff
changeset
|
120 id : string |
a8c17c95ef4d
util.stanza: Document top level attributes in Teal definition
Kim Alvefur <zash@zash.se>
parents:
12516
diff
changeset
|
121 to : string |
a8c17c95ef4d
util.stanza: Document top level attributes in Teal definition
Kim Alvefur <zash@zash.se>
parents:
12516
diff
changeset
|
122 type : iq_type |
a8c17c95ef4d
util.stanza: Document top level attributes in Teal definition
Kim Alvefur <zash@zash.se>
parents:
12516
diff
changeset
|
123 enum iq_type |
a8c17c95ef4d
util.stanza: Document top level attributes in Teal definition
Kim Alvefur <zash@zash.se>
parents:
12516
diff
changeset
|
124 "error" |
a8c17c95ef4d
util.stanza: Document top level attributes in Teal definition
Kim Alvefur <zash@zash.se>
parents:
12516
diff
changeset
|
125 "get" |
a8c17c95ef4d
util.stanza: Document top level attributes in Teal definition
Kim Alvefur <zash@zash.se>
parents:
12516
diff
changeset
|
126 "result" |
a8c17c95ef4d
util.stanza: Document top level attributes in Teal definition
Kim Alvefur <zash@zash.se>
parents:
12516
diff
changeset
|
127 "set" |
a8c17c95ef4d
util.stanza: Document top level attributes in Teal definition
Kim Alvefur <zash@zash.se>
parents:
12516
diff
changeset
|
128 end |
a8c17c95ef4d
util.stanza: Document top level attributes in Teal definition
Kim Alvefur <zash@zash.se>
parents:
12516
diff
changeset
|
129 end |
a8c17c95ef4d
util.stanza: Document top level attributes in Teal definition
Kim Alvefur <zash@zash.se>
parents:
12516
diff
changeset
|
130 |
11432
113f3912c7cb
util: Add Teal interface definition files
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
131 stanza : function ( string, { string : string } ) : stanza_t |
113f3912c7cb
util: Add Teal interface definition files
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
132 is_stanza : function ( any ) : boolean |
113f3912c7cb
util: Add Teal interface definition files
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
133 preserialize : function ( stanza_t ) : serialized_stanza_t |
113f3912c7cb
util: Add Teal interface definition files
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
134 deserialize : function ( serialized_stanza_t ) : stanza_t |
113f3912c7cb
util: Add Teal interface definition files
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
135 clone : function ( stanza_t, boolean ) : stanza_t |
12517
a8c17c95ef4d
util.stanza: Document top level attributes in Teal definition
Kim Alvefur <zash@zash.se>
parents:
12516
diff
changeset
|
136 message : function ( message_attr, string ) : stanza_t |
a8c17c95ef4d
util.stanza: Document top level attributes in Teal definition
Kim Alvefur <zash@zash.se>
parents:
12516
diff
changeset
|
137 iq : function ( iq_attr ) : stanza_t |
11432
113f3912c7cb
util: Add Teal interface definition files
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
138 reply : function ( stanza_t ) : stanza_t |
12516
d76ac22f3571
util.stanza: Document error conditions in Teal definition
Kim Alvefur <zash@zash.se>
parents:
11642
diff
changeset
|
139 error_reply : function ( stanza_t, stanza_error_type, stanza_error_condition, string, string ) : stanza_t |
12517
a8c17c95ef4d
util.stanza: Document top level attributes in Teal definition
Kim Alvefur <zash@zash.se>
parents:
12516
diff
changeset
|
140 presence : function ( presence_attr ) : stanza_t |
11432
113f3912c7cb
util: Add Teal interface definition files
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
141 xml_escape : function ( string ) : string |
11642
7f2dee4249aa
util.stanza: Export pretty printing function
Kim Alvefur <zash@zash.se>
parents:
11459
diff
changeset
|
142 pretty_print : function ( string ) : string |
11432
113f3912c7cb
util: Add Teal interface definition files
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
143 end |
113f3912c7cb
util: Add Teal interface definition files
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
144 |
113f3912c7cb
util: Add Teal interface definition files
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
145 return lib |