@girs/nice-0.1 0.1.0-4.0.0-beta.21 → 0.1.0-4.0.0-beta.24

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.
Files changed (3) hide show
  1. package/README.md +1 -1
  2. package/nice-0.1.d.ts +127 -232
  3. package/package.json +6 -6
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) v4.0.0-beta.21.
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) v4.0.0-beta.24.
9
9
 
10
10
 
11
11
  ## Install
package/nice-0.1.d.ts CHANGED
@@ -7,6 +7,8 @@
7
7
  * The based EJS template file is used for the generated .d.ts file of each GIR module like Gtk-4.0, GObject-2.0, ...
8
8
  */
9
9
 
10
+ import '@girs/gjs';
11
+
10
12
  // Module dependencies
11
13
  import type Gio from '@girs/gio-2.0';
12
14
  import type GObject from '@girs/gobject-2.0';
@@ -48,11 +50,11 @@ export namespace Nice {
48
50
  TCP_SO,
49
51
  }
50
52
  /**
51
- * An enum representing the type of a candidate
53
+ * An enum represneting the type of a candidate
52
54
  */
53
55
 
54
56
  /**
55
- * An enum representing the type of a candidate
57
+ * An enum represneting the type of a candidate
56
58
  */
57
59
  export namespace CandidateType {
58
60
  export const $gtype: GObject.GType<CandidateType>;
@@ -64,7 +66,7 @@ export namespace Nice {
64
66
  */
65
67
  HOST,
66
68
  /**
67
- * A server reflexive candidate (or a NAT-assisted candidate)
69
+ * A server reflexive candidate
68
70
  */
69
71
  SERVER_REFLEXIVE,
70
72
  /**
@@ -476,8 +478,9 @@ export namespace Nice {
476
478
  TLS,
477
479
  }
478
480
  /**
479
- * Was a limit on the number of remote candidates one can set, but is
480
- * no longer used by libnice itself.
481
+ * A hard limit for the number of remote candidates. This
482
+ * limit is enforced to protect against malevolent remote
483
+ * clients.
481
484
  */
482
485
  const AGENT_MAX_REMOTE_CANDIDATES: number;
483
486
  /**
@@ -537,13 +540,6 @@ export namespace Nice {
537
540
  * @param with_stun Also enable STUN debugging messages
538
541
  */
539
542
  function debug_enable(with_stun: boolean): void;
540
- /**
541
- * Returns the interface index match the local address passed. This can
542
- * by used for APIs that need a specific address.
543
- * @param addr A #NiceAddress for a local interface
544
- * @returns The interface index or 0 on error
545
- */
546
- function interfaces_get_if_index_by_addr(addr: Address): number;
547
543
  /**
548
544
  * Retrieves the IP address of an interface by its name. If this fails, %NULL
549
545
  * is returned.
@@ -586,10 +582,6 @@ export namespace Nice {
586
582
  }
587
583
 
588
584
  enum AgentOption {
589
- /**
590
- * No enabled options (Since: 0.1.19)
591
- */
592
- NONE,
593
585
  /**
594
586
  * Enables regular nomination, default
595
587
  * is aggrssive mode (see #NiceNominationMode).
@@ -616,56 +608,49 @@ export namespace Nice {
616
608
  * Enable RFC 7675 consent freshness support. (Since: 0.1.19)
617
609
  */
618
610
  CONSENT_FRESHNESS,
619
- /**
620
- * Use bytestream mode for reliable TCP connections. (Since: 0.1.20)
621
- */
622
- BYTESTREAM_TCP,
623
611
  }
624
612
  namespace Agent {
625
- // Signal callback interfaces
626
-
627
- interface CandidateGatheringDone {
628
- (stream_id: number): void;
629
- }
630
-
631
- interface ComponentStateChanged {
632
- (stream_id: number, component_id: number, state: number): void;
633
- }
634
-
635
- interface InitialBindingRequestReceived {
636
- (stream_id: number): void;
637
- }
638
-
639
- interface NewCandidate {
640
- (stream_id: number, component_id: number, foundation: string): void;
641
- }
642
-
643
- interface NewCandidateFull {
644
- (candidate: Candidate): void;
645
- }
646
-
647
- interface NewRemoteCandidate {
648
- (stream_id: number, component_id: number, foundation: string): void;
649
- }
650
-
651
- interface NewRemoteCandidateFull {
652
- (candidate: Candidate): void;
653
- }
654
-
655
- interface NewSelectedPair {
656
- (stream_id: number, component_id: number, lfoundation: string, rfoundation: string): void;
657
- }
658
-
659
- interface NewSelectedPairFull {
660
- (stream_id: number, component_id: number, lcandidate: Candidate, rcandidate: Candidate): void;
661
- }
662
-
663
- interface ReliableTransportWritable {
664
- (stream_id: number, component_id: number): void;
665
- }
666
-
667
- interface StreamsRemoved {
668
- (stream_ids: number[]): void;
613
+ // Signal signatures
614
+ interface SignalSignatures extends GObject.Object.SignalSignatures {
615
+ 'candidate-gathering-done': (arg0: number) => void;
616
+ 'component-state-changed': (arg0: number, arg1: number, arg2: number) => void;
617
+ 'initial-binding-request-received': (arg0: number) => void;
618
+ 'new-candidate': (arg0: number, arg1: number, arg2: string) => void;
619
+ 'new-candidate-full': (arg0: Candidate) => void;
620
+ 'new-remote-candidate': (arg0: number, arg1: number, arg2: string) => void;
621
+ 'new-remote-candidate-full': (arg0: Candidate) => void;
622
+ 'new-selected-pair': (arg0: number, arg1: number, arg2: string, arg3: string) => void;
623
+ 'new-selected-pair-full': (arg0: number, arg1: number, arg2: Candidate, arg3: Candidate) => void;
624
+ 'reliable-transport-writable': (arg0: number, arg1: number) => void;
625
+ 'streams-removed': (arg0: number[]) => void;
626
+ 'notify::bytestream-tcp': (pspec: GObject.ParamSpec) => void;
627
+ 'notify::compatibility': (pspec: GObject.ParamSpec) => void;
628
+ 'notify::consent-freshness': (pspec: GObject.ParamSpec) => void;
629
+ 'notify::controlling-mode': (pspec: GObject.ParamSpec) => void;
630
+ 'notify::force-relay': (pspec: GObject.ParamSpec) => void;
631
+ 'notify::full-mode': (pspec: GObject.ParamSpec) => void;
632
+ 'notify::ice-tcp': (pspec: GObject.ParamSpec) => void;
633
+ 'notify::ice-trickle': (pspec: GObject.ParamSpec) => void;
634
+ 'notify::ice-udp': (pspec: GObject.ParamSpec) => void;
635
+ 'notify::idle-timeout': (pspec: GObject.ParamSpec) => void;
636
+ 'notify::keepalive-conncheck': (pspec: GObject.ParamSpec) => void;
637
+ 'notify::main-context': (pspec: GObject.ParamSpec) => void;
638
+ 'notify::max-connectivity-checks': (pspec: GObject.ParamSpec) => void;
639
+ 'notify::proxy-ip': (pspec: GObject.ParamSpec) => void;
640
+ 'notify::proxy-password': (pspec: GObject.ParamSpec) => void;
641
+ 'notify::proxy-port': (pspec: GObject.ParamSpec) => void;
642
+ 'notify::proxy-type': (pspec: GObject.ParamSpec) => void;
643
+ 'notify::proxy-username': (pspec: GObject.ParamSpec) => void;
644
+ 'notify::reliable': (pspec: GObject.ParamSpec) => void;
645
+ 'notify::stun-initial-timeout': (pspec: GObject.ParamSpec) => void;
646
+ 'notify::stun-max-retransmissions': (pspec: GObject.ParamSpec) => void;
647
+ 'notify::stun-pacing-timer': (pspec: GObject.ParamSpec) => void;
648
+ 'notify::stun-reliable-timeout': (pspec: GObject.ParamSpec) => void;
649
+ 'notify::stun-server': (pspec: GObject.ParamSpec) => void;
650
+ 'notify::stun-server-port': (pspec: GObject.ParamSpec) => void;
651
+ 'notify::support-renomination': (pspec: GObject.ParamSpec) => void;
652
+ 'notify::upnp': (pspec: GObject.ParamSpec) => void;
653
+ 'notify::upnp-timeout': (pspec: GObject.ParamSpec) => void;
669
654
  }
670
655
 
671
656
  // Constructor properties interface
@@ -696,8 +681,6 @@ export namespace Nice {
696
681
  mainContext: any;
697
682
  max_connectivity_checks: number;
698
683
  maxConnectivityChecks: number;
699
- proxy_extra_headers: GLib.HashTable<string, string>;
700
- proxyExtraHeaders: GLib.HashTable<string, string>;
701
684
  proxy_ip: string;
702
685
  proxyIp: string;
703
686
  proxy_password: string;
@@ -739,7 +722,7 @@ export namespace Nice {
739
722
  // Properties
740
723
 
741
724
  /**
742
- * This property defines whether receive/send operations over a TCP socket, in
725
+ * This property defines whether receive/send over a TCP or pseudo-TCP, in
743
726
  * reliable mode, are considered as packetized or as bytestream.
744
727
  * In unreliable mode, every send/recv is considered as packetized, and
745
728
  * this property is ignored and cannot be set.
@@ -749,16 +732,19 @@ export namespace Nice {
749
732
  * </para>
750
733
  * If the property is %TRUE, the stream is considered in bytestream mode
751
734
  * and data can be read with any receive size. If the property is %FALSE, then
752
- * the stream is considered packetized and each receive will return one packet
735
+ * the stream is considred packetized and each receive will return one packet
753
736
  * of the same size as what was sent from the peer. If in packetized mode,
754
737
  * then doing a receive with a size smaller than the packet, will cause the
755
738
  * remaining bytes in the packet to be dropped, breaking the reliability
756
739
  * of the stream.
740
+ * <para>
741
+ * This property is currently read-only, and will become read/write once
742
+ * bytestream mode will be supported.
743
+ * </para>
757
744
  */
758
745
  get bytestream_tcp(): boolean;
759
- set bytestream_tcp(val: boolean);
760
746
  /**
761
- * This property defines whether receive/send operations over a TCP socket, in
747
+ * This property defines whether receive/send over a TCP or pseudo-TCP, in
762
748
  * reliable mode, are considered as packetized or as bytestream.
763
749
  * In unreliable mode, every send/recv is considered as packetized, and
764
750
  * this property is ignored and cannot be set.
@@ -768,14 +754,17 @@ export namespace Nice {
768
754
  * </para>
769
755
  * If the property is %TRUE, the stream is considered in bytestream mode
770
756
  * and data can be read with any receive size. If the property is %FALSE, then
771
- * the stream is considered packetized and each receive will return one packet
757
+ * the stream is considred packetized and each receive will return one packet
772
758
  * of the same size as what was sent from the peer. If in packetized mode,
773
759
  * then doing a receive with a size smaller than the packet, will cause the
774
760
  * remaining bytes in the packet to be dropped, breaking the reliability
775
761
  * of the stream.
762
+ * <para>
763
+ * This property is currently read-only, and will become read/write once
764
+ * bytestream mode will be supported.
765
+ * </para>
776
766
  */
777
767
  get bytestreamTcp(): boolean;
778
- set bytestreamTcp(val: boolean);
779
768
  /**
780
769
  * The Nice agent can work in various compatibility modes depending on
781
770
  * what the application/peer needs.
@@ -1036,20 +1025,6 @@ export namespace Nice {
1036
1025
  set max_connectivity_checks(val: number);
1037
1026
  get maxConnectivityChecks(): number;
1038
1027
  set maxConnectivityChecks(val: number);
1039
- /**
1040
- * Optional extra headers to append to the HTTP proxy CONNECT request.
1041
- * Provided as key/value-pairs in hash table corresponding to
1042
- * header-name/header-value.
1043
- */
1044
- get proxy_extra_headers(): GLib.HashTable<string, string>;
1045
- set proxy_extra_headers(val: GLib.HashTable<string, string>);
1046
- /**
1047
- * Optional extra headers to append to the HTTP proxy CONNECT request.
1048
- * Provided as key/value-pairs in hash table corresponding to
1049
- * header-name/header-value.
1050
- */
1051
- get proxyExtraHeaders(): GLib.HashTable<string, string>;
1052
- set proxyExtraHeaders(val: GLib.HashTable<string, string>);
1053
1028
  /**
1054
1029
  * The proxy server IP used to bypass a proxy firewall
1055
1030
  */
@@ -1216,6 +1191,15 @@ export namespace Nice {
1216
1191
  get upnpTimeout(): number;
1217
1192
  set upnpTimeout(val: number);
1218
1193
 
1194
+ /**
1195
+ * Compile-time signal type information.
1196
+ *
1197
+ * This instance property is generated only for TypeScript type checking.
1198
+ * It is not defined at runtime and should not be accessed in JS code.
1199
+ * @internal
1200
+ */
1201
+ $signals: Agent.SignalSignatures;
1202
+
1219
1203
  // Constructors
1220
1204
 
1221
1205
  constructor(properties?: Partial<Agent.ConstructorProps>, ...args: any[]);
@@ -1230,123 +1214,21 @@ export namespace Nice {
1230
1214
 
1231
1215
  // Signals
1232
1216
 
1233
- connect(id: string, callback: (...args: any[]) => any): number;
1234
- connect_after(id: string, callback: (...args: any[]) => any): number;
1235
- emit(id: string, ...args: any[]): void;
1236
- connect(signal: 'candidate-gathering-done', callback: (_source: this, stream_id: number) => void): number;
1237
- connect_after(signal: 'candidate-gathering-done', callback: (_source: this, stream_id: number) => void): number;
1238
- emit(signal: 'candidate-gathering-done', stream_id: number): void;
1239
- connect(
1240
- signal: 'component-state-changed',
1241
- callback: (_source: this, stream_id: number, component_id: number, state: number) => void,
1242
- ): number;
1243
- connect_after(
1244
- signal: 'component-state-changed',
1245
- callback: (_source: this, stream_id: number, component_id: number, state: number) => void,
1217
+ connect<K extends keyof Agent.SignalSignatures>(
1218
+ signal: K,
1219
+ callback: GObject.SignalCallback<this, Agent.SignalSignatures[K]>,
1246
1220
  ): number;
1247
- emit(signal: 'component-state-changed', stream_id: number, component_id: number, state: number): void;
1248
- connect(
1249
- signal: 'initial-binding-request-received',
1250
- callback: (_source: this, stream_id: number) => void,
1221
+ connect(signal: string, callback: (...args: any[]) => any): number;
1222
+ connect_after<K extends keyof Agent.SignalSignatures>(
1223
+ signal: K,
1224
+ callback: GObject.SignalCallback<this, Agent.SignalSignatures[K]>,
1251
1225
  ): number;
1252
- connect_after(
1253
- signal: 'initial-binding-request-received',
1254
- callback: (_source: this, stream_id: number) => void,
1255
- ): number;
1256
- emit(signal: 'initial-binding-request-received', stream_id: number): void;
1257
- connect(
1258
- signal: 'new-candidate',
1259
- callback: (_source: this, stream_id: number, component_id: number, foundation: string) => void,
1260
- ): number;
1261
- connect_after(
1262
- signal: 'new-candidate',
1263
- callback: (_source: this, stream_id: number, component_id: number, foundation: string) => void,
1264
- ): number;
1265
- emit(signal: 'new-candidate', stream_id: number, component_id: number, foundation: string): void;
1266
- connect(signal: 'new-candidate-full', callback: (_source: this, candidate: Candidate) => void): number;
1267
- connect_after(signal: 'new-candidate-full', callback: (_source: this, candidate: Candidate) => void): number;
1268
- emit(signal: 'new-candidate-full', candidate: Candidate): void;
1269
- connect(
1270
- signal: 'new-remote-candidate',
1271
- callback: (_source: this, stream_id: number, component_id: number, foundation: string) => void,
1272
- ): number;
1273
- connect_after(
1274
- signal: 'new-remote-candidate',
1275
- callback: (_source: this, stream_id: number, component_id: number, foundation: string) => void,
1276
- ): number;
1277
- emit(signal: 'new-remote-candidate', stream_id: number, component_id: number, foundation: string): void;
1278
- connect(signal: 'new-remote-candidate-full', callback: (_source: this, candidate: Candidate) => void): number;
1279
- connect_after(
1280
- signal: 'new-remote-candidate-full',
1281
- callback: (_source: this, candidate: Candidate) => void,
1282
- ): number;
1283
- emit(signal: 'new-remote-candidate-full', candidate: Candidate): void;
1284
- connect(
1285
- signal: 'new-selected-pair',
1286
- callback: (
1287
- _source: this,
1288
- stream_id: number,
1289
- component_id: number,
1290
- lfoundation: string,
1291
- rfoundation: string,
1292
- ) => void,
1293
- ): number;
1294
- connect_after(
1295
- signal: 'new-selected-pair',
1296
- callback: (
1297
- _source: this,
1298
- stream_id: number,
1299
- component_id: number,
1300
- lfoundation: string,
1301
- rfoundation: string,
1302
- ) => void,
1303
- ): number;
1304
- emit(
1305
- signal: 'new-selected-pair',
1306
- stream_id: number,
1307
- component_id: number,
1308
- lfoundation: string,
1309
- rfoundation: string,
1226
+ connect_after(signal: string, callback: (...args: any[]) => any): number;
1227
+ emit<K extends keyof Agent.SignalSignatures>(
1228
+ signal: K,
1229
+ ...args: GObject.GjsParameters<Agent.SignalSignatures[K]> extends [any, ...infer Q] ? Q : never
1310
1230
  ): void;
1311
- connect(
1312
- signal: 'new-selected-pair-full',
1313
- callback: (
1314
- _source: this,
1315
- stream_id: number,
1316
- component_id: number,
1317
- lcandidate: Candidate,
1318
- rcandidate: Candidate,
1319
- ) => void,
1320
- ): number;
1321
- connect_after(
1322
- signal: 'new-selected-pair-full',
1323
- callback: (
1324
- _source: this,
1325
- stream_id: number,
1326
- component_id: number,
1327
- lcandidate: Candidate,
1328
- rcandidate: Candidate,
1329
- ) => void,
1330
- ): number;
1331
- emit(
1332
- signal: 'new-selected-pair-full',
1333
- stream_id: number,
1334
- component_id: number,
1335
- lcandidate: Candidate,
1336
- rcandidate: Candidate,
1337
- ): void;
1338
- connect(
1339
- signal: 'reliable-transport-writable',
1340
- callback: (_source: this, stream_id: number, component_id: number) => void,
1341
- ): number;
1342
- connect_after(
1343
- signal: 'reliable-transport-writable',
1344
- callback: (_source: this, stream_id: number, component_id: number) => void,
1345
- ): number;
1346
- emit(signal: 'reliable-transport-writable', stream_id: number, component_id: number): void;
1347
- connect(signal: 'streams-removed', callback: (_source: this, stream_ids: number[]) => void): number;
1348
- connect_after(signal: 'streams-removed', callback: (_source: this, stream_ids: number[]) => void): number;
1349
- emit(signal: 'streams-removed', stream_ids: number[]): void;
1231
+ emit(signal: string, ...args: any[]): void;
1350
1232
 
1351
1233
  // Methods
1352
1234
 
@@ -1917,7 +1799,7 @@ export namespace Nice {
1917
1799
  * discovery process; one TCP and one UDP, for example.
1918
1800
  * @param stream_id The ID of the stream
1919
1801
  * @param component_id The ID of the component
1920
- * @param server_ip The address of the TURN server
1802
+ * @param server_ip The IP address of the TURN server
1921
1803
  * @param server_port The port of the TURN server
1922
1804
  * @param username The TURN username to use for the allocate
1923
1805
  * @param password The TURN password to use for the allocate
@@ -2053,6 +1935,18 @@ export namespace Nice {
2053
1935
  }
2054
1936
 
2055
1937
  namespace PseudoTcpSocket {
1938
+ // Signal signatures
1939
+ interface SignalSignatures extends GObject.Object.SignalSignatures {
1940
+ 'notify::ack-delay': (pspec: GObject.ParamSpec) => void;
1941
+ 'notify::callbacks': (pspec: GObject.ParamSpec) => void;
1942
+ 'notify::conversation': (pspec: GObject.ParamSpec) => void;
1943
+ 'notify::no-delay': (pspec: GObject.ParamSpec) => void;
1944
+ 'notify::rcv-buf': (pspec: GObject.ParamSpec) => void;
1945
+ 'notify::snd-buf': (pspec: GObject.ParamSpec) => void;
1946
+ 'notify::state': (pspec: GObject.ParamSpec) => void;
1947
+ 'notify::support-fin-ack': (pspec: GObject.ParamSpec) => void;
1948
+ }
1949
+
2056
1950
  // Constructor properties interface
2057
1951
 
2058
1952
  interface ConstructorProps extends GObject.Object.ConstructorProps {
@@ -2123,6 +2017,15 @@ export namespace Nice {
2123
2017
  */
2124
2018
  get supportFinAck(): boolean;
2125
2019
 
2020
+ /**
2021
+ * Compile-time signal type information.
2022
+ *
2023
+ * This instance property is generated only for TypeScript type checking.
2024
+ * It is not defined at runtime and should not be accessed in JS code.
2025
+ * @internal
2026
+ */
2027
+ $signals: PseudoTcpSocket.SignalSignatures;
2028
+
2126
2029
  // Constructors
2127
2030
 
2128
2031
  constructor(properties?: Partial<PseudoTcpSocket.ConstructorProps>, ...args: any[]);
@@ -2131,6 +2034,24 @@ export namespace Nice {
2131
2034
 
2132
2035
  static ['new'](conversation: number, callbacks: PseudoTcpCallbacks): PseudoTcpSocket;
2133
2036
 
2037
+ // Signals
2038
+
2039
+ connect<K extends keyof PseudoTcpSocket.SignalSignatures>(
2040
+ signal: K,
2041
+ callback: GObject.SignalCallback<this, PseudoTcpSocket.SignalSignatures[K]>,
2042
+ ): number;
2043
+ connect(signal: string, callback: (...args: any[]) => any): number;
2044
+ connect_after<K extends keyof PseudoTcpSocket.SignalSignatures>(
2045
+ signal: K,
2046
+ callback: GObject.SignalCallback<this, PseudoTcpSocket.SignalSignatures[K]>,
2047
+ ): number;
2048
+ connect_after(signal: string, callback: (...args: any[]) => any): number;
2049
+ emit<K extends keyof PseudoTcpSocket.SignalSignatures>(
2050
+ signal: K,
2051
+ ...args: GObject.GjsParameters<PseudoTcpSocket.SignalSignatures[K]> extends [any, ...infer Q] ? Q : never
2052
+ ): void;
2053
+ emit(signal: string, ...args: any[]): void;
2054
+
2134
2055
  // Methods
2135
2056
 
2136
2057
  /**
@@ -2318,11 +2239,8 @@ export namespace Nice {
2318
2239
 
2319
2240
  // Constructors
2320
2241
 
2321
- constructor(properties?: Partial<{}>);
2322
2242
  _init(...args: any[]): void;
2323
2243
 
2324
- static ['new'](): Address;
2325
-
2326
2244
  // Methods
2327
2245
 
2328
2246
  /**
@@ -2330,16 +2248,6 @@ export namespace Nice {
2330
2248
  * @param sin The sockaddr to fill
2331
2249
  */
2332
2250
  copy_to_sockaddr(sin?: any | null): void;
2333
- /**
2334
- * Creates a new #NiceAddress with the same address as `addr`
2335
- * @returns The new #NiceAddress
2336
- */
2337
- dup(): Address;
2338
- /**
2339
- * Transforms the address `addr` into a newly allocated human readable string
2340
- * @returns the address string
2341
- */
2342
- dup_string(): string;
2343
2251
  /**
2344
2252
  * Compares two #NiceAddress structures to see if they contain the same address
2345
2253
  * and the same port.
@@ -2372,11 +2280,6 @@ export namespace Nice {
2372
2280
  * @returns 4 for IPv4, 6 for IPv6 and 0 for undefined address
2373
2281
  */
2374
2282
  ip_version(): number;
2375
- /**
2376
- * Verifies if the address in `addr` is a link-local address or not
2377
- * @returns %TRUE if @addr is a link-local address, %FALSE otherwise
2378
- */
2379
- is_linklocal(): boolean;
2380
2283
  /**
2381
2284
  * Verifies if the address in `addr` is a private address or not
2382
2285
  * @returns %TRUE if @addr is a private address, %FALSE otherwise
@@ -2427,6 +2330,11 @@ export namespace Nice {
2427
2330
  * @param port The port to set
2428
2331
  */
2429
2332
  set_port(port: number): void;
2333
+ /**
2334
+ * Transforms the address `addr` into a human readable string
2335
+ * @param dst The string to fill
2336
+ */
2337
+ to_string(dst: string): void;
2430
2338
  }
2431
2339
 
2432
2340
  type AgentClass = typeof Agent;
@@ -2495,19 +2403,6 @@ export namespace Nice {
2495
2403
  * Frees a #NiceCandidate
2496
2404
  */
2497
2405
  free(): void;
2498
- /**
2499
- * In case the given candidate is relayed through a TURN server, use this utility function to get
2500
- * its address.
2501
- * @param addr The #NiceAddress to fill
2502
- */
2503
- relay_address(addr: Address): void;
2504
- /**
2505
- * In case the given candidate server-reflexive, use this utility function to get its address. The
2506
- * address will be filled only if the candidate was generated using an STUN server.
2507
- * @param addr The #NiceAddress to fill
2508
- * @returns TRUE if it's a STUN created ICE candidate, or FALSE if the reflexed's server was not STUN.
2509
- */
2510
- stun_server_address(addr: Address): boolean;
2511
2406
  }
2512
2407
 
2513
2408
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@girs/nice-0.1",
3
- "version": "0.1.0-4.0.0-beta.21",
3
+ "version": "0.1.0-4.0.0-beta.24",
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",
@@ -31,11 +31,11 @@
31
31
  "test": "tsc --project tsconfig.json"
32
32
  },
33
33
  "dependencies": {
34
- "@girs/gio-2.0": "^2.83.3-4.0.0-beta.21",
35
- "@girs/gjs": "^4.0.0-beta.21",
36
- "@girs/glib-2.0": "^2.83.3-4.0.0-beta.21",
37
- "@girs/gmodule-2.0": "^2.0.0-4.0.0-beta.21",
38
- "@girs/gobject-2.0": "^2.83.3-4.0.0-beta.21"
34
+ "@girs/gio-2.0": "^2.84.2-4.0.0-beta.24",
35
+ "@girs/gjs": "^4.0.0-beta.24",
36
+ "@girs/glib-2.0": "^2.84.2-4.0.0-beta.24",
37
+ "@girs/gmodule-2.0": "^2.0.0-4.0.0-beta.24",
38
+ "@girs/gobject-2.0": "^2.84.2-4.0.0-beta.24"
39
39
  },
40
40
  "devDependencies": {
41
41
  "typescript": "*"