-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathxmpp.ads
920 lines (723 loc) · 24.7 KB
/
xmpp.ads
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
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
------------------------------------------------------------------------------
-- --
-- AXMPP Project --
-- --
-- XMPP Library for Ada --
-- --
------------------------------------------------------------------------------
-- --
-- Copyright © 2011, Alexander Basov <[email protected]> --
-- All rights reserved. --
-- --
-- Redistribution and use in source and binary forms, with or without --
-- modification, are permitted provided that the following conditions --
-- are met: --
-- --
-- * Redistributions of source code must retain the above copyright --
-- notice, this list of conditions and the following disclaimer. --
-- --
-- * Redistributions in binary form must reproduce the above copyright --
-- notice, this list of conditions and the following disclaimer in the --
-- documentation and/or other materials provided with the distribution. --
-- --
-- * Neither the name of the Alexander Basov, IE nor the names of its --
-- contributors may be used to endorse or promote products derived from --
-- this software without specific prior written permission. --
-- --
-- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS --
-- "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT --
-- LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR --
-- A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT --
-- HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, --
-- SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED --
-- TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR --
-- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF --
-- LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING --
-- NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS --
-- SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. --
-- --
------------------------------------------------------------------------------
-- $Revision$ $Date$
------------------------------------------------------------------------------
package XMPP is
-- The "account" category is to be used by a server when responding
-- to a disco request sent to the bare JID (user@host addresss)
-- of an account hosted by the server.
type Account_Type is
(Admin,
Anonymous,
Registered);
-- The "auth" category consists of server components that provide
-- authentication services within a server implementation.
type Auth_Type is
(Cert,
Generic_Auth,
LDAP,
NTLM,
PAM,
Radius);
-- The "automation" category consists of entities and nodes that provide
-- automated or programmed interaction.
type Automation_Type is
(Command_List,
Command_Node,
RPC,
SOAP,
Translation);
type Bind_State is (Success, Error);
-- The "client" category consists of different types
-- of clients, mostly for instant messaging.
type Client_Type is
(Bot,
Console,
Handheld,
Pc,
Phone,
Web);
-- The "collaboration" category consists of services that enable multiple
-- individuals to work together in real time.
type Collaboration_Type is
(Whiteboard);
-- The "component" category consists of services that are internal to
-- server implementations and not normally exposed outside a server.
type Component_Type is
(Archive,
C2S,
Generic_Component,
Load,
Log,
Presence,
Router,
S2S,
SM,
Stats);
-- The "conference" category consists of online conference services such
-- as multi-user chatroom services.
type Conference_Type is
(IRC,
Text);
type Category_Type is
(Account,
Auth,
Automation,
Client,
Collaboration,
Component,
Conference,
Directory,
Gateway,
Headline,
Hierarchy,
Proxy,
Pubsub,
Server,
Store);
-- The "directory" category consists of information retrieval services
-- that enable users to search online directories or otherwise be
-- informed about the existence of other XMPP entities.
type Directory_Type is
(Chatroom,
Group,
User,
Waitinglist);
type Feature is
(DNS_Srv,
-- Support for DNS SRV lookups of XMPP services.
-- RFC 3920: XMPP Core, RFC 3921: XMPP IM
Full_Unicode,
-- Support for Unicode characters, including in displayed text,
-- JIDs, and passwords.
GC_1_0,
-- Support for the "groupchat 1.0" protocol.
-- XEP-0045: Multi-User Chat
IPV6,
-- Application supports IPv6.
Jabber_Client,
-- See RFC 3921
-- RFC 3921: XMPP IM
Jabber_Component_Accept,
-- See XEP-0114
-- XEP-0114: Existing Component Protocol
Jabber_Component_Connect,
-- See XEP-0114
-- XEP-0114: Existing Component Protocol
Jabber_Iq_Auth,
-- See XEP-0078
-- XEP-0078: Non-SASL Authentication
Jabber_Iq_Browse,
-- See XEP-0011
-- XEP-0011 (DEPRECATED)
Jabber_Iq_Gateway,
-- See XEP-0100
-- XEP-0100: Gateway Interaction
Jabber_Iq_Last,
-- See XEP-0012
-- XEP-0012: Last Activity
Jabber_Iq_Oob,
-- See XEP-0066
-- XEP-0066: Out of Band Data
Jabber_Iq_Pass,
-- See XEP-0003
-- XEP-0003 (DEPRECATED)
Jabber_Iq_Privacy,
-- See RFC 3921
-- RFC 3921: XMPP IM
Jabber_Iq_Private,
-- See XEP-0049
-- XEP-0049: Private XML Storage
Jabber_Iq_Register,
-- See XEP-0077
-- XEP-0077: In-Band Registration
Jabber_Iq_Roster,
-- See RFC 3921
-- RFC 3921: XMPP IM
Jabber_Iq_Rpc,
-- See XEP-0009
-- XEP-0009: Jabber-RPC
Jabber_Iq_Search,
-- See XEP-0055
-- XEP-0055: Jabber Search
Jabber_Iq_Time,
-- DEPRECATED
-- XEP-0202: Entity Time
Jabber_Iq_Version,
-- See XEP-0092
-- XEP-0092: Software Version
Jabber_Server,
-- See RFC 3921
-- RFC 3921: XMPP IM
Jabber_X_Data,
-- See XEP-0004
-- XEP-0004: Data Forms
Jabber_X_Delay,
-- DEPRECATED
-- XEP-0203: Delayed Delivery
Jabber_X_Encrypted,
-- See XEP-0027
-- XEP-0027: Current OpenPGP Usage
Jabber_X_Event,
-- See XEP-0022
-- XEP-0022 (DEPRECATED)
Jabber_X_Expire,
-- See XEP-0023
-- XEP-0023 (DEPRECATED)
Jabber_X_Oob,
-- See XEP-0066
-- XEP-0066: Out of Band Data
Jabber_X_Roster,
-- See XEP-0093
-- XEP-0093 (DEPRECATED)
Jabber_X_Signed,
-- See XEP-0027
-- XEP-0027: Current OpenPGP Usage
Msglog,
-- Application performs logging or archiving of messages.
Msgoffline,
-- Server stores messages offline for later delivery.
-- XEP-0160: Best Practices for Handling Offline Messages
Muc_Hidden,
-- Hidden room in Multi-User Chat (MUC)
-- XEP-0045: Multi-User Chat
Muc_Membersonly,
-- Members-only room in Multi-User Chat (MUC)
-- XEP-0045: Multi-User Chat
Muc_Moderated,
-- Moderated room in Multi-User Chat (MUC)
-- XEP-0045: Multi-User Chat
Muc_Nonanonymous,
-- Non-anonymous room in Multi-User Chat (MUC)
-- XEP-0045: Multi-User Chat
Muc_Open,
-- Open room in Multi-User Chat (MUC)
-- XEP-0045: Multi-User Chat
Muc_Passwordprotected,
-- Password-protected room in Multi-User Chat (MUC)
-- XEP-0045: Multi-User Chat
Muc_Persistent,
-- Persistent room in Multi-User Chat (MUC)
-- XEP-0045: Multi-User Chat
Muc_Public,
-- Public room in Multi-User Chat (MUC)
-- XEP-0045: Multi-User Chat
Muc_Rooms,
-- List of MUC rooms (each as a separate item)
-- XEP-0045: Multi-User Chat
Muc_Semianonymous,
-- Semi-anonymous room in Multi-User Chat (MUC)
-- XEP-0045: Multi-User Chat
Muc_Temporary,
-- Temporary room in Multi-User Chat (MUC)
-- XEP-0045: Multi-User Chat
Muc_Unmoderated,
-- Unmoderated room in Multi-User Chat (MUC)
-- XEP-0045: Multi-User Chat
Muc_Unsecured,
-- Unsecured room in Multi-User Chat (MUC)
-- XEP-0045: Multi-User Chat
Protocol_Activity,
-- See XEP-0108
-- XEP-0108: User Activity
Protocol_Pubsub_Publish,
-- Publishing items is supported.
-- XEP-0060
Protocol_Pubsub_Subscribe,
-- Subscribing and unsubscribing are supported.
-- XEP-0060
Protocol_Rosterx,
-- See XEP-0144
-- XEP-0144: Roster Item Exchange
Protocol_RSM,
-- TODO: Add description
Protocol_Sipub,
-- See XEP-0137
-- XEP-0137: Publishing SI Requests
Protocol_Soap,
-- See XEP-0072
-- XEP-0072: SOAP Over XMPP
Protocol_Soap_Fault,
-- See XEP-0072
-- XEP-0072: SOAP Over XMPP
Protocol_Waitinglist,
-- See XEP-0130
-- XEP-0130: Waiting Lists
Protocol_Address,
-- See XEP-0033
-- XEP-0033: Extended Stanza Addressing
Protocol_Amp,
-- See XEP-0079
-- XEP-0079: Advanced Message Processing
Protocol_Amp_Action_Alert,
-- Support for the "alert" action in Advanced Message Processing.
-- XEP-0079: Advanced Message Processing
Protocol_Amp_Action_Drop,
-- Support for the "drop" action in Advanced Message Processing.
-- XEP-0079: Advanced Message Processing
Protocol_Amp_Action_Error,
-- Support for the "error" action in Advanced Message Processing.
-- XEP-0079: Advanced Message Processing
Protocol_Amp_Action_Notify,
-- Support for the "notify" action in Advanced Message Processing.
-- XEP-0079: Advanced Message Processing
Protocol_Amp_Condition_Deliver,
-- Support for the "deliver" condition in Advanced Message Processing.
-- XEP-0079: Advanced Message Processing
Protocol_Amp_Condition_Expire_At,
-- Support for the "expire-at" condition in Advanced Message Processing.
-- XEP-0079: Advanced Message Processing
Protocol_Amp_Condition_Match_Resource,
-- Support for the "match-resource" condition
-- in Advanced Message Processing.
-- XEP-0079: Advanced Message Processing
Protocol_Amp_Errors,
-- See XEP-0079
-- XEP-0079: Advanced Message Processing
Protocol_Bytestreams,
-- See XEP-0065
-- XEP-0065: SOCKS5 Bytestreams
Protocol_Bytestreams_UDP,
-- See XEP-0065
-- XEP-0065: SOCKS5 Bytestreams
Protocol_Caps,
-- See XEP-0115
-- XEP-0115: Entity Capabilities
Protocol_Chatstates,
-- See XEP-0085
-- XEP-0085: Chat State Notifications
Protocol_Commands,
-- See XEP-0050
-- XEP-0050: Ad-Hoc Commands
Protocol_Compress,
-- See XEP-0138
-- XEP-0138: Stream Compression
Protocol_Disco_Info,
-- See XEP-0030
-- XEP-0030: Service Discovery
Protocol_Disco_Items,
-- See XEP-0030
-- XEP-0030: Service Discovery
Protocol_Feature_Neg,
-- See XEP-0020
-- XEP-0020: Feature Negotiation
Protocol_Geoloc,
-- See XEP-0080
-- XEP-0080: User Geolocation
Protocol_HTTP_Auth,
-- See XEP-0072
-- XEP-0072: SOAP Over XMPP
Protocol_HTTP_BIND,
-- See XEP-0124
-- XEP-0124: Bidirectional-streams Over Synchronous HTTP
Protocol_Ibb,
-- See XEP-0047
-- XEP-0047: In-Band Bytestreams
Protocol_MUC,
-- See XEP-0045
-- XEP-0045: Multi-User Chat
Protocol_Mood,
-- See XEP-0107
-- XEP-0107: User Mood
Protocol_Muc_Admin,
-- See XEP-0045
-- XEP-0045: Multi-User Chat
Protocol_Pubsub_Owner,
-- TODO: Add description
Protocol_Muc_Owner,
-- See XEP-0045
-- XEP-0045: Multi-User Chat
Protocol_Muc_Unique,
-- TODO: Add description
Protocol_Muc_Register,
-- Support for the muc#register FORM_TYPE in Multi-User Chat.
-- XEP-0045: Multi-User Chat
Protocol_Muc_Room_Config,
-- Support for the muc#roomconfig FORM_TYPE in Multi-User Chat.
-- XEP-0045: Multi-User Chat
Protocol_Muc_Room_Info,
-- Support for the muc#roominfo FORM_TYPE in Multi-User Chat.
-- XEP-0045: Multi-User Chat
Protocol_Muc_User,
-- See XEP-0045
-- XEP-0045: Multi-User Chat
Protocol_Offline,
-- See XEP-0013
-- XEP-0013: Flexible Offline Message Retrieval
Protocol_Physloc,
-- DEPRECATED
-- XEP-0080: User Geolocation
Protocol_Pubsub,
-- TODO : Add description
Presence,
-- TODO : Add description
Presence_Invisible,
-- TODO : Add description
Protocol_Pubsub_Access_Authorize,
-- The default node access model is authorize.
-- XEP-0060
Protocol_Pubsub_Access_Open,
-- The default node access model is open.
-- XEP-0060
Protocol_Pubsub_Access_Presence,
-- The default node access model is presence.
-- XEP-0060
Protocol_Pubsub_Access_Roster,
-- The default node access model is roster.
-- XEP-0060
Protocol_Pubsub_Access_Whitelist,
-- The default node access model is whitelist.
-- XEP-0060
Protocol_Pubsub_Auto_Create,
-- The service supports automatic creation of nodes on first publish.
-- XEP-0060
Protocol_Pubsub_Auto_Subscribe,
-- The service supports automatic subscription to a nodes based
-- on presence subscription.
-- XEP-0060
Protocol_Pubsub_Collections,
-- Collection nodes are supported.
-- XEP-0060
Protocol_Pubsub_Config_Node,
-- Configuration of node options is supported.
-- XEP-0060
Protocol_Pubsub_Create_And_Configure,
-- Simultaneous creation and configuration of nodes is supported.
-- XEP-0060
Protocol_Pubsub_Create_Nodes,
-- Creation of nodes is supported.
-- XEP-0060
Protocol_Pubsub_Delete_Any,
-- Any publisher may delete an item
-- (not only the originating publisher).
-- XEP-0060
Protocol_Pubsub_Delete_Items,
-- TODO: Add description
Protocol_Pubsub_Delete_Nodes,
-- Deletion of nodes is supported.
-- XEP-0060
Protocol_Pubsub_Filtered_Notifications,
-- The service supports filtering of notifications based
-- on Entity Capabilities.
-- XEP-0060
Protocol_Pubsub_Get_Pending,
-- Retrieval of pending subscription approvals is supported.
-- XEP-0060
Protocol_Pubsub_Instant_Nodes,
-- Creation of instant nodes is supported.
-- XEP-0060
Protocol_Pubsub_Item_Ids,
-- Publishers may specify item identifiers.
-- XEP-0060
Protocol_Pubsub_Last_Published,
-- The service supports sending of the last published item to new
-- subscribers and to newly available resources.
-- XEP-0060
Protocol_Pubsub_Leased_Subscription,
-- Time-based subscriptions are supported.
-- XEP-0060
Protocol_Pubsub_Manage_Subscription,
-- Node owners may manage subscriptions.
-- XEP-0060
Protocol_Pubsub_Member_Affiliation,
-- The member affiliation is supported.
-- XEP-0060
Protocol_Pubsub_Meta_Data,
-- Node meta-data is supported.
-- XEP-0060
Protocol_Pubsub_Modify_Affiliations,
-- Node owners may modify affiliations.
-- XEP-0060
Protocol_Pubsub_Multi_Collection,
-- A single leaf node may be associated with multiple collections.
-- XEP-0060
Protocol_Pubsub_Multi_Subscribe,
-- A single entity may subscribe to a node multiple times.
-- XEP-0060
Protocol_Pubsub_Outcast_Affiliation,
-- The outcast affiliation is supported.
-- XEP-0060
Protocol_Pubsub_Persistent_Items,
-- Persistent items are supported.
-- XEP-0060
Protocol_Pubsub_Presence_Notifications,
-- Presence-based delivery of event notifications is supported.
-- XEP-0060
Protocol_Pubsub_Presence_Subscribe,
-- Implicit presence-based subscriptions are supported.
-- XEP-0060
Protocol_Pubsub_Publish_Options,
-- Publication with publish options is supported.
-- XEP-0060
Protocol_Pubsub_Publisher_Affiliation,
-- The publisher affiliation is supported.
-- XEP-0060
Protocol_Pubsub_Purge_Nodes,
-- Purging of nodes is supported.
-- XEP-0060
Protocol_Pubsub_Retract_Items,
-- Item retraction is supported.
-- XEP-0060
Protocol_Pubsub_Retrieve_Affiliations,
-- Retrieval of current affiliations is supported.
-- XEP-0060
Protocol_Pubsub_Retrieve_Default,
-- Retrieval of default node configuration is supported.
-- XEP-0060
Protocol_Pubsub_Retrieve_Items,
-- Item retrieval is supported.
-- XEP-0060
Protocol_Pubsub_Retrieve_Subscriptions,
-- Retrieval of current subscriptions is supported.
-- XEP-0060
Protocol_Pubsub_Subscription_Notifications,
-- Notification of subscription state changes is supported.
-- XEP-0060
Protocol_Pubsub_Subscription_Options,
-- Configuration of subscription options is supported.
-- XEP-0060
Protocol_Waitinglist_Schemes_Mailto,
-- Waiting list service supports the mailto: URI scheme.
-- XEP-0130: Waiting Lists
Protocol_Waitinglist_Schemes_Tel,
-- Waiting list service supports the tel: URI scheme.
-- XEP-0130: Waiting Lists
Protocol_Xdata_Layout,
-- See XEP-0141
-- XEP-0141: Data Forms Layout
Protocol_Xdata_Validate,
-- See XEP-0122
-- XEP-0122: Data Forms Validation
Protocol_Xhtml_Im,
-- See XEP-0071
-- XEP-0071: XHTML-IM
Roster_Delimiter,
-- See XEP-0083
-- XEP-0083: Nested Roster Groups
SSLC2S,
-- Application supports old-style (pre-TLS)
-- SSL connections on a dedicated port.
String_Prep,
-- Application supports the nameprep, nodeprep,
-- and resourceprep profiles of stringprep.
-- RFC 3920: XMPP Core
Urn_Ietf_Params_Xml_Ns_Xmpp_Bind,
-- See RFC 3920
-- RFC 3920: XMPP Core
Urn_Ietf_Params_Xml_Ns_Xmpp_E2e,
-- See RFC 3921
-- RFC 3923: XMPP E2E
Urn_Ietf_Params_Xml_Ns_Xmpp_Sasl,
-- See RFC 3920
-- RFC 3920: XMPP Core
Urn_Ietf_Params_Xml_Ns_Xmpp_Sasl_C2s,
-- Application supports client-to-server SASL.
-- RFC 3920: XMPP Core
Urn_Ietf_Params_Xml_Ns_Xmpp_Sasl_S2s,
-- Application supports server-to-server SASL.
-- RFC 3920: XMPP Core
Urn_Ietf_Params_Xml_Ns_Xmpp_Session,
-- See RFC 3921
-- RFC 3921: XMPP IM
Urn_Ietf_Params_Xml_Ns_Xmpp_Stanzas,
-- See RFC 3920
-- RFC 3920: XMPP Core
Urn_Ietf_Params_Xml_Ns_Xmpp_Streams,
-- See RFC 3920
-- RFC 3920: XMPP Core
Urn_Ietf_Params_Xml_Ns_Xmpp_Tls,
-- See RFC 3920
-- RFC 3920: XMPP Core
Urn_Ietf_Params_Xml_Ns_Xmpp_Tls_C2s,
-- Application supports client-to-server TLS.
-- RFC 3920: XMPP Core
Urn_Ietf_Params_Xml_Ns_Xmpp_Tls_S2s,
-- Application supports server-to-server TLS.
-- RFC 3920: XMPP Core
Urn_Xmpp_Archive_Manage,
-- Server supports management of archived messages
-- XEP-0136: Message Archiving
Vcard_Temp,
-- See XEP-0054
-- XEP-0054: vcard-temp
Urn_Ietf_Rfc_3264,
-- See XEP-0176
-- XEP-0176: Jingle ICE-UDP Transport Method
Urn_Xmpp_Archive_Auto,
-- Server supports automatic message archiving
-- XEP-0136_ Message Archiving
Urn_Xmpp_Archive_Manual,
-- Server supports manual message archiving
-- XEP-0136: Message Archiving
Urn_Xmpp_Archive_Pref,
-- Server supports message archiving preferences
-- XEP-0136: Message Archiving
Urn_Xmpp_Avatar_Data,
-- See XEP-0084
-- XEP-0084: User Avatars
Urn_Xmpp_Avatar_Metadata,
-- See XEP-0084
-- XEP-0084: User Avatars
Urn_Xmpp_Delay,
-- See XEP-0203
-- XEP-0203: Delayed Delivery
Urn_Xmpp_Jingle_Apps_Rtp_Audio,
-- See XEP-0167
-- XEP-0167: Jingle RTP Sessions
Urn_Xmpp_Jingle_Apps_Rtp_Video,
-- See XEP-0167
-- XEP-0167: Jingle RTP Sessions
Urn_Xmpp_Ping,
-- See XEP-0199
-- XEP-0199: XMPP Ping
Urn_Xmpp_Receipts,
-- See XEP-0199
-- XEP-0199: XMPP Ping
Urn_Xmpp_Ssn,
-- Support for Stanza Session Negotiation and its FORM_TYPE
-- XEP-0155: Stanza Session Negotiation
Urn_Xmpp_Time,
-- See XEP-0202
-- XEP-0202: Entity Time
XML_Lang,
-- Application supports the 'xml:lang' attribute
-- as described in RFC 3920.
-- RFC 3920: XMPP Core
IQ);
-- The "gateway" category consists of translators between Jabber/XMPP
-- services and non-XMPP services.
type Gateway_Type is
(AIM,
Facebook,
Gadu_Gadu,
HTTP_WS,
ICQ,
IRC,
LCS,
MRIM,
MSN,
Myspaceim,
OCS,
QQ,
Sametime,
Simple,
Skype,
SMS,
SMTP,
Tlen,
Xfire,
XMPP_Gateway,
Yahoo);
-- The "headline" category consists of services that provide real-time
-- news or information (often but not necessarily in a message of type
-- "headline").
type Headline_Type is
(Newmail,
Rss,
weather);
-- The "hierarchy" category is used to describe nodes within a hierarchy
-- of nodes; the "branch" and "leaf" types are exhaustive.
type Hierarchy_Type is
(Branch,
Leaf);
type IQ_Kind is (Error, Get, Result, Set);
type Mechanism is (PLAIN, DIGEST_MD5);
type Message_Type is (Chat, Error, Group_Chat, Headline, Normal);
type Chat_State_Type is (Active, Composing, Paused, Inactive, Gone);
type MUC_Affilation is (Admin, Member, None, Outcast, Owner);
type MUC_Role is (Moderator, None, Participant, Visitor);
type Object_Kind is
(Bind,
Challenge,
Disco,
IQ,
IQ_Session,
Error,
Message,
MUC,
Null_Object,
Presence,
Roster,
Roster_Item,
Stream,
Stream_Featuress,
Version);
type Presence_Type is
(Error,
Probe,
Subscribe,
Subscribed,
Unavailable,
Unsubscribe,
Unsubscribed);
type Priority_Type is new Integer range -129 .. 127;
-- The "proxy" category consists of servers or services that act as
-- special-purpose proxies or intermediaries between two or more XMPP
-- endpoints.
type Proxy_Type is
(Bytestreams);
-- Services and nodes that adhere to XEP-0060.
type Pubsub_Type is
(Collection,
Leaf,
Pep,
Service);
type Session_State is (Established, Error);
-- The "server" category consists of any Jabber/XMPP server.
type Server_Type is
(IM);
type Show_Kind is
(Away,
Chat,
DND,
XA,
Online);
-- The "store" category consists of internal server components that
-- provide data storage and retrieval services.
type Store_Type is
(Berkeley,
File,
Generic_Store,
Ldap,
Mysql,
Oracle,
Postgres);
type Subscription_Type is (Both, None);
end XMPP;