@girs/cloudproviders-0.3 4.3.0 → 4.5.0

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
@@ -4,82 +4,77 @@
4
4
  ![version](https://img.shields.io/npm/v/@girs/cloudproviders-0.3)
5
5
  ![downloads/week](https://img.shields.io/npm/dw/@girs/cloudproviders-0.3)
6
6
 
7
+ GJS TypeScript type definitions for CloudProviders-0.3 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v4.5.0.
7
8
 
8
- GJS TypeScript type definitions for CloudProviders-0.3 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v4.3.0.
9
+ This package contains type declarations only. It ships no runtime code, so it adds
10
+ nothing to your program and works with any bundler or none at all.
9
11
 
10
12
  ## Install
11
13
 
12
- Install the type definitions with npm:
13
14
  ```bash
14
15
  npm install @girs/cloudproviders-0.3
15
16
  ```
16
17
 
17
- ## Usage
18
+ Any package manager works. The package has no dependencies beyond other `@girs/*`
19
+ type packages.
20
+
21
+ ## What it exports
22
+
23
+ | Import | What you get |
24
+ |---|---|
25
+ | `@girs/cloudproviders-0.3` | the namespace as a default export, plus the ambient and global declarations |
26
+ | `@girs/cloudproviders-0.3/ambient` | only the `gi://` module declarations |
27
+ | `@girs/cloudproviders-0.3/import` | only the `imports.gi` declarations |
28
+ | `@girs/cloudproviders-0.3/cloudproviders-0.3` | the namespace, without the side-effecting declarations |
29
+
30
+ ## Three ways to import
31
+
32
+ Which one you use depends on how you write imports elsewhere, not on your toolchain.
33
+
34
+ ### As a module
18
35
 
19
- Import it like any other module:
20
36
  ```ts
21
37
  import CloudProviders from '@girs/cloudproviders-0.3';
22
38
  ```
23
39
 
24
- ### Ambient Modules
40
+ ### As `gi://`
25
41
 
26
- [Ambient modules](https://github.com/gjsify/ts-for-gir/tree/main/packages/cli#ambient-modules) let you write the same import you would in plain JavaScript.
27
- For this you need to include `@girs/cloudproviders-0.3` or `@girs/cloudproviders-0.3/ambient` in your `tsconfig` or entry point Typescript file:
42
+ GJS resolves `gi://` at runtime. To give it types, reference the package once, either
43
+ from your entry point or from `tsconfig.json`:
28
44
 
29
- `index.ts`:
30
45
  ```ts
31
- import '@girs/cloudproviders-0.3'
46
+ import '@girs/cloudproviders-0.3';
32
47
  ```
33
48
 
34
- `tsconfig.json`:
35
49
  ```json
36
- {
37
- "compilerOptions": {
38
- ...
39
- },
40
- "include": ["@girs/cloudproviders-0.3"],
41
- ...
42
- }
50
+ { "include": ["@girs/cloudproviders-0.3"] }
43
51
  ```
44
52
 
45
- The ambient module now resolves with types:
53
+ Then the runtime spelling type-checks:
46
54
 
47
55
  ```ts
48
56
  import CloudProviders from 'gi://CloudProviders?version=0.3';
49
57
  ```
50
58
 
51
- ### Global import
52
-
53
- GJS's global `imports.gi` works too, with types.
54
- For this you need to include `@girs/cloudproviders-0.3` or `@girs/cloudproviders-0.3/import` in your `tsconfig` or entry point Typescript file:
59
+ Referencing `@girs/cloudproviders-0.3/ambient` instead pulls in these declarations
60
+ alone. See [ambient modules](https://github.com/gjsify/ts-for-gir/tree/main/packages/cli#ambient-modules).
55
61
 
56
- `index.ts`:
57
- ```ts
58
- import '@girs/cloudproviders-0.3'
59
- ```
60
-
61
- `tsconfig.json`:
62
- ```json
63
- {
64
- "compilerOptions": {
65
- ...
66
- },
67
- "include": ["@girs/cloudproviders-0.3"],
68
- ...
69
- }
70
- ```
62
+ ### As `imports.gi`
71
63
 
72
- That form carries types as well:
64
+ GJS's global object works the same way, via `@girs/cloudproviders-0.3/import`:
73
65
 
74
66
  ```ts
75
67
  const CloudProviders = imports.gi.CloudProviders;
76
68
  ```
77
69
 
78
- ### Bundle
70
+ ## Building
79
71
 
80
- Most projects want a bundler. [esbuild](https://esbuild.github.io/) is the smallest thing that works; the [examples directory](https://github.com/gjsify/ts-for-gir/tree/main/examples) has setups for several others.
72
+ The declarations need no build step. If you bundle, every bundler works, since there is
73
+ no runtime code to resolve. The [examples](https://github.com/gjsify/ts-for-gir/tree/main/examples)
74
+ show working setups for several.
81
75
 
82
76
  ## Other packages
83
77
 
84
- All existing pre-generated packages can be found on [gjsify/types](https://github.com/gjsify/types).
78
+ Every pre-generated package is at [gjsify/types](https://github.com/gjsify/types).
79
+
85
80
 
@@ -27,15 +27,21 @@ export namespace CloudProviders {
27
27
  * @gir-type Enum
28
28
  */
29
29
  enum AccountStatus {
30
- INVALID,
31
- IDLE,
32
- SYNCING,
33
- ERROR,
30
+ INVALID = 0,
31
+ IDLE = 1,
32
+ SYNCING = 2,
33
+ ERROR = 3,
34
34
  }
35
35
 
36
36
 
37
+ /**
38
+ * @default org.freedesktop.CloudProviders.Account
39
+ */
37
40
  const ACCOUNT_DBUS_IFACE: string;
38
41
 
42
+ /**
43
+ * @default org.freedesktop.CloudProviders.Provider
44
+ */
39
45
  const PROVIDER_DBUS_IFACE: string;
40
46
 
41
47
  /**
@@ -714,6 +720,7 @@ export namespace CloudProviders {
714
720
  * any interface methods.
715
721
  * @param io_priority the [I/O priority](iface.AsyncResult.html#io-priority) of the operation
716
722
  * @param cancellable optional {@link Gio.Cancellable} object, `null` to ignore.
723
+ * @since 2.22
717
724
  */
718
725
  init_async(io_priority: number, cancellable: Gio.Cancellable | null): globalThis.Promise<boolean>;
719
726
 
@@ -757,6 +764,7 @@ export namespace CloudProviders {
757
764
  * @param io_priority the [I/O priority](iface.AsyncResult.html#io-priority) of the operation
758
765
  * @param cancellable optional {@link Gio.Cancellable} object, `null` to ignore.
759
766
  * @param callback a {@link Gio.AsyncReadyCallback} to call when the request is satisfied
767
+ * @since 2.22
760
768
  */
761
769
  init_async(io_priority: number, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void;
762
770
 
@@ -800,6 +808,7 @@ export namespace CloudProviders {
800
808
  * @param io_priority the [I/O priority](iface.AsyncResult.html#io-priority) of the operation
801
809
  * @param cancellable optional {@link Gio.Cancellable} object, `null` to ignore.
802
810
  * @param callback a {@link Gio.AsyncReadyCallback} to call when the request is satisfied
811
+ * @since 2.22
803
812
  */
804
813
  init_async(io_priority: number, cancellable: Gio.Cancellable | null, callback?: Gio.AsyncReadyCallback<this> | null): globalThis.Promise<boolean> | void;
805
814
 
@@ -808,6 +817,8 @@ export namespace CloudProviders {
808
817
  * See `g_async_initable_init_async()`.
809
818
  * @param res a {@link Gio.AsyncResult}.
810
819
  * @returns `true` if successful. If an error has occurred, this function will return `false` and set `error` appropriately if present.
820
+ * @since 2.22
821
+ * @throws GLib.Error
811
822
  */
812
823
  init_finish(res: Gio.AsyncResult): boolean;
813
824
 
@@ -816,6 +827,8 @@ export namespace CloudProviders {
816
827
  * calls, returning the created object or `null` on error.
817
828
  * @param res the {@link Gio.AsyncResult} from the callback
818
829
  * @returns a newly created {@link GObject.Object}, or `null` on error. Free with `g_object_unref()`.
830
+ * @since 2.22
831
+ * @throws GLib.Error
819
832
  */
820
833
  new_finish(res: Gio.AsyncResult): DbusAccountProxy;
821
834
 
@@ -865,6 +878,7 @@ export namespace CloudProviders {
865
878
  * @param io_priority the [I/O priority](iface.AsyncResult.html#io-priority) of the operation
866
879
  * @param cancellable optional {@link Gio.Cancellable} object, `null` to ignore.
867
880
  * @param callback a {@link Gio.AsyncReadyCallback} to call when the request is satisfied
881
+ * @since 2.22
868
882
  * @virtual
869
883
  */
870
884
  vfunc_init_async(io_priority: number, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void;
@@ -873,6 +887,7 @@ export namespace CloudProviders {
873
887
  * Finishes asynchronous initialization and returns the result.
874
888
  * See `g_async_initable_init_async()`.
875
889
  * @param res a {@link Gio.AsyncResult}.
890
+ * @since 2.22
876
891
  * @virtual
877
892
  */
878
893
  vfunc_init_finish(res: Gio.AsyncResult): boolean;
@@ -880,6 +895,7 @@ export namespace CloudProviders {
880
895
  /**
881
896
  * Gets the {@link Gio.DBusObject} that `interface_` belongs to, if any.
882
897
  * @returns A {@link Gio.DBusObject} or `null`. The returned reference should be freed with `g_object_unref()`.
898
+ * @since 2.32
883
899
  */
884
900
  get_object(): Gio.DBusObject | null;
885
901
 
@@ -892,6 +908,7 @@ export namespace CloudProviders {
892
908
  * For example, {@link Gio.DBusProxy} implements {@link Gio.DBusInterface} but allows for a `null`
893
909
  * {@link Gio.DBusInterfaceInfo}.
894
910
  * @returns A {@link Gio.DBusInterfaceInfo}. Do not free.
911
+ * @since 2.30
895
912
  */
896
913
  get_info(): Gio.DBusInterfaceInfo | null;
897
914
 
@@ -900,11 +917,13 @@ export namespace CloudProviders {
900
917
  *
901
918
  * Note that `interface_` will hold a weak reference to `object`.
902
919
  * @param object A {@link Gio.DBusObject} or `null`.
920
+ * @since 2.30
903
921
  */
904
922
  set_object(object: Gio.DBusObject | null): void;
905
923
 
906
924
  /**
907
925
  * Gets the {@link Gio.DBusObject} that `interface_` belongs to, if any.
926
+ * @since 2.32
908
927
  * @virtual
909
928
  */
910
929
  vfunc_dup_object(): Gio.DBusObject | null;
@@ -917,6 +936,7 @@ export namespace CloudProviders {
917
936
  * construction of `interface_` and is also not made available otherwise.
918
937
  * For example, {@link Gio.DBusProxy} implements {@link Gio.DBusInterface} but allows for a `null`
919
938
  * {@link Gio.DBusInterfaceInfo}.
939
+ * @since 2.30
920
940
  * @virtual
921
941
  */
922
942
  vfunc_get_info(): Gio.DBusInterfaceInfo | null;
@@ -926,6 +946,7 @@ export namespace CloudProviders {
926
946
  *
927
947
  * Note that `interface_` will hold a weak reference to `object`.
928
948
  * @param object A {@link Gio.DBusObject} or `null`.
949
+ * @since 2.30
929
950
  * @virtual
930
951
  */
931
952
  vfunc_set_object(object: Gio.DBusObject | null): void;
@@ -971,6 +992,8 @@ export namespace CloudProviders {
971
992
  * instance.
972
993
  * @param cancellable optional {@link Gio.Cancellable} object, `null` to ignore.
973
994
  * @returns `true` if successful. If an error has occurred, this function will return `false` and set `error` appropriately if present.
995
+ * @since 2.22
996
+ * @throws GLib.Error
974
997
  */
975
998
  init(cancellable: Gio.Cancellable | null): boolean;
976
999
 
@@ -1014,6 +1037,7 @@ export namespace CloudProviders {
1014
1037
  * on the result of `g_object_new()`, regardless of whether it is in fact a new
1015
1038
  * instance.
1016
1039
  * @param cancellable optional {@link Gio.Cancellable} object, `null` to ignore.
1040
+ * @since 2.22
1017
1041
  * @virtual
1018
1042
  */
1019
1043
  vfunc_init(cancellable: Gio.Cancellable | null): boolean;
@@ -1134,6 +1158,7 @@ export namespace CloudProviders {
1134
1158
  /**
1135
1159
  * Gets the {@link Gio.DBusObject} that `interface_` belongs to, if any.
1136
1160
  * @returns A {@link Gio.DBusObject} or `null`. The returned reference should be freed with `g_object_unref()`.
1161
+ * @since 2.32
1137
1162
  */
1138
1163
  get_object(): Gio.DBusObject | null;
1139
1164
 
@@ -1146,6 +1171,7 @@ export namespace CloudProviders {
1146
1171
  * For example, {@link Gio.DBusProxy} implements {@link Gio.DBusInterface} but allows for a `null`
1147
1172
  * {@link Gio.DBusInterfaceInfo}.
1148
1173
  * @returns A {@link Gio.DBusInterfaceInfo}. Do not free.
1174
+ * @since 2.30
1149
1175
  */
1150
1176
  get_info(): Gio.DBusInterfaceInfo | null;
1151
1177
 
@@ -1160,11 +1186,13 @@ export namespace CloudProviders {
1160
1186
  *
1161
1187
  * Note that `interface_` will hold a weak reference to `object`.
1162
1188
  * @param object A {@link Gio.DBusObject} or `null`.
1189
+ * @since 2.30
1163
1190
  */
1164
1191
  set_object(object: Gio.DBusObject | null): void;
1165
1192
 
1166
1193
  /**
1167
1194
  * Gets the {@link Gio.DBusObject} that `interface_` belongs to, if any.
1195
+ * @since 2.32
1168
1196
  * @virtual
1169
1197
  */
1170
1198
  vfunc_dup_object(): Gio.DBusObject | null;
@@ -1177,6 +1205,7 @@ export namespace CloudProviders {
1177
1205
  * construction of `interface_` and is also not made available otherwise.
1178
1206
  * For example, {@link Gio.DBusProxy} implements {@link Gio.DBusInterface} but allows for a `null`
1179
1207
  * {@link Gio.DBusInterfaceInfo}.
1208
+ * @since 2.30
1180
1209
  * @virtual
1181
1210
  */
1182
1211
  vfunc_get_info(): Gio.DBusInterfaceInfo | null;
@@ -1193,6 +1222,7 @@ export namespace CloudProviders {
1193
1222
  *
1194
1223
  * Note that `interface_` will hold a weak reference to `object`.
1195
1224
  * @param object A {@link Gio.DBusObject} or `null`.
1225
+ * @since 2.30
1196
1226
  * @virtual
1197
1227
  */
1198
1228
  vfunc_set_object(object: Gio.DBusObject | null): void;
@@ -1361,6 +1391,7 @@ export namespace CloudProviders {
1361
1391
  * any interface methods.
1362
1392
  * @param io_priority the [I/O priority](iface.AsyncResult.html#io-priority) of the operation
1363
1393
  * @param cancellable optional {@link Gio.Cancellable} object, `null` to ignore.
1394
+ * @since 2.22
1364
1395
  */
1365
1396
  init_async(io_priority: number, cancellable: Gio.Cancellable | null): globalThis.Promise<boolean>;
1366
1397
 
@@ -1404,6 +1435,7 @@ export namespace CloudProviders {
1404
1435
  * @param io_priority the [I/O priority](iface.AsyncResult.html#io-priority) of the operation
1405
1436
  * @param cancellable optional {@link Gio.Cancellable} object, `null` to ignore.
1406
1437
  * @param callback a {@link Gio.AsyncReadyCallback} to call when the request is satisfied
1438
+ * @since 2.22
1407
1439
  */
1408
1440
  init_async(io_priority: number, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void;
1409
1441
 
@@ -1447,6 +1479,7 @@ export namespace CloudProviders {
1447
1479
  * @param io_priority the [I/O priority](iface.AsyncResult.html#io-priority) of the operation
1448
1480
  * @param cancellable optional {@link Gio.Cancellable} object, `null` to ignore.
1449
1481
  * @param callback a {@link Gio.AsyncReadyCallback} to call when the request is satisfied
1482
+ * @since 2.22
1450
1483
  */
1451
1484
  init_async(io_priority: number, cancellable: Gio.Cancellable | null, callback?: Gio.AsyncReadyCallback<this> | null): globalThis.Promise<boolean> | void;
1452
1485
 
@@ -1455,6 +1488,8 @@ export namespace CloudProviders {
1455
1488
  * See `g_async_initable_init_async()`.
1456
1489
  * @param res a {@link Gio.AsyncResult}.
1457
1490
  * @returns `true` if successful. If an error has occurred, this function will return `false` and set `error` appropriately if present.
1491
+ * @since 2.22
1492
+ * @throws GLib.Error
1458
1493
  */
1459
1494
  init_finish(res: Gio.AsyncResult): boolean;
1460
1495
 
@@ -1463,6 +1498,8 @@ export namespace CloudProviders {
1463
1498
  * calls, returning the created object or `null` on error.
1464
1499
  * @param res the {@link Gio.AsyncResult} from the callback
1465
1500
  * @returns a newly created {@link GObject.Object}, or `null` on error. Free with `g_object_unref()`.
1501
+ * @since 2.22
1502
+ * @throws GLib.Error
1466
1503
  */
1467
1504
  new_finish(res: Gio.AsyncResult): DbusObjectManagerClient;
1468
1505
 
@@ -1512,6 +1549,7 @@ export namespace CloudProviders {
1512
1549
  * @param io_priority the [I/O priority](iface.AsyncResult.html#io-priority) of the operation
1513
1550
  * @param cancellable optional {@link Gio.Cancellable} object, `null` to ignore.
1514
1551
  * @param callback a {@link Gio.AsyncReadyCallback} to call when the request is satisfied
1552
+ * @since 2.22
1515
1553
  * @virtual
1516
1554
  */
1517
1555
  vfunc_init_async(io_priority: number, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void;
@@ -1520,6 +1558,7 @@ export namespace CloudProviders {
1520
1558
  * Finishes asynchronous initialization and returns the result.
1521
1559
  * See `g_async_initable_init_async()`.
1522
1560
  * @param res a {@link Gio.AsyncResult}.
1561
+ * @since 2.22
1523
1562
  * @virtual
1524
1563
  */
1525
1564
  vfunc_init_finish(res: Gio.AsyncResult): boolean;
@@ -1530,6 +1569,7 @@ export namespace CloudProviders {
1530
1569
  * @param object_path Object path to look up.
1531
1570
  * @param interface_name D-Bus interface name to look up.
1532
1571
  * @returns A {@link Gio.DBusInterface} instance or `null`. Free with `g_object_unref()`.
1572
+ * @since 2.30
1533
1573
  */
1534
1574
  get_interface(object_path: string, interface_name: string): Gio.DBusInterface | null;
1535
1575
 
@@ -1537,18 +1577,21 @@ export namespace CloudProviders {
1537
1577
  * Gets the {@link Gio.DBusObject} at `object_path`, if any.
1538
1578
  * @param object_path Object path to look up.
1539
1579
  * @returns A {@link Gio.DBusObject} or `null`. Free with `g_object_unref()`.
1580
+ * @since 2.30
1540
1581
  */
1541
1582
  get_object(object_path: string): Gio.DBusObject | null;
1542
1583
 
1543
1584
  /**
1544
1585
  * Gets the object path that `manager` is for.
1545
1586
  * @returns A string owned by `manager`. Do not free.
1587
+ * @since 2.30
1546
1588
  */
1547
1589
  get_object_path(): string;
1548
1590
 
1549
1591
  /**
1550
1592
  * Gets all {@link Gio.DBusObject} objects known to `manager`.
1551
1593
  * @returns A list of {@link Gio.DBusObject} objects. The returned list should be freed with `g_list_free()` after each element has been freed with `g_object_unref()`.
1594
+ * @since 2.30
1552
1595
  */
1553
1596
  get_objects(): Gio.DBusObject[];
1554
1597
 
@@ -1557,6 +1600,7 @@ export namespace CloudProviders {
1557
1600
  * any.
1558
1601
  * @param object_path Object path to look up.
1559
1602
  * @param interface_name D-Bus interface name to look up.
1603
+ * @since 2.30
1560
1604
  * @virtual
1561
1605
  */
1562
1606
  vfunc_get_interface(object_path: string, interface_name: string): Gio.DBusInterface | null;
@@ -1564,18 +1608,21 @@ export namespace CloudProviders {
1564
1608
  /**
1565
1609
  * Gets the {@link Gio.DBusObject} at `object_path`, if any.
1566
1610
  * @param object_path Object path to look up.
1611
+ * @since 2.30
1567
1612
  * @virtual
1568
1613
  */
1569
1614
  vfunc_get_object(object_path: string): Gio.DBusObject | null;
1570
1615
 
1571
1616
  /**
1572
1617
  * Gets the object path that `manager` is for.
1618
+ * @since 2.30
1573
1619
  * @virtual
1574
1620
  */
1575
1621
  vfunc_get_object_path(): string;
1576
1622
 
1577
1623
  /**
1578
1624
  * Gets all {@link Gio.DBusObject} objects known to `manager`.
1625
+ * @since 2.30
1579
1626
  * @virtual
1580
1627
  */
1581
1628
  vfunc_get_objects(): Gio.DBusObject[];
@@ -1651,6 +1698,8 @@ export namespace CloudProviders {
1651
1698
  * instance.
1652
1699
  * @param cancellable optional {@link Gio.Cancellable} object, `null` to ignore.
1653
1700
  * @returns `true` if successful. If an error has occurred, this function will return `false` and set `error` appropriately if present.
1701
+ * @since 2.22
1702
+ * @throws GLib.Error
1654
1703
  */
1655
1704
  init(cancellable: Gio.Cancellable | null): boolean;
1656
1705
 
@@ -1694,6 +1743,7 @@ export namespace CloudProviders {
1694
1743
  * on the result of `g_object_new()`, regardless of whether it is in fact a new
1695
1744
  * instance.
1696
1745
  * @param cancellable optional {@link Gio.Cancellable} object, `null` to ignore.
1746
+ * @since 2.22
1697
1747
  * @virtual
1698
1748
  */
1699
1749
  vfunc_init(cancellable: Gio.Cancellable | null): boolean;
@@ -1784,18 +1834,21 @@ export namespace CloudProviders {
1784
1834
  * `object`, if any.
1785
1835
  * @param interface_name A D-Bus interface name.
1786
1836
  * @returns `null` if not found, otherwise a {@link Gio.DBusInterface} that must be freed with `g_object_unref()`.
1837
+ * @since 2.30
1787
1838
  */
1788
1839
  get_interface(interface_name: string): Gio.DBusInterface | null;
1789
1840
 
1790
1841
  /**
1791
1842
  * Gets the D-Bus interfaces associated with `object`.
1792
1843
  * @returns A list of {@link Gio.DBusInterface} instances. The returned list must be freed by `g_list_free()` after each element has been freed with `g_object_unref()`.
1844
+ * @since 2.30
1793
1845
  */
1794
1846
  get_interfaces(): Gio.DBusInterface[];
1795
1847
 
1796
1848
  /**
1797
1849
  * Gets the object path for `object`.
1798
1850
  * @returns A string owned by `object`. Do not free.
1851
+ * @since 2.30
1799
1852
  */
1800
1853
  get_object_path(): string;
1801
1854
 
@@ -1803,18 +1856,21 @@ export namespace CloudProviders {
1803
1856
  * Gets the D-Bus interface with name `interface_name` associated with
1804
1857
  * `object`, if any.
1805
1858
  * @param interface_name A D-Bus interface name.
1859
+ * @since 2.30
1806
1860
  * @virtual
1807
1861
  */
1808
1862
  vfunc_get_interface(interface_name: string): Gio.DBusInterface | null;
1809
1863
 
1810
1864
  /**
1811
1865
  * Gets the D-Bus interfaces associated with `object`.
1866
+ * @since 2.30
1812
1867
  * @virtual
1813
1868
  */
1814
1869
  vfunc_get_interfaces(): Gio.DBusInterface[];
1815
1870
 
1816
1871
  /**
1817
1872
  * Gets the object path for `object`.
1873
+ * @since 2.30
1818
1874
  * @virtual
1819
1875
  */
1820
1876
  vfunc_get_object_path(): string;
@@ -1931,18 +1987,21 @@ export namespace CloudProviders {
1931
1987
  * `object`, if any.
1932
1988
  * @param interface_name A D-Bus interface name.
1933
1989
  * @returns `null` if not found, otherwise a {@link Gio.DBusInterface} that must be freed with `g_object_unref()`.
1990
+ * @since 2.30
1934
1991
  */
1935
1992
  get_interface(interface_name: string): Gio.DBusInterface | null;
1936
1993
 
1937
1994
  /**
1938
1995
  * Gets the D-Bus interfaces associated with `object`.
1939
1996
  * @returns A list of {@link Gio.DBusInterface} instances. The returned list must be freed by `g_list_free()` after each element has been freed with `g_object_unref()`.
1997
+ * @since 2.30
1940
1998
  */
1941
1999
  get_interfaces(): Gio.DBusInterface[];
1942
2000
 
1943
2001
  /**
1944
2002
  * Gets the object path for `object`.
1945
2003
  * @returns A string owned by `object`. Do not free.
2004
+ * @since 2.30
1946
2005
  */
1947
2006
  get_object_path(): string;
1948
2007
 
@@ -1950,18 +2009,21 @@ export namespace CloudProviders {
1950
2009
  * Gets the D-Bus interface with name `interface_name` associated with
1951
2010
  * `object`, if any.
1952
2011
  * @param interface_name A D-Bus interface name.
2012
+ * @since 2.30
1953
2013
  * @virtual
1954
2014
  */
1955
2015
  vfunc_get_interface(interface_name: string): Gio.DBusInterface | null;
1956
2016
 
1957
2017
  /**
1958
2018
  * Gets the D-Bus interfaces associated with `object`.
2019
+ * @since 2.30
1959
2020
  * @virtual
1960
2021
  */
1961
2022
  vfunc_get_interfaces(): Gio.DBusInterface[];
1962
2023
 
1963
2024
  /**
1964
2025
  * Gets the object path for `object`.
2026
+ * @since 2.30
1965
2027
  * @virtual
1966
2028
  */
1967
2029
  vfunc_get_object_path(): string;
@@ -2146,6 +2208,7 @@ export namespace CloudProviders {
2146
2208
  * any interface methods.
2147
2209
  * @param io_priority the [I/O priority](iface.AsyncResult.html#io-priority) of the operation
2148
2210
  * @param cancellable optional {@link Gio.Cancellable} object, `null` to ignore.
2211
+ * @since 2.22
2149
2212
  */
2150
2213
  init_async(io_priority: number, cancellable: Gio.Cancellable | null): globalThis.Promise<boolean>;
2151
2214
 
@@ -2189,6 +2252,7 @@ export namespace CloudProviders {
2189
2252
  * @param io_priority the [I/O priority](iface.AsyncResult.html#io-priority) of the operation
2190
2253
  * @param cancellable optional {@link Gio.Cancellable} object, `null` to ignore.
2191
2254
  * @param callback a {@link Gio.AsyncReadyCallback} to call when the request is satisfied
2255
+ * @since 2.22
2192
2256
  */
2193
2257
  init_async(io_priority: number, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void;
2194
2258
 
@@ -2232,6 +2296,7 @@ export namespace CloudProviders {
2232
2296
  * @param io_priority the [I/O priority](iface.AsyncResult.html#io-priority) of the operation
2233
2297
  * @param cancellable optional {@link Gio.Cancellable} object, `null` to ignore.
2234
2298
  * @param callback a {@link Gio.AsyncReadyCallback} to call when the request is satisfied
2299
+ * @since 2.22
2235
2300
  */
2236
2301
  init_async(io_priority: number, cancellable: Gio.Cancellable | null, callback?: Gio.AsyncReadyCallback<this> | null): globalThis.Promise<boolean> | void;
2237
2302
 
@@ -2240,6 +2305,8 @@ export namespace CloudProviders {
2240
2305
  * See `g_async_initable_init_async()`.
2241
2306
  * @param res a {@link Gio.AsyncResult}.
2242
2307
  * @returns `true` if successful. If an error has occurred, this function will return `false` and set `error` appropriately if present.
2308
+ * @since 2.22
2309
+ * @throws GLib.Error
2243
2310
  */
2244
2311
  init_finish(res: Gio.AsyncResult): boolean;
2245
2312
 
@@ -2248,6 +2315,8 @@ export namespace CloudProviders {
2248
2315
  * calls, returning the created object or `null` on error.
2249
2316
  * @param res the {@link Gio.AsyncResult} from the callback
2250
2317
  * @returns a newly created {@link GObject.Object}, or `null` on error. Free with `g_object_unref()`.
2318
+ * @since 2.22
2319
+ * @throws GLib.Error
2251
2320
  */
2252
2321
  new_finish(res: Gio.AsyncResult): DbusProviderProxy;
2253
2322
 
@@ -2297,6 +2366,7 @@ export namespace CloudProviders {
2297
2366
  * @param io_priority the [I/O priority](iface.AsyncResult.html#io-priority) of the operation
2298
2367
  * @param cancellable optional {@link Gio.Cancellable} object, `null` to ignore.
2299
2368
  * @param callback a {@link Gio.AsyncReadyCallback} to call when the request is satisfied
2369
+ * @since 2.22
2300
2370
  * @virtual
2301
2371
  */
2302
2372
  vfunc_init_async(io_priority: number, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void;
@@ -2305,6 +2375,7 @@ export namespace CloudProviders {
2305
2375
  * Finishes asynchronous initialization and returns the result.
2306
2376
  * See `g_async_initable_init_async()`.
2307
2377
  * @param res a {@link Gio.AsyncResult}.
2378
+ * @since 2.22
2308
2379
  * @virtual
2309
2380
  */
2310
2381
  vfunc_init_finish(res: Gio.AsyncResult): boolean;
@@ -2312,6 +2383,7 @@ export namespace CloudProviders {
2312
2383
  /**
2313
2384
  * Gets the {@link Gio.DBusObject} that `interface_` belongs to, if any.
2314
2385
  * @returns A {@link Gio.DBusObject} or `null`. The returned reference should be freed with `g_object_unref()`.
2386
+ * @since 2.32
2315
2387
  */
2316
2388
  get_object(): Gio.DBusObject | null;
2317
2389
 
@@ -2324,6 +2396,7 @@ export namespace CloudProviders {
2324
2396
  * For example, {@link Gio.DBusProxy} implements {@link Gio.DBusInterface} but allows for a `null`
2325
2397
  * {@link Gio.DBusInterfaceInfo}.
2326
2398
  * @returns A {@link Gio.DBusInterfaceInfo}. Do not free.
2399
+ * @since 2.30
2327
2400
  */
2328
2401
  get_info(): Gio.DBusInterfaceInfo | null;
2329
2402
 
@@ -2332,11 +2405,13 @@ export namespace CloudProviders {
2332
2405
  *
2333
2406
  * Note that `interface_` will hold a weak reference to `object`.
2334
2407
  * @param object A {@link Gio.DBusObject} or `null`.
2408
+ * @since 2.30
2335
2409
  */
2336
2410
  set_object(object: Gio.DBusObject | null): void;
2337
2411
 
2338
2412
  /**
2339
2413
  * Gets the {@link Gio.DBusObject} that `interface_` belongs to, if any.
2414
+ * @since 2.32
2340
2415
  * @virtual
2341
2416
  */
2342
2417
  vfunc_dup_object(): Gio.DBusObject | null;
@@ -2349,6 +2424,7 @@ export namespace CloudProviders {
2349
2424
  * construction of `interface_` and is also not made available otherwise.
2350
2425
  * For example, {@link Gio.DBusProxy} implements {@link Gio.DBusInterface} but allows for a `null`
2351
2426
  * {@link Gio.DBusInterfaceInfo}.
2427
+ * @since 2.30
2352
2428
  * @virtual
2353
2429
  */
2354
2430
  vfunc_get_info(): Gio.DBusInterfaceInfo | null;
@@ -2358,6 +2434,7 @@ export namespace CloudProviders {
2358
2434
  *
2359
2435
  * Note that `interface_` will hold a weak reference to `object`.
2360
2436
  * @param object A {@link Gio.DBusObject} or `null`.
2437
+ * @since 2.30
2361
2438
  * @virtual
2362
2439
  */
2363
2440
  vfunc_set_object(object: Gio.DBusObject | null): void;
@@ -2403,6 +2480,8 @@ export namespace CloudProviders {
2403
2480
  * instance.
2404
2481
  * @param cancellable optional {@link Gio.Cancellable} object, `null` to ignore.
2405
2482
  * @returns `true` if successful. If an error has occurred, this function will return `false` and set `error` appropriately if present.
2483
+ * @since 2.22
2484
+ * @throws GLib.Error
2406
2485
  */
2407
2486
  init(cancellable: Gio.Cancellable | null): boolean;
2408
2487
 
@@ -2446,6 +2525,7 @@ export namespace CloudProviders {
2446
2525
  * on the result of `g_object_new()`, regardless of whether it is in fact a new
2447
2526
  * instance.
2448
2527
  * @param cancellable optional {@link Gio.Cancellable} object, `null` to ignore.
2528
+ * @since 2.22
2449
2529
  * @virtual
2450
2530
  */
2451
2531
  vfunc_init(cancellable: Gio.Cancellable | null): boolean;
@@ -2512,6 +2592,7 @@ export namespace CloudProviders {
2512
2592
  /**
2513
2593
  * Gets the {@link Gio.DBusObject} that `interface_` belongs to, if any.
2514
2594
  * @returns A {@link Gio.DBusObject} or `null`. The returned reference should be freed with `g_object_unref()`.
2595
+ * @since 2.32
2515
2596
  */
2516
2597
  get_object(): Gio.DBusObject | null;
2517
2598
 
@@ -2524,6 +2605,7 @@ export namespace CloudProviders {
2524
2605
  * For example, {@link Gio.DBusProxy} implements {@link Gio.DBusInterface} but allows for a `null`
2525
2606
  * {@link Gio.DBusInterfaceInfo}.
2526
2607
  * @returns A {@link Gio.DBusInterfaceInfo}. Do not free.
2608
+ * @since 2.30
2527
2609
  */
2528
2610
  get_info(): Gio.DBusInterfaceInfo | null;
2529
2611
 
@@ -2538,11 +2620,13 @@ export namespace CloudProviders {
2538
2620
  *
2539
2621
  * Note that `interface_` will hold a weak reference to `object`.
2540
2622
  * @param object A {@link Gio.DBusObject} or `null`.
2623
+ * @since 2.30
2541
2624
  */
2542
2625
  set_object(object: Gio.DBusObject | null): void;
2543
2626
 
2544
2627
  /**
2545
2628
  * Gets the {@link Gio.DBusObject} that `interface_` belongs to, if any.
2629
+ * @since 2.32
2546
2630
  * @virtual
2547
2631
  */
2548
2632
  vfunc_dup_object(): Gio.DBusObject | null;
@@ -2555,6 +2639,7 @@ export namespace CloudProviders {
2555
2639
  * construction of `interface_` and is also not made available otherwise.
2556
2640
  * For example, {@link Gio.DBusProxy} implements {@link Gio.DBusInterface} but allows for a `null`
2557
2641
  * {@link Gio.DBusInterfaceInfo}.
2642
+ * @since 2.30
2558
2643
  * @virtual
2559
2644
  */
2560
2645
  vfunc_get_info(): Gio.DBusInterfaceInfo | null;
@@ -2571,6 +2656,7 @@ export namespace CloudProviders {
2571
2656
  *
2572
2657
  * Note that `interface_` will hold a weak reference to `object`.
2573
2658
  * @param object A {@link Gio.DBusObject} or `null`.
2659
+ * @since 2.30
2574
2660
  * @virtual
2575
2661
  */
2576
2662
  vfunc_set_object(object: Gio.DBusObject | null): void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@girs/cloudproviders-0.3",
3
- "version": "4.3.0",
3
+ "version": "4.5.0",
4
4
  "description": "GJS TypeScript type definitions for CloudProviders-0.3",
5
5
  "type": "module",
6
6
  "module": "cloudproviders-0.3.js",
@@ -31,11 +31,11 @@
31
31
  "test": "tsc --project tsconfig.json"
32
32
  },
33
33
  "dependencies": {
34
- "@girs/gjs": "^4.3.0",
35
- "@girs/gio-2.0": "^4.3.0",
36
- "@girs/gobject-2.0": "^4.3.0",
37
- "@girs/glib-2.0": "^4.3.0",
38
- "@girs/gmodule-2.0": "^4.3.0" },
34
+ "@girs/gjs": "^4.5.0",
35
+ "@girs/gio-2.0": "^4.5.0",
36
+ "@girs/gobject-2.0": "^4.5.0",
37
+ "@girs/glib-2.0": "^4.5.0",
38
+ "@girs/gmodule-2.0": "^4.5.0" },
39
39
  "devDependencies": {
40
40
  "typescript": "*"
41
41
  },