@girs/gcr-4 4.4.0-4.0.4 → 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 +36 -41
- package/gcr-4.d.ts +178 -52
- package/package.json +8 -7
package/README.md
CHANGED
|
@@ -4,82 +4,77 @@
|
|
|
4
4
|

|
|
5
5
|

|
|
6
6
|
|
|
7
|
+
GJS TypeScript type definitions for Gcr-4, generated from library version 4.4.0 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v4.5.0.
|
|
7
8
|
|
|
8
|
-
|
|
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
|
-
To use this type definitions, install them with NPM:
|
|
13
14
|
```bash
|
|
14
15
|
npm install @girs/gcr-4
|
|
15
16
|
```
|
|
16
17
|
|
|
17
|
-
|
|
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/gcr-4` | the namespace as a default export, plus the ambient and global declarations |
|
|
26
|
+
| `@girs/gcr-4/ambient` | only the `gi://` module declarations |
|
|
27
|
+
| `@girs/gcr-4/import` | only the `imports.gi` declarations |
|
|
28
|
+
| `@girs/gcr-4/gcr-4` | 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
|
-
You can import this package into your project like this:
|
|
20
36
|
```ts
|
|
21
37
|
import Gcr from '@girs/gcr-4';
|
|
22
38
|
```
|
|
23
39
|
|
|
24
|
-
###
|
|
40
|
+
### As `gi://`
|
|
25
41
|
|
|
26
|
-
|
|
27
|
-
|
|
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/gcr-4'
|
|
46
|
+
import '@girs/gcr-4';
|
|
32
47
|
```
|
|
33
48
|
|
|
34
|
-
`tsconfig.json`:
|
|
35
49
|
```json
|
|
36
|
-
{
|
|
37
|
-
"compilerOptions": {
|
|
38
|
-
...
|
|
39
|
-
},
|
|
40
|
-
"include": ["@girs/gcr-4"],
|
|
41
|
-
...
|
|
42
|
-
}
|
|
50
|
+
{ "include": ["@girs/gcr-4"] }
|
|
43
51
|
```
|
|
44
52
|
|
|
45
|
-
|
|
53
|
+
Then the runtime spelling type-checks:
|
|
46
54
|
|
|
47
55
|
```ts
|
|
48
56
|
import Gcr from 'gi://Gcr?version=4';
|
|
49
57
|
```
|
|
50
58
|
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
You can also import the module with Typescript support using the global `imports.gi` object of GJS.
|
|
54
|
-
For this you need to include `@girs/gcr-4` or `@girs/gcr-4/import` in your `tsconfig` or entry point Typescript file:
|
|
59
|
+
Referencing `@girs/gcr-4/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
|
-
`
|
|
57
|
-
```ts
|
|
58
|
-
import '@girs/gcr-4'
|
|
59
|
-
```
|
|
60
|
-
|
|
61
|
-
`tsconfig.json`:
|
|
62
|
-
```json
|
|
63
|
-
{
|
|
64
|
-
"compilerOptions": {
|
|
65
|
-
...
|
|
66
|
-
},
|
|
67
|
-
"include": ["@girs/gcr-4"],
|
|
68
|
-
...
|
|
69
|
-
}
|
|
70
|
-
```
|
|
62
|
+
### As `imports.gi`
|
|
71
63
|
|
|
72
|
-
|
|
64
|
+
GJS's global object works the same way, via `@girs/gcr-4/import`:
|
|
73
65
|
|
|
74
66
|
```ts
|
|
75
67
|
const Gcr = imports.gi.Gcr;
|
|
76
68
|
```
|
|
77
69
|
|
|
78
|
-
|
|
70
|
+
## Building
|
|
79
71
|
|
|
80
|
-
|
|
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
|
-
|
|
78
|
+
Every pre-generated package is at [gjsify/types](https://github.com/gjsify/types).
|
|
79
|
+
|
|
85
80
|
|
package/gcr-4.d.ts
CHANGED
|
@@ -36,35 +36,35 @@ export namespace Gcr {
|
|
|
36
36
|
* When a chain is not yet built it has this status. If a chain is modified after
|
|
37
37
|
* being built, it has this status.
|
|
38
38
|
*/
|
|
39
|
-
UNKNOWN,
|
|
39
|
+
UNKNOWN = 0,
|
|
40
40
|
/**
|
|
41
41
|
* A full chain could not be loaded. The
|
|
42
42
|
* chain does not end with a self-signed certificate, a trusted anchor, or a
|
|
43
43
|
* pinned certificate.
|
|
44
44
|
*/
|
|
45
|
-
INCOMPLETE,
|
|
45
|
+
INCOMPLETE = 1,
|
|
46
46
|
/**
|
|
47
47
|
* The certificate chain contains a revoked
|
|
48
48
|
* or otherwise explicitly distrusted certificate. The entire chain should
|
|
49
49
|
* be distrusted.
|
|
50
50
|
*/
|
|
51
|
-
DISTRUSTED,
|
|
51
|
+
DISTRUSTED = 2,
|
|
52
52
|
/**
|
|
53
53
|
* The chain ends with a self-signed
|
|
54
54
|
* certificate. No trust anchor was found.
|
|
55
55
|
*/
|
|
56
|
-
SELFSIGNED,
|
|
56
|
+
SELFSIGNED = 3,
|
|
57
57
|
/**
|
|
58
58
|
* The chain represents a pinned certificate. A
|
|
59
59
|
* pinned certificate is an exception which trusts a given certificate
|
|
60
60
|
* explicitly for a purpose and communication with a certain peer.
|
|
61
61
|
*/
|
|
62
|
-
PINNED,
|
|
62
|
+
PINNED = 4,
|
|
63
63
|
/**
|
|
64
64
|
* The chain ends with an anchored
|
|
65
65
|
* certificate. The anchored certificate is not necessarily self-signed.
|
|
66
66
|
*/
|
|
67
|
-
ANCHORED,
|
|
67
|
+
ANCHORED = 5,
|
|
68
68
|
}
|
|
69
69
|
|
|
70
70
|
|
|
@@ -76,7 +76,7 @@ export namespace Gcr {
|
|
|
76
76
|
/**
|
|
77
77
|
* certificate request is in PKCS#10 format
|
|
78
78
|
*/
|
|
79
|
-
CERTIFICATE_REQUEST_PKCS10,
|
|
79
|
+
CERTIFICATE_REQUEST_PKCS10 = 1,
|
|
80
80
|
}
|
|
81
81
|
|
|
82
82
|
|
|
@@ -88,19 +88,19 @@ export namespace Gcr {
|
|
|
88
88
|
/**
|
|
89
89
|
* Failed to parse or serialize the data
|
|
90
90
|
*/
|
|
91
|
-
FAILURE,
|
|
91
|
+
FAILURE = -1,
|
|
92
92
|
/**
|
|
93
93
|
* The data was unrecognized or unsupported
|
|
94
94
|
*/
|
|
95
|
-
UNRECOGNIZED,
|
|
95
|
+
UNRECOGNIZED = 1,
|
|
96
96
|
/**
|
|
97
97
|
* The operation was cancelled
|
|
98
98
|
*/
|
|
99
|
-
CANCELLED,
|
|
99
|
+
CANCELLED = 2,
|
|
100
100
|
/**
|
|
101
101
|
* The data was encrypted or locked and could not be unlocked.
|
|
102
102
|
*/
|
|
103
|
-
LOCKED,
|
|
103
|
+
LOCKED = 3,
|
|
104
104
|
}
|
|
105
105
|
|
|
106
106
|
|
|
@@ -112,127 +112,127 @@ export namespace Gcr {
|
|
|
112
112
|
/**
|
|
113
113
|
* Represents all the formats, when enabling or disabling
|
|
114
114
|
*/
|
|
115
|
-
ALL,
|
|
115
|
+
ALL = -1,
|
|
116
116
|
/**
|
|
117
117
|
* Not a valid format
|
|
118
118
|
*/
|
|
119
|
-
INVALID,
|
|
119
|
+
INVALID = 0,
|
|
120
120
|
/**
|
|
121
121
|
* DER encoded private key
|
|
122
122
|
*/
|
|
123
|
-
DER_PRIVATE_KEY,
|
|
123
|
+
DER_PRIVATE_KEY = 100,
|
|
124
124
|
/**
|
|
125
125
|
* DER encoded RSA private key
|
|
126
126
|
*/
|
|
127
|
-
DER_PRIVATE_KEY_RSA,
|
|
127
|
+
DER_PRIVATE_KEY_RSA = 101,
|
|
128
128
|
/**
|
|
129
129
|
* DER encoded DSA private key
|
|
130
130
|
*/
|
|
131
|
-
DER_PRIVATE_KEY_DSA,
|
|
131
|
+
DER_PRIVATE_KEY_DSA = 102,
|
|
132
132
|
/**
|
|
133
133
|
* DER encoded EC private key
|
|
134
134
|
*/
|
|
135
|
-
DER_PRIVATE_KEY_EC,
|
|
135
|
+
DER_PRIVATE_KEY_EC = 103,
|
|
136
136
|
/**
|
|
137
137
|
* DER encoded SubjectPublicKeyInfo
|
|
138
138
|
*/
|
|
139
|
-
DER_SUBJECT_PUBLIC_KEY,
|
|
139
|
+
DER_SUBJECT_PUBLIC_KEY = 150,
|
|
140
140
|
/**
|
|
141
141
|
* DER encoded X.509 certificate
|
|
142
142
|
*/
|
|
143
|
-
DER_CERTIFICATE_X509,
|
|
143
|
+
DER_CERTIFICATE_X509 = 200,
|
|
144
144
|
/**
|
|
145
145
|
* DER encoded PKCS#7 container file which can contain certificates
|
|
146
146
|
*/
|
|
147
|
-
DER_PKCS7,
|
|
147
|
+
DER_PKCS7 = 300,
|
|
148
148
|
/**
|
|
149
149
|
* DER encoded PKCS#8 file which can contain a key
|
|
150
150
|
*/
|
|
151
|
-
DER_PKCS8,
|
|
151
|
+
DER_PKCS8 = 400,
|
|
152
152
|
/**
|
|
153
153
|
* Unencrypted DER encoded PKCS#8 file which can contain a key
|
|
154
154
|
*/
|
|
155
|
-
DER_PKCS8_PLAIN,
|
|
155
|
+
DER_PKCS8_PLAIN = 401,
|
|
156
156
|
/**
|
|
157
157
|
* Encrypted DER encoded PKCS#8 file which can contain a key
|
|
158
158
|
*/
|
|
159
|
-
DER_PKCS8_ENCRYPTED,
|
|
159
|
+
DER_PKCS8_ENCRYPTED = 402,
|
|
160
160
|
/**
|
|
161
161
|
* DER encoded PKCS#10 certificate request file
|
|
162
162
|
*/
|
|
163
|
-
DER_PKCS10,
|
|
163
|
+
DER_PKCS10 = 450,
|
|
164
164
|
/**
|
|
165
165
|
* DER encoded SPKAC as generated by HTML5 keygen element
|
|
166
166
|
*/
|
|
167
|
-
DER_SPKAC,
|
|
167
|
+
DER_SPKAC = 455,
|
|
168
168
|
/**
|
|
169
169
|
* OpenSSL style SPKAC data
|
|
170
170
|
*/
|
|
171
|
-
BASE64_SPKAC,
|
|
171
|
+
BASE64_SPKAC = 456,
|
|
172
172
|
/**
|
|
173
173
|
* DER encoded PKCS#12 file which can contain certificates and/or keys
|
|
174
174
|
*/
|
|
175
|
-
DER_PKCS12,
|
|
175
|
+
DER_PKCS12 = 500,
|
|
176
176
|
/**
|
|
177
177
|
* OpenSSH v1 or v2 public key
|
|
178
178
|
*/
|
|
179
|
-
OPENSSH_PUBLIC,
|
|
179
|
+
OPENSSH_PUBLIC = 600,
|
|
180
180
|
/**
|
|
181
181
|
* OpenPGP key packet(s)
|
|
182
182
|
*/
|
|
183
|
-
OPENPGP_PACKET,
|
|
183
|
+
OPENPGP_PACKET = 700,
|
|
184
184
|
/**
|
|
185
185
|
* OpenPGP public or private key armor encoded data
|
|
186
186
|
*/
|
|
187
|
-
OPENPGP_ARMOR,
|
|
187
|
+
OPENPGP_ARMOR = 701,
|
|
188
188
|
/**
|
|
189
189
|
* An OpenSSL style PEM file with unspecified contents
|
|
190
190
|
*/
|
|
191
|
-
PEM,
|
|
191
|
+
PEM = 1000,
|
|
192
192
|
/**
|
|
193
193
|
* An OpenSSL style PEM file with a private RSA key
|
|
194
194
|
*/
|
|
195
|
-
PEM_PRIVATE_KEY_RSA,
|
|
195
|
+
PEM_PRIVATE_KEY_RSA = 1001,
|
|
196
196
|
/**
|
|
197
197
|
* An OpenSSL style PEM file with a private DSA key
|
|
198
198
|
*/
|
|
199
|
-
PEM_PRIVATE_KEY_DSA,
|
|
199
|
+
PEM_PRIVATE_KEY_DSA = 1002,
|
|
200
200
|
/**
|
|
201
201
|
* An OpenSSL style PEM file with an X.509 certificate
|
|
202
202
|
*/
|
|
203
|
-
PEM_CERTIFICATE_X509,
|
|
203
|
+
PEM_CERTIFICATE_X509 = 1003,
|
|
204
204
|
/**
|
|
205
205
|
* An OpenSSL style PEM file containing PKCS#7
|
|
206
206
|
*/
|
|
207
|
-
PEM_PKCS7,
|
|
207
|
+
PEM_PKCS7 = 1004,
|
|
208
208
|
/**
|
|
209
209
|
* Unencrypted OpenSSL style PEM file containing PKCS#8
|
|
210
210
|
*/
|
|
211
|
-
PEM_PKCS8_PLAIN,
|
|
211
|
+
PEM_PKCS8_PLAIN = 1005,
|
|
212
212
|
/**
|
|
213
213
|
* Encrypted OpenSSL style PEM file containing PKCS#8
|
|
214
214
|
*/
|
|
215
|
-
PEM_PKCS8_ENCRYPTED,
|
|
215
|
+
PEM_PKCS8_ENCRYPTED = 1006,
|
|
216
216
|
/**
|
|
217
217
|
* An OpenSSL style PEM file containing PKCS#12
|
|
218
218
|
*/
|
|
219
|
-
PEM_PKCS12,
|
|
219
|
+
PEM_PKCS12 = 1007,
|
|
220
220
|
/**
|
|
221
221
|
* An OpenSSL style PEM file with a private key
|
|
222
222
|
*/
|
|
223
|
-
PEM_PRIVATE_KEY,
|
|
223
|
+
PEM_PRIVATE_KEY = 1008,
|
|
224
224
|
/**
|
|
225
225
|
* An OpenSSL style PEM file containing PKCS#10
|
|
226
226
|
*/
|
|
227
|
-
PEM_PKCS10,
|
|
227
|
+
PEM_PKCS10 = 1009,
|
|
228
228
|
/**
|
|
229
229
|
* An OpenSSL style PEM file with a private EC key
|
|
230
230
|
*/
|
|
231
|
-
PEM_PRIVATE_KEY_EC,
|
|
231
|
+
PEM_PRIVATE_KEY_EC = 1010,
|
|
232
232
|
/**
|
|
233
233
|
* An OpenSSL style PEM file containing a SubjectPublicKeyInfo
|
|
234
234
|
*/
|
|
235
|
-
PEM_PUBLIC_KEY,
|
|
235
|
+
PEM_PUBLIC_KEY = 1011,
|
|
236
236
|
}
|
|
237
237
|
|
|
238
238
|
|
|
@@ -244,11 +244,11 @@ export namespace Gcr {
|
|
|
244
244
|
/**
|
|
245
245
|
* the prompt was cancelled
|
|
246
246
|
*/
|
|
247
|
-
CANCEL,
|
|
247
|
+
CANCEL = 0,
|
|
248
248
|
/**
|
|
249
249
|
* the user replied with 'ok'
|
|
250
250
|
*/
|
|
251
|
-
CONTINUE,
|
|
251
|
+
CONTINUE = 1,
|
|
252
252
|
}
|
|
253
253
|
|
|
254
254
|
|
|
@@ -265,7 +265,7 @@ export namespace Gcr {
|
|
|
265
265
|
/**
|
|
266
266
|
* another prompt is already in progress
|
|
267
267
|
*/
|
|
268
|
-
SYSTEM_PROMPT_IN_PROGRESS,
|
|
268
|
+
SYSTEM_PROMPT_IN_PROGRESS = 1,
|
|
269
269
|
}
|
|
270
270
|
|
|
271
271
|
|
|
@@ -278,48 +278,55 @@ export namespace Gcr {
|
|
|
278
278
|
/**
|
|
279
279
|
* only one prompt shown at a time
|
|
280
280
|
*/
|
|
281
|
-
SINGLE,
|
|
281
|
+
SINGLE = 0,
|
|
282
282
|
/**
|
|
283
283
|
* more than one prompt shown at a time
|
|
284
284
|
*/
|
|
285
|
-
MULTIPLE,
|
|
285
|
+
MULTIPLE = 1,
|
|
286
286
|
}
|
|
287
287
|
|
|
288
288
|
|
|
289
289
|
/**
|
|
290
290
|
* The major version number of the Gcr library.
|
|
291
|
+
* @default 4
|
|
291
292
|
*/
|
|
292
293
|
const MAJOR_VERSION: number;
|
|
293
294
|
|
|
294
295
|
/**
|
|
295
296
|
* The micro version number of the Gcr library.
|
|
297
|
+
* @default 0
|
|
296
298
|
*/
|
|
297
299
|
const MICRO_VERSION: number;
|
|
298
300
|
|
|
299
301
|
/**
|
|
300
302
|
* The minor version number of the Gcr library.
|
|
303
|
+
* @default 4
|
|
301
304
|
*/
|
|
302
305
|
const MINOR_VERSION: number;
|
|
303
306
|
|
|
304
307
|
/**
|
|
305
308
|
* The purpose used to verify the client certificate in a TLS connection.
|
|
309
|
+
* @default 1.3.6.1.5.5.7.3.2
|
|
306
310
|
*/
|
|
307
311
|
const PURPOSE_CLIENT_AUTH: string;
|
|
308
312
|
|
|
309
313
|
/**
|
|
310
314
|
* The purpose used to verify certificate used for the signature on signed code.
|
|
315
|
+
* @default 1.3.6.1.5.5.7.3.3
|
|
311
316
|
*/
|
|
312
317
|
const PURPOSE_CODE_SIGNING: string;
|
|
313
318
|
|
|
314
319
|
/**
|
|
315
320
|
* The purpose used to verify certificates that are used in email communication
|
|
316
321
|
* such as S/MIME.
|
|
322
|
+
* @default 1.3.6.1.5.5.7.3.4
|
|
317
323
|
*/
|
|
318
324
|
const PURPOSE_EMAIL: string;
|
|
319
325
|
|
|
320
326
|
/**
|
|
321
327
|
* The purpose used to verify the server certificate in a TLS connection. This
|
|
322
328
|
* is the most common purpose in use.
|
|
329
|
+
* @default 1.3.6.1.5.5.7.3.1
|
|
323
330
|
*/
|
|
324
331
|
const PURPOSE_SERVER_AUTH: string;
|
|
325
332
|
|
|
@@ -327,15 +334,28 @@ export namespace Gcr {
|
|
|
327
334
|
* The current secret exchange protocol. Key agreement is done using DH with the
|
|
328
335
|
* 1536 bit IKE parameter group. Keys are derived using SHA256 with HKDF. The
|
|
329
336
|
* transport encryption is done with 128 bit AES.
|
|
337
|
+
* @default sx-aes-1
|
|
330
338
|
*/
|
|
331
339
|
const SECRET_EXCHANGE_PROTOCOL_1: string;
|
|
332
340
|
|
|
341
|
+
/**
|
|
342
|
+
* @default always
|
|
343
|
+
*/
|
|
333
344
|
const UNLOCK_OPTION_ALWAYS: string;
|
|
334
345
|
|
|
346
|
+
/**
|
|
347
|
+
* @default idle
|
|
348
|
+
*/
|
|
335
349
|
const UNLOCK_OPTION_IDLE: string;
|
|
336
350
|
|
|
351
|
+
/**
|
|
352
|
+
* @default session
|
|
353
|
+
*/
|
|
337
354
|
const UNLOCK_OPTION_SESSION: string;
|
|
338
355
|
|
|
356
|
+
/**
|
|
357
|
+
* @default timeout
|
|
358
|
+
*/
|
|
339
359
|
const UNLOCK_OPTION_TIMEOUT: string;
|
|
340
360
|
|
|
341
361
|
function data_error_get_domain(): GLib.Quark;
|
|
@@ -498,6 +518,7 @@ export namespace Gcr {
|
|
|
498
518
|
* @param module_path the full file path of the PKCS#11 module
|
|
499
519
|
* @param unused unused
|
|
500
520
|
* @returns whether the module was sucessfully added.
|
|
521
|
+
* @throws GLib.Error
|
|
501
522
|
*/
|
|
502
523
|
function pkcs11_add_module_from_file(module_path: string, unused: null): boolean;
|
|
503
524
|
|
|
@@ -551,6 +572,7 @@ export namespace Gcr {
|
|
|
551
572
|
* Asynchronously initialize the registered PKCS#11 modules.
|
|
552
573
|
* @param cancellable optional cancellable used to cancel the operation
|
|
553
574
|
* @returns whether the operation was successful or not.
|
|
575
|
+
* @throws GLib.Error
|
|
554
576
|
*/
|
|
555
577
|
function pkcs11_initialize(cancellable: Gio.Cancellable | null): boolean;
|
|
556
578
|
|
|
@@ -577,6 +599,7 @@ export namespace Gcr {
|
|
|
577
599
|
* modules.
|
|
578
600
|
* @param result the asynchronous result
|
|
579
601
|
* @returns whether the operation was successful or not.
|
|
602
|
+
* @throws GLib.Error
|
|
580
603
|
*/
|
|
581
604
|
function pkcs11_initialize_finish(result: Gio.AsyncResult): boolean;
|
|
582
605
|
|
|
@@ -626,6 +649,7 @@ export namespace Gcr {
|
|
|
626
649
|
* @param peer the peer for this pinned certificate
|
|
627
650
|
* @param cancellable a {@link Gio.Cancellable}
|
|
628
651
|
* @returns `true` if the pinned certificate is recorded successfully
|
|
652
|
+
* @throws GLib.Error
|
|
629
653
|
*/
|
|
630
654
|
function trust_add_pinned_certificate(certificate: Certificate, purpose: string, peer: string, cancellable: Gio.Cancellable | null): boolean;
|
|
631
655
|
|
|
@@ -688,6 +712,7 @@ export namespace Gcr {
|
|
|
688
712
|
* {@link Gcr.trust_add_pinned_certificate_async}.
|
|
689
713
|
* @param result the {@link Gio.AsyncResult} passed to the callback
|
|
690
714
|
* @returns `true` if the pinned certificate is recorded successfully
|
|
715
|
+
* @throws GLib.Error
|
|
691
716
|
*/
|
|
692
717
|
function trust_add_pinned_certificate_finish(result: Gio.AsyncResult): boolean;
|
|
693
718
|
|
|
@@ -705,6 +730,7 @@ export namespace Gcr {
|
|
|
705
730
|
* @param purpose the purpose string
|
|
706
731
|
* @param cancellable a {@link Gio.Cancellable}
|
|
707
732
|
* @returns `true` if the certificate is a trust anchor
|
|
733
|
+
* @throws GLib.Error
|
|
708
734
|
*/
|
|
709
735
|
function trust_is_certificate_anchored(certificate: Certificate, purpose: string, cancellable: Gio.Cancellable | null): boolean;
|
|
710
736
|
|
|
@@ -758,6 +784,7 @@ export namespace Gcr {
|
|
|
758
784
|
* if an error occurred.
|
|
759
785
|
* @param result the {@link Gio.AsyncResult} passed to the callback
|
|
760
786
|
* @returns `true` if the certificate is a trust anchor
|
|
787
|
+
* @throws GLib.Error
|
|
761
788
|
*/
|
|
762
789
|
function trust_is_certificate_anchored_finish(result: Gio.AsyncResult): boolean;
|
|
763
790
|
|
|
@@ -773,6 +800,7 @@ export namespace Gcr {
|
|
|
773
800
|
* @param issuer The raw issuer
|
|
774
801
|
* @param cancellable a {@link Gio.Cancellable} or `null`
|
|
775
802
|
* @returns `true` if the certificate is marked as distrusted
|
|
803
|
+
* @throws GLib.Error
|
|
776
804
|
*/
|
|
777
805
|
function trust_is_certificate_distrusted(serial_nr: Uint8Array | string, issuer: Uint8Array | string, cancellable: Gio.Cancellable | null): boolean;
|
|
778
806
|
|
|
@@ -838,6 +866,7 @@ export namespace Gcr {
|
|
|
838
866
|
* if an error occurred.
|
|
839
867
|
* @param result the {@link Gio.AsyncResult} passed to the callback
|
|
840
868
|
* @returns `true` if the certificate is a trust anchor
|
|
869
|
+
* @throws GLib.Error
|
|
841
870
|
*/
|
|
842
871
|
function trust_is_certificate_distrusted_finish(result: Gio.AsyncResult): boolean;
|
|
843
872
|
|
|
@@ -855,6 +884,7 @@ export namespace Gcr {
|
|
|
855
884
|
* @param peer the peer for this pinned
|
|
856
885
|
* @param cancellable a {@link Gio.Cancellable}
|
|
857
886
|
* @returns `true` if the certificate is pinned for the host and purpose
|
|
887
|
+
* @throws GLib.Error
|
|
858
888
|
*/
|
|
859
889
|
function trust_is_certificate_pinned(certificate: Certificate, purpose: string, peer: string, cancellable: Gio.Cancellable | null): boolean;
|
|
860
890
|
|
|
@@ -908,6 +938,7 @@ export namespace Gcr {
|
|
|
908
938
|
* if an error occurred.
|
|
909
939
|
* @param result the {@link Gio.AsyncResult} passed to the callback
|
|
910
940
|
* @returns `true` if the certificate is pinned.
|
|
941
|
+
* @throws GLib.Error
|
|
911
942
|
*/
|
|
912
943
|
function trust_is_certificate_pinned_finish(result: Gio.AsyncResult): boolean;
|
|
913
944
|
|
|
@@ -924,6 +955,7 @@ export namespace Gcr {
|
|
|
924
955
|
* @param peer the peer for this pinned certificate
|
|
925
956
|
* @param cancellable a {@link Gio.Cancellable}
|
|
926
957
|
* @returns `true` if the pinned certificate no longer exists
|
|
958
|
+
* @throws GLib.Error
|
|
927
959
|
*/
|
|
928
960
|
function trust_remove_pinned_certificate(certificate: Certificate, purpose: string, peer: string, cancellable: Gio.Cancellable | null): boolean;
|
|
929
961
|
|
|
@@ -980,6 +1012,7 @@ export namespace Gcr {
|
|
|
980
1012
|
* {@link Gcr.trust_remove_pinned_certificate_async}.
|
|
981
1013
|
* @param result the {@link Gio.AsyncResult} passed to the callback
|
|
982
1014
|
* @returns `true` if the pinned certificate no longer exists
|
|
1015
|
+
* @throws GLib.Error
|
|
983
1016
|
*/
|
|
984
1017
|
function trust_remove_pinned_certificate_finish(result: Gio.AsyncResult): boolean;
|
|
985
1018
|
|
|
@@ -991,14 +1024,14 @@ export namespace Gcr {
|
|
|
991
1024
|
/**
|
|
992
1025
|
* no flags
|
|
993
1026
|
*/
|
|
994
|
-
NONE,
|
|
1027
|
+
NONE = 0,
|
|
995
1028
|
/**
|
|
996
1029
|
* If this flag is specified then no
|
|
997
1030
|
* lookups for anchors or pinned certificates are done, and the resulting chain
|
|
998
1031
|
* will be neither anchored or pinned. Additionally no missing certificate
|
|
999
1032
|
* authorities are looked up in PKCS#11.
|
|
1000
1033
|
*/
|
|
1001
|
-
NO_LOOKUPS,
|
|
1034
|
+
NO_LOOKUPS = 1,
|
|
1002
1035
|
}
|
|
1003
1036
|
|
|
1004
1037
|
|
|
@@ -1006,8 +1039,8 @@ export namespace Gcr {
|
|
|
1006
1039
|
* @gir-type Flags
|
|
1007
1040
|
*/
|
|
1008
1041
|
enum CertificateSectionFlags {
|
|
1009
|
-
NONE,
|
|
1010
|
-
IMPORTANT,
|
|
1042
|
+
NONE = 0,
|
|
1043
|
+
IMPORTANT = 1,
|
|
1011
1044
|
}
|
|
1012
1045
|
|
|
1013
1046
|
|
|
@@ -1212,6 +1245,7 @@ export namespace Gcr {
|
|
|
1212
1245
|
* @param flags chain completion flags
|
|
1213
1246
|
* @param cancellable a {@link Gio.Cancellable} or `null`
|
|
1214
1247
|
* @returns whether the operation completed successfully
|
|
1248
|
+
* @throws GLib.Error
|
|
1215
1249
|
*/
|
|
1216
1250
|
build(purpose: string, peer: string | null, flags: CertificateChainFlags, cancellable: Gio.Cancellable | null): boolean;
|
|
1217
1251
|
|
|
@@ -1333,6 +1367,7 @@ export namespace Gcr {
|
|
|
1333
1367
|
* `gcr_certificate_chain_build_async()`.
|
|
1334
1368
|
* @param result the {@link Gio.AsyncResult} passed to the callback
|
|
1335
1369
|
* @returns whether the operation succeeded
|
|
1370
|
+
* @throws GLib.Error
|
|
1336
1371
|
*/
|
|
1337
1372
|
build_finish(result: Gio.AsyncResult): boolean;
|
|
1338
1373
|
|
|
@@ -1468,17 +1503,20 @@ export namespace Gcr {
|
|
|
1468
1503
|
* Returns a user-displayable description of the OID that identifies the
|
|
1469
1504
|
* extension, if known.
|
|
1470
1505
|
* @returns A user-facing description, or `null` if unknown
|
|
1506
|
+
* @since 4.3.90
|
|
1471
1507
|
*/
|
|
1472
1508
|
get_description(): string | null;
|
|
1473
1509
|
|
|
1474
1510
|
/**
|
|
1475
1511
|
* Returns the OID that identifies the extension
|
|
1512
|
+
* @since 4.3.90
|
|
1476
1513
|
*/
|
|
1477
1514
|
get_oid(): string;
|
|
1478
1515
|
|
|
1479
1516
|
/**
|
|
1480
1517
|
* Returns the raw value in bytes of the extension.
|
|
1481
1518
|
* @returns The raw value date
|
|
1519
|
+
* @since 4.3.90
|
|
1482
1520
|
*/
|
|
1483
1521
|
get_value(): GLib.Bytes;
|
|
1484
1522
|
|
|
@@ -1587,6 +1625,7 @@ export namespace Gcr {
|
|
|
1587
1625
|
* The item type of a {@link Gio.ListModel} can not change during the life of the
|
|
1588
1626
|
* model.
|
|
1589
1627
|
* @returns the {@link GObject.GType} of the items contained in `list`.
|
|
1628
|
+
* @since 2.44
|
|
1590
1629
|
*/
|
|
1591
1630
|
get_item_type(): GObject.GType;
|
|
1592
1631
|
|
|
@@ -1597,6 +1636,7 @@ export namespace Gcr {
|
|
|
1597
1636
|
* less efficient than iterating the list with increasing values for
|
|
1598
1637
|
* `position` until `g_list_model_get_item()` returns `null`.
|
|
1599
1638
|
* @returns the number of items in `list`.
|
|
1639
|
+
* @since 2.44
|
|
1600
1640
|
*/
|
|
1601
1641
|
get_n_items(): number;
|
|
1602
1642
|
|
|
@@ -1615,6 +1655,7 @@ export namespace Gcr {
|
|
|
1615
1655
|
* See also: `g_list_model_get_n_items()`
|
|
1616
1656
|
* @param position the position of the item to fetch
|
|
1617
1657
|
* @returns the object at `position`.
|
|
1658
|
+
* @since 2.44
|
|
1618
1659
|
*/
|
|
1619
1660
|
get_item(position: number): A | null;
|
|
1620
1661
|
|
|
@@ -1642,6 +1683,7 @@ export namespace Gcr {
|
|
|
1642
1683
|
* @param position the position at which `list` changed
|
|
1643
1684
|
* @param removed the number of items removed
|
|
1644
1685
|
* @param added the number of items added
|
|
1686
|
+
* @since 2.44
|
|
1645
1687
|
*/
|
|
1646
1688
|
items_changed(position: number, removed: number, added: number): void;
|
|
1647
1689
|
|
|
@@ -1654,6 +1696,7 @@ export namespace Gcr {
|
|
|
1654
1696
|
*
|
|
1655
1697
|
* The same {@link GObject.Object} instance may not appear more than once in a {@link Gio.ListModel}.
|
|
1656
1698
|
* @param position the position of the item to fetch
|
|
1699
|
+
* @since 2.44
|
|
1657
1700
|
* @virtual
|
|
1658
1701
|
*/
|
|
1659
1702
|
vfunc_get_item(position: number): A | null;
|
|
@@ -1667,6 +1710,7 @@ export namespace Gcr {
|
|
|
1667
1710
|
*
|
|
1668
1711
|
* The item type of a {@link Gio.ListModel} can not change during the life of the
|
|
1669
1712
|
* model.
|
|
1713
|
+
* @since 2.44
|
|
1670
1714
|
* @virtual
|
|
1671
1715
|
*/
|
|
1672
1716
|
vfunc_get_item_type(): GObject.GType;
|
|
@@ -1677,6 +1721,7 @@ export namespace Gcr {
|
|
|
1677
1721
|
* Depending on the model implementation, calling this function may be
|
|
1678
1722
|
* less efficient than iterating the list with increasing values for
|
|
1679
1723
|
* `position` until `g_list_model_get_item()` returns `null`.
|
|
1724
|
+
* @since 2.44
|
|
1680
1725
|
* @virtual
|
|
1681
1726
|
*/
|
|
1682
1727
|
vfunc_get_n_items(): number;
|
|
@@ -1915,6 +1960,7 @@ export namespace Gcr {
|
|
|
1915
1960
|
* The item type of a {@link Gio.ListModel} can not change during the life of the
|
|
1916
1961
|
* model.
|
|
1917
1962
|
* @returns the {@link GObject.GType} of the items contained in `list`.
|
|
1963
|
+
* @since 2.44
|
|
1918
1964
|
*/
|
|
1919
1965
|
get_item_type(): GObject.GType;
|
|
1920
1966
|
|
|
@@ -1925,6 +1971,7 @@ export namespace Gcr {
|
|
|
1925
1971
|
* less efficient than iterating the list with increasing values for
|
|
1926
1972
|
* `position` until `g_list_model_get_item()` returns `null`.
|
|
1927
1973
|
* @returns the number of items in `list`.
|
|
1974
|
+
* @since 2.44
|
|
1928
1975
|
*/
|
|
1929
1976
|
get_n_items(): number;
|
|
1930
1977
|
|
|
@@ -1943,6 +1990,7 @@ export namespace Gcr {
|
|
|
1943
1990
|
* See also: `g_list_model_get_n_items()`
|
|
1944
1991
|
* @param position the position of the item to fetch
|
|
1945
1992
|
* @returns the object at `position`.
|
|
1993
|
+
* @since 2.44
|
|
1946
1994
|
*/
|
|
1947
1995
|
get_item(position: number): A | null;
|
|
1948
1996
|
|
|
@@ -1970,6 +2018,7 @@ export namespace Gcr {
|
|
|
1970
2018
|
* @param position the position at which `list` changed
|
|
1971
2019
|
* @param removed the number of items removed
|
|
1972
2020
|
* @param added the number of items added
|
|
2021
|
+
* @since 2.44
|
|
1973
2022
|
*/
|
|
1974
2023
|
items_changed(position: number, removed: number, added: number): void;
|
|
1975
2024
|
|
|
@@ -1982,6 +2031,7 @@ export namespace Gcr {
|
|
|
1982
2031
|
*
|
|
1983
2032
|
* The same {@link GObject.Object} instance may not appear more than once in a {@link Gio.ListModel}.
|
|
1984
2033
|
* @param position the position of the item to fetch
|
|
2034
|
+
* @since 2.44
|
|
1985
2035
|
* @virtual
|
|
1986
2036
|
*/
|
|
1987
2037
|
vfunc_get_item(position: number): A | null;
|
|
@@ -1995,6 +2045,7 @@ export namespace Gcr {
|
|
|
1995
2045
|
*
|
|
1996
2046
|
* The item type of a {@link Gio.ListModel} can not change during the life of the
|
|
1997
2047
|
* model.
|
|
2048
|
+
* @since 2.44
|
|
1998
2049
|
* @virtual
|
|
1999
2050
|
*/
|
|
2000
2051
|
vfunc_get_item_type(): GObject.GType;
|
|
@@ -2005,6 +2056,7 @@ export namespace Gcr {
|
|
|
2005
2056
|
* Depending on the model implementation, calling this function may be
|
|
2006
2057
|
* less efficient than iterating the list with increasing values for
|
|
2007
2058
|
* `position` until `g_list_model_get_item()` returns `null`.
|
|
2059
|
+
* @since 2.44
|
|
2008
2060
|
* @virtual
|
|
2009
2061
|
*/
|
|
2010
2062
|
vfunc_get_n_items(): number;
|
|
@@ -2100,6 +2152,7 @@ export namespace Gcr {
|
|
|
2100
2152
|
* The item type of a {@link Gio.ListModel} can not change during the life of the
|
|
2101
2153
|
* model.
|
|
2102
2154
|
* @returns the {@link GObject.GType} of the items contained in `list`.
|
|
2155
|
+
* @since 2.44
|
|
2103
2156
|
*/
|
|
2104
2157
|
get_item_type(): GObject.GType;
|
|
2105
2158
|
|
|
@@ -2110,6 +2163,7 @@ export namespace Gcr {
|
|
|
2110
2163
|
* less efficient than iterating the list with increasing values for
|
|
2111
2164
|
* `position` until `g_list_model_get_item()` returns `null`.
|
|
2112
2165
|
* @returns the number of items in `list`.
|
|
2166
|
+
* @since 2.44
|
|
2113
2167
|
*/
|
|
2114
2168
|
get_n_items(): number;
|
|
2115
2169
|
|
|
@@ -2128,6 +2182,7 @@ export namespace Gcr {
|
|
|
2128
2182
|
* See also: `g_list_model_get_n_items()`
|
|
2129
2183
|
* @param position the position of the item to fetch
|
|
2130
2184
|
* @returns the object at `position`.
|
|
2185
|
+
* @since 2.44
|
|
2131
2186
|
*/
|
|
2132
2187
|
get_item(position: number): A | null;
|
|
2133
2188
|
|
|
@@ -2155,6 +2210,7 @@ export namespace Gcr {
|
|
|
2155
2210
|
* @param position the position at which `list` changed
|
|
2156
2211
|
* @param removed the number of items removed
|
|
2157
2212
|
* @param added the number of items added
|
|
2213
|
+
* @since 2.44
|
|
2158
2214
|
*/
|
|
2159
2215
|
items_changed(position: number, removed: number, added: number): void;
|
|
2160
2216
|
|
|
@@ -2167,6 +2223,7 @@ export namespace Gcr {
|
|
|
2167
2223
|
*
|
|
2168
2224
|
* The same {@link GObject.Object} instance may not appear more than once in a {@link Gio.ListModel}.
|
|
2169
2225
|
* @param position the position of the item to fetch
|
|
2226
|
+
* @since 2.44
|
|
2170
2227
|
* @virtual
|
|
2171
2228
|
*/
|
|
2172
2229
|
vfunc_get_item(position: number): A | null;
|
|
@@ -2180,6 +2237,7 @@ export namespace Gcr {
|
|
|
2180
2237
|
*
|
|
2181
2238
|
* The item type of a {@link Gio.ListModel} can not change during the life of the
|
|
2182
2239
|
* model.
|
|
2240
|
+
* @since 2.44
|
|
2183
2241
|
* @virtual
|
|
2184
2242
|
*/
|
|
2185
2243
|
vfunc_get_item_type(): GObject.GType;
|
|
@@ -2190,6 +2248,7 @@ export namespace Gcr {
|
|
|
2190
2248
|
* Depending on the model implementation, calling this function may be
|
|
2191
2249
|
* less efficient than iterating the list with increasing values for
|
|
2192
2250
|
* `position` until `g_list_model_get_item()` returns `null`.
|
|
2251
|
+
* @since 2.44
|
|
2193
2252
|
* @virtual
|
|
2194
2253
|
*/
|
|
2195
2254
|
vfunc_get_n_items(): number;
|
|
@@ -2393,6 +2452,7 @@ export namespace Gcr {
|
|
|
2393
2452
|
* Looks for an extension with the given OID.
|
|
2394
2453
|
* @param oid The OID of the certificate extension
|
|
2395
2454
|
* @returns The certificate extension with the given OID, or `null` if not found.
|
|
2455
|
+
* @since 4.3.90
|
|
2396
2456
|
*/
|
|
2397
2457
|
find_by_oid(oid: string): CertificateExtension | null;
|
|
2398
2458
|
|
|
@@ -2415,6 +2475,7 @@ export namespace Gcr {
|
|
|
2415
2475
|
* The item type of a {@link Gio.ListModel} can not change during the life of the
|
|
2416
2476
|
* model.
|
|
2417
2477
|
* @returns the {@link GObject.GType} of the items contained in `list`.
|
|
2478
|
+
* @since 2.44
|
|
2418
2479
|
*/
|
|
2419
2480
|
get_item_type(): GObject.GType;
|
|
2420
2481
|
|
|
@@ -2425,6 +2486,7 @@ export namespace Gcr {
|
|
|
2425
2486
|
* less efficient than iterating the list with increasing values for
|
|
2426
2487
|
* `position` until `g_list_model_get_item()` returns `null`.
|
|
2427
2488
|
* @returns the number of items in `list`.
|
|
2489
|
+
* @since 2.44
|
|
2428
2490
|
*/
|
|
2429
2491
|
get_n_items(): number;
|
|
2430
2492
|
|
|
@@ -2443,6 +2505,7 @@ export namespace Gcr {
|
|
|
2443
2505
|
* See also: `g_list_model_get_n_items()`
|
|
2444
2506
|
* @param position the position of the item to fetch
|
|
2445
2507
|
* @returns the object at `position`.
|
|
2508
|
+
* @since 2.44
|
|
2446
2509
|
*/
|
|
2447
2510
|
get_item(position: number): A | null;
|
|
2448
2511
|
|
|
@@ -2470,6 +2533,7 @@ export namespace Gcr {
|
|
|
2470
2533
|
* @param position the position at which `list` changed
|
|
2471
2534
|
* @param removed the number of items removed
|
|
2472
2535
|
* @param added the number of items added
|
|
2536
|
+
* @since 2.44
|
|
2473
2537
|
*/
|
|
2474
2538
|
items_changed(position: number, removed: number, added: number): void;
|
|
2475
2539
|
|
|
@@ -2482,6 +2546,7 @@ export namespace Gcr {
|
|
|
2482
2546
|
*
|
|
2483
2547
|
* The same {@link GObject.Object} instance may not appear more than once in a {@link Gio.ListModel}.
|
|
2484
2548
|
* @param position the position of the item to fetch
|
|
2549
|
+
* @since 2.44
|
|
2485
2550
|
* @virtual
|
|
2486
2551
|
*/
|
|
2487
2552
|
vfunc_get_item(position: number): A | null;
|
|
@@ -2495,6 +2560,7 @@ export namespace Gcr {
|
|
|
2495
2560
|
*
|
|
2496
2561
|
* The item type of a {@link Gio.ListModel} can not change during the life of the
|
|
2497
2562
|
* model.
|
|
2563
|
+
* @since 2.44
|
|
2498
2564
|
* @virtual
|
|
2499
2565
|
*/
|
|
2500
2566
|
vfunc_get_item_type(): GObject.GType;
|
|
@@ -2505,6 +2571,7 @@ export namespace Gcr {
|
|
|
2505
2571
|
* Depending on the model implementation, calling this function may be
|
|
2506
2572
|
* less efficient than iterating the list with increasing values for
|
|
2507
2573
|
* `position` until `g_list_model_get_item()` returns `null`.
|
|
2574
|
+
* @since 2.44
|
|
2508
2575
|
* @virtual
|
|
2509
2576
|
*/
|
|
2510
2577
|
vfunc_get_n_items(): number;
|
|
@@ -2581,6 +2648,7 @@ export namespace Gcr {
|
|
|
2581
2648
|
* The item type of a {@link Gio.ListModel} can not change during the life of the
|
|
2582
2649
|
* model.
|
|
2583
2650
|
* @returns the {@link GObject.GType} of the items contained in `list`.
|
|
2651
|
+
* @since 2.44
|
|
2584
2652
|
*/
|
|
2585
2653
|
get_item_type(): GObject.GType;
|
|
2586
2654
|
|
|
@@ -2591,6 +2659,7 @@ export namespace Gcr {
|
|
|
2591
2659
|
* less efficient than iterating the list with increasing values for
|
|
2592
2660
|
* `position` until `g_list_model_get_item()` returns `null`.
|
|
2593
2661
|
* @returns the number of items in `list`.
|
|
2662
|
+
* @since 2.44
|
|
2594
2663
|
*/
|
|
2595
2664
|
get_n_items(): number;
|
|
2596
2665
|
|
|
@@ -2609,6 +2678,7 @@ export namespace Gcr {
|
|
|
2609
2678
|
* See also: `g_list_model_get_n_items()`
|
|
2610
2679
|
* @param position the position of the item to fetch
|
|
2611
2680
|
* @returns the object at `position`.
|
|
2681
|
+
* @since 2.44
|
|
2612
2682
|
*/
|
|
2613
2683
|
get_item(position: number): A | null;
|
|
2614
2684
|
|
|
@@ -2636,6 +2706,7 @@ export namespace Gcr {
|
|
|
2636
2706
|
* @param position the position at which `list` changed
|
|
2637
2707
|
* @param removed the number of items removed
|
|
2638
2708
|
* @param added the number of items added
|
|
2709
|
+
* @since 2.44
|
|
2639
2710
|
*/
|
|
2640
2711
|
items_changed(position: number, removed: number, added: number): void;
|
|
2641
2712
|
|
|
@@ -2648,6 +2719,7 @@ export namespace Gcr {
|
|
|
2648
2719
|
*
|
|
2649
2720
|
* The same {@link GObject.Object} instance may not appear more than once in a {@link Gio.ListModel}.
|
|
2650
2721
|
* @param position the position of the item to fetch
|
|
2722
|
+
* @since 2.44
|
|
2651
2723
|
* @virtual
|
|
2652
2724
|
*/
|
|
2653
2725
|
vfunc_get_item(position: number): A | null;
|
|
@@ -2661,6 +2733,7 @@ export namespace Gcr {
|
|
|
2661
2733
|
*
|
|
2662
2734
|
* The item type of a {@link Gio.ListModel} can not change during the life of the
|
|
2663
2735
|
* model.
|
|
2736
|
+
* @since 2.44
|
|
2664
2737
|
* @virtual
|
|
2665
2738
|
*/
|
|
2666
2739
|
vfunc_get_item_type(): GObject.GType;
|
|
@@ -2671,6 +2744,7 @@ export namespace Gcr {
|
|
|
2671
2744
|
* Depending on the model implementation, calling this function may be
|
|
2672
2745
|
* less efficient than iterating the list with increasing values for
|
|
2673
2746
|
* `position` until `g_list_model_get_item()` returns `null`.
|
|
2747
|
+
* @since 2.44
|
|
2674
2748
|
* @virtual
|
|
2675
2749
|
*/
|
|
2676
2750
|
vfunc_get_n_items(): number;
|
|
@@ -2901,6 +2975,7 @@ export namespace Gcr {
|
|
|
2901
2975
|
* The item type of a {@link Gio.ListModel} can not change during the life of the
|
|
2902
2976
|
* model.
|
|
2903
2977
|
* @returns the {@link GObject.GType} of the items contained in `list`.
|
|
2978
|
+
* @since 2.44
|
|
2904
2979
|
*/
|
|
2905
2980
|
get_item_type(): GObject.GType;
|
|
2906
2981
|
|
|
@@ -2911,6 +2986,7 @@ export namespace Gcr {
|
|
|
2911
2986
|
* less efficient than iterating the list with increasing values for
|
|
2912
2987
|
* `position` until `g_list_model_get_item()` returns `null`.
|
|
2913
2988
|
* @returns the number of items in `list`.
|
|
2989
|
+
* @since 2.44
|
|
2914
2990
|
*/
|
|
2915
2991
|
get_n_items(): number;
|
|
2916
2992
|
|
|
@@ -2929,6 +3005,7 @@ export namespace Gcr {
|
|
|
2929
3005
|
* See also: `g_list_model_get_n_items()`
|
|
2930
3006
|
* @param position the position of the item to fetch
|
|
2931
3007
|
* @returns the object at `position`.
|
|
3008
|
+
* @since 2.44
|
|
2932
3009
|
*/
|
|
2933
3010
|
get_item(position: number): A | null;
|
|
2934
3011
|
|
|
@@ -2956,6 +3033,7 @@ export namespace Gcr {
|
|
|
2956
3033
|
* @param position the position at which `list` changed
|
|
2957
3034
|
* @param removed the number of items removed
|
|
2958
3035
|
* @param added the number of items added
|
|
3036
|
+
* @since 2.44
|
|
2959
3037
|
*/
|
|
2960
3038
|
items_changed(position: number, removed: number, added: number): void;
|
|
2961
3039
|
|
|
@@ -2968,6 +3046,7 @@ export namespace Gcr {
|
|
|
2968
3046
|
*
|
|
2969
3047
|
* The same {@link GObject.Object} instance may not appear more than once in a {@link Gio.ListModel}.
|
|
2970
3048
|
* @param position the position of the item to fetch
|
|
3049
|
+
* @since 2.44
|
|
2971
3050
|
* @virtual
|
|
2972
3051
|
*/
|
|
2973
3052
|
vfunc_get_item(position: number): A | null;
|
|
@@ -2981,6 +3060,7 @@ export namespace Gcr {
|
|
|
2981
3060
|
*
|
|
2982
3061
|
* The item type of a {@link Gio.ListModel} can not change during the life of the
|
|
2983
3062
|
* model.
|
|
3063
|
+
* @since 2.44
|
|
2984
3064
|
* @virtual
|
|
2985
3065
|
*/
|
|
2986
3066
|
vfunc_get_item_type(): GObject.GType;
|
|
@@ -2991,6 +3071,7 @@ export namespace Gcr {
|
|
|
2991
3071
|
* Depending on the model implementation, calling this function may be
|
|
2992
3072
|
* less efficient than iterating the list with increasing values for
|
|
2993
3073
|
* `position` until `g_list_model_get_item()` returns `null`.
|
|
3074
|
+
* @since 2.44
|
|
2994
3075
|
* @virtual
|
|
2995
3076
|
*/
|
|
2996
3077
|
vfunc_get_n_items(): number;
|
|
@@ -3164,6 +3245,7 @@ export namespace Gcr {
|
|
|
3164
3245
|
* This call may block as it signs the request using the private key.
|
|
3165
3246
|
* @param cancellable a cancellation object
|
|
3166
3247
|
* @returns whether certificate request was successfully completed or not
|
|
3248
|
+
* @throws GLib.Error
|
|
3167
3249
|
*/
|
|
3168
3250
|
complete(cancellable: Gio.Cancellable | null): boolean;
|
|
3169
3251
|
|
|
@@ -3201,6 +3283,7 @@ export namespace Gcr {
|
|
|
3201
3283
|
* request.
|
|
3202
3284
|
* @param result result of the asynchronous operation
|
|
3203
3285
|
* @returns whether certificate request was successfully completed or not
|
|
3286
|
+
* @throws GLib.Error
|
|
3204
3287
|
*/
|
|
3205
3288
|
complete_finish(result: Gio.AsyncResult): boolean;
|
|
3206
3289
|
|
|
@@ -3514,6 +3597,7 @@ export namespace Gcr {
|
|
|
3514
3597
|
* The item type of a {@link Gio.ListModel} can not change during the life of the
|
|
3515
3598
|
* model.
|
|
3516
3599
|
* @returns the {@link GObject.GType} of the items contained in `list`.
|
|
3600
|
+
* @since 2.44
|
|
3517
3601
|
*/
|
|
3518
3602
|
get_item_type(): GObject.GType;
|
|
3519
3603
|
|
|
@@ -3524,6 +3608,7 @@ export namespace Gcr {
|
|
|
3524
3608
|
* less efficient than iterating the list with increasing values for
|
|
3525
3609
|
* `position` until `g_list_model_get_item()` returns `null`.
|
|
3526
3610
|
* @returns the number of items in `list`.
|
|
3611
|
+
* @since 2.44
|
|
3527
3612
|
*/
|
|
3528
3613
|
get_n_items(): number;
|
|
3529
3614
|
|
|
@@ -3542,6 +3627,7 @@ export namespace Gcr {
|
|
|
3542
3627
|
* See also: `g_list_model_get_n_items()`
|
|
3543
3628
|
* @param position the position of the item to fetch
|
|
3544
3629
|
* @returns the object at `position`.
|
|
3630
|
+
* @since 2.44
|
|
3545
3631
|
*/
|
|
3546
3632
|
get_item(position: number): A | null;
|
|
3547
3633
|
|
|
@@ -3569,6 +3655,7 @@ export namespace Gcr {
|
|
|
3569
3655
|
* @param position the position at which `list` changed
|
|
3570
3656
|
* @param removed the number of items removed
|
|
3571
3657
|
* @param added the number of items added
|
|
3658
|
+
* @since 2.44
|
|
3572
3659
|
*/
|
|
3573
3660
|
items_changed(position: number, removed: number, added: number): void;
|
|
3574
3661
|
|
|
@@ -3581,6 +3668,7 @@ export namespace Gcr {
|
|
|
3581
3668
|
*
|
|
3582
3669
|
* The same {@link GObject.Object} instance may not appear more than once in a {@link Gio.ListModel}.
|
|
3583
3670
|
* @param position the position of the item to fetch
|
|
3671
|
+
* @since 2.44
|
|
3584
3672
|
* @virtual
|
|
3585
3673
|
*/
|
|
3586
3674
|
vfunc_get_item(position: number): A | null;
|
|
@@ -3594,6 +3682,7 @@ export namespace Gcr {
|
|
|
3594
3682
|
*
|
|
3595
3683
|
* The item type of a {@link Gio.ListModel} can not change during the life of the
|
|
3596
3684
|
* model.
|
|
3685
|
+
* @since 2.44
|
|
3597
3686
|
* @virtual
|
|
3598
3687
|
*/
|
|
3599
3688
|
vfunc_get_item_type(): GObject.GType;
|
|
@@ -3604,6 +3693,7 @@ export namespace Gcr {
|
|
|
3604
3693
|
* Depending on the model implementation, calling this function may be
|
|
3605
3694
|
* less efficient than iterating the list with increasing values for
|
|
3606
3695
|
* `position` until `g_list_model_get_item()` returns `null`.
|
|
3696
|
+
* @since 2.44
|
|
3607
3697
|
* @virtual
|
|
3608
3698
|
*/
|
|
3609
3699
|
vfunc_get_n_items(): number;
|
|
@@ -3628,7 +3718,7 @@ export namespace Gcr {
|
|
|
3628
3718
|
* @signal
|
|
3629
3719
|
* @run-last
|
|
3630
3720
|
*/
|
|
3631
|
-
authenticate: (
|
|
3721
|
+
authenticate: (count: number) => boolean | void;
|
|
3632
3722
|
/**
|
|
3633
3723
|
* This signal is emitted when an item is sucessfully parsed. To access
|
|
3634
3724
|
* the information about the item use the `gcr_parser_get_parsed_label()`,
|
|
@@ -3849,6 +3939,7 @@ export namespace Gcr {
|
|
|
3849
3939
|
* `Gcr.Parser::authenticate` signals may fire during the parsing.
|
|
3850
3940
|
* @param data the data to parse
|
|
3851
3941
|
* @returns Whether the data was parsed successfully or not.
|
|
3942
|
+
* @throws GLib.Error
|
|
3852
3943
|
*/
|
|
3853
3944
|
parse_bytes(data: GLib.Bytes | Uint8Array): boolean;
|
|
3854
3945
|
|
|
@@ -3860,6 +3951,7 @@ export namespace Gcr {
|
|
|
3860
3951
|
* this.
|
|
3861
3952
|
* @param data the data to parse
|
|
3862
3953
|
* @returns Whether the data was parsed successfully or not.
|
|
3954
|
+
* @throws GLib.Error
|
|
3863
3955
|
*/
|
|
3864
3956
|
parse_data(data: Uint8Array | string): boolean;
|
|
3865
3957
|
|
|
@@ -3873,6 +3965,7 @@ export namespace Gcr {
|
|
|
3873
3965
|
* @param input The input stream
|
|
3874
3966
|
* @param cancellable An optional cancellation object
|
|
3875
3967
|
* @returns Whether the parsing completed successfully or not.
|
|
3968
|
+
* @throws GLib.Error
|
|
3876
3969
|
*/
|
|
3877
3970
|
parse_stream(input: Gio.InputStream, cancellable: Gio.Cancellable | null): boolean;
|
|
3878
3971
|
|
|
@@ -3915,6 +4008,7 @@ export namespace Gcr {
|
|
|
3915
4008
|
* Complete an operation to parse a stream.
|
|
3916
4009
|
* @param result The operation result
|
|
3917
4010
|
* @returns Whether the parsing completed successfully or not.
|
|
4011
|
+
* @throws GLib.Error
|
|
3918
4012
|
*/
|
|
3919
4013
|
parse_stream_finish(result: Gio.AsyncResult): boolean;
|
|
3920
4014
|
|
|
@@ -4335,6 +4429,7 @@ export namespace Gcr {
|
|
|
4335
4429
|
* Creates a {@link CertificateExtensionList} that can be used to inspect the
|
|
4336
4430
|
* extensions of this certificate.
|
|
4337
4431
|
* @returns The certificate's extensions
|
|
4432
|
+
* @since 4.3.90
|
|
4338
4433
|
*/
|
|
4339
4434
|
list_extensions(): CertificateExtensionList;
|
|
4340
4435
|
|
|
@@ -4846,6 +4941,7 @@ export namespace Gcr {
|
|
|
4846
4941
|
* Creates a {@link CertificateExtensionList} that can be used to inspect the
|
|
4847
4942
|
* extensions of this certificate.
|
|
4848
4943
|
* @returns The certificate's extensions
|
|
4944
|
+
* @since 4.3.90
|
|
4849
4945
|
*/
|
|
4850
4946
|
list_extensions(): CertificateExtensionList;
|
|
4851
4947
|
|
|
@@ -5140,6 +5236,7 @@ export namespace Gcr {
|
|
|
5140
5236
|
* still closed and may not be further used.
|
|
5141
5237
|
* @param cancellable an optional cancellation object
|
|
5142
5238
|
* @returns whether close was cleanly completed
|
|
5239
|
+
* @throws GLib.Error
|
|
5143
5240
|
*/
|
|
5144
5241
|
close(cancellable: Gio.Cancellable | null): boolean;
|
|
5145
5242
|
|
|
@@ -5188,6 +5285,7 @@ export namespace Gcr {
|
|
|
5188
5285
|
* still closed and may not be further used.
|
|
5189
5286
|
* @param result asynchronous operation result
|
|
5190
5287
|
* @returns whether close was cleanly completed
|
|
5288
|
+
* @throws GLib.Error
|
|
5191
5289
|
*/
|
|
5192
5290
|
close_finish(result: Gio.AsyncResult): boolean;
|
|
5193
5291
|
|
|
@@ -5416,6 +5514,7 @@ export namespace Gcr {
|
|
|
5416
5514
|
* an error occurs. Check the `error` argument to tell the difference.
|
|
5417
5515
|
* @param cancellable optional cancellation object
|
|
5418
5516
|
* @returns the reply from the prompt
|
|
5517
|
+
* @throws GLib.Error
|
|
5419
5518
|
*/
|
|
5420
5519
|
confirm(cancellable: Gio.Cancellable | null): PromptReply;
|
|
5421
5520
|
|
|
@@ -5459,6 +5558,7 @@ export namespace Gcr {
|
|
|
5459
5558
|
* an error occurs. Check the `error` argument to tell the difference.
|
|
5460
5559
|
* @param result asynchronous result passed to callback
|
|
5461
5560
|
* @returns the reply from the prompt
|
|
5561
|
+
* @throws GLib.Error
|
|
5462
5562
|
*/
|
|
5463
5563
|
confirm_finish(result: Gio.AsyncResult): PromptReply;
|
|
5464
5564
|
|
|
@@ -5476,6 +5576,7 @@ export namespace Gcr {
|
|
|
5476
5576
|
* an error occurs. Check the `error` argument to tell the difference.
|
|
5477
5577
|
* @param cancellable optional cancellation object
|
|
5478
5578
|
* @returns the reply from the prompt
|
|
5579
|
+
* @throws GLib.Error
|
|
5479
5580
|
*/
|
|
5480
5581
|
confirm_run(cancellable: Gio.Cancellable | null): PromptReply;
|
|
5481
5582
|
|
|
@@ -5596,6 +5697,7 @@ export namespace Gcr {
|
|
|
5596
5697
|
* `error` argument to tell the difference.
|
|
5597
5698
|
* @param cancellable optional cancellation object
|
|
5598
5699
|
* @returns the password owned by the prompt, or `null`
|
|
5700
|
+
* @throws GLib.Error
|
|
5599
5701
|
*/
|
|
5600
5702
|
password(cancellable: Gio.Cancellable | null): string;
|
|
5601
5703
|
|
|
@@ -5639,6 +5741,7 @@ export namespace Gcr {
|
|
|
5639
5741
|
* `error` argument to tell the difference.
|
|
5640
5742
|
* @param result asynchronous result passed to callback
|
|
5641
5743
|
* @returns the password owned by the prompt, or `null`
|
|
5744
|
+
* @throws GLib.Error
|
|
5642
5745
|
*/
|
|
5643
5746
|
password_finish(result: Gio.AsyncResult): string;
|
|
5644
5747
|
|
|
@@ -5658,6 +5761,7 @@ export namespace Gcr {
|
|
|
5658
5761
|
* `error` argument to tell the difference.
|
|
5659
5762
|
* @param cancellable optional cancellation object
|
|
5660
5763
|
* @returns the password owned by the prompt, or `null`
|
|
5764
|
+
* @throws GLib.Error
|
|
5661
5765
|
*/
|
|
5662
5766
|
password_run(cancellable: Gio.Cancellable | null): string;
|
|
5663
5767
|
|
|
@@ -5857,6 +5961,7 @@ export namespace Gcr {
|
|
|
5857
5961
|
* any interface methods.
|
|
5858
5962
|
* @param io_priority the [I/O priority](iface.AsyncResult.html#io-priority) of the operation
|
|
5859
5963
|
* @param cancellable optional {@link Gio.Cancellable} object, `null` to ignore.
|
|
5964
|
+
* @since 2.22
|
|
5860
5965
|
*/
|
|
5861
5966
|
init_async(io_priority: number, cancellable: Gio.Cancellable | null): globalThis.Promise<boolean>;
|
|
5862
5967
|
|
|
@@ -5900,6 +6005,7 @@ export namespace Gcr {
|
|
|
5900
6005
|
* @param io_priority the [I/O priority](iface.AsyncResult.html#io-priority) of the operation
|
|
5901
6006
|
* @param cancellable optional {@link Gio.Cancellable} object, `null` to ignore.
|
|
5902
6007
|
* @param callback a {@link Gio.AsyncReadyCallback} to call when the request is satisfied
|
|
6008
|
+
* @since 2.22
|
|
5903
6009
|
*/
|
|
5904
6010
|
init_async(io_priority: number, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void;
|
|
5905
6011
|
|
|
@@ -5943,6 +6049,7 @@ export namespace Gcr {
|
|
|
5943
6049
|
* @param io_priority the [I/O priority](iface.AsyncResult.html#io-priority) of the operation
|
|
5944
6050
|
* @param cancellable optional {@link Gio.Cancellable} object, `null` to ignore.
|
|
5945
6051
|
* @param callback a {@link Gio.AsyncReadyCallback} to call when the request is satisfied
|
|
6052
|
+
* @since 2.22
|
|
5946
6053
|
*/
|
|
5947
6054
|
init_async(io_priority: number, cancellable: Gio.Cancellable | null, callback?: Gio.AsyncReadyCallback<this> | null): globalThis.Promise<boolean> | void;
|
|
5948
6055
|
|
|
@@ -5951,6 +6058,8 @@ export namespace Gcr {
|
|
|
5951
6058
|
* See `g_async_initable_init_async()`.
|
|
5952
6059
|
* @param res a {@link Gio.AsyncResult}.
|
|
5953
6060
|
* @returns `true` if successful. If an error has occurred, this function will return `false` and set `error` appropriately if present.
|
|
6061
|
+
* @since 2.22
|
|
6062
|
+
* @throws GLib.Error
|
|
5954
6063
|
*/
|
|
5955
6064
|
init_finish(res: Gio.AsyncResult): boolean;
|
|
5956
6065
|
|
|
@@ -5959,6 +6068,8 @@ export namespace Gcr {
|
|
|
5959
6068
|
* calls, returning the created object or `null` on error.
|
|
5960
6069
|
* @param res the {@link Gio.AsyncResult} from the callback
|
|
5961
6070
|
* @returns a newly created {@link GObject.Object}, or `null` on error. Free with `g_object_unref()`.
|
|
6071
|
+
* @since 2.22
|
|
6072
|
+
* @throws GLib.Error
|
|
5962
6073
|
*/
|
|
5963
6074
|
new_finish(res: Gio.AsyncResult): SystemPrompt;
|
|
5964
6075
|
|
|
@@ -6002,6 +6113,7 @@ export namespace Gcr {
|
|
|
6002
6113
|
* @param io_priority the [I/O priority](iface.AsyncResult.html#io-priority) of the operation
|
|
6003
6114
|
* @param cancellable optional {@link Gio.Cancellable} object, `null` to ignore.
|
|
6004
6115
|
* @param callback a {@link Gio.AsyncReadyCallback} to call when the request is satisfied
|
|
6116
|
+
* @since 2.22
|
|
6005
6117
|
* @virtual
|
|
6006
6118
|
*/
|
|
6007
6119
|
vfunc_init_async(io_priority: number, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void;
|
|
@@ -6010,6 +6122,7 @@ export namespace Gcr {
|
|
|
6010
6122
|
* Finishes asynchronous initialization and returns the result.
|
|
6011
6123
|
* See `g_async_initable_init_async()`.
|
|
6012
6124
|
* @param res a {@link Gio.AsyncResult}.
|
|
6125
|
+
* @since 2.22
|
|
6013
6126
|
* @virtual
|
|
6014
6127
|
*/
|
|
6015
6128
|
vfunc_init_finish(res: Gio.AsyncResult): boolean;
|
|
@@ -6055,6 +6168,8 @@ export namespace Gcr {
|
|
|
6055
6168
|
* instance.
|
|
6056
6169
|
* @param cancellable optional {@link Gio.Cancellable} object, `null` to ignore.
|
|
6057
6170
|
* @returns `true` if successful. If an error has occurred, this function will return `false` and set `error` appropriately if present.
|
|
6171
|
+
* @since 2.22
|
|
6172
|
+
* @throws GLib.Error
|
|
6058
6173
|
*/
|
|
6059
6174
|
init(cancellable: Gio.Cancellable | null): boolean;
|
|
6060
6175
|
|
|
@@ -6098,6 +6213,7 @@ export namespace Gcr {
|
|
|
6098
6213
|
* on the result of `g_object_new()`, regardless of whether it is in fact a new
|
|
6099
6214
|
* instance.
|
|
6100
6215
|
* @param cancellable optional {@link Gio.Cancellable} object, `null` to ignore.
|
|
6216
|
+
* @since 2.22
|
|
6101
6217
|
* @virtual
|
|
6102
6218
|
*/
|
|
6103
6219
|
vfunc_init(cancellable: Gio.Cancellable | null): boolean;
|
|
@@ -6873,6 +6989,7 @@ export namespace Gcr {
|
|
|
6873
6989
|
* Creates a {@link CertificateExtensionList} that can be used to inspect the
|
|
6874
6990
|
* extensions of this certificate.
|
|
6875
6991
|
* @returns The certificate's extensions
|
|
6992
|
+
* @since 4.3.90
|
|
6876
6993
|
*/
|
|
6877
6994
|
list_extensions(): CertificateExtensionList;
|
|
6878
6995
|
|
|
@@ -6976,6 +7093,7 @@ export namespace Gcr {
|
|
|
6976
7093
|
* @param builder supplemented attributes
|
|
6977
7094
|
* @param cancellable optional cancellable object
|
|
6978
7095
|
* @returns {@link Gio.TlsInteractionResult.HANDLED} if successful or {@link Gio.TlsInteractionResult.FAILED}
|
|
7096
|
+
* @throws GLib.Error
|
|
6979
7097
|
*/
|
|
6980
7098
|
supplement(builder: Gck.Builder, cancellable: Gio.Cancellable | null): Gio.TlsInteractionResult;
|
|
6981
7099
|
|
|
@@ -7021,6 +7139,7 @@ export namespace Gcr {
|
|
|
7021
7139
|
* with {@link Gio.IOErrorEnum.CANCELLED}.
|
|
7022
7140
|
* @param result the asynchronous result
|
|
7023
7141
|
* @returns {@link Gio.TlsInteractionResult.HANDLED} if successful or {@link Gio.TlsInteractionResult.FAILED}
|
|
7142
|
+
* @throws GLib.Error
|
|
7024
7143
|
*/
|
|
7025
7144
|
supplement_finish(result: Gio.AsyncResult): Gio.TlsInteractionResult;
|
|
7026
7145
|
|
|
@@ -7195,6 +7314,7 @@ export namespace Gcr {
|
|
|
7195
7314
|
* Complete an asynchronous operation to import queued items.
|
|
7196
7315
|
* @param result an asynchronous result
|
|
7197
7316
|
* @returns whether the import succeeded or failed
|
|
7317
|
+
* @throws GLib.Error
|
|
7198
7318
|
*/
|
|
7199
7319
|
import_finish(result: Gio.AsyncResult): boolean;
|
|
7200
7320
|
|
|
@@ -7549,6 +7669,7 @@ export namespace Gcr {
|
|
|
7549
7669
|
* an error occurs. Check the `error` argument to tell the difference.
|
|
7550
7670
|
* @param cancellable optional cancellation object
|
|
7551
7671
|
* @returns the reply from the prompt
|
|
7672
|
+
* @throws GLib.Error
|
|
7552
7673
|
*/
|
|
7553
7674
|
confirm(cancellable: Gio.Cancellable | null): PromptReply;
|
|
7554
7675
|
|
|
@@ -7592,6 +7713,7 @@ export namespace Gcr {
|
|
|
7592
7713
|
* an error occurs. Check the `error` argument to tell the difference.
|
|
7593
7714
|
* @param result asynchronous result passed to callback
|
|
7594
7715
|
* @returns the reply from the prompt
|
|
7716
|
+
* @throws GLib.Error
|
|
7595
7717
|
*/
|
|
7596
7718
|
confirm_finish(result: Gio.AsyncResult): PromptReply;
|
|
7597
7719
|
|
|
@@ -7609,6 +7731,7 @@ export namespace Gcr {
|
|
|
7609
7731
|
* an error occurs. Check the `error` argument to tell the difference.
|
|
7610
7732
|
* @param cancellable optional cancellation object
|
|
7611
7733
|
* @returns the reply from the prompt
|
|
7734
|
+
* @throws GLib.Error
|
|
7612
7735
|
*/
|
|
7613
7736
|
confirm_run(cancellable: Gio.Cancellable | null): PromptReply;
|
|
7614
7737
|
|
|
@@ -7729,6 +7852,7 @@ export namespace Gcr {
|
|
|
7729
7852
|
* `error` argument to tell the difference.
|
|
7730
7853
|
* @param cancellable optional cancellation object
|
|
7731
7854
|
* @returns the password owned by the prompt, or `null`
|
|
7855
|
+
* @throws GLib.Error
|
|
7732
7856
|
*/
|
|
7733
7857
|
password(cancellable: Gio.Cancellable | null): string;
|
|
7734
7858
|
|
|
@@ -7772,6 +7896,7 @@ export namespace Gcr {
|
|
|
7772
7896
|
* `error` argument to tell the difference.
|
|
7773
7897
|
* @param result asynchronous result passed to callback
|
|
7774
7898
|
* @returns the password owned by the prompt, or `null`
|
|
7899
|
+
* @throws GLib.Error
|
|
7775
7900
|
*/
|
|
7776
7901
|
password_finish(result: Gio.AsyncResult): string;
|
|
7777
7902
|
|
|
@@ -7791,6 +7916,7 @@ export namespace Gcr {
|
|
|
7791
7916
|
* `error` argument to tell the difference.
|
|
7792
7917
|
* @param cancellable optional cancellation object
|
|
7793
7918
|
* @returns the password owned by the prompt, or `null`
|
|
7919
|
+
* @throws GLib.Error
|
|
7794
7920
|
*/
|
|
7795
7921
|
password_run(cancellable: Gio.Cancellable | null): string;
|
|
7796
7922
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@girs/gcr-4",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.5.0",
|
|
4
|
+
"libraryVersion": "4.4.0",
|
|
4
5
|
"description": "GJS TypeScript type definitions for Gcr-4, generated from library version 4.4.0",
|
|
5
6
|
"type": "module",
|
|
6
7
|
"module": "gcr-4.js",
|
|
@@ -31,12 +32,12 @@
|
|
|
31
32
|
"test": "tsc --project tsconfig.json"
|
|
32
33
|
},
|
|
33
34
|
"dependencies": {
|
|
34
|
-
"@girs/gjs": "4.0
|
|
35
|
-
"@girs/gio-2.0": "
|
|
36
|
-
"@girs/gobject-2.0": "
|
|
37
|
-
"@girs/glib-2.0": "
|
|
38
|
-
"@girs/gmodule-2.0": "
|
|
39
|
-
"@girs/gck-2": "4.
|
|
35
|
+
"@girs/gjs": "^4.5.0",
|
|
36
|
+
"@girs/gio-2.0": "^4.5.0",
|
|
37
|
+
"@girs/gobject-2.0": "^4.5.0",
|
|
38
|
+
"@girs/glib-2.0": "^4.5.0",
|
|
39
|
+
"@girs/gmodule-2.0": "^4.5.0",
|
|
40
|
+
"@girs/gck-2": "^4.5.0" },
|
|
40
41
|
"devDependencies": {
|
|
41
42
|
"typescript": "*"
|
|
42
43
|
},
|