@girs/nice-0.1 0.1.0-3.2.7 → 0.1.0-3.2.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -5,7 +5,7 @@
5
5
  ![downloads/week](https://img.shields.io/npm/dw/@girs/nice-0.1)
6
6
 
7
7
 
8
- GJS TypeScript type definitions for Nice-0.1, generated from library version 0.1.0 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v3.2.7.
8
+ GJS TypeScript type definitions for Nice-0.1, generated from library version 0.1.0 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v3.2.9.
9
9
 
10
10
 
11
11
  ## Install
@@ -0,0 +1,2 @@
1
+ export {}
2
+
@@ -0,0 +1,3 @@
1
+ const gi = globalThis.imports?.gi || {};
2
+ export default gi;
3
+
package/nice-0.1.d.cts CHANGED
@@ -567,199 +567,6 @@ export module Agent {
567
567
  * <para> See also: #NiceCompatibility</para>
568
568
  */
569
569
  compatibility?: number | null
570
- /**
571
- * Whether to perform periodic consent freshness checks as specified in
572
- * RFC 7675. When %TRUE, the agent will periodically send binding requests
573
- * to the peer to maintain the consent to send with the peer. On receipt
574
- * of any authenticated error response, a component will immediately move
575
- * to the failed state.
576
- *
577
- * Setting this property to %TRUE implies that 'keepalive-conncheck' should
578
- * be %TRUE as well.
579
- */
580
- consent_freshness?: boolean | null
581
- /**
582
- * Whether the agent has the controlling role. This property should
583
- * be modified before gathering candidates, any modification occuring
584
- * later will be hold until ICE is restarted.
585
- */
586
- controlling_mode?: boolean | null
587
- /**
588
- * Force all traffic to go through a relay for added privacy, this
589
- * allows hiding the local IP address. When this is enabled, so
590
- * local candidates are available before relay servers have been set
591
- * with nice_agent_set_relay_info().
592
- */
593
- force_relay?: boolean | null
594
- full_mode?: boolean | null
595
- /**
596
- * Whether the agent should use ICE-TCP when gathering candidates.
597
- * If the option is disabled, no TCP candidates will be generated. If the
598
- * agent is in reliable mode, then pseudotcp will need to be used over UDP
599
- * candidates.
600
- * <para>
601
- * This option should be set before gathering candidates and should not be
602
- * modified afterwards.
603
- * </para>
604
- * The #NiceAgent:ice-tcp property can be set at the same time as the
605
- * #NiceAgent:ice-udp property, but both cannot be unset at the same time.
606
- * If #NiceAgent:ice-udp is set to %FALSE, then this property cannot be set
607
- * to %FALSE as well.
608
- * <note>
609
- * <para>
610
- * ICE-TCP is only supported for %NICE_COMPATIBILITY_RFC5245,
611
- * %NICE_COMPATIBILITY_OC2007 and %NICE_COMPATIBILITY_OC2007R2 compatibility
612
- * modes.
613
- * </para>
614
- * </note>
615
- */
616
- ice_tcp?: boolean | null
617
- /**
618
- * Whether to perform Trickle ICE as per draft-ietf-ice-trickle-ice-21.
619
- * When %TRUE, the agent will postpone changing a component state to
620
- * %NICE_COMPONENT_STATE_FAILED until nice_agent_peer_candidate_gathering_done()
621
- * has been called with the ID of the component's stream.
622
- */
623
- ice_trickle?: boolean | null
624
- /**
625
- * Whether the agent should use ICE-UDP when gathering candidates.
626
- * If the option is disabled, no UDP candidates will be generated. If the
627
- * agent is in reliable mode, then pseudotcp will not be used since pseudotcp
628
- * works on top of UDP candidates.
629
- * <para>
630
- * This option should be set before gathering candidates and should not be
631
- * modified afterwards.
632
- * </para>
633
- * The #NiceAgent:ice-udp property can be set at the same time as the
634
- * #NiceAgent:ice-tcp property, but both cannot be unset at the same time.
635
- * If #NiceAgent:ice-tcp is set to %FALSE, then this property cannot be set
636
- * to %FALSE as well.
637
- */
638
- ice_udp?: boolean | null
639
- /**
640
- * A final timeout in msec, launched when the agent becomes idle,
641
- * before stopping its activity.
642
- *
643
- * This timer will delay the decision to set a component as failed.
644
- * This delay is added to reduce the chance to see the agent receiving
645
- * new stun activity just after the conncheck list has been declared
646
- * failed (some valid pairs, no nominated pair, and no in-progress
647
- * pairs), reactiviting conncheck activity, and causing a (valid)
648
- * state transitions like that: connecting -> failed -> connecting ->
649
- * connected -> ready. Such transitions are not buggy per-se, but may
650
- * break the test-suite, that counts precisely the number of time each
651
- * state has been set, and doesnt expect these transcient failed
652
- * states.
653
- *
654
- * This timer is also useful when the agent is in controlled mode and
655
- * the other controlling peer takes some time to elect its nominated
656
- * pair (this may be the case for SfB peers).
657
- *
658
- * This timer is *NOT* part if the RFC5245, as this situation is not
659
- * covered in sect 8.1.2 "Updating States", but deals with a real
660
- * use-case, where a controlled agent can not wait forever for the
661
- * other peer to make a nomination decision.
662
- *
663
- * Also note that the value of this timeout will not delay the
664
- * emission of 'connected' and 'ready' agent signals, and will not
665
- * slow down the behaviour of the agent when the peer agent works
666
- * in a timely manner.
667
- */
668
- idle_timeout?: number | null
669
- /**
670
- * Use binding requests as keepalives instead of binding
671
- * indications. This means that the keepalives may time out which
672
- * will change the component state to %NICE_COMPONENT_STATE_FAILED.
673
- *
674
- * Enabing this is a slight violation of RFC 5245 section 10 which
675
- * recommends using Binding Indications for keepalives.
676
- *
677
- * This is always enabled if the compatibility mode is
678
- * %NICE_COMPATIBILITY_GOOGLE.
679
- *
680
- * This is always enabled if the 'consent-freshness' property is %TRUE
681
- */
682
- keepalive_conncheck?: boolean | null
683
- /**
684
- * A GLib main context is needed for all timeouts used by libnice.
685
- * This is a property being set by the nice_agent_new() call.
686
- */
687
- main_context?: any | null
688
- max_connectivity_checks?: number | null
689
- /**
690
- * The proxy server IP used to bypass a proxy firewall
691
- */
692
- proxy_ip?: string | null
693
- /**
694
- * The password used to authenticate with the proxy
695
- */
696
- proxy_password?: string | null
697
- /**
698
- * The proxy server port used to bypass a proxy firewall
699
- */
700
- proxy_port?: number | null
701
- /**
702
- * The type of proxy set in the proxy-ip property
703
- */
704
- proxy_type?: number | null
705
- /**
706
- * The username used to authenticate with the proxy
707
- */
708
- proxy_username?: string | null
709
- /**
710
- * Whether the agent is providing a reliable transport of messages (through
711
- * ICE-TCP or PseudoTCP over ICE-UDP)
712
- */
713
- reliable?: boolean | null
714
- /**
715
- * The initial timeout (msecs) of the STUN binding requests
716
- * used in the gathering stage, to find our local candidates.
717
- * This property is described as 'RTO' in the RFC 5389 and RFC 5245.
718
- * This timeout is doubled for each retransmission, until
719
- * #NiceAgent:stun-max-retransmissions have been done,
720
- * with an exception for the last restransmission, where the timeout is
721
- * divided by two instead (RFC 5389 indicates that a customisable
722
- * multiplier 'Rm' to 'RTO' should be used).
723
- */
724
- stun_initial_timeout?: number | null
725
- /**
726
- * The maximum number of retransmissions of the STUN binding requests
727
- * used in the gathering stage, to find our local candidates, and used
728
- * in the connection check stage, to test the validity of each
729
- * constructed pair. This property is described as 'Rc' in the RFC
730
- * 5389, with a default value of 7. The timeout of each STUN request
731
- * is doubled for each retransmission, so the choice of this value has
732
- * a direct impact on the time needed to move from the CONNECTED state
733
- * to the READY state, and on the time needed to complete the GATHERING
734
- * state.
735
- */
736
- stun_max_retransmissions?: number | null
737
- stun_pacing_timer?: number | null
738
- /**
739
- * The initial timeout of the STUN binding requests used
740
- * for a reliable timer.
741
- */
742
- stun_reliable_timeout?: number | null
743
- stun_server?: string | null
744
- stun_server_port?: number | null
745
- /**
746
- * Support RENOMINATION STUN attribute proposed here:
747
- * https://tools.ietf.org/html/draft-thatcher-ice-renomination-00 As
748
- * soon as RENOMINATION attribute is received from remote
749
- * candidate's address, corresponding candidates pair gets
750
- * selected. This is specific to Google Chrome/libWebRTC.
751
- */
752
- support_renomination?: boolean | null
753
- /**
754
- * Whether the agent should use UPnP to open a port in the router and
755
- * get the external IP
756
- */
757
- upnp?: boolean | null
758
- /**
759
- * The maximum amount of time (in milliseconds) to wait for UPnP discovery to
760
- * finish before signaling the #NiceAgent::candidate-gathering-done signal
761
- */
762
- upnp_timeout?: number | null
763
570
  /**
764
571
  * Whether to perform periodic consent freshness checks as specified in
765
572
  * RFC 7675. When %TRUE, the agent will periodically send binding requests
@@ -899,6 +706,11 @@ export module Agent {
899
706
  * The username used to authenticate with the proxy
900
707
  */
901
708
  proxyUsername?: string | null
709
+ /**
710
+ * Whether the agent is providing a reliable transport of messages (through
711
+ * ICE-TCP or PseudoTCP over ICE-UDP)
712
+ */
713
+ reliable?: boolean | null
902
714
  /**
903
715
  * The initial timeout (msecs) of the STUN binding requests
904
716
  * used in the gathering stage, to find our local candidates.
@@ -938,6 +750,11 @@ export module Agent {
938
750
  * selected. This is specific to Google Chrome/libWebRTC.
939
751
  */
940
752
  supportRenomination?: boolean | null
753
+ /**
754
+ * Whether the agent should use UPnP to open a port in the router and
755
+ * get the external IP
756
+ */
757
+ upnp?: boolean | null
941
758
  /**
942
759
  * The maximum amount of time (in milliseconds) to wait for UPnP discovery to
943
760
  * finish before signaling the #NiceAgent::candidate-gathering-done signal
@@ -951,28 +768,6 @@ export interface Agent {
951
768
 
952
769
  // Own properties of Nice-0.1.Nice.Agent
953
770
 
954
- /**
955
- * This property defines whether receive/send over a TCP or pseudo-TCP, in
956
- * reliable mode, are considered as packetized or as bytestream.
957
- * In unreliable mode, every send/recv is considered as packetized, and
958
- * this property is ignored and cannot be set.
959
- * <para>
960
- * In reliable mode, this property will always return %TRUE in the
961
- * %NICE_COMPATIBILITY_GOOGLE compatibility mode.
962
- * </para>
963
- * If the property is %TRUE, the stream is considered in bytestream mode
964
- * and data can be read with any receive size. If the property is %FALSE, then
965
- * the stream is considred packetized and each receive will return one packet
966
- * of the same size as what was sent from the peer. If in packetized mode,
967
- * then doing a receive with a size smaller than the packet, will cause the
968
- * remaining bytes in the packet to be dropped, breaking the reliability
969
- * of the stream.
970
- * <para>
971
- * This property is currently read-only, and will become read/write once
972
- * bytestream mode will be supported.
973
- * </para>
974
- */
975
- readonly bytestream_tcp: boolean
976
771
  /**
977
772
  * This property defines whether receive/send over a TCP or pseudo-TCP, in
978
773
  * reliable mode, are considered as packetized or as bytestream.
@@ -1001,17 +796,6 @@ export interface Agent {
1001
796
  * <para> See also: #NiceCompatibility</para>
1002
797
  */
1003
798
  readonly compatibility: number
1004
- /**
1005
- * Whether to perform periodic consent freshness checks as specified in
1006
- * RFC 7675. When %TRUE, the agent will periodically send binding requests
1007
- * to the peer to maintain the consent to send with the peer. On receipt
1008
- * of any authenticated error response, a component will immediately move
1009
- * to the failed state.
1010
- *
1011
- * Setting this property to %TRUE implies that 'keepalive-conncheck' should
1012
- * be %TRUE as well.
1013
- */
1014
- readonly consent_freshness: boolean
1015
799
  /**
1016
800
  * Whether to perform periodic consent freshness checks as specified in
1017
801
  * RFC 7675. When %TRUE, the agent will periodically send binding requests
@@ -1023,25 +807,12 @@ export interface Agent {
1023
807
  * be %TRUE as well.
1024
808
  */
1025
809
  readonly consentFreshness: boolean
1026
- /**
1027
- * Whether the agent has the controlling role. This property should
1028
- * be modified before gathering candidates, any modification occuring
1029
- * later will be hold until ICE is restarted.
1030
- */
1031
- controlling_mode: boolean
1032
810
  /**
1033
811
  * Whether the agent has the controlling role. This property should
1034
812
  * be modified before gathering candidates, any modification occuring
1035
813
  * later will be hold until ICE is restarted.
1036
814
  */
1037
815
  controllingMode: boolean
1038
- /**
1039
- * Force all traffic to go through a relay for added privacy, this
1040
- * allows hiding the local IP address. When this is enabled, so
1041
- * local candidates are available before relay servers have been set
1042
- * with nice_agent_set_relay_info().
1043
- */
1044
- force_relay: boolean
1045
816
  /**
1046
817
  * Force all traffic to go through a relay for added privacy, this
1047
818
  * allows hiding the local IP address. When this is enabled, so
@@ -1049,30 +820,7 @@ export interface Agent {
1049
820
  * with nice_agent_set_relay_info().
1050
821
  */
1051
822
  forceRelay: boolean
1052
- readonly full_mode: boolean
1053
823
  readonly fullMode: boolean
1054
- /**
1055
- * Whether the agent should use ICE-TCP when gathering candidates.
1056
- * If the option is disabled, no TCP candidates will be generated. If the
1057
- * agent is in reliable mode, then pseudotcp will need to be used over UDP
1058
- * candidates.
1059
- * <para>
1060
- * This option should be set before gathering candidates and should not be
1061
- * modified afterwards.
1062
- * </para>
1063
- * The #NiceAgent:ice-tcp property can be set at the same time as the
1064
- * #NiceAgent:ice-udp property, but both cannot be unset at the same time.
1065
- * If #NiceAgent:ice-udp is set to %FALSE, then this property cannot be set
1066
- * to %FALSE as well.
1067
- * <note>
1068
- * <para>
1069
- * ICE-TCP is only supported for %NICE_COMPATIBILITY_RFC5245,
1070
- * %NICE_COMPATIBILITY_OC2007 and %NICE_COMPATIBILITY_OC2007R2 compatibility
1071
- * modes.
1072
- * </para>
1073
- * </note>
1074
- */
1075
- ice_tcp: boolean
1076
824
  /**
1077
825
  * Whether the agent should use ICE-TCP when gathering candidates.
1078
826
  * If the option is disabled, no TCP candidates will be generated. If the
@@ -1095,13 +843,6 @@ export interface Agent {
1095
843
  * </note>
1096
844
  */
1097
845
  iceTcp: boolean
1098
- /**
1099
- * Whether to perform Trickle ICE as per draft-ietf-ice-trickle-ice-21.
1100
- * When %TRUE, the agent will postpone changing a component state to
1101
- * %NICE_COMPONENT_STATE_FAILED until nice_agent_peer_candidate_gathering_done()
1102
- * has been called with the ID of the component's stream.
1103
- */
1104
- ice_trickle: boolean
1105
846
  /**
1106
847
  * Whether to perform Trickle ICE as per draft-ietf-ice-trickle-ice-21.
1107
848
  * When %TRUE, the agent will postpone changing a component state to
@@ -1109,21 +850,6 @@ export interface Agent {
1109
850
  * has been called with the ID of the component's stream.
1110
851
  */
1111
852
  iceTrickle: boolean
1112
- /**
1113
- * Whether the agent should use ICE-UDP when gathering candidates.
1114
- * If the option is disabled, no UDP candidates will be generated. If the
1115
- * agent is in reliable mode, then pseudotcp will not be used since pseudotcp
1116
- * works on top of UDP candidates.
1117
- * <para>
1118
- * This option should be set before gathering candidates and should not be
1119
- * modified afterwards.
1120
- * </para>
1121
- * The #NiceAgent:ice-udp property can be set at the same time as the
1122
- * #NiceAgent:ice-tcp property, but both cannot be unset at the same time.
1123
- * If #NiceAgent:ice-tcp is set to %FALSE, then this property cannot be set
1124
- * to %FALSE as well.
1125
- */
1126
- ice_udp: boolean
1127
853
  /**
1128
854
  * Whether the agent should use ICE-UDP when gathering candidates.
1129
855
  * If the option is disabled, no UDP candidates will be generated. If the
@@ -1139,36 +865,6 @@ export interface Agent {
1139
865
  * to %FALSE as well.
1140
866
  */
1141
867
  iceUdp: boolean
1142
- /**
1143
- * A final timeout in msec, launched when the agent becomes idle,
1144
- * before stopping its activity.
1145
- *
1146
- * This timer will delay the decision to set a component as failed.
1147
- * This delay is added to reduce the chance to see the agent receiving
1148
- * new stun activity just after the conncheck list has been declared
1149
- * failed (some valid pairs, no nominated pair, and no in-progress
1150
- * pairs), reactiviting conncheck activity, and causing a (valid)
1151
- * state transitions like that: connecting -> failed -> connecting ->
1152
- * connected -> ready. Such transitions are not buggy per-se, but may
1153
- * break the test-suite, that counts precisely the number of time each
1154
- * state has been set, and doesnt expect these transcient failed
1155
- * states.
1156
- *
1157
- * This timer is also useful when the agent is in controlled mode and
1158
- * the other controlling peer takes some time to elect its nominated
1159
- * pair (this may be the case for SfB peers).
1160
- *
1161
- * This timer is *NOT* part if the RFC5245, as this situation is not
1162
- * covered in sect 8.1.2 "Updating States", but deals with a real
1163
- * use-case, where a controlled agent can not wait forever for the
1164
- * other peer to make a nomination decision.
1165
- *
1166
- * Also note that the value of this timeout will not delay the
1167
- * emission of 'connected' and 'ready' agent signals, and will not
1168
- * slow down the behaviour of the agent when the peer agent works
1169
- * in a timely manner.
1170
- */
1171
- idle_timeout: number
1172
868
  /**
1173
869
  * A final timeout in msec, launched when the agent becomes idle,
1174
870
  * before stopping its activity.
@@ -1199,20 +895,6 @@ export interface Agent {
1199
895
  * in a timely manner.
1200
896
  */
1201
897
  idleTimeout: number
1202
- /**
1203
- * Use binding requests as keepalives instead of binding
1204
- * indications. This means that the keepalives may time out which
1205
- * will change the component state to %NICE_COMPONENT_STATE_FAILED.
1206
- *
1207
- * Enabing this is a slight violation of RFC 5245 section 10 which
1208
- * recommends using Binding Indications for keepalives.
1209
- *
1210
- * This is always enabled if the compatibility mode is
1211
- * %NICE_COMPATIBILITY_GOOGLE.
1212
- *
1213
- * This is always enabled if the 'consent-freshness' property is %TRUE
1214
- */
1215
- keepalive_conncheck: boolean
1216
898
  /**
1217
899
  * Use binding requests as keepalives instead of binding
1218
900
  * indications. This means that the keepalives may time out which
@@ -1227,54 +909,28 @@ export interface Agent {
1227
909
  * This is always enabled if the 'consent-freshness' property is %TRUE
1228
910
  */
1229
911
  keepaliveConncheck: boolean
1230
- /**
1231
- * A GLib main context is needed for all timeouts used by libnice.
1232
- * This is a property being set by the nice_agent_new() call.
1233
- */
1234
- readonly main_context: any
1235
912
  /**
1236
913
  * A GLib main context is needed for all timeouts used by libnice.
1237
914
  * This is a property being set by the nice_agent_new() call.
1238
915
  */
1239
916
  readonly mainContext: any
1240
- max_connectivity_checks: number
1241
917
  maxConnectivityChecks: number
1242
- /**
1243
- * The proxy server IP used to bypass a proxy firewall
1244
- */
1245
- proxy_ip: string | null
1246
918
  /**
1247
919
  * The proxy server IP used to bypass a proxy firewall
1248
920
  */
1249
921
  proxyIp: string | null
1250
- /**
1251
- * The password used to authenticate with the proxy
1252
- */
1253
- proxy_password: string | null
1254
922
  /**
1255
923
  * The password used to authenticate with the proxy
1256
924
  */
1257
925
  proxyPassword: string | null
1258
- /**
1259
- * The proxy server port used to bypass a proxy firewall
1260
- */
1261
- proxy_port: number
1262
926
  /**
1263
927
  * The proxy server port used to bypass a proxy firewall
1264
928
  */
1265
929
  proxyPort: number
1266
- /**
1267
- * The type of proxy set in the proxy-ip property
1268
- */
1269
- proxy_type: number
1270
930
  /**
1271
931
  * The type of proxy set in the proxy-ip property
1272
932
  */
1273
933
  proxyType: number
1274
- /**
1275
- * The username used to authenticate with the proxy
1276
- */
1277
- proxy_username: string | null
1278
934
  /**
1279
935
  * The username used to authenticate with the proxy
1280
936
  */
@@ -1284,17 +940,6 @@ export interface Agent {
1284
940
  * ICE-TCP or PseudoTCP over ICE-UDP)
1285
941
  */
1286
942
  readonly reliable: boolean
1287
- /**
1288
- * The initial timeout (msecs) of the STUN binding requests
1289
- * used in the gathering stage, to find our local candidates.
1290
- * This property is described as 'RTO' in the RFC 5389 and RFC 5245.
1291
- * This timeout is doubled for each retransmission, until
1292
- * #NiceAgent:stun-max-retransmissions have been done,
1293
- * with an exception for the last restransmission, where the timeout is
1294
- * divided by two instead (RFC 5389 indicates that a customisable
1295
- * multiplier 'Rm' to 'RTO' should be used).
1296
- */
1297
- stun_initial_timeout: number
1298
943
  /**
1299
944
  * The initial timeout (msecs) of the STUN binding requests
1300
945
  * used in the gathering stage, to find our local candidates.
@@ -1306,18 +951,6 @@ export interface Agent {
1306
951
  * multiplier 'Rm' to 'RTO' should be used).
1307
952
  */
1308
953
  stunInitialTimeout: number
1309
- /**
1310
- * The maximum number of retransmissions of the STUN binding requests
1311
- * used in the gathering stage, to find our local candidates, and used
1312
- * in the connection check stage, to test the validity of each
1313
- * constructed pair. This property is described as 'Rc' in the RFC
1314
- * 5389, with a default value of 7. The timeout of each STUN request
1315
- * is doubled for each retransmission, so the choice of this value has
1316
- * a direct impact on the time needed to move from the CONNECTED state
1317
- * to the READY state, and on the time needed to complete the GATHERING
1318
- * state.
1319
- */
1320
- stun_max_retransmissions: number
1321
954
  /**
1322
955
  * The maximum number of retransmissions of the STUN binding requests
1323
956
  * used in the gathering stage, to find our local candidates, and used
@@ -1330,30 +963,14 @@ export interface Agent {
1330
963
  * state.
1331
964
  */
1332
965
  stunMaxRetransmissions: number
1333
- stun_pacing_timer: number
1334
966
  stunPacingTimer: number
1335
- /**
1336
- * The initial timeout of the STUN binding requests used
1337
- * for a reliable timer.
1338
- */
1339
- stun_reliable_timeout: number
1340
967
  /**
1341
968
  * The initial timeout of the STUN binding requests used
1342
969
  * for a reliable timer.
1343
970
  */
1344
971
  stunReliableTimeout: number
1345
- stun_server: string | null
1346
972
  stunServer: string | null
1347
- stun_server_port: number
1348
973
  stunServerPort: number
1349
- /**
1350
- * Support RENOMINATION STUN attribute proposed here:
1351
- * https://tools.ietf.org/html/draft-thatcher-ice-renomination-00 As
1352
- * soon as RENOMINATION attribute is received from remote
1353
- * candidate's address, corresponding candidates pair gets
1354
- * selected. This is specific to Google Chrome/libWebRTC.
1355
- */
1356
- support_renomination: boolean
1357
974
  /**
1358
975
  * Support RENOMINATION STUN attribute proposed here:
1359
976
  * https://tools.ietf.org/html/draft-thatcher-ice-renomination-00 As
@@ -1367,11 +984,6 @@ export interface Agent {
1367
984
  * get the external IP
1368
985
  */
1369
986
  upnp: boolean
1370
- /**
1371
- * The maximum amount of time (in milliseconds) to wait for UPnP discovery to
1372
- * finish before signaling the #NiceAgent::candidate-gathering-done signal
1373
- */
1374
- upnp_timeout: number
1375
987
  /**
1376
988
  * The maximum amount of time (in milliseconds) to wait for UPnP discovery to
1377
989
  * finish before signaling the #NiceAgent::candidate-gathering-done signal
@@ -2252,24 +1864,9 @@ export module PseudoTcpSocket {
2252
1864
 
2253
1865
  // Own constructor properties of Nice-0.1.Nice.PseudoTcpSocket
2254
1866
 
2255
- ack_delay?: number | null
1867
+ ackDelay?: number | null
2256
1868
  callbacks?: any | null
2257
1869
  conversation?: number | null
2258
- no_delay?: boolean | null
2259
- rcv_buf?: number | null
2260
- snd_buf?: number | null
2261
- /**
2262
- * Whether to support the FIN–ACK extension to the pseudo-TCP protocol for
2263
- * this socket. The extension is only compatible with other libnice pseudo-TCP
2264
- * stacks, and not with Jingle pseudo-TCP stacks. If enabled, support is
2265
- * negotiatied on connection setup, so it is safe for a #PseudoTcpSocket with
2266
- * support enabled to be used with one with it disabled, or with a Jingle
2267
- * pseudo-TCP socket which doesn’t support it at all.
2268
- *
2269
- * Support is enabled by default.
2270
- */
2271
- support_fin_ack?: boolean | null
2272
- ackDelay?: number | null
2273
1870
  noDelay?: boolean | null
2274
1871
  rcvBuf?: number | null
2275
1872
  sndBuf?: number | null
@@ -2292,28 +1889,13 @@ export interface PseudoTcpSocket {
2292
1889
 
2293
1890
  // Own properties of Nice-0.1.Nice.PseudoTcpSocket
2294
1891
 
2295
- ack_delay: number
2296
1892
  ackDelay: number
2297
1893
  callbacks: any
2298
1894
  readonly conversation: number
2299
- no_delay: boolean
2300
1895
  noDelay: boolean
2301
- rcv_buf: number
2302
1896
  rcvBuf: number
2303
- snd_buf: number
2304
1897
  sndBuf: number
2305
1898
  readonly state: number
2306
- /**
2307
- * Whether to support the FIN–ACK extension to the pseudo-TCP protocol for
2308
- * this socket. The extension is only compatible with other libnice pseudo-TCP
2309
- * stacks, and not with Jingle pseudo-TCP stacks. If enabled, support is
2310
- * negotiatied on connection setup, so it is safe for a #PseudoTcpSocket with
2311
- * support enabled to be used with one with it disabled, or with a Jingle
2312
- * pseudo-TCP socket which doesn’t support it at all.
2313
- *
2314
- * Support is enabled by default.
2315
- */
2316
- readonly support_fin_ack: boolean
2317
1899
  /**
2318
1900
  * Whether to support the FIN–ACK extension to the pseudo-TCP protocol for
2319
1901
  * this socket. The extension is only compatible with other libnice pseudo-TCP
package/nice-0.1.d.ts CHANGED
@@ -569,199 +569,6 @@ module Agent {
569
569
  * <para> See also: #NiceCompatibility</para>
570
570
  */
571
571
  compatibility?: number | null
572
- /**
573
- * Whether to perform periodic consent freshness checks as specified in
574
- * RFC 7675. When %TRUE, the agent will periodically send binding requests
575
- * to the peer to maintain the consent to send with the peer. On receipt
576
- * of any authenticated error response, a component will immediately move
577
- * to the failed state.
578
- *
579
- * Setting this property to %TRUE implies that 'keepalive-conncheck' should
580
- * be %TRUE as well.
581
- */
582
- consent_freshness?: boolean | null
583
- /**
584
- * Whether the agent has the controlling role. This property should
585
- * be modified before gathering candidates, any modification occuring
586
- * later will be hold until ICE is restarted.
587
- */
588
- controlling_mode?: boolean | null
589
- /**
590
- * Force all traffic to go through a relay for added privacy, this
591
- * allows hiding the local IP address. When this is enabled, so
592
- * local candidates are available before relay servers have been set
593
- * with nice_agent_set_relay_info().
594
- */
595
- force_relay?: boolean | null
596
- full_mode?: boolean | null
597
- /**
598
- * Whether the agent should use ICE-TCP when gathering candidates.
599
- * If the option is disabled, no TCP candidates will be generated. If the
600
- * agent is in reliable mode, then pseudotcp will need to be used over UDP
601
- * candidates.
602
- * <para>
603
- * This option should be set before gathering candidates and should not be
604
- * modified afterwards.
605
- * </para>
606
- * The #NiceAgent:ice-tcp property can be set at the same time as the
607
- * #NiceAgent:ice-udp property, but both cannot be unset at the same time.
608
- * If #NiceAgent:ice-udp is set to %FALSE, then this property cannot be set
609
- * to %FALSE as well.
610
- * <note>
611
- * <para>
612
- * ICE-TCP is only supported for %NICE_COMPATIBILITY_RFC5245,
613
- * %NICE_COMPATIBILITY_OC2007 and %NICE_COMPATIBILITY_OC2007R2 compatibility
614
- * modes.
615
- * </para>
616
- * </note>
617
- */
618
- ice_tcp?: boolean | null
619
- /**
620
- * Whether to perform Trickle ICE as per draft-ietf-ice-trickle-ice-21.
621
- * When %TRUE, the agent will postpone changing a component state to
622
- * %NICE_COMPONENT_STATE_FAILED until nice_agent_peer_candidate_gathering_done()
623
- * has been called with the ID of the component's stream.
624
- */
625
- ice_trickle?: boolean | null
626
- /**
627
- * Whether the agent should use ICE-UDP when gathering candidates.
628
- * If the option is disabled, no UDP candidates will be generated. If the
629
- * agent is in reliable mode, then pseudotcp will not be used since pseudotcp
630
- * works on top of UDP candidates.
631
- * <para>
632
- * This option should be set before gathering candidates and should not be
633
- * modified afterwards.
634
- * </para>
635
- * The #NiceAgent:ice-udp property can be set at the same time as the
636
- * #NiceAgent:ice-tcp property, but both cannot be unset at the same time.
637
- * If #NiceAgent:ice-tcp is set to %FALSE, then this property cannot be set
638
- * to %FALSE as well.
639
- */
640
- ice_udp?: boolean | null
641
- /**
642
- * A final timeout in msec, launched when the agent becomes idle,
643
- * before stopping its activity.
644
- *
645
- * This timer will delay the decision to set a component as failed.
646
- * This delay is added to reduce the chance to see the agent receiving
647
- * new stun activity just after the conncheck list has been declared
648
- * failed (some valid pairs, no nominated pair, and no in-progress
649
- * pairs), reactiviting conncheck activity, and causing a (valid)
650
- * state transitions like that: connecting -> failed -> connecting ->
651
- * connected -> ready. Such transitions are not buggy per-se, but may
652
- * break the test-suite, that counts precisely the number of time each
653
- * state has been set, and doesnt expect these transcient failed
654
- * states.
655
- *
656
- * This timer is also useful when the agent is in controlled mode and
657
- * the other controlling peer takes some time to elect its nominated
658
- * pair (this may be the case for SfB peers).
659
- *
660
- * This timer is *NOT* part if the RFC5245, as this situation is not
661
- * covered in sect 8.1.2 "Updating States", but deals with a real
662
- * use-case, where a controlled agent can not wait forever for the
663
- * other peer to make a nomination decision.
664
- *
665
- * Also note that the value of this timeout will not delay the
666
- * emission of 'connected' and 'ready' agent signals, and will not
667
- * slow down the behaviour of the agent when the peer agent works
668
- * in a timely manner.
669
- */
670
- idle_timeout?: number | null
671
- /**
672
- * Use binding requests as keepalives instead of binding
673
- * indications. This means that the keepalives may time out which
674
- * will change the component state to %NICE_COMPONENT_STATE_FAILED.
675
- *
676
- * Enabing this is a slight violation of RFC 5245 section 10 which
677
- * recommends using Binding Indications for keepalives.
678
- *
679
- * This is always enabled if the compatibility mode is
680
- * %NICE_COMPATIBILITY_GOOGLE.
681
- *
682
- * This is always enabled if the 'consent-freshness' property is %TRUE
683
- */
684
- keepalive_conncheck?: boolean | null
685
- /**
686
- * A GLib main context is needed for all timeouts used by libnice.
687
- * This is a property being set by the nice_agent_new() call.
688
- */
689
- main_context?: any | null
690
- max_connectivity_checks?: number | null
691
- /**
692
- * The proxy server IP used to bypass a proxy firewall
693
- */
694
- proxy_ip?: string | null
695
- /**
696
- * The password used to authenticate with the proxy
697
- */
698
- proxy_password?: string | null
699
- /**
700
- * The proxy server port used to bypass a proxy firewall
701
- */
702
- proxy_port?: number | null
703
- /**
704
- * The type of proxy set in the proxy-ip property
705
- */
706
- proxy_type?: number | null
707
- /**
708
- * The username used to authenticate with the proxy
709
- */
710
- proxy_username?: string | null
711
- /**
712
- * Whether the agent is providing a reliable transport of messages (through
713
- * ICE-TCP or PseudoTCP over ICE-UDP)
714
- */
715
- reliable?: boolean | null
716
- /**
717
- * The initial timeout (msecs) of the STUN binding requests
718
- * used in the gathering stage, to find our local candidates.
719
- * This property is described as 'RTO' in the RFC 5389 and RFC 5245.
720
- * This timeout is doubled for each retransmission, until
721
- * #NiceAgent:stun-max-retransmissions have been done,
722
- * with an exception for the last restransmission, where the timeout is
723
- * divided by two instead (RFC 5389 indicates that a customisable
724
- * multiplier 'Rm' to 'RTO' should be used).
725
- */
726
- stun_initial_timeout?: number | null
727
- /**
728
- * The maximum number of retransmissions of the STUN binding requests
729
- * used in the gathering stage, to find our local candidates, and used
730
- * in the connection check stage, to test the validity of each
731
- * constructed pair. This property is described as 'Rc' in the RFC
732
- * 5389, with a default value of 7. The timeout of each STUN request
733
- * is doubled for each retransmission, so the choice of this value has
734
- * a direct impact on the time needed to move from the CONNECTED state
735
- * to the READY state, and on the time needed to complete the GATHERING
736
- * state.
737
- */
738
- stun_max_retransmissions?: number | null
739
- stun_pacing_timer?: number | null
740
- /**
741
- * The initial timeout of the STUN binding requests used
742
- * for a reliable timer.
743
- */
744
- stun_reliable_timeout?: number | null
745
- stun_server?: string | null
746
- stun_server_port?: number | null
747
- /**
748
- * Support RENOMINATION STUN attribute proposed here:
749
- * https://tools.ietf.org/html/draft-thatcher-ice-renomination-00 As
750
- * soon as RENOMINATION attribute is received from remote
751
- * candidate's address, corresponding candidates pair gets
752
- * selected. This is specific to Google Chrome/libWebRTC.
753
- */
754
- support_renomination?: boolean | null
755
- /**
756
- * Whether the agent should use UPnP to open a port in the router and
757
- * get the external IP
758
- */
759
- upnp?: boolean | null
760
- /**
761
- * The maximum amount of time (in milliseconds) to wait for UPnP discovery to
762
- * finish before signaling the #NiceAgent::candidate-gathering-done signal
763
- */
764
- upnp_timeout?: number | null
765
572
  /**
766
573
  * Whether to perform periodic consent freshness checks as specified in
767
574
  * RFC 7675. When %TRUE, the agent will periodically send binding requests
@@ -901,6 +708,11 @@ module Agent {
901
708
  * The username used to authenticate with the proxy
902
709
  */
903
710
  proxyUsername?: string | null
711
+ /**
712
+ * Whether the agent is providing a reliable transport of messages (through
713
+ * ICE-TCP or PseudoTCP over ICE-UDP)
714
+ */
715
+ reliable?: boolean | null
904
716
  /**
905
717
  * The initial timeout (msecs) of the STUN binding requests
906
718
  * used in the gathering stage, to find our local candidates.
@@ -940,6 +752,11 @@ module Agent {
940
752
  * selected. This is specific to Google Chrome/libWebRTC.
941
753
  */
942
754
  supportRenomination?: boolean | null
755
+ /**
756
+ * Whether the agent should use UPnP to open a port in the router and
757
+ * get the external IP
758
+ */
759
+ upnp?: boolean | null
943
760
  /**
944
761
  * The maximum amount of time (in milliseconds) to wait for UPnP discovery to
945
762
  * finish before signaling the #NiceAgent::candidate-gathering-done signal
@@ -953,28 +770,6 @@ interface Agent {
953
770
 
954
771
  // Own properties of Nice-0.1.Nice.Agent
955
772
 
956
- /**
957
- * This property defines whether receive/send over a TCP or pseudo-TCP, in
958
- * reliable mode, are considered as packetized or as bytestream.
959
- * In unreliable mode, every send/recv is considered as packetized, and
960
- * this property is ignored and cannot be set.
961
- * <para>
962
- * In reliable mode, this property will always return %TRUE in the
963
- * %NICE_COMPATIBILITY_GOOGLE compatibility mode.
964
- * </para>
965
- * If the property is %TRUE, the stream is considered in bytestream mode
966
- * and data can be read with any receive size. If the property is %FALSE, then
967
- * the stream is considred packetized and each receive will return one packet
968
- * of the same size as what was sent from the peer. If in packetized mode,
969
- * then doing a receive with a size smaller than the packet, will cause the
970
- * remaining bytes in the packet to be dropped, breaking the reliability
971
- * of the stream.
972
- * <para>
973
- * This property is currently read-only, and will become read/write once
974
- * bytestream mode will be supported.
975
- * </para>
976
- */
977
- readonly bytestream_tcp: boolean
978
773
  /**
979
774
  * This property defines whether receive/send over a TCP or pseudo-TCP, in
980
775
  * reliable mode, are considered as packetized or as bytestream.
@@ -1003,17 +798,6 @@ interface Agent {
1003
798
  * <para> See also: #NiceCompatibility</para>
1004
799
  */
1005
800
  readonly compatibility: number
1006
- /**
1007
- * Whether to perform periodic consent freshness checks as specified in
1008
- * RFC 7675. When %TRUE, the agent will periodically send binding requests
1009
- * to the peer to maintain the consent to send with the peer. On receipt
1010
- * of any authenticated error response, a component will immediately move
1011
- * to the failed state.
1012
- *
1013
- * Setting this property to %TRUE implies that 'keepalive-conncheck' should
1014
- * be %TRUE as well.
1015
- */
1016
- readonly consent_freshness: boolean
1017
801
  /**
1018
802
  * Whether to perform periodic consent freshness checks as specified in
1019
803
  * RFC 7675. When %TRUE, the agent will periodically send binding requests
@@ -1025,25 +809,12 @@ interface Agent {
1025
809
  * be %TRUE as well.
1026
810
  */
1027
811
  readonly consentFreshness: boolean
1028
- /**
1029
- * Whether the agent has the controlling role. This property should
1030
- * be modified before gathering candidates, any modification occuring
1031
- * later will be hold until ICE is restarted.
1032
- */
1033
- controlling_mode: boolean
1034
812
  /**
1035
813
  * Whether the agent has the controlling role. This property should
1036
814
  * be modified before gathering candidates, any modification occuring
1037
815
  * later will be hold until ICE is restarted.
1038
816
  */
1039
817
  controllingMode: boolean
1040
- /**
1041
- * Force all traffic to go through a relay for added privacy, this
1042
- * allows hiding the local IP address. When this is enabled, so
1043
- * local candidates are available before relay servers have been set
1044
- * with nice_agent_set_relay_info().
1045
- */
1046
- force_relay: boolean
1047
818
  /**
1048
819
  * Force all traffic to go through a relay for added privacy, this
1049
820
  * allows hiding the local IP address. When this is enabled, so
@@ -1051,30 +822,7 @@ interface Agent {
1051
822
  * with nice_agent_set_relay_info().
1052
823
  */
1053
824
  forceRelay: boolean
1054
- readonly full_mode: boolean
1055
825
  readonly fullMode: boolean
1056
- /**
1057
- * Whether the agent should use ICE-TCP when gathering candidates.
1058
- * If the option is disabled, no TCP candidates will be generated. If the
1059
- * agent is in reliable mode, then pseudotcp will need to be used over UDP
1060
- * candidates.
1061
- * <para>
1062
- * This option should be set before gathering candidates and should not be
1063
- * modified afterwards.
1064
- * </para>
1065
- * The #NiceAgent:ice-tcp property can be set at the same time as the
1066
- * #NiceAgent:ice-udp property, but both cannot be unset at the same time.
1067
- * If #NiceAgent:ice-udp is set to %FALSE, then this property cannot be set
1068
- * to %FALSE as well.
1069
- * <note>
1070
- * <para>
1071
- * ICE-TCP is only supported for %NICE_COMPATIBILITY_RFC5245,
1072
- * %NICE_COMPATIBILITY_OC2007 and %NICE_COMPATIBILITY_OC2007R2 compatibility
1073
- * modes.
1074
- * </para>
1075
- * </note>
1076
- */
1077
- ice_tcp: boolean
1078
826
  /**
1079
827
  * Whether the agent should use ICE-TCP when gathering candidates.
1080
828
  * If the option is disabled, no TCP candidates will be generated. If the
@@ -1097,13 +845,6 @@ interface Agent {
1097
845
  * </note>
1098
846
  */
1099
847
  iceTcp: boolean
1100
- /**
1101
- * Whether to perform Trickle ICE as per draft-ietf-ice-trickle-ice-21.
1102
- * When %TRUE, the agent will postpone changing a component state to
1103
- * %NICE_COMPONENT_STATE_FAILED until nice_agent_peer_candidate_gathering_done()
1104
- * has been called with the ID of the component's stream.
1105
- */
1106
- ice_trickle: boolean
1107
848
  /**
1108
849
  * Whether to perform Trickle ICE as per draft-ietf-ice-trickle-ice-21.
1109
850
  * When %TRUE, the agent will postpone changing a component state to
@@ -1111,21 +852,6 @@ interface Agent {
1111
852
  * has been called with the ID of the component's stream.
1112
853
  */
1113
854
  iceTrickle: boolean
1114
- /**
1115
- * Whether the agent should use ICE-UDP when gathering candidates.
1116
- * If the option is disabled, no UDP candidates will be generated. If the
1117
- * agent is in reliable mode, then pseudotcp will not be used since pseudotcp
1118
- * works on top of UDP candidates.
1119
- * <para>
1120
- * This option should be set before gathering candidates and should not be
1121
- * modified afterwards.
1122
- * </para>
1123
- * The #NiceAgent:ice-udp property can be set at the same time as the
1124
- * #NiceAgent:ice-tcp property, but both cannot be unset at the same time.
1125
- * If #NiceAgent:ice-tcp is set to %FALSE, then this property cannot be set
1126
- * to %FALSE as well.
1127
- */
1128
- ice_udp: boolean
1129
855
  /**
1130
856
  * Whether the agent should use ICE-UDP when gathering candidates.
1131
857
  * If the option is disabled, no UDP candidates will be generated. If the
@@ -1141,36 +867,6 @@ interface Agent {
1141
867
  * to %FALSE as well.
1142
868
  */
1143
869
  iceUdp: boolean
1144
- /**
1145
- * A final timeout in msec, launched when the agent becomes idle,
1146
- * before stopping its activity.
1147
- *
1148
- * This timer will delay the decision to set a component as failed.
1149
- * This delay is added to reduce the chance to see the agent receiving
1150
- * new stun activity just after the conncheck list has been declared
1151
- * failed (some valid pairs, no nominated pair, and no in-progress
1152
- * pairs), reactiviting conncheck activity, and causing a (valid)
1153
- * state transitions like that: connecting -> failed -> connecting ->
1154
- * connected -> ready. Such transitions are not buggy per-se, but may
1155
- * break the test-suite, that counts precisely the number of time each
1156
- * state has been set, and doesnt expect these transcient failed
1157
- * states.
1158
- *
1159
- * This timer is also useful when the agent is in controlled mode and
1160
- * the other controlling peer takes some time to elect its nominated
1161
- * pair (this may be the case for SfB peers).
1162
- *
1163
- * This timer is *NOT* part if the RFC5245, as this situation is not
1164
- * covered in sect 8.1.2 "Updating States", but deals with a real
1165
- * use-case, where a controlled agent can not wait forever for the
1166
- * other peer to make a nomination decision.
1167
- *
1168
- * Also note that the value of this timeout will not delay the
1169
- * emission of 'connected' and 'ready' agent signals, and will not
1170
- * slow down the behaviour of the agent when the peer agent works
1171
- * in a timely manner.
1172
- */
1173
- idle_timeout: number
1174
870
  /**
1175
871
  * A final timeout in msec, launched when the agent becomes idle,
1176
872
  * before stopping its activity.
@@ -1201,20 +897,6 @@ interface Agent {
1201
897
  * in a timely manner.
1202
898
  */
1203
899
  idleTimeout: number
1204
- /**
1205
- * Use binding requests as keepalives instead of binding
1206
- * indications. This means that the keepalives may time out which
1207
- * will change the component state to %NICE_COMPONENT_STATE_FAILED.
1208
- *
1209
- * Enabing this is a slight violation of RFC 5245 section 10 which
1210
- * recommends using Binding Indications for keepalives.
1211
- *
1212
- * This is always enabled if the compatibility mode is
1213
- * %NICE_COMPATIBILITY_GOOGLE.
1214
- *
1215
- * This is always enabled if the 'consent-freshness' property is %TRUE
1216
- */
1217
- keepalive_conncheck: boolean
1218
900
  /**
1219
901
  * Use binding requests as keepalives instead of binding
1220
902
  * indications. This means that the keepalives may time out which
@@ -1229,54 +911,28 @@ interface Agent {
1229
911
  * This is always enabled if the 'consent-freshness' property is %TRUE
1230
912
  */
1231
913
  keepaliveConncheck: boolean
1232
- /**
1233
- * A GLib main context is needed for all timeouts used by libnice.
1234
- * This is a property being set by the nice_agent_new() call.
1235
- */
1236
- readonly main_context: any
1237
914
  /**
1238
915
  * A GLib main context is needed for all timeouts used by libnice.
1239
916
  * This is a property being set by the nice_agent_new() call.
1240
917
  */
1241
918
  readonly mainContext: any
1242
- max_connectivity_checks: number
1243
919
  maxConnectivityChecks: number
1244
- /**
1245
- * The proxy server IP used to bypass a proxy firewall
1246
- */
1247
- proxy_ip: string | null
1248
920
  /**
1249
921
  * The proxy server IP used to bypass a proxy firewall
1250
922
  */
1251
923
  proxyIp: string | null
1252
- /**
1253
- * The password used to authenticate with the proxy
1254
- */
1255
- proxy_password: string | null
1256
924
  /**
1257
925
  * The password used to authenticate with the proxy
1258
926
  */
1259
927
  proxyPassword: string | null
1260
- /**
1261
- * The proxy server port used to bypass a proxy firewall
1262
- */
1263
- proxy_port: number
1264
928
  /**
1265
929
  * The proxy server port used to bypass a proxy firewall
1266
930
  */
1267
931
  proxyPort: number
1268
- /**
1269
- * The type of proxy set in the proxy-ip property
1270
- */
1271
- proxy_type: number
1272
932
  /**
1273
933
  * The type of proxy set in the proxy-ip property
1274
934
  */
1275
935
  proxyType: number
1276
- /**
1277
- * The username used to authenticate with the proxy
1278
- */
1279
- proxy_username: string | null
1280
936
  /**
1281
937
  * The username used to authenticate with the proxy
1282
938
  */
@@ -1286,17 +942,6 @@ interface Agent {
1286
942
  * ICE-TCP or PseudoTCP over ICE-UDP)
1287
943
  */
1288
944
  readonly reliable: boolean
1289
- /**
1290
- * The initial timeout (msecs) of the STUN binding requests
1291
- * used in the gathering stage, to find our local candidates.
1292
- * This property is described as 'RTO' in the RFC 5389 and RFC 5245.
1293
- * This timeout is doubled for each retransmission, until
1294
- * #NiceAgent:stun-max-retransmissions have been done,
1295
- * with an exception for the last restransmission, where the timeout is
1296
- * divided by two instead (RFC 5389 indicates that a customisable
1297
- * multiplier 'Rm' to 'RTO' should be used).
1298
- */
1299
- stun_initial_timeout: number
1300
945
  /**
1301
946
  * The initial timeout (msecs) of the STUN binding requests
1302
947
  * used in the gathering stage, to find our local candidates.
@@ -1308,18 +953,6 @@ interface Agent {
1308
953
  * multiplier 'Rm' to 'RTO' should be used).
1309
954
  */
1310
955
  stunInitialTimeout: number
1311
- /**
1312
- * The maximum number of retransmissions of the STUN binding requests
1313
- * used in the gathering stage, to find our local candidates, and used
1314
- * in the connection check stage, to test the validity of each
1315
- * constructed pair. This property is described as 'Rc' in the RFC
1316
- * 5389, with a default value of 7. The timeout of each STUN request
1317
- * is doubled for each retransmission, so the choice of this value has
1318
- * a direct impact on the time needed to move from the CONNECTED state
1319
- * to the READY state, and on the time needed to complete the GATHERING
1320
- * state.
1321
- */
1322
- stun_max_retransmissions: number
1323
956
  /**
1324
957
  * The maximum number of retransmissions of the STUN binding requests
1325
958
  * used in the gathering stage, to find our local candidates, and used
@@ -1332,30 +965,14 @@ interface Agent {
1332
965
  * state.
1333
966
  */
1334
967
  stunMaxRetransmissions: number
1335
- stun_pacing_timer: number
1336
968
  stunPacingTimer: number
1337
- /**
1338
- * The initial timeout of the STUN binding requests used
1339
- * for a reliable timer.
1340
- */
1341
- stun_reliable_timeout: number
1342
969
  /**
1343
970
  * The initial timeout of the STUN binding requests used
1344
971
  * for a reliable timer.
1345
972
  */
1346
973
  stunReliableTimeout: number
1347
- stun_server: string | null
1348
974
  stunServer: string | null
1349
- stun_server_port: number
1350
975
  stunServerPort: number
1351
- /**
1352
- * Support RENOMINATION STUN attribute proposed here:
1353
- * https://tools.ietf.org/html/draft-thatcher-ice-renomination-00 As
1354
- * soon as RENOMINATION attribute is received from remote
1355
- * candidate's address, corresponding candidates pair gets
1356
- * selected. This is specific to Google Chrome/libWebRTC.
1357
- */
1358
- support_renomination: boolean
1359
976
  /**
1360
977
  * Support RENOMINATION STUN attribute proposed here:
1361
978
  * https://tools.ietf.org/html/draft-thatcher-ice-renomination-00 As
@@ -1369,11 +986,6 @@ interface Agent {
1369
986
  * get the external IP
1370
987
  */
1371
988
  upnp: boolean
1372
- /**
1373
- * The maximum amount of time (in milliseconds) to wait for UPnP discovery to
1374
- * finish before signaling the #NiceAgent::candidate-gathering-done signal
1375
- */
1376
- upnp_timeout: number
1377
989
  /**
1378
990
  * The maximum amount of time (in milliseconds) to wait for UPnP discovery to
1379
991
  * finish before signaling the #NiceAgent::candidate-gathering-done signal
@@ -2254,24 +1866,9 @@ module PseudoTcpSocket {
2254
1866
 
2255
1867
  // Own constructor properties of Nice-0.1.Nice.PseudoTcpSocket
2256
1868
 
2257
- ack_delay?: number | null
1869
+ ackDelay?: number | null
2258
1870
  callbacks?: any | null
2259
1871
  conversation?: number | null
2260
- no_delay?: boolean | null
2261
- rcv_buf?: number | null
2262
- snd_buf?: number | null
2263
- /**
2264
- * Whether to support the FIN–ACK extension to the pseudo-TCP protocol for
2265
- * this socket. The extension is only compatible with other libnice pseudo-TCP
2266
- * stacks, and not with Jingle pseudo-TCP stacks. If enabled, support is
2267
- * negotiatied on connection setup, so it is safe for a #PseudoTcpSocket with
2268
- * support enabled to be used with one with it disabled, or with a Jingle
2269
- * pseudo-TCP socket which doesn’t support it at all.
2270
- *
2271
- * Support is enabled by default.
2272
- */
2273
- support_fin_ack?: boolean | null
2274
- ackDelay?: number | null
2275
1872
  noDelay?: boolean | null
2276
1873
  rcvBuf?: number | null
2277
1874
  sndBuf?: number | null
@@ -2294,28 +1891,13 @@ interface PseudoTcpSocket {
2294
1891
 
2295
1892
  // Own properties of Nice-0.1.Nice.PseudoTcpSocket
2296
1893
 
2297
- ack_delay: number
2298
1894
  ackDelay: number
2299
1895
  callbacks: any
2300
1896
  readonly conversation: number
2301
- no_delay: boolean
2302
1897
  noDelay: boolean
2303
- rcv_buf: number
2304
1898
  rcvBuf: number
2305
- snd_buf: number
2306
1899
  sndBuf: number
2307
1900
  readonly state: number
2308
- /**
2309
- * Whether to support the FIN–ACK extension to the pseudo-TCP protocol for
2310
- * this socket. The extension is only compatible with other libnice pseudo-TCP
2311
- * stacks, and not with Jingle pseudo-TCP stacks. If enabled, support is
2312
- * negotiatied on connection setup, so it is safe for a #PseudoTcpSocket with
2313
- * support enabled to be used with one with it disabled, or with a Jingle
2314
- * pseudo-TCP socket which doesn’t support it at all.
2315
- *
2316
- * Support is enabled by default.
2317
- */
2318
- readonly support_fin_ack: boolean
2319
1901
  /**
2320
1902
  * Whether to support the FIN–ACK extension to the pseudo-TCP protocol for
2321
1903
  * this socket. The extension is only compatible with other libnice pseudo-TCP
package/package.json CHANGED
@@ -1,13 +1,19 @@
1
1
  {
2
2
  "name": "@girs/nice-0.1",
3
- "version": "0.1.0-3.2.7",
3
+ "version": "0.1.0-3.2.9",
4
4
  "description": "GJS TypeScript type definitions for Nice-0.1, generated from library version 0.1.0",
5
5
  "type": "module",
6
6
  "module": "nice-0.1.js",
7
7
  "main": "nice-0.1.js",
8
8
  "exports": {
9
- "./ambient": "./nice-0.1-ambient.d.ts",
10
- "./import": "./nice-0.1-import.d.ts",
9
+ "./ambient": {
10
+ "types": "./nice-0.1-ambient.d.ts",
11
+ "default": "./nice-0.1-ambient.js"
12
+ },
13
+ "./import": {
14
+ "types": "./nice-0.1-import.d.ts",
15
+ "default": "./nice-0.1-import.js"
16
+ },
11
17
  ".": {
12
18
  "import": {
13
19
  "types": "./nice-0.1.d.ts",
@@ -25,10 +31,10 @@
25
31
  "test:cjs": "NODE_OPTIONS=--max_old_space_size=9216 tsc --noEmit nice-0.1.d.cts"
26
32
  },
27
33
  "dependencies": {
28
- "@girs/gio-2.0": "^2.78.0-3.2.7",
29
- "@girs/gjs": "^3.2.7",
30
- "@girs/glib-2.0": "^2.78.0-3.2.7",
31
- "@girs/gobject-2.0": "^2.78.0-3.2.7"
34
+ "@girs/gio-2.0": "^2.78.0-3.2.9",
35
+ "@girs/gjs": "^3.2.9",
36
+ "@girs/glib-2.0": "^2.78.0-3.2.9",
37
+ "@girs/gobject-2.0": "^2.78.0-3.2.9"
32
38
  },
33
39
  "devDependencies": {
34
40
  "typescript": "*"
@@ -45,7 +51,7 @@
45
51
  "license": "MIT",
46
52
  "repository": {
47
53
  "type": "git",
48
- "url": "git+https://github.com/gjsify/types.git"
54
+ "url": "git+https://github.com/gjsify/ts-for-gir.git"
49
55
  },
50
56
  "bugs": {
51
57
  "url": "https://github.com/gjsify/ts-for-gir/issues"