@girs/cryptui-0.0 0.0.0-4.0.0-beta.3
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 +86 -0
- package/cryptui-0.0-ambient.d.ts +12 -0
- package/cryptui-0.0-ambient.js +2 -0
- package/cryptui-0.0-import.d.ts +12 -0
- package/cryptui-0.0-import.js +3 -0
- package/cryptui-0.0.d.ts +261 -0
- package/cryptui-0.0.js +6 -0
- package/package.json +65 -0
- package/tsconfig.json +23 -0
- package/typedoc.json +7 -0
package/README.md
ADDED
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
|
|
2
|
+
# CryptUI-0.0
|
|
3
|
+
|
|
4
|
+

|
|
5
|
+

|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
GJS TypeScript type definitions for CryptUI-0.0, generated from library version 0.0.0 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v4.0.0-beta.3.
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
## Install
|
|
12
|
+
|
|
13
|
+
To use this type definitions, install them with NPM:
|
|
14
|
+
```bash
|
|
15
|
+
npm install @girs/cryptui-0.0
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
## Usage
|
|
19
|
+
|
|
20
|
+
You can import this package into your project like this:
|
|
21
|
+
```ts
|
|
22
|
+
import CryptUI from '@girs/cryptui-0.0';
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
### Ambient Modules
|
|
26
|
+
|
|
27
|
+
You can also use [ambient modules](https://github.com/gjsify/ts-for-gir/tree/main/packages/cli#ambient-modules) to import this module like you would do this in JavaScript.
|
|
28
|
+
For this you need to include `@girs/cryptui-0.0` or `@girs/cryptui-0.0/ambient` in your `tsconfig` or entry point Typescript file:
|
|
29
|
+
|
|
30
|
+
`index.ts`:
|
|
31
|
+
```ts
|
|
32
|
+
import '@girs/cryptui-0.0'
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
`tsconfig.json`:
|
|
36
|
+
```json
|
|
37
|
+
{
|
|
38
|
+
"compilerOptions": {
|
|
39
|
+
...
|
|
40
|
+
},
|
|
41
|
+
"include": ["@girs/cryptui-0.0"],
|
|
42
|
+
...
|
|
43
|
+
}
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
Now you can import the ambient module with TypeScript support:
|
|
47
|
+
|
|
48
|
+
```ts
|
|
49
|
+
import CryptUI from 'gi://CryptUI?version=0.0';
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
### Global import
|
|
53
|
+
|
|
54
|
+
You can also import the module with Typescript support using the global `imports.gi` object of GJS.
|
|
55
|
+
For this you need to include `@girs/cryptui-0.0` or `@girs/cryptui-0.0/import` in your `tsconfig` or entry point Typescript file:
|
|
56
|
+
|
|
57
|
+
`index.ts`:
|
|
58
|
+
```ts
|
|
59
|
+
import '@girs/cryptui-0.0'
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
`tsconfig.json`:
|
|
63
|
+
```json
|
|
64
|
+
{
|
|
65
|
+
"compilerOptions": {
|
|
66
|
+
...
|
|
67
|
+
},
|
|
68
|
+
"include": ["@girs/cryptui-0.0"],
|
|
69
|
+
...
|
|
70
|
+
}
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
Now you have also type support for this, too:
|
|
74
|
+
|
|
75
|
+
```ts
|
|
76
|
+
const CryptUI = imports.gi.CryptUI;
|
|
77
|
+
```
|
|
78
|
+
|
|
79
|
+
### Bundle
|
|
80
|
+
|
|
81
|
+
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).
|
|
82
|
+
|
|
83
|
+
## Other packages
|
|
84
|
+
|
|
85
|
+
All existing pre-generated packages can be found on [gjsify/types](https://github.com/gjsify/types).
|
|
86
|
+
|
package/cryptui-0.0.d.ts
ADDED
|
@@ -0,0 +1,261 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Type Definitions for Gjs (https://gjs.guide/)
|
|
3
|
+
*
|
|
4
|
+
* These type definitions are automatically generated, do not edit them by hand.
|
|
5
|
+
* If you found a bug fix it in `ts-for-gir` or create a bug report on https://github.com/gjsify/ts-for-gir
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
import './cryptui-0.0-ambient.d.ts';
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* CryptUI-0.0
|
|
12
|
+
*/
|
|
13
|
+
|
|
14
|
+
import type Gtk from '@girs/gtk-3.0';
|
|
15
|
+
import type xlib from '@girs/xlib-2.0';
|
|
16
|
+
import type Gdk from '@girs/gdk-3.0';
|
|
17
|
+
import type cairo from '@girs/cairo-1.0';
|
|
18
|
+
import type GObject from '@girs/gobject-2.0';
|
|
19
|
+
import type GLib from '@girs/glib-2.0';
|
|
20
|
+
import type Pango from '@girs/pango-1.0';
|
|
21
|
+
import type HarfBuzz from '@girs/harfbuzz-0.0';
|
|
22
|
+
import type freetype2 from '@girs/freetype2-2.0';
|
|
23
|
+
import type Gio from '@girs/gio-2.0';
|
|
24
|
+
import type GdkPixbuf from '@girs/gdkpixbuf-2.0';
|
|
25
|
+
import type GModule from '@girs/gmodule-2.0';
|
|
26
|
+
import type Atk from '@girs/atk-1.0';
|
|
27
|
+
|
|
28
|
+
export namespace CryptUI {
|
|
29
|
+
/**
|
|
30
|
+
* Used in key properties to indicate what kind of key it is
|
|
31
|
+
*
|
|
32
|
+
* Never ever change a values already present. These values are used
|
|
33
|
+
* across applications, DBus etc...
|
|
34
|
+
*/
|
|
35
|
+
enum EncType {
|
|
36
|
+
/**
|
|
37
|
+
* the key is none of the below types
|
|
38
|
+
*/
|
|
39
|
+
NONE,
|
|
40
|
+
/**
|
|
41
|
+
* the key's type is symmetric
|
|
42
|
+
*/
|
|
43
|
+
SYMMETRIC,
|
|
44
|
+
/**
|
|
45
|
+
* the key's type is public
|
|
46
|
+
*/
|
|
47
|
+
PUBLIC,
|
|
48
|
+
/**
|
|
49
|
+
* the key's type is private
|
|
50
|
+
*/
|
|
51
|
+
PRIVATE,
|
|
52
|
+
/**
|
|
53
|
+
* for internal use only
|
|
54
|
+
*/
|
|
55
|
+
MAXVALUE,
|
|
56
|
+
}
|
|
57
|
+
enum KeyChooserMode {
|
|
58
|
+
RECIPIENTS,
|
|
59
|
+
SIGNER,
|
|
60
|
+
SUPPORT_SYMMETRIC,
|
|
61
|
+
MUSTSIGN,
|
|
62
|
+
}
|
|
63
|
+
/**
|
|
64
|
+
* Used in key properties to indicate a key's status. These values are
|
|
65
|
+
* logically OR'd together.
|
|
66
|
+
*
|
|
67
|
+
* Never ever change a values already present. These values are used
|
|
68
|
+
* across applications, DBus etc...
|
|
69
|
+
*/
|
|
70
|
+
enum KeyFlags {
|
|
71
|
+
/**
|
|
72
|
+
* whether the key is valid
|
|
73
|
+
*/
|
|
74
|
+
IS_VALID,
|
|
75
|
+
/**
|
|
76
|
+
* whether the key can encrypt
|
|
77
|
+
*/
|
|
78
|
+
CAN_ENCRYPT,
|
|
79
|
+
/**
|
|
80
|
+
* whether the key can sign
|
|
81
|
+
*/
|
|
82
|
+
CAN_SIGN,
|
|
83
|
+
/**
|
|
84
|
+
* whether the key is expired
|
|
85
|
+
*/
|
|
86
|
+
EXPIRED,
|
|
87
|
+
/**
|
|
88
|
+
* whether the key is revoked
|
|
89
|
+
*/
|
|
90
|
+
REVOKED,
|
|
91
|
+
/**
|
|
92
|
+
* whether the key is disabled
|
|
93
|
+
*/
|
|
94
|
+
DISABLED,
|
|
95
|
+
/**
|
|
96
|
+
* whether the key is trusted
|
|
97
|
+
*/
|
|
98
|
+
TRUSTED,
|
|
99
|
+
/**
|
|
100
|
+
* whether the key is exportable
|
|
101
|
+
*/
|
|
102
|
+
EXPORTABLE,
|
|
103
|
+
}
|
|
104
|
+
enum KeyStoreMode {
|
|
105
|
+
ALL,
|
|
106
|
+
SELECTED,
|
|
107
|
+
RESULTS,
|
|
108
|
+
}
|
|
109
|
+
/**
|
|
110
|
+
* Indicates where a key is located.
|
|
111
|
+
*
|
|
112
|
+
* Never ever change a values already present. These values are used
|
|
113
|
+
* across applications, DBus etc...
|
|
114
|
+
*/
|
|
115
|
+
enum Location {
|
|
116
|
+
/**
|
|
117
|
+
* An invalid key
|
|
118
|
+
*/
|
|
119
|
+
INVALID,
|
|
120
|
+
/**
|
|
121
|
+
* A key we don't know anything about
|
|
122
|
+
*/
|
|
123
|
+
MISSING,
|
|
124
|
+
/**
|
|
125
|
+
* A key we're searching for but haven't found yet
|
|
126
|
+
*/
|
|
127
|
+
SEARCHING,
|
|
128
|
+
/**
|
|
129
|
+
* A key that we've found is present remotely
|
|
130
|
+
*/
|
|
131
|
+
REMOTE,
|
|
132
|
+
/**
|
|
133
|
+
* A key on the local machine
|
|
134
|
+
*/
|
|
135
|
+
LOCAL,
|
|
136
|
+
}
|
|
137
|
+
/**
|
|
138
|
+
* What the validity of the key is.
|
|
139
|
+
*
|
|
140
|
+
* Never ever change a values already present. These values are used
|
|
141
|
+
* across applications, DBus etc...
|
|
142
|
+
*/
|
|
143
|
+
enum Validity {
|
|
144
|
+
/**
|
|
145
|
+
* the key is revoked
|
|
146
|
+
*/
|
|
147
|
+
REVOKED,
|
|
148
|
+
/**
|
|
149
|
+
* the key is disabled
|
|
150
|
+
*/
|
|
151
|
+
DISABLED,
|
|
152
|
+
/**
|
|
153
|
+
* the key has never been valid
|
|
154
|
+
*/
|
|
155
|
+
NEVER,
|
|
156
|
+
/**
|
|
157
|
+
* the key's validity is unknown
|
|
158
|
+
*/
|
|
159
|
+
UNKNOWN,
|
|
160
|
+
/**
|
|
161
|
+
* the key's validity is marginal
|
|
162
|
+
*/
|
|
163
|
+
MARGINAL,
|
|
164
|
+
/**
|
|
165
|
+
* the key's validity is full
|
|
166
|
+
*/
|
|
167
|
+
FULL,
|
|
168
|
+
/**
|
|
169
|
+
* the key's validity is ultimate
|
|
170
|
+
*/
|
|
171
|
+
ULTIMATE,
|
|
172
|
+
}
|
|
173
|
+
interface KeyStoreFilterFunc {
|
|
174
|
+
(ckset: Keyset, key: string): boolean;
|
|
175
|
+
}
|
|
176
|
+
class KeyChooser {
|
|
177
|
+
static $gtype: GObject.GType<KeyChooser>;
|
|
178
|
+
|
|
179
|
+
// Constructors of CryptUI.KeyChooser
|
|
180
|
+
|
|
181
|
+
_init(...args: any[]): void;
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
class KeyChooserClass {
|
|
185
|
+
static $gtype: GObject.GType<KeyChooserClass>;
|
|
186
|
+
|
|
187
|
+
// Constructors of CryptUI.KeyChooserClass
|
|
188
|
+
|
|
189
|
+
_init(...args: any[]): void;
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
abstract class KeyChooserPriv {
|
|
193
|
+
static $gtype: GObject.GType<KeyChooserPriv>;
|
|
194
|
+
|
|
195
|
+
// Constructors of CryptUI.KeyChooserPriv
|
|
196
|
+
|
|
197
|
+
_init(...args: any[]): void;
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
class KeyStore {
|
|
201
|
+
static $gtype: GObject.GType<KeyStore>;
|
|
202
|
+
|
|
203
|
+
// Constructors of CryptUI.KeyStore
|
|
204
|
+
|
|
205
|
+
_init(...args: any[]): void;
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
class KeyStoreClass {
|
|
209
|
+
static $gtype: GObject.GType<KeyStoreClass>;
|
|
210
|
+
|
|
211
|
+
// Constructors of CryptUI.KeyStoreClass
|
|
212
|
+
|
|
213
|
+
_init(...args: any[]): void;
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
abstract class KeyStorePriv {
|
|
217
|
+
static $gtype: GObject.GType<KeyStorePriv>;
|
|
218
|
+
|
|
219
|
+
// Constructors of CryptUI.KeyStorePriv
|
|
220
|
+
|
|
221
|
+
_init(...args: any[]): void;
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
class Keyset {
|
|
225
|
+
static $gtype: GObject.GType<Keyset>;
|
|
226
|
+
|
|
227
|
+
// Constructors of CryptUI.Keyset
|
|
228
|
+
|
|
229
|
+
_init(...args: any[]): void;
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
class KeysetClass {
|
|
233
|
+
static $gtype: GObject.GType<KeysetClass>;
|
|
234
|
+
|
|
235
|
+
// Constructors of CryptUI.KeysetClass
|
|
236
|
+
|
|
237
|
+
_init(...args: any[]): void;
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
abstract class KeysetPrivate {
|
|
241
|
+
static $gtype: GObject.GType<KeysetPrivate>;
|
|
242
|
+
|
|
243
|
+
// Constructors of CryptUI.KeysetPrivate
|
|
244
|
+
|
|
245
|
+
_init(...args: any[]): void;
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
/**
|
|
249
|
+
* Name of the imported GIR library
|
|
250
|
+
* `see` https://gitlab.gnome.org/GNOME/gjs/-/blob/master/gi/ns.cpp#L188
|
|
251
|
+
*/
|
|
252
|
+
const __name__: string;
|
|
253
|
+
/**
|
|
254
|
+
* Version of the imported GIR library
|
|
255
|
+
* `see` https://gitlab.gnome.org/GNOME/gjs/-/blob/master/gi/ns.cpp#L189
|
|
256
|
+
*/
|
|
257
|
+
const __version__: string;
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
export default CryptUI;
|
|
261
|
+
// END
|
package/cryptui-0.0.js
ADDED
package/package.json
ADDED
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@girs/cryptui-0.0",
|
|
3
|
+
"version": "0.0.0-4.0.0-beta.3",
|
|
4
|
+
"description": "GJS TypeScript type definitions for CryptUI-0.0, generated from library version 0.0.0",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"module": "cryptui-0.0.js",
|
|
7
|
+
"main": "cryptui-0.0.js",
|
|
8
|
+
"exports": {
|
|
9
|
+
"./ambient": {
|
|
10
|
+
"types": "./cryptui-0.0-ambient.d.ts",
|
|
11
|
+
"import": "./cryptui-0.0-ambient.js",
|
|
12
|
+
"default": "./cryptui-0.0-ambient.js"
|
|
13
|
+
},
|
|
14
|
+
"./import": {
|
|
15
|
+
"types": "./cryptui-0.0-import.d.ts",
|
|
16
|
+
"import": "./cryptui-0.0-import.js",
|
|
17
|
+
"default": "./cryptui-0.0-import.js"
|
|
18
|
+
},
|
|
19
|
+
".": {
|
|
20
|
+
"types": "./cryptui-0.0.d.ts",
|
|
21
|
+
"import": "./cryptui-0.0.js",
|
|
22
|
+
"default": "./cryptui-0.0.js"
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
"scripts": {
|
|
26
|
+
"test": "NODE_OPTIONS=--max_old_space_size=9216 tsc --noEmit cryptui-0.0.d.ts"
|
|
27
|
+
},
|
|
28
|
+
"dependencies": {
|
|
29
|
+
"@girs/atk-1.0": "^2.52.0-4.0.0-beta.3",
|
|
30
|
+
"@girs/cairo-1.0": "^1.0.0-4.0.0-beta.3",
|
|
31
|
+
"@girs/freetype2-2.0": "^2.0.0-4.0.0-beta.3",
|
|
32
|
+
"@girs/gdk-3.0": "^3.24.41-4.0.0-beta.3",
|
|
33
|
+
"@girs/gdkpixbuf-2.0": "^2.0.0-4.0.0-beta.3",
|
|
34
|
+
"@girs/gio-2.0": "^2.80.0-4.0.0-beta.3",
|
|
35
|
+
"@girs/gjs": "^4.0.0-beta.3",
|
|
36
|
+
"@girs/glib-2.0": "^2.80.0-4.0.0-beta.3",
|
|
37
|
+
"@girs/gmodule-2.0": "^2.0.0-4.0.0-beta.3",
|
|
38
|
+
"@girs/gobject-2.0": "^2.80.0-4.0.0-beta.3",
|
|
39
|
+
"@girs/gtk-3.0": "^3.24.41-4.0.0-beta.3",
|
|
40
|
+
"@girs/harfbuzz-0.0": "^8.3.1-4.0.0-beta.3",
|
|
41
|
+
"@girs/pango-1.0": "^1.51.0-4.0.0-beta.3",
|
|
42
|
+
"@girs/xlib-2.0": "^2.0.0-4.0.0-beta.3"
|
|
43
|
+
},
|
|
44
|
+
"devDependencies": {
|
|
45
|
+
"typescript": "*"
|
|
46
|
+
},
|
|
47
|
+
"keywords": [
|
|
48
|
+
"Gir",
|
|
49
|
+
"TypeScript",
|
|
50
|
+
"types",
|
|
51
|
+
"GObject-Introspection",
|
|
52
|
+
"GJS",
|
|
53
|
+
"CryptUI-0.0"
|
|
54
|
+
],
|
|
55
|
+
"author": "ts-for-gir",
|
|
56
|
+
"license": "MIT",
|
|
57
|
+
"repository": {
|
|
58
|
+
"type": "git",
|
|
59
|
+
"url": "git+https://github.com/gjsify/ts-for-gir.git"
|
|
60
|
+
},
|
|
61
|
+
"bugs": {
|
|
62
|
+
"url": "https://github.com/gjsify/ts-for-gir/issues"
|
|
63
|
+
},
|
|
64
|
+
"homepage": "https://github.com/gjsify/types/tree/main/cryptui-0.0#readme"
|
|
65
|
+
}
|
package/tsconfig.json
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
// General settings for code interpretation
|
|
4
|
+
"target": "ESNext",
|
|
5
|
+
"module": "ESNext",
|
|
6
|
+
"lib": ["ESNext"],
|
|
7
|
+
"types": [],
|
|
8
|
+
"experimentalDecorators": true,
|
|
9
|
+
"moduleResolution": "node",
|
|
10
|
+
"noEmit": true,
|
|
11
|
+
"noEmitOnError": false,
|
|
12
|
+
"baseUrl": "./",
|
|
13
|
+
"rootDir": ".",
|
|
14
|
+
// General settings for code generation
|
|
15
|
+
"removeComments": false,
|
|
16
|
+
"inlineSourceMap": false,
|
|
17
|
+
"inlineSources": false,
|
|
18
|
+
"newLine": "LF"
|
|
19
|
+
},
|
|
20
|
+
"include": ["./cryptui-0.0.d.ts"]
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
|