@girs/gcr-4 4.1.0-3.2.4 → 4.1.0-3.2.6

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/gcr-4)
6
6
 
7
7
 
8
- GJS TypeScript type definitions for Gcr-4, generated from library version 4.1.0 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v3.2.4.
8
+ GJS TypeScript type definitions for Gcr-4, generated from library version 4.1.0 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v3.2.6.
9
9
 
10
10
  A library for bits of crypto UI and parsing
11
11
 
@@ -82,6 +82,19 @@ Now you have also type support for this, too:
82
82
  const Gcr = imports.gi.Gcr;
83
83
  ```
84
84
 
85
+
86
+ ### ESM vs. CommonJS
87
+
88
+ GJS supports two different import syntaxes. The new modern ESM syntax and the old global imports syntax.
89
+
90
+ In TypeScript projects for GJS and GNOME Shell extensions, you have the flexibility to use `ESM` syntax and then decide the import syntax for your bundled file. If your bundler is configured to use `CommonJS`, it will convert to the GJS-specific global imports syntax, like `const moduleName = imports.gi[moduleName]`. This is different from the traditional `require` syntax seen in Node.js. The global imports syntax is chosen because it aligns with the CommonJS format supported by NPM, which is used for the generated type definitions and this package.
91
+
92
+ On the other hand, if you configure your bundler to use ESM, it will retain the ESM import syntax. It's crucial to ensure that your bundler is set up to correctly translate and bundle these imports into either CommonJS or ESM format, depending on your project's requirements.
93
+
94
+ This approach is particularly important due to the `@girs` types, which include both `*.cjs `files, using the GJS global imports syntax, and `*.js` files, which utilize the ESM syntax. By appropriately setting up your bundler, you can control which syntax—CommonJS or ESM—is used in your project. The choice of CommonJS in this context is also due to the similarity between the GJS-specific global imports and CommonJS syntax, allowing for easier management and bundling in these specific types of projects.
95
+
96
+ Since GNOME Shell 45, you should only use ESM, even for GNOME Shell extensions. Before that, extensions had to use the global import syntax, unlike normal GJS applications, where ESM has been available for some time.
97
+
85
98
  ### Bundle
86
99
 
87
100
  Depending on your project configuration, it is recommended to use a bundler like [esbuild](https://esbuild.github.io/). You can find examples using different bundlers [here](https://github.com/gjsify/ts-for-gir/tree/main/examples).
@@ -1,9 +1,12 @@
1
1
 
2
-
3
2
  declare module 'gi://Gcr?version=4' {
4
3
  import Gcr4 from '@girs/gcr-4';
5
4
  export default Gcr4;
6
5
  }
7
6
 
7
+ declare module 'gi://Gcr' {
8
+ import Gcr4 from '@girs/gcr-4';
9
+ export default Gcr4;
10
+ }
8
11
 
9
12
 
package/gcr-4-import.d.ts CHANGED
@@ -1,5 +1,4 @@
1
1
 
2
-
3
2
  import Gcr4 from '@girs/gcr-4';
4
3
 
5
4
  declare global {
package/gcr-4.d.cts CHANGED
@@ -886,15 +886,24 @@ export interface Certificate {
886
886
  * The expiry date of the certificate
887
887
  */
888
888
  readonly expiry_date: GLib.DateTime
889
+ /**
890
+ * The expiry date of the certificate
891
+ */
892
+ readonly expiryDate: GLib.DateTime
889
893
  /**
890
894
  * Common name part of the certificate issuer
891
895
  */
892
896
  readonly issuer_name: string | null
897
+ /**
898
+ * Common name part of the certificate issuer
899
+ */
900
+ readonly issuerName: string | null
893
901
  /**
894
902
  * A readable label for this certificate.
895
903
  */
896
904
  readonly label: string | null
897
905
  readonly subject_name: string | null
906
+ readonly subjectName: string | null
898
907
 
899
908
  // Owm methods of Gcr-4.Gcr.Certificate
900
909
 
@@ -1568,6 +1577,51 @@ export module Prompt {
1568
1577
  * user about a previous 'unsuccessful' prompt.
1569
1578
  */
1570
1579
  warning?: string | null
1580
+ /**
1581
+ * The string handle of the caller's window.
1582
+ *
1583
+ * The caller window indicates to the prompt which window is prompting the
1584
+ * user. The prompt may choose to ignore this information or use it in whatever
1585
+ * way it sees fit.
1586
+ *
1587
+ * In X11, this will be a stringified version of the XWindow handle; in
1588
+ * Wayland this is the result of an export using the XDG foreign
1589
+ * protocol.
1590
+ */
1591
+ callerWindow?: string | null
1592
+ /**
1593
+ * The label for the cancel button in the prompt.
1594
+ */
1595
+ cancelLabel?: string | null
1596
+ /**
1597
+ * Whether the additional choice is chosen or not.
1598
+ *
1599
+ * The additional choice would have been setup using #GcrPrompt:choice-label.
1600
+ */
1601
+ choiceChosen?: boolean | null
1602
+ /**
1603
+ * The label for the additional choice.
1604
+ *
1605
+ * If this is a non-%NULL value then an additional boolean choice will be
1606
+ * displayed by the prompt allowing the user to select or deselect it.
1607
+ *
1608
+ * If %NULL, then no additional choice is displayed.
1609
+ *
1610
+ * The initial value of the choice can be set with #GcrPrompt:choice-chosen.
1611
+ */
1612
+ choiceLabel?: string | null
1613
+ /**
1614
+ * The label for the continue button in the prompt.
1615
+ */
1616
+ continueLabel?: string | null
1617
+ /**
1618
+ * Whether the prompt will prompt for a new password.
1619
+ *
1620
+ * This will cause the prompt implementation to ask the user to confirm the
1621
+ * password and/or display other relevant user interface for creating a new
1622
+ * password.
1623
+ */
1624
+ passwordNew?: boolean | null
1571
1625
  }
1572
1626
 
1573
1627
  }
@@ -1588,16 +1642,38 @@ export interface Prompt {
1588
1642
  * protocol.
1589
1643
  */
1590
1644
  caller_window: string | null
1645
+ /**
1646
+ * The string handle of the caller's window.
1647
+ *
1648
+ * The caller window indicates to the prompt which window is prompting the
1649
+ * user. The prompt may choose to ignore this information or use it in whatever
1650
+ * way it sees fit.
1651
+ *
1652
+ * In X11, this will be a stringified version of the XWindow handle; in
1653
+ * Wayland this is the result of an export using the XDG foreign
1654
+ * protocol.
1655
+ */
1656
+ callerWindow: string | null
1591
1657
  /**
1592
1658
  * The label for the cancel button in the prompt.
1593
1659
  */
1594
1660
  cancel_label: string | null
1661
+ /**
1662
+ * The label for the cancel button in the prompt.
1663
+ */
1664
+ cancelLabel: string | null
1595
1665
  /**
1596
1666
  * Whether the additional choice is chosen or not.
1597
1667
  *
1598
1668
  * The additional choice would have been setup using #GcrPrompt:choice-label.
1599
1669
  */
1600
1670
  choice_chosen: boolean
1671
+ /**
1672
+ * Whether the additional choice is chosen or not.
1673
+ *
1674
+ * The additional choice would have been setup using #GcrPrompt:choice-label.
1675
+ */
1676
+ choiceChosen: boolean
1601
1677
  /**
1602
1678
  * The label for the additional choice.
1603
1679
  *
@@ -1609,10 +1685,25 @@ export interface Prompt {
1609
1685
  * The initial value of the choice can be set with #GcrPrompt:choice-chosen.
1610
1686
  */
1611
1687
  choice_label: string | null
1688
+ /**
1689
+ * The label for the additional choice.
1690
+ *
1691
+ * If this is a non-%NULL value then an additional boolean choice will be
1692
+ * displayed by the prompt allowing the user to select or deselect it.
1693
+ *
1694
+ * If %NULL, then no additional choice is displayed.
1695
+ *
1696
+ * The initial value of the choice can be set with #GcrPrompt:choice-chosen.
1697
+ */
1698
+ choiceLabel: string | null
1612
1699
  /**
1613
1700
  * The label for the continue button in the prompt.
1614
1701
  */
1615
1702
  continue_label: string | null
1703
+ /**
1704
+ * The label for the continue button in the prompt.
1705
+ */
1706
+ continueLabel: string | null
1616
1707
  /**
1617
1708
  * The detailed description of the prompt.
1618
1709
  *
@@ -1634,6 +1725,14 @@ export interface Prompt {
1634
1725
  * password.
1635
1726
  */
1636
1727
  password_new: boolean
1728
+ /**
1729
+ * Whether the prompt will prompt for a new password.
1730
+ *
1731
+ * This will cause the prompt implementation to ask the user to confirm the
1732
+ * password and/or display other relevant user interface for creating a new
1733
+ * password.
1734
+ */
1735
+ passwordNew: boolean
1637
1736
  /**
1638
1737
  * Indication of the password strength.
1639
1738
  *
@@ -1643,6 +1742,15 @@ export interface Prompt {
1643
1742
  * This is only valid after a successful prompt for a password.
1644
1743
  */
1645
1744
  readonly password_strength: number
1745
+ /**
1746
+ * Indication of the password strength.
1747
+ *
1748
+ * Prompts will return a zero value if the password is empty, and a value
1749
+ * greater than zero if the password has any characters.
1750
+ *
1751
+ * This is only valid after a successful prompt for a password.
1752
+ */
1753
+ readonly passwordStrength: number
1646
1754
  /**
1647
1755
  * The title of the prompt.
1648
1756
  *
@@ -2478,6 +2586,10 @@ export module CertificateRequest {
2478
2586
  * The private key that this certificate request is for.
2479
2587
  */
2480
2588
  private_key?: Gck.Object | null
2589
+ /**
2590
+ * The private key that this certificate request is for.
2591
+ */
2592
+ privateKey?: Gck.Object | null
2481
2593
  }
2482
2594
 
2483
2595
  }
@@ -2490,6 +2602,10 @@ export interface CertificateRequest {
2490
2602
  * The private key that this certificate request is for.
2491
2603
  */
2492
2604
  readonly private_key: Gck.Object
2605
+ /**
2606
+ * The private key that this certificate request is for.
2607
+ */
2608
+ readonly privateKey: Gck.Object
2493
2609
 
2494
2610
  // Owm methods of Gcr-4.Gcr.CertificateRequest
2495
2611
 
@@ -2725,16 +2841,31 @@ export interface Parser {
2725
2841
  * generally only valid during a [signal`Parser:`:parsed] signal.
2726
2842
  */
2727
2843
  readonly parsed_attributes: Gck.Attributes
2844
+ /**
2845
+ * Get the attributes that make up the currently parsed item. This is
2846
+ * generally only valid during a [signal`Parser:`:parsed] signal.
2847
+ */
2848
+ readonly parsedAttributes: Gck.Attributes
2728
2849
  /**
2729
2850
  * The description of the type of the currently parsed item. This is generally
2730
2851
  * only valid during a [signal`Parser:`:parsed] signal.
2731
2852
  */
2732
2853
  readonly parsed_description: string | null
2854
+ /**
2855
+ * The description of the type of the currently parsed item. This is generally
2856
+ * only valid during a [signal`Parser:`:parsed] signal.
2857
+ */
2858
+ readonly parsedDescription: string | null
2733
2859
  /**
2734
2860
  * The label of the currently parsed item. This is generally
2735
2861
  * only valid during a [signal`Parser:`:parsed] signal.
2736
2862
  */
2737
2863
  readonly parsed_label: string | null
2864
+ /**
2865
+ * The label of the currently parsed item. This is generally
2866
+ * only valid during a [signal`Parser:`:parsed] signal.
2867
+ */
2868
+ readonly parsedLabel: string | null
2738
2869
 
2739
2870
  // Own fields of Gcr-4.Gcr.Parser
2740
2871
 
@@ -3501,6 +3632,20 @@ export module SystemPrompt {
3501
3632
  * The timeout in seconds to wait when opening the prompt.
3502
3633
  */
3503
3634
  timeout_seconds?: number | null
3635
+ /**
3636
+ * The DBus bus name of the prompter to use for prompting, or %NULL
3637
+ * for the default prompter.
3638
+ */
3639
+ busName?: string | null
3640
+ /**
3641
+ * The #GcrSecretExchange to use when transferring passwords. A default
3642
+ * secret exchange will be used if this is not set.
3643
+ */
3644
+ secretExchange?: SecretExchange | null
3645
+ /**
3646
+ * The timeout in seconds to wait when opening the prompt.
3647
+ */
3648
+ timeoutSeconds?: number | null
3504
3649
  }
3505
3650
 
3506
3651
  }
@@ -3514,15 +3659,29 @@ export interface SystemPrompt extends Prompt, Gio.AsyncInitable, Gio.Initable {
3514
3659
  * for the default prompter.
3515
3660
  */
3516
3661
  readonly bus_name: string | null
3662
+ /**
3663
+ * The DBus bus name of the prompter to use for prompting, or %NULL
3664
+ * for the default prompter.
3665
+ */
3666
+ readonly busName: string | null
3517
3667
  /**
3518
3668
  * The #GcrSecretExchange to use when transferring passwords. A default
3519
3669
  * secret exchange will be used if this is not set.
3520
3670
  */
3521
3671
  secret_exchange: SecretExchange
3672
+ /**
3673
+ * The #GcrSecretExchange to use when transferring passwords. A default
3674
+ * secret exchange will be used if this is not set.
3675
+ */
3676
+ secretExchange: SecretExchange
3522
3677
  /**
3523
3678
  * The timeout in seconds to wait when opening the prompt.
3524
3679
  */
3525
3680
  readonly timeout_seconds: number
3681
+ /**
3682
+ * The timeout in seconds to wait when opening the prompt.
3683
+ */
3684
+ readonly timeoutSeconds: number
3526
3685
 
3527
3686
  // Own fields of Gcr-4.Gcr.SystemPrompt
3528
3687
 
@@ -3763,6 +3922,11 @@ export module SystemPrompter {
3763
3922
  * #GcrPrompt implementation.
3764
3923
  */
3765
3924
  prompt_type?: GObject.GType | null
3925
+ /**
3926
+ * The #GType for prompts created by this prompter. This must be a
3927
+ * #GcrPrompt implementation.
3928
+ */
3929
+ promptType?: GObject.GType | null
3766
3930
  }
3767
3931
 
3768
3932
  }
@@ -3776,6 +3940,11 @@ export interface SystemPrompter {
3776
3940
  * #GcrPrompt implementation.
3777
3941
  */
3778
3942
  readonly prompt_type: GObject.GType
3943
+ /**
3944
+ * The #GType for prompts created by this prompter. This must be a
3945
+ * #GcrPrompt implementation.
3946
+ */
3947
+ readonly promptType: GObject.GType
3779
3948
  /**
3780
3949
  * Whether the prompter is prompting or not.
3781
3950
  */
package/gcr-4.d.ts CHANGED
@@ -888,15 +888,24 @@ interface Certificate {
888
888
  * The expiry date of the certificate
889
889
  */
890
890
  readonly expiry_date: GLib.DateTime
891
+ /**
892
+ * The expiry date of the certificate
893
+ */
894
+ readonly expiryDate: GLib.DateTime
891
895
  /**
892
896
  * Common name part of the certificate issuer
893
897
  */
894
898
  readonly issuer_name: string | null
899
+ /**
900
+ * Common name part of the certificate issuer
901
+ */
902
+ readonly issuerName: string | null
895
903
  /**
896
904
  * A readable label for this certificate.
897
905
  */
898
906
  readonly label: string | null
899
907
  readonly subject_name: string | null
908
+ readonly subjectName: string | null
900
909
 
901
910
  // Owm methods of Gcr-4.Gcr.Certificate
902
911
 
@@ -1570,6 +1579,51 @@ module Prompt {
1570
1579
  * user about a previous 'unsuccessful' prompt.
1571
1580
  */
1572
1581
  warning?: string | null
1582
+ /**
1583
+ * The string handle of the caller's window.
1584
+ *
1585
+ * The caller window indicates to the prompt which window is prompting the
1586
+ * user. The prompt may choose to ignore this information or use it in whatever
1587
+ * way it sees fit.
1588
+ *
1589
+ * In X11, this will be a stringified version of the XWindow handle; in
1590
+ * Wayland this is the result of an export using the XDG foreign
1591
+ * protocol.
1592
+ */
1593
+ callerWindow?: string | null
1594
+ /**
1595
+ * The label for the cancel button in the prompt.
1596
+ */
1597
+ cancelLabel?: string | null
1598
+ /**
1599
+ * Whether the additional choice is chosen or not.
1600
+ *
1601
+ * The additional choice would have been setup using #GcrPrompt:choice-label.
1602
+ */
1603
+ choiceChosen?: boolean | null
1604
+ /**
1605
+ * The label for the additional choice.
1606
+ *
1607
+ * If this is a non-%NULL value then an additional boolean choice will be
1608
+ * displayed by the prompt allowing the user to select or deselect it.
1609
+ *
1610
+ * If %NULL, then no additional choice is displayed.
1611
+ *
1612
+ * The initial value of the choice can be set with #GcrPrompt:choice-chosen.
1613
+ */
1614
+ choiceLabel?: string | null
1615
+ /**
1616
+ * The label for the continue button in the prompt.
1617
+ */
1618
+ continueLabel?: string | null
1619
+ /**
1620
+ * Whether the prompt will prompt for a new password.
1621
+ *
1622
+ * This will cause the prompt implementation to ask the user to confirm the
1623
+ * password and/or display other relevant user interface for creating a new
1624
+ * password.
1625
+ */
1626
+ passwordNew?: boolean | null
1573
1627
  }
1574
1628
 
1575
1629
  }
@@ -1590,16 +1644,38 @@ interface Prompt {
1590
1644
  * protocol.
1591
1645
  */
1592
1646
  caller_window: string | null
1647
+ /**
1648
+ * The string handle of the caller's window.
1649
+ *
1650
+ * The caller window indicates to the prompt which window is prompting the
1651
+ * user. The prompt may choose to ignore this information or use it in whatever
1652
+ * way it sees fit.
1653
+ *
1654
+ * In X11, this will be a stringified version of the XWindow handle; in
1655
+ * Wayland this is the result of an export using the XDG foreign
1656
+ * protocol.
1657
+ */
1658
+ callerWindow: string | null
1593
1659
  /**
1594
1660
  * The label for the cancel button in the prompt.
1595
1661
  */
1596
1662
  cancel_label: string | null
1663
+ /**
1664
+ * The label for the cancel button in the prompt.
1665
+ */
1666
+ cancelLabel: string | null
1597
1667
  /**
1598
1668
  * Whether the additional choice is chosen or not.
1599
1669
  *
1600
1670
  * The additional choice would have been setup using #GcrPrompt:choice-label.
1601
1671
  */
1602
1672
  choice_chosen: boolean
1673
+ /**
1674
+ * Whether the additional choice is chosen or not.
1675
+ *
1676
+ * The additional choice would have been setup using #GcrPrompt:choice-label.
1677
+ */
1678
+ choiceChosen: boolean
1603
1679
  /**
1604
1680
  * The label for the additional choice.
1605
1681
  *
@@ -1611,10 +1687,25 @@ interface Prompt {
1611
1687
  * The initial value of the choice can be set with #GcrPrompt:choice-chosen.
1612
1688
  */
1613
1689
  choice_label: string | null
1690
+ /**
1691
+ * The label for the additional choice.
1692
+ *
1693
+ * If this is a non-%NULL value then an additional boolean choice will be
1694
+ * displayed by the prompt allowing the user to select or deselect it.
1695
+ *
1696
+ * If %NULL, then no additional choice is displayed.
1697
+ *
1698
+ * The initial value of the choice can be set with #GcrPrompt:choice-chosen.
1699
+ */
1700
+ choiceLabel: string | null
1614
1701
  /**
1615
1702
  * The label for the continue button in the prompt.
1616
1703
  */
1617
1704
  continue_label: string | null
1705
+ /**
1706
+ * The label for the continue button in the prompt.
1707
+ */
1708
+ continueLabel: string | null
1618
1709
  /**
1619
1710
  * The detailed description of the prompt.
1620
1711
  *
@@ -1636,6 +1727,14 @@ interface Prompt {
1636
1727
  * password.
1637
1728
  */
1638
1729
  password_new: boolean
1730
+ /**
1731
+ * Whether the prompt will prompt for a new password.
1732
+ *
1733
+ * This will cause the prompt implementation to ask the user to confirm the
1734
+ * password and/or display other relevant user interface for creating a new
1735
+ * password.
1736
+ */
1737
+ passwordNew: boolean
1639
1738
  /**
1640
1739
  * Indication of the password strength.
1641
1740
  *
@@ -1645,6 +1744,15 @@ interface Prompt {
1645
1744
  * This is only valid after a successful prompt for a password.
1646
1745
  */
1647
1746
  readonly password_strength: number
1747
+ /**
1748
+ * Indication of the password strength.
1749
+ *
1750
+ * Prompts will return a zero value if the password is empty, and a value
1751
+ * greater than zero if the password has any characters.
1752
+ *
1753
+ * This is only valid after a successful prompt for a password.
1754
+ */
1755
+ readonly passwordStrength: number
1648
1756
  /**
1649
1757
  * The title of the prompt.
1650
1758
  *
@@ -2480,6 +2588,10 @@ module CertificateRequest {
2480
2588
  * The private key that this certificate request is for.
2481
2589
  */
2482
2590
  private_key?: Gck.Object | null
2591
+ /**
2592
+ * The private key that this certificate request is for.
2593
+ */
2594
+ privateKey?: Gck.Object | null
2483
2595
  }
2484
2596
 
2485
2597
  }
@@ -2492,6 +2604,10 @@ interface CertificateRequest {
2492
2604
  * The private key that this certificate request is for.
2493
2605
  */
2494
2606
  readonly private_key: Gck.Object
2607
+ /**
2608
+ * The private key that this certificate request is for.
2609
+ */
2610
+ readonly privateKey: Gck.Object
2495
2611
 
2496
2612
  // Owm methods of Gcr-4.Gcr.CertificateRequest
2497
2613
 
@@ -2727,16 +2843,31 @@ interface Parser {
2727
2843
  * generally only valid during a [signal`Parser:`:parsed] signal.
2728
2844
  */
2729
2845
  readonly parsed_attributes: Gck.Attributes
2846
+ /**
2847
+ * Get the attributes that make up the currently parsed item. This is
2848
+ * generally only valid during a [signal`Parser:`:parsed] signal.
2849
+ */
2850
+ readonly parsedAttributes: Gck.Attributes
2730
2851
  /**
2731
2852
  * The description of the type of the currently parsed item. This is generally
2732
2853
  * only valid during a [signal`Parser:`:parsed] signal.
2733
2854
  */
2734
2855
  readonly parsed_description: string | null
2856
+ /**
2857
+ * The description of the type of the currently parsed item. This is generally
2858
+ * only valid during a [signal`Parser:`:parsed] signal.
2859
+ */
2860
+ readonly parsedDescription: string | null
2735
2861
  /**
2736
2862
  * The label of the currently parsed item. This is generally
2737
2863
  * only valid during a [signal`Parser:`:parsed] signal.
2738
2864
  */
2739
2865
  readonly parsed_label: string | null
2866
+ /**
2867
+ * The label of the currently parsed item. This is generally
2868
+ * only valid during a [signal`Parser:`:parsed] signal.
2869
+ */
2870
+ readonly parsedLabel: string | null
2740
2871
 
2741
2872
  // Own fields of Gcr-4.Gcr.Parser
2742
2873
 
@@ -3503,6 +3634,20 @@ module SystemPrompt {
3503
3634
  * The timeout in seconds to wait when opening the prompt.
3504
3635
  */
3505
3636
  timeout_seconds?: number | null
3637
+ /**
3638
+ * The DBus bus name of the prompter to use for prompting, or %NULL
3639
+ * for the default prompter.
3640
+ */
3641
+ busName?: string | null
3642
+ /**
3643
+ * The #GcrSecretExchange to use when transferring passwords. A default
3644
+ * secret exchange will be used if this is not set.
3645
+ */
3646
+ secretExchange?: SecretExchange | null
3647
+ /**
3648
+ * The timeout in seconds to wait when opening the prompt.
3649
+ */
3650
+ timeoutSeconds?: number | null
3506
3651
  }
3507
3652
 
3508
3653
  }
@@ -3516,15 +3661,29 @@ interface SystemPrompt extends Prompt, Gio.AsyncInitable, Gio.Initable {
3516
3661
  * for the default prompter.
3517
3662
  */
3518
3663
  readonly bus_name: string | null
3664
+ /**
3665
+ * The DBus bus name of the prompter to use for prompting, or %NULL
3666
+ * for the default prompter.
3667
+ */
3668
+ readonly busName: string | null
3519
3669
  /**
3520
3670
  * The #GcrSecretExchange to use when transferring passwords. A default
3521
3671
  * secret exchange will be used if this is not set.
3522
3672
  */
3523
3673
  secret_exchange: SecretExchange
3674
+ /**
3675
+ * The #GcrSecretExchange to use when transferring passwords. A default
3676
+ * secret exchange will be used if this is not set.
3677
+ */
3678
+ secretExchange: SecretExchange
3524
3679
  /**
3525
3680
  * The timeout in seconds to wait when opening the prompt.
3526
3681
  */
3527
3682
  readonly timeout_seconds: number
3683
+ /**
3684
+ * The timeout in seconds to wait when opening the prompt.
3685
+ */
3686
+ readonly timeoutSeconds: number
3528
3687
 
3529
3688
  // Own fields of Gcr-4.Gcr.SystemPrompt
3530
3689
 
@@ -3765,6 +3924,11 @@ module SystemPrompter {
3765
3924
  * #GcrPrompt implementation.
3766
3925
  */
3767
3926
  prompt_type?: GObject.GType | null
3927
+ /**
3928
+ * The #GType for prompts created by this prompter. This must be a
3929
+ * #GcrPrompt implementation.
3930
+ */
3931
+ promptType?: GObject.GType | null
3768
3932
  }
3769
3933
 
3770
3934
  }
@@ -3778,6 +3942,11 @@ interface SystemPrompter {
3778
3942
  * #GcrPrompt implementation.
3779
3943
  */
3780
3944
  readonly prompt_type: GObject.GType
3945
+ /**
3946
+ * The #GType for prompts created by this prompter. This must be a
3947
+ * #GcrPrompt implementation.
3948
+ */
3949
+ readonly promptType: GObject.GType
3781
3950
  /**
3782
3951
  * Whether the prompter is prompting or not.
3783
3952
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@girs/gcr-4",
3
- "version": "4.1.0-3.2.4",
3
+ "version": "4.1.0-3.2.6",
4
4
  "description": "GJS TypeScript type definitions for Gcr-4, generated from library version 4.1.0",
5
5
  "type": "module",
6
6
  "module": "gcr-4.js",
@@ -25,11 +25,11 @@
25
25
  "test:cjs": "NODE_OPTIONS=--max_old_space_size=9216 tsc --noEmit gcr-4.d.cts"
26
26
  },
27
27
  "dependencies": {
28
- "@girs/gck-2": "^4.1.0-3.2.4",
29
- "@girs/gio-2.0": "^2.78.0-3.2.4",
30
- "@girs/gjs": "^3.2.4",
31
- "@girs/glib-2.0": "^2.78.0-3.2.4",
32
- "@girs/gobject-2.0": "^2.78.0-3.2.4"
28
+ "@girs/gck-2": "^4.1.0-3.2.6",
29
+ "@girs/gio-2.0": "^2.78.0-3.2.6",
30
+ "@girs/gjs": "^3.2.6",
31
+ "@girs/glib-2.0": "^2.78.0-3.2.6",
32
+ "@girs/gobject-2.0": "^2.78.0-3.2.6"
33
33
  },
34
34
  "devDependencies": {
35
35
  "typescript": "*"