@girs/gcr-3 3.41.0-3.2.4 → 3.41.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 +14 -1
- package/gcr-3-ambient.d.ts +4 -1
- package/gcr-3-import.d.ts +0 -1
- package/gcr-3.d.cts +160 -0
- package/gcr-3.d.ts +160 -0
- package/package.json +6 -6
package/README.md
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|

|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
GJS TypeScript type definitions for Gcr-3, generated from library version 3.41.0 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v3.2.
|
|
8
|
+
GJS TypeScript type definitions for Gcr-3, generated from library version 3.41.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).
|
package/gcr-3-ambient.d.ts
CHANGED
package/gcr-3-import.d.ts
CHANGED
package/gcr-3.d.cts
CHANGED
|
@@ -1778,6 +1778,51 @@ export module Prompt {
|
|
|
1778
1778
|
* user about a previous 'unsuccessful' prompt.
|
|
1779
1779
|
*/
|
|
1780
1780
|
warning?: string | null
|
|
1781
|
+
/**
|
|
1782
|
+
* The string handle of the caller's window.
|
|
1783
|
+
*
|
|
1784
|
+
* The caller window indicates to the prompt which window is prompting the
|
|
1785
|
+
* user. The prompt may choose to ignore this information or use it in whatever
|
|
1786
|
+
* way it sees fit.
|
|
1787
|
+
*
|
|
1788
|
+
* In X11, this will be a stringified version of the XWindow handle; in
|
|
1789
|
+
* Wayland this is the result of an export using the XDG foreign
|
|
1790
|
+
* protocol.
|
|
1791
|
+
*/
|
|
1792
|
+
callerWindow?: string | null
|
|
1793
|
+
/**
|
|
1794
|
+
* The label for the cancel button in the prompt.
|
|
1795
|
+
*/
|
|
1796
|
+
cancelLabel?: string | null
|
|
1797
|
+
/**
|
|
1798
|
+
* Whether the additional choice is chosen or not.
|
|
1799
|
+
*
|
|
1800
|
+
* The additional choice would have been setup using #GcrPrompt:choice-label.
|
|
1801
|
+
*/
|
|
1802
|
+
choiceChosen?: boolean | null
|
|
1803
|
+
/**
|
|
1804
|
+
* The label for the additional choice.
|
|
1805
|
+
*
|
|
1806
|
+
* If this is a non-%NULL value then an additional boolean choice will be
|
|
1807
|
+
* displayed by the prompt allowing the user to select or deselect it.
|
|
1808
|
+
*
|
|
1809
|
+
* If %NULL, then no additional choice is displayed.
|
|
1810
|
+
*
|
|
1811
|
+
* The initial value of the choice can be set with #GcrPrompt:choice-chosen.
|
|
1812
|
+
*/
|
|
1813
|
+
choiceLabel?: string | null
|
|
1814
|
+
/**
|
|
1815
|
+
* The label for the continue button in the prompt.
|
|
1816
|
+
*/
|
|
1817
|
+
continueLabel?: string | null
|
|
1818
|
+
/**
|
|
1819
|
+
* Whether the prompt will prompt for a new password.
|
|
1820
|
+
*
|
|
1821
|
+
* This will cause the prompt implementation to ask the user to confirm the
|
|
1822
|
+
* password and/or display other relevant user interface for creating a new
|
|
1823
|
+
* password.
|
|
1824
|
+
*/
|
|
1825
|
+
passwordNew?: boolean | null
|
|
1781
1826
|
}
|
|
1782
1827
|
|
|
1783
1828
|
}
|
|
@@ -1798,16 +1843,38 @@ export interface Prompt {
|
|
|
1798
1843
|
* protocol.
|
|
1799
1844
|
*/
|
|
1800
1845
|
caller_window: string | null
|
|
1846
|
+
/**
|
|
1847
|
+
* The string handle of the caller's window.
|
|
1848
|
+
*
|
|
1849
|
+
* The caller window indicates to the prompt which window is prompting the
|
|
1850
|
+
* user. The prompt may choose to ignore this information or use it in whatever
|
|
1851
|
+
* way it sees fit.
|
|
1852
|
+
*
|
|
1853
|
+
* In X11, this will be a stringified version of the XWindow handle; in
|
|
1854
|
+
* Wayland this is the result of an export using the XDG foreign
|
|
1855
|
+
* protocol.
|
|
1856
|
+
*/
|
|
1857
|
+
callerWindow: string | null
|
|
1801
1858
|
/**
|
|
1802
1859
|
* The label for the cancel button in the prompt.
|
|
1803
1860
|
*/
|
|
1804
1861
|
cancel_label: string | null
|
|
1862
|
+
/**
|
|
1863
|
+
* The label for the cancel button in the prompt.
|
|
1864
|
+
*/
|
|
1865
|
+
cancelLabel: string | null
|
|
1805
1866
|
/**
|
|
1806
1867
|
* Whether the additional choice is chosen or not.
|
|
1807
1868
|
*
|
|
1808
1869
|
* The additional choice would have been setup using #GcrPrompt:choice-label.
|
|
1809
1870
|
*/
|
|
1810
1871
|
choice_chosen: boolean
|
|
1872
|
+
/**
|
|
1873
|
+
* Whether the additional choice is chosen or not.
|
|
1874
|
+
*
|
|
1875
|
+
* The additional choice would have been setup using #GcrPrompt:choice-label.
|
|
1876
|
+
*/
|
|
1877
|
+
choiceChosen: boolean
|
|
1811
1878
|
/**
|
|
1812
1879
|
* The label for the additional choice.
|
|
1813
1880
|
*
|
|
@@ -1819,10 +1886,25 @@ export interface Prompt {
|
|
|
1819
1886
|
* The initial value of the choice can be set with #GcrPrompt:choice-chosen.
|
|
1820
1887
|
*/
|
|
1821
1888
|
choice_label: string | null
|
|
1889
|
+
/**
|
|
1890
|
+
* The label for the additional choice.
|
|
1891
|
+
*
|
|
1892
|
+
* If this is a non-%NULL value then an additional boolean choice will be
|
|
1893
|
+
* displayed by the prompt allowing the user to select or deselect it.
|
|
1894
|
+
*
|
|
1895
|
+
* If %NULL, then no additional choice is displayed.
|
|
1896
|
+
*
|
|
1897
|
+
* The initial value of the choice can be set with #GcrPrompt:choice-chosen.
|
|
1898
|
+
*/
|
|
1899
|
+
choiceLabel: string | null
|
|
1822
1900
|
/**
|
|
1823
1901
|
* The label for the continue button in the prompt.
|
|
1824
1902
|
*/
|
|
1825
1903
|
continue_label: string | null
|
|
1904
|
+
/**
|
|
1905
|
+
* The label for the continue button in the prompt.
|
|
1906
|
+
*/
|
|
1907
|
+
continueLabel: string | null
|
|
1826
1908
|
/**
|
|
1827
1909
|
* The detailed description of the prompt.
|
|
1828
1910
|
*
|
|
@@ -1844,6 +1926,14 @@ export interface Prompt {
|
|
|
1844
1926
|
* password.
|
|
1845
1927
|
*/
|
|
1846
1928
|
password_new: boolean
|
|
1929
|
+
/**
|
|
1930
|
+
* Whether the prompt will prompt for a new password.
|
|
1931
|
+
*
|
|
1932
|
+
* This will cause the prompt implementation to ask the user to confirm the
|
|
1933
|
+
* password and/or display other relevant user interface for creating a new
|
|
1934
|
+
* password.
|
|
1935
|
+
*/
|
|
1936
|
+
passwordNew: boolean
|
|
1847
1937
|
/**
|
|
1848
1938
|
* Indication of the password strength.
|
|
1849
1939
|
*
|
|
@@ -1853,6 +1943,15 @@ export interface Prompt {
|
|
|
1853
1943
|
* This is only valid after a successful prompt for a password.
|
|
1854
1944
|
*/
|
|
1855
1945
|
readonly password_strength: number
|
|
1946
|
+
/**
|
|
1947
|
+
* Indication of the password strength.
|
|
1948
|
+
*
|
|
1949
|
+
* Prompts will return a zero value if the password is empty, and a value
|
|
1950
|
+
* greater than zero if the password has any characters.
|
|
1951
|
+
*
|
|
1952
|
+
* This is only valid after a successful prompt for a password.
|
|
1953
|
+
*/
|
|
1954
|
+
readonly passwordStrength: number
|
|
1856
1955
|
/**
|
|
1857
1956
|
* The title of the prompt.
|
|
1858
1957
|
*
|
|
@@ -2610,6 +2709,10 @@ export module CertificateRequest {
|
|
|
2610
2709
|
* The private key that this certificate request is for.
|
|
2611
2710
|
*/
|
|
2612
2711
|
private_key?: Gck.Object | null
|
|
2712
|
+
/**
|
|
2713
|
+
* The private key that this certificate request is for.
|
|
2714
|
+
*/
|
|
2715
|
+
privateKey?: Gck.Object | null
|
|
2613
2716
|
}
|
|
2614
2717
|
|
|
2615
2718
|
}
|
|
@@ -2622,6 +2725,10 @@ export interface CertificateRequest {
|
|
|
2622
2725
|
* The private key that this certificate request is for.
|
|
2623
2726
|
*/
|
|
2624
2727
|
readonly private_key: Gck.Object
|
|
2728
|
+
/**
|
|
2729
|
+
* The private key that this certificate request is for.
|
|
2730
|
+
*/
|
|
2731
|
+
readonly privateKey: Gck.Object
|
|
2625
2732
|
|
|
2626
2733
|
// Owm methods of Gcr-3.Gcr.CertificateRequest
|
|
2627
2734
|
|
|
@@ -2889,16 +2996,31 @@ export interface Parser {
|
|
|
2889
2996
|
* generally only valid during a #GcrParser::parsed signal.
|
|
2890
2997
|
*/
|
|
2891
2998
|
readonly parsed_attributes: Gck.Attributes
|
|
2999
|
+
/**
|
|
3000
|
+
* Get the attributes that make up the currently parsed item. This is
|
|
3001
|
+
* generally only valid during a #GcrParser::parsed signal.
|
|
3002
|
+
*/
|
|
3003
|
+
readonly parsedAttributes: Gck.Attributes
|
|
2892
3004
|
/**
|
|
2893
3005
|
* The description of the type of the currently parsed item. This is generally
|
|
2894
3006
|
* only valid during a #GcrParser::parsed signal.
|
|
2895
3007
|
*/
|
|
2896
3008
|
readonly parsed_description: string | null
|
|
3009
|
+
/**
|
|
3010
|
+
* The description of the type of the currently parsed item. This is generally
|
|
3011
|
+
* only valid during a #GcrParser::parsed signal.
|
|
3012
|
+
*/
|
|
3013
|
+
readonly parsedDescription: string | null
|
|
2897
3014
|
/**
|
|
2898
3015
|
* The label of the currently parsed item. This is generally
|
|
2899
3016
|
* only valid during a #GcrParser::parsed signal.
|
|
2900
3017
|
*/
|
|
2901
3018
|
readonly parsed_label: string | null
|
|
3019
|
+
/**
|
|
3020
|
+
* The label of the currently parsed item. This is generally
|
|
3021
|
+
* only valid during a #GcrParser::parsed signal.
|
|
3022
|
+
*/
|
|
3023
|
+
readonly parsedLabel: string | null
|
|
2902
3024
|
|
|
2903
3025
|
// Own fields of Gcr-3.Gcr.Parser
|
|
2904
3026
|
|
|
@@ -3710,6 +3832,20 @@ export module SystemPrompt {
|
|
|
3710
3832
|
* The timeout in seconds to wait when opening the prompt.
|
|
3711
3833
|
*/
|
|
3712
3834
|
timeout_seconds?: number | null
|
|
3835
|
+
/**
|
|
3836
|
+
* The DBus bus name of the prompter to use for prompting, or %NULL
|
|
3837
|
+
* for the default prompter.
|
|
3838
|
+
*/
|
|
3839
|
+
busName?: string | null
|
|
3840
|
+
/**
|
|
3841
|
+
* The #GcrSecretExchange to use when transferring passwords. A default
|
|
3842
|
+
* secret exchange will be used if this is not set.
|
|
3843
|
+
*/
|
|
3844
|
+
secretExchange?: SecretExchange | null
|
|
3845
|
+
/**
|
|
3846
|
+
* The timeout in seconds to wait when opening the prompt.
|
|
3847
|
+
*/
|
|
3848
|
+
timeoutSeconds?: number | null
|
|
3713
3849
|
}
|
|
3714
3850
|
|
|
3715
3851
|
}
|
|
@@ -3723,15 +3859,29 @@ export interface SystemPrompt extends Prompt, Gio.AsyncInitable, Gio.Initable {
|
|
|
3723
3859
|
* for the default prompter.
|
|
3724
3860
|
*/
|
|
3725
3861
|
readonly bus_name: string | null
|
|
3862
|
+
/**
|
|
3863
|
+
* The DBus bus name of the prompter to use for prompting, or %NULL
|
|
3864
|
+
* for the default prompter.
|
|
3865
|
+
*/
|
|
3866
|
+
readonly busName: string | null
|
|
3726
3867
|
/**
|
|
3727
3868
|
* The #GcrSecretExchange to use when transferring passwords. A default
|
|
3728
3869
|
* secret exchange will be used if this is not set.
|
|
3729
3870
|
*/
|
|
3730
3871
|
secret_exchange: SecretExchange
|
|
3872
|
+
/**
|
|
3873
|
+
* The #GcrSecretExchange to use when transferring passwords. A default
|
|
3874
|
+
* secret exchange will be used if this is not set.
|
|
3875
|
+
*/
|
|
3876
|
+
secretExchange: SecretExchange
|
|
3731
3877
|
/**
|
|
3732
3878
|
* The timeout in seconds to wait when opening the prompt.
|
|
3733
3879
|
*/
|
|
3734
3880
|
readonly timeout_seconds: number
|
|
3881
|
+
/**
|
|
3882
|
+
* The timeout in seconds to wait when opening the prompt.
|
|
3883
|
+
*/
|
|
3884
|
+
readonly timeoutSeconds: number
|
|
3735
3885
|
|
|
3736
3886
|
// Own fields of Gcr-3.Gcr.SystemPrompt
|
|
3737
3887
|
|
|
@@ -3972,6 +4122,11 @@ export module SystemPrompter {
|
|
|
3972
4122
|
* #GcrPrompt implementation.
|
|
3973
4123
|
*/
|
|
3974
4124
|
prompt_type?: GObject.GType | null
|
|
4125
|
+
/**
|
|
4126
|
+
* The #GType for prompts created by this prompter. This must be a
|
|
4127
|
+
* #GcrPrompt implementation.
|
|
4128
|
+
*/
|
|
4129
|
+
promptType?: GObject.GType | null
|
|
3975
4130
|
}
|
|
3976
4131
|
|
|
3977
4132
|
}
|
|
@@ -3985,6 +4140,11 @@ export interface SystemPrompter {
|
|
|
3985
4140
|
* #GcrPrompt implementation.
|
|
3986
4141
|
*/
|
|
3987
4142
|
readonly prompt_type: GObject.GType
|
|
4143
|
+
/**
|
|
4144
|
+
* The #GType for prompts created by this prompter. This must be a
|
|
4145
|
+
* #GcrPrompt implementation.
|
|
4146
|
+
*/
|
|
4147
|
+
readonly promptType: GObject.GType
|
|
3988
4148
|
/**
|
|
3989
4149
|
* Whether the prompter is prompting or not.
|
|
3990
4150
|
*/
|
package/gcr-3.d.ts
CHANGED
|
@@ -1780,6 +1780,51 @@ module Prompt {
|
|
|
1780
1780
|
* user about a previous 'unsuccessful' prompt.
|
|
1781
1781
|
*/
|
|
1782
1782
|
warning?: string | null
|
|
1783
|
+
/**
|
|
1784
|
+
* The string handle of the caller's window.
|
|
1785
|
+
*
|
|
1786
|
+
* The caller window indicates to the prompt which window is prompting the
|
|
1787
|
+
* user. The prompt may choose to ignore this information or use it in whatever
|
|
1788
|
+
* way it sees fit.
|
|
1789
|
+
*
|
|
1790
|
+
* In X11, this will be a stringified version of the XWindow handle; in
|
|
1791
|
+
* Wayland this is the result of an export using the XDG foreign
|
|
1792
|
+
* protocol.
|
|
1793
|
+
*/
|
|
1794
|
+
callerWindow?: string | null
|
|
1795
|
+
/**
|
|
1796
|
+
* The label for the cancel button in the prompt.
|
|
1797
|
+
*/
|
|
1798
|
+
cancelLabel?: string | null
|
|
1799
|
+
/**
|
|
1800
|
+
* Whether the additional choice is chosen or not.
|
|
1801
|
+
*
|
|
1802
|
+
* The additional choice would have been setup using #GcrPrompt:choice-label.
|
|
1803
|
+
*/
|
|
1804
|
+
choiceChosen?: boolean | null
|
|
1805
|
+
/**
|
|
1806
|
+
* The label for the additional choice.
|
|
1807
|
+
*
|
|
1808
|
+
* If this is a non-%NULL value then an additional boolean choice will be
|
|
1809
|
+
* displayed by the prompt allowing the user to select or deselect it.
|
|
1810
|
+
*
|
|
1811
|
+
* If %NULL, then no additional choice is displayed.
|
|
1812
|
+
*
|
|
1813
|
+
* The initial value of the choice can be set with #GcrPrompt:choice-chosen.
|
|
1814
|
+
*/
|
|
1815
|
+
choiceLabel?: string | null
|
|
1816
|
+
/**
|
|
1817
|
+
* The label for the continue button in the prompt.
|
|
1818
|
+
*/
|
|
1819
|
+
continueLabel?: string | null
|
|
1820
|
+
/**
|
|
1821
|
+
* Whether the prompt will prompt for a new password.
|
|
1822
|
+
*
|
|
1823
|
+
* This will cause the prompt implementation to ask the user to confirm the
|
|
1824
|
+
* password and/or display other relevant user interface for creating a new
|
|
1825
|
+
* password.
|
|
1826
|
+
*/
|
|
1827
|
+
passwordNew?: boolean | null
|
|
1783
1828
|
}
|
|
1784
1829
|
|
|
1785
1830
|
}
|
|
@@ -1800,16 +1845,38 @@ interface Prompt {
|
|
|
1800
1845
|
* protocol.
|
|
1801
1846
|
*/
|
|
1802
1847
|
caller_window: string | null
|
|
1848
|
+
/**
|
|
1849
|
+
* The string handle of the caller's window.
|
|
1850
|
+
*
|
|
1851
|
+
* The caller window indicates to the prompt which window is prompting the
|
|
1852
|
+
* user. The prompt may choose to ignore this information or use it in whatever
|
|
1853
|
+
* way it sees fit.
|
|
1854
|
+
*
|
|
1855
|
+
* In X11, this will be a stringified version of the XWindow handle; in
|
|
1856
|
+
* Wayland this is the result of an export using the XDG foreign
|
|
1857
|
+
* protocol.
|
|
1858
|
+
*/
|
|
1859
|
+
callerWindow: string | null
|
|
1803
1860
|
/**
|
|
1804
1861
|
* The label for the cancel button in the prompt.
|
|
1805
1862
|
*/
|
|
1806
1863
|
cancel_label: string | null
|
|
1864
|
+
/**
|
|
1865
|
+
* The label for the cancel button in the prompt.
|
|
1866
|
+
*/
|
|
1867
|
+
cancelLabel: string | null
|
|
1807
1868
|
/**
|
|
1808
1869
|
* Whether the additional choice is chosen or not.
|
|
1809
1870
|
*
|
|
1810
1871
|
* The additional choice would have been setup using #GcrPrompt:choice-label.
|
|
1811
1872
|
*/
|
|
1812
1873
|
choice_chosen: boolean
|
|
1874
|
+
/**
|
|
1875
|
+
* Whether the additional choice is chosen or not.
|
|
1876
|
+
*
|
|
1877
|
+
* The additional choice would have been setup using #GcrPrompt:choice-label.
|
|
1878
|
+
*/
|
|
1879
|
+
choiceChosen: boolean
|
|
1813
1880
|
/**
|
|
1814
1881
|
* The label for the additional choice.
|
|
1815
1882
|
*
|
|
@@ -1821,10 +1888,25 @@ interface Prompt {
|
|
|
1821
1888
|
* The initial value of the choice can be set with #GcrPrompt:choice-chosen.
|
|
1822
1889
|
*/
|
|
1823
1890
|
choice_label: string | null
|
|
1891
|
+
/**
|
|
1892
|
+
* The label for the additional choice.
|
|
1893
|
+
*
|
|
1894
|
+
* If this is a non-%NULL value then an additional boolean choice will be
|
|
1895
|
+
* displayed by the prompt allowing the user to select or deselect it.
|
|
1896
|
+
*
|
|
1897
|
+
* If %NULL, then no additional choice is displayed.
|
|
1898
|
+
*
|
|
1899
|
+
* The initial value of the choice can be set with #GcrPrompt:choice-chosen.
|
|
1900
|
+
*/
|
|
1901
|
+
choiceLabel: string | null
|
|
1824
1902
|
/**
|
|
1825
1903
|
* The label for the continue button in the prompt.
|
|
1826
1904
|
*/
|
|
1827
1905
|
continue_label: string | null
|
|
1906
|
+
/**
|
|
1907
|
+
* The label for the continue button in the prompt.
|
|
1908
|
+
*/
|
|
1909
|
+
continueLabel: string | null
|
|
1828
1910
|
/**
|
|
1829
1911
|
* The detailed description of the prompt.
|
|
1830
1912
|
*
|
|
@@ -1846,6 +1928,14 @@ interface Prompt {
|
|
|
1846
1928
|
* password.
|
|
1847
1929
|
*/
|
|
1848
1930
|
password_new: boolean
|
|
1931
|
+
/**
|
|
1932
|
+
* Whether the prompt will prompt for a new password.
|
|
1933
|
+
*
|
|
1934
|
+
* This will cause the prompt implementation to ask the user to confirm the
|
|
1935
|
+
* password and/or display other relevant user interface for creating a new
|
|
1936
|
+
* password.
|
|
1937
|
+
*/
|
|
1938
|
+
passwordNew: boolean
|
|
1849
1939
|
/**
|
|
1850
1940
|
* Indication of the password strength.
|
|
1851
1941
|
*
|
|
@@ -1855,6 +1945,15 @@ interface Prompt {
|
|
|
1855
1945
|
* This is only valid after a successful prompt for a password.
|
|
1856
1946
|
*/
|
|
1857
1947
|
readonly password_strength: number
|
|
1948
|
+
/**
|
|
1949
|
+
* Indication of the password strength.
|
|
1950
|
+
*
|
|
1951
|
+
* Prompts will return a zero value if the password is empty, and a value
|
|
1952
|
+
* greater than zero if the password has any characters.
|
|
1953
|
+
*
|
|
1954
|
+
* This is only valid after a successful prompt for a password.
|
|
1955
|
+
*/
|
|
1956
|
+
readonly passwordStrength: number
|
|
1858
1957
|
/**
|
|
1859
1958
|
* The title of the prompt.
|
|
1860
1959
|
*
|
|
@@ -2612,6 +2711,10 @@ module CertificateRequest {
|
|
|
2612
2711
|
* The private key that this certificate request is for.
|
|
2613
2712
|
*/
|
|
2614
2713
|
private_key?: Gck.Object | null
|
|
2714
|
+
/**
|
|
2715
|
+
* The private key that this certificate request is for.
|
|
2716
|
+
*/
|
|
2717
|
+
privateKey?: Gck.Object | null
|
|
2615
2718
|
}
|
|
2616
2719
|
|
|
2617
2720
|
}
|
|
@@ -2624,6 +2727,10 @@ interface CertificateRequest {
|
|
|
2624
2727
|
* The private key that this certificate request is for.
|
|
2625
2728
|
*/
|
|
2626
2729
|
readonly private_key: Gck.Object
|
|
2730
|
+
/**
|
|
2731
|
+
* The private key that this certificate request is for.
|
|
2732
|
+
*/
|
|
2733
|
+
readonly privateKey: Gck.Object
|
|
2627
2734
|
|
|
2628
2735
|
// Owm methods of Gcr-3.Gcr.CertificateRequest
|
|
2629
2736
|
|
|
@@ -2891,16 +2998,31 @@ interface Parser {
|
|
|
2891
2998
|
* generally only valid during a #GcrParser::parsed signal.
|
|
2892
2999
|
*/
|
|
2893
3000
|
readonly parsed_attributes: Gck.Attributes
|
|
3001
|
+
/**
|
|
3002
|
+
* Get the attributes that make up the currently parsed item. This is
|
|
3003
|
+
* generally only valid during a #GcrParser::parsed signal.
|
|
3004
|
+
*/
|
|
3005
|
+
readonly parsedAttributes: Gck.Attributes
|
|
2894
3006
|
/**
|
|
2895
3007
|
* The description of the type of the currently parsed item. This is generally
|
|
2896
3008
|
* only valid during a #GcrParser::parsed signal.
|
|
2897
3009
|
*/
|
|
2898
3010
|
readonly parsed_description: string | null
|
|
3011
|
+
/**
|
|
3012
|
+
* The description of the type of the currently parsed item. This is generally
|
|
3013
|
+
* only valid during a #GcrParser::parsed signal.
|
|
3014
|
+
*/
|
|
3015
|
+
readonly parsedDescription: string | null
|
|
2899
3016
|
/**
|
|
2900
3017
|
* The label of the currently parsed item. This is generally
|
|
2901
3018
|
* only valid during a #GcrParser::parsed signal.
|
|
2902
3019
|
*/
|
|
2903
3020
|
readonly parsed_label: string | null
|
|
3021
|
+
/**
|
|
3022
|
+
* The label of the currently parsed item. This is generally
|
|
3023
|
+
* only valid during a #GcrParser::parsed signal.
|
|
3024
|
+
*/
|
|
3025
|
+
readonly parsedLabel: string | null
|
|
2904
3026
|
|
|
2905
3027
|
// Own fields of Gcr-3.Gcr.Parser
|
|
2906
3028
|
|
|
@@ -3712,6 +3834,20 @@ module SystemPrompt {
|
|
|
3712
3834
|
* The timeout in seconds to wait when opening the prompt.
|
|
3713
3835
|
*/
|
|
3714
3836
|
timeout_seconds?: number | null
|
|
3837
|
+
/**
|
|
3838
|
+
* The DBus bus name of the prompter to use for prompting, or %NULL
|
|
3839
|
+
* for the default prompter.
|
|
3840
|
+
*/
|
|
3841
|
+
busName?: string | null
|
|
3842
|
+
/**
|
|
3843
|
+
* The #GcrSecretExchange to use when transferring passwords. A default
|
|
3844
|
+
* secret exchange will be used if this is not set.
|
|
3845
|
+
*/
|
|
3846
|
+
secretExchange?: SecretExchange | null
|
|
3847
|
+
/**
|
|
3848
|
+
* The timeout in seconds to wait when opening the prompt.
|
|
3849
|
+
*/
|
|
3850
|
+
timeoutSeconds?: number | null
|
|
3715
3851
|
}
|
|
3716
3852
|
|
|
3717
3853
|
}
|
|
@@ -3725,15 +3861,29 @@ interface SystemPrompt extends Prompt, Gio.AsyncInitable, Gio.Initable {
|
|
|
3725
3861
|
* for the default prompter.
|
|
3726
3862
|
*/
|
|
3727
3863
|
readonly bus_name: string | null
|
|
3864
|
+
/**
|
|
3865
|
+
* The DBus bus name of the prompter to use for prompting, or %NULL
|
|
3866
|
+
* for the default prompter.
|
|
3867
|
+
*/
|
|
3868
|
+
readonly busName: string | null
|
|
3728
3869
|
/**
|
|
3729
3870
|
* The #GcrSecretExchange to use when transferring passwords. A default
|
|
3730
3871
|
* secret exchange will be used if this is not set.
|
|
3731
3872
|
*/
|
|
3732
3873
|
secret_exchange: SecretExchange
|
|
3874
|
+
/**
|
|
3875
|
+
* The #GcrSecretExchange to use when transferring passwords. A default
|
|
3876
|
+
* secret exchange will be used if this is not set.
|
|
3877
|
+
*/
|
|
3878
|
+
secretExchange: SecretExchange
|
|
3733
3879
|
/**
|
|
3734
3880
|
* The timeout in seconds to wait when opening the prompt.
|
|
3735
3881
|
*/
|
|
3736
3882
|
readonly timeout_seconds: number
|
|
3883
|
+
/**
|
|
3884
|
+
* The timeout in seconds to wait when opening the prompt.
|
|
3885
|
+
*/
|
|
3886
|
+
readonly timeoutSeconds: number
|
|
3737
3887
|
|
|
3738
3888
|
// Own fields of Gcr-3.Gcr.SystemPrompt
|
|
3739
3889
|
|
|
@@ -3974,6 +4124,11 @@ module SystemPrompter {
|
|
|
3974
4124
|
* #GcrPrompt implementation.
|
|
3975
4125
|
*/
|
|
3976
4126
|
prompt_type?: GObject.GType | null
|
|
4127
|
+
/**
|
|
4128
|
+
* The #GType for prompts created by this prompter. This must be a
|
|
4129
|
+
* #GcrPrompt implementation.
|
|
4130
|
+
*/
|
|
4131
|
+
promptType?: GObject.GType | null
|
|
3977
4132
|
}
|
|
3978
4133
|
|
|
3979
4134
|
}
|
|
@@ -3987,6 +4142,11 @@ interface SystemPrompter {
|
|
|
3987
4142
|
* #GcrPrompt implementation.
|
|
3988
4143
|
*/
|
|
3989
4144
|
readonly prompt_type: GObject.GType
|
|
4145
|
+
/**
|
|
4146
|
+
* The #GType for prompts created by this prompter. This must be a
|
|
4147
|
+
* #GcrPrompt implementation.
|
|
4148
|
+
*/
|
|
4149
|
+
readonly promptType: GObject.GType
|
|
3990
4150
|
/**
|
|
3991
4151
|
* Whether the prompter is prompting or not.
|
|
3992
4152
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@girs/gcr-3",
|
|
3
|
-
"version": "3.41.0-3.2.
|
|
3
|
+
"version": "3.41.0-3.2.6",
|
|
4
4
|
"description": "GJS TypeScript type definitions for Gcr-3, generated from library version 3.41.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "gcr-3.js",
|
|
@@ -25,11 +25,11 @@
|
|
|
25
25
|
"test:cjs": "NODE_OPTIONS=--max_old_space_size=9216 tsc --noEmit gcr-3.d.cts"
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@girs/gck-1": "^1.0.0-3.2.
|
|
29
|
-
"@girs/gio-2.0": "^2.78.0-3.2.
|
|
30
|
-
"@girs/gjs": "^3.2.
|
|
31
|
-
"@girs/glib-2.0": "^2.78.0-3.2.
|
|
32
|
-
"@girs/gobject-2.0": "^2.78.0-3.2.
|
|
28
|
+
"@girs/gck-1": "^1.0.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": "*"
|