Software /
code /
prosody
Comparison
teal-src/util/stanza.d.tl @ 12517:a8c17c95ef4d
util.stanza: Document top level attributes in Teal definition
Tells you if you make a typo like "gropchat" or so
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Tue, 17 May 2022 17:06:36 +0200 |
parent | 12516:d76ac22f3571 |
child | 12774:fc4adc32a537 |
comparison
equal
deleted
inserted
replaced
12516:d76ac22f3571 | 12517:a8c17c95ef4d |
---|---|
76 name : string | 76 name : string |
77 attr : { string : string } | 77 attr : { string : string } |
78 { serialized_stanza_t | string } | 78 { serialized_stanza_t | string } |
79 end | 79 end |
80 | 80 |
81 record message_attr | |
82 ["xml:lang"] : string | |
83 from : string | |
84 id : string | |
85 to : string | |
86 type : message_type | |
87 enum message_type | |
88 "chat" | |
89 "error" | |
90 "groupchat" | |
91 "headline" | |
92 "normal" | |
93 end | |
94 end | |
95 | |
96 record presence_attr | |
97 ["xml:lang"] : string | |
98 from : string | |
99 id : string | |
100 to : string | |
101 type : presence_type | |
102 enum presence_type | |
103 "error" | |
104 "probe" | |
105 "subscribe" | |
106 "subscribed" | |
107 "unsubscribe" | |
108 "unsubscribed" | |
109 end | |
110 end | |
111 | |
112 record iq_attr | |
113 ["xml:lang"] : string | |
114 from : string | |
115 id : string | |
116 to : string | |
117 type : iq_type | |
118 enum iq_type | |
119 "error" | |
120 "get" | |
121 "result" | |
122 "set" | |
123 end | |
124 end | |
125 | |
81 stanza : function ( string, { string : string } ) : stanza_t | 126 stanza : function ( string, { string : string } ) : stanza_t |
82 is_stanza : function ( any ) : boolean | 127 is_stanza : function ( any ) : boolean |
83 preserialize : function ( stanza_t ) : serialized_stanza_t | 128 preserialize : function ( stanza_t ) : serialized_stanza_t |
84 deserialize : function ( serialized_stanza_t ) : stanza_t | 129 deserialize : function ( serialized_stanza_t ) : stanza_t |
85 clone : function ( stanza_t, boolean ) : stanza_t | 130 clone : function ( stanza_t, boolean ) : stanza_t |
86 message : function ( { string : string }, string ) : stanza_t | 131 message : function ( message_attr, string ) : stanza_t |
87 iq : function ( { string : string } ) : stanza_t | 132 iq : function ( iq_attr ) : stanza_t |
88 reply : function ( stanza_t ) : stanza_t | 133 reply : function ( stanza_t ) : stanza_t |
89 error_reply : function ( stanza_t, stanza_error_type, stanza_error_condition, string, string ) : stanza_t | 134 error_reply : function ( stanza_t, stanza_error_type, stanza_error_condition, string, string ) : stanza_t |
90 presence : function ( { string : string } ) : stanza_t | 135 presence : function ( presence_attr ) : stanza_t |
91 xml_escape : function ( string ) : string | 136 xml_escape : function ( string ) : string |
92 pretty_print : function ( string ) : string | 137 pretty_print : function ( string ) : string |
93 end | 138 end |
94 | 139 |
95 return lib | 140 return lib |