forked from legastero/stanza
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathxep0352.ts
32 lines (28 loc) · 838 Bytes
/
xep0352.ts
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
// ====================================================================
// XEP-0352: Client State Indication
// --------------------------------------------------------------------
// Source: https://xmpp.org/extensions/xep-0352.html
// Version: 0.2.1 (2017-02-18)
// ====================================================================
import { DefinitionOptions } from '../jxt';
import { NS_CSI_0 } from '../Namespaces';
export interface CSI {
type: 'active' | 'inactive';
}
const Protocol: DefinitionOptions[] = [
{
element: 'active',
namespace: NS_CSI_0,
path: 'csi',
type: 'active',
typeField: 'state'
},
{
element: 'inactive',
namespace: NS_CSI_0,
path: 'csi',
type: 'inactive',
typeField: 'state'
}
];
export default Protocol;