@girs/gck-2 4.1.0-3.2.6 → 4.1.0-3.2.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -5,7 +5,7 @@
5
5
  ![downloads/week](https://img.shields.io/npm/dw/@girs/gck-2)
6
6
 
7
7
 
8
- GJS TypeScript type definitions for Gck-2, generated from library version 4.1.0 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v3.2.6.
8
+ GJS TypeScript type definitions for Gck-2, generated from library version 4.1.0 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v3.2.7.
9
9
 
10
10
  GLib wrapper library for PKCS#11
11
11
 
package/gck-2.d.cts CHANGED
@@ -157,7 +157,7 @@ export function error_quark(): GLib.Quark
157
157
  * @param rv The PKCS#11 return value to get a message for.
158
158
  * @returns The user readable message.
159
159
  */
160
- export function message_from_rv(rv: number): string | null
160
+ export function message_from_rv(rv: number): string
161
161
  /**
162
162
  * Setup an enumerator for listing matching objects on the modules.
163
163
  *
@@ -178,7 +178,7 @@ export function modules_enumerate_objects(modules: Module[], attrs: Attributes,
178
178
  * @param session_options Options from GckSessionOptions
179
179
  * @returns A new #GckEnumerator, or %NULL if an error occurs.
180
180
  */
181
- export function modules_enumerate_uri(modules: Module[], uri: string | null, session_options: SessionOptions): Enumerator
181
+ export function modules_enumerate_uri(modules: Module[], uri: string, session_options: SessionOptions): Enumerator
182
182
  /**
183
183
  * Get a list of slots for across all of the modules.
184
184
  * @param modules The modules
@@ -226,7 +226,7 @@ export function modules_initialize_registered_finish(result: Gio.AsyncResult): M
226
226
  * @param session_options Options from GckSessionOptions
227
227
  * @returns A new #GckObject which should be released with g_object_unref(), or %NULL if no matching object was found.
228
228
  */
229
- export function modules_object_for_uri(modules: Module[], uri: string | null, session_options: SessionOptions): Object | null
229
+ export function modules_object_for_uri(modules: Module[], uri: string, session_options: SessionOptions): Object | null
230
230
  /**
231
231
  * Find objects that match a URI.
232
232
  *
@@ -237,21 +237,21 @@ export function modules_object_for_uri(modules: Module[], uri: string | null, se
237
237
  * @param session_options Options from GckSessionOptions
238
238
  * @returns A (possibly empty) list of `Gck.Object`s.
239
239
  */
240
- export function modules_objects_for_uri(modules: Module[], uri: string | null, session_options: SessionOptions): Object[]
240
+ export function modules_objects_for_uri(modules: Module[], uri: string, session_options: SessionOptions): Object[]
241
241
  /**
242
242
  * Lookup a token that matches the URI.
243
243
  * @param modules The modules
244
244
  * @param uri The URI that the token must match
245
245
  * @returns A newly allocated #GckSlot or %NULL if no such token was found.
246
246
  */
247
- export function modules_token_for_uri(modules: Module[], uri: string | null): Slot
247
+ export function modules_token_for_uri(modules: Module[], uri: string): Slot
248
248
  /**
249
249
  * Lookup a token that matches the URI.
250
250
  * @param modules The modules
251
251
  * @param uri The URI that the token must match
252
252
  * @returns A list of newly allocated #GckSlot objects.
253
253
  */
254
- export function modules_tokens_for_uri(modules: Module[], uri: string | null): Slot[]
254
+ export function modules_tokens_for_uri(modules: Module[], uri: string): Slot[]
255
255
  /**
256
256
  * Initialize a list of GckObject from raw PKCS#11 handles. The handles argument must contain
257
257
  * contiguous CK_OBJECT_HANDLE handles in an array.
@@ -280,7 +280,7 @@ export function slots_enumerate_objects(slots: Slot[], match: Attributes, option
280
280
  * @param flags the context in which the URI will be used.
281
281
  * @returns a newly allocated #GckUriData; which should be freed with gck_uri_data_free()
282
282
  */
283
- export function uri_data_parse(string: string | null, flags: UriFlags): UriData
283
+ export function uri_data_parse(string: string, flags: UriFlags): UriData
284
284
  export function uri_error_quark(): GLib.Quark
285
285
  /**
286
286
  * Convert `CK_BBOOL` type memory to a boolean.
@@ -412,13 +412,13 @@ export interface ObjectCache extends Object {
412
412
  * @param key name of the key for that association
413
413
  * @returns the data if found, or %NULL if no such data exists.
414
414
  */
415
- get_data(key: string | null): any | null
415
+ get_data(key: string): any | null
416
416
  /**
417
417
  * Gets a named field from the objects table of associations (see g_object_set_data()).
418
418
  * @param key name of the key for that association
419
419
  * @returns the data if found, or %NULL if no such data exists.
420
420
  */
421
- get_data(key: string | null): any | null
421
+ get_data(key: string): any | null
422
422
 
423
423
  // Own virtual methods of Gck-2.Gck.ObjectCache
424
424
 
@@ -711,7 +711,7 @@ export interface Module {
711
711
  * usually reflects the path passed to [func`Module`.initialize].
712
712
  * @returns The path, do not modify or free this value.
713
713
  */
714
- get_path(): string | null
714
+ get_path(): string
715
715
  /**
716
716
  * Get the GckSlot objects for a given module.
717
717
  * @param token_present Whether to limit only to slots with a token present.
@@ -778,7 +778,7 @@ export class Module extends GObject.Object {
778
778
  * @param cancellable optional cancellation object
779
779
  * @returns The loaded PKCS#11 module or %NULL if failed.
780
780
  */
781
- static initialize(path: string | null, cancellable: Gio.Cancellable | null): Module
781
+ static initialize(path: string, cancellable: Gio.Cancellable | null): Module
782
782
  /**
783
783
  * Asynchronously load and initialize a PKCS#11 module represented by a
784
784
  * [class`Module]` object.
@@ -786,7 +786,7 @@ export class Module extends GObject.Object {
786
786
  * @param cancellable optional cancellation object
787
787
  * @param callback a callback which will be called when the operation completes
788
788
  */
789
- static initialize_async(path: string | null, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<Module> | null): void
789
+ static initialize_async(path: string, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<Module> | null): void
790
790
  /**
791
791
  * Finishes the asynchronous initialize operation.
792
792
  * @param result the asynchronous result
@@ -997,7 +997,7 @@ export interface Object {
997
997
  * @param key name of the key for that association
998
998
  * @returns the data if found, or %NULL if no such data exists.
999
999
  */
1000
- get_data(key: string | null): any | null
1000
+ get_data(key: string): any | null
1001
1001
  /**
1002
1002
  * Get the data for the specified attribute from the object.
1003
1003
  *
@@ -2746,7 +2746,7 @@ export class Attribute {
2746
2746
  * @param value the null-terminated string value of the attribute
2747
2747
  * @returns the new attribute; when done with the attribute u gck_attribute_free() to free it
2748
2748
  */
2749
- static new_string(attr_type: number, value: string | null): Attribute
2749
+ static new_string(attr_type: number, value: string): Attribute
2750
2750
  /**
2751
2751
  * Initialize a PKCS#11 attribute to a unsigned long. This will result
2752
2752
  * in a `CK_ULONG` attribute from the PKCS#11 specs.
@@ -3152,7 +3152,7 @@ export interface Builder {
3152
3152
  * @param attr_type the new attribute type
3153
3153
  * @param value the attribute value
3154
3154
  */
3155
- set_string(attr_type: number, value: string | null): void
3155
+ set_string(attr_type: number, value: string): void
3156
3156
  /**
3157
3157
  * Set an attribute on the builder for the unsigned long `value`.
3158
3158
  * If an attribute with `attr_type` already exists in the builder then it is
@@ -3865,7 +3865,7 @@ export class UriData {
3865
3865
  * @param flags the context in which the URI will be used.
3866
3866
  * @returns a newly allocated #GckUriData; which should be freed with gck_uri_data_free()
3867
3867
  */
3868
- static parse(string: string | null, flags: UriFlags): UriData
3868
+ static parse(string: string, flags: UriFlags): UriData
3869
3869
  }
3870
3870
 
3871
3871
  /**
package/gck-2.d.ts CHANGED
@@ -159,7 +159,7 @@ function error_quark(): GLib.Quark
159
159
  * @param rv The PKCS#11 return value to get a message for.
160
160
  * @returns The user readable message.
161
161
  */
162
- function message_from_rv(rv: number): string | null
162
+ function message_from_rv(rv: number): string
163
163
  /**
164
164
  * Setup an enumerator for listing matching objects on the modules.
165
165
  *
@@ -180,7 +180,7 @@ function modules_enumerate_objects(modules: Module[], attrs: Attributes, session
180
180
  * @param session_options Options from GckSessionOptions
181
181
  * @returns A new #GckEnumerator, or %NULL if an error occurs.
182
182
  */
183
- function modules_enumerate_uri(modules: Module[], uri: string | null, session_options: SessionOptions): Enumerator
183
+ function modules_enumerate_uri(modules: Module[], uri: string, session_options: SessionOptions): Enumerator
184
184
  /**
185
185
  * Get a list of slots for across all of the modules.
186
186
  * @param modules The modules
@@ -228,7 +228,7 @@ function modules_initialize_registered_finish(result: Gio.AsyncResult): Module[]
228
228
  * @param session_options Options from GckSessionOptions
229
229
  * @returns A new #GckObject which should be released with g_object_unref(), or %NULL if no matching object was found.
230
230
  */
231
- function modules_object_for_uri(modules: Module[], uri: string | null, session_options: SessionOptions): Object | null
231
+ function modules_object_for_uri(modules: Module[], uri: string, session_options: SessionOptions): Object | null
232
232
  /**
233
233
  * Find objects that match a URI.
234
234
  *
@@ -239,21 +239,21 @@ function modules_object_for_uri(modules: Module[], uri: string | null, session_o
239
239
  * @param session_options Options from GckSessionOptions
240
240
  * @returns A (possibly empty) list of `Gck.Object`s.
241
241
  */
242
- function modules_objects_for_uri(modules: Module[], uri: string | null, session_options: SessionOptions): Object[]
242
+ function modules_objects_for_uri(modules: Module[], uri: string, session_options: SessionOptions): Object[]
243
243
  /**
244
244
  * Lookup a token that matches the URI.
245
245
  * @param modules The modules
246
246
  * @param uri The URI that the token must match
247
247
  * @returns A newly allocated #GckSlot or %NULL if no such token was found.
248
248
  */
249
- function modules_token_for_uri(modules: Module[], uri: string | null): Slot
249
+ function modules_token_for_uri(modules: Module[], uri: string): Slot
250
250
  /**
251
251
  * Lookup a token that matches the URI.
252
252
  * @param modules The modules
253
253
  * @param uri The URI that the token must match
254
254
  * @returns A list of newly allocated #GckSlot objects.
255
255
  */
256
- function modules_tokens_for_uri(modules: Module[], uri: string | null): Slot[]
256
+ function modules_tokens_for_uri(modules: Module[], uri: string): Slot[]
257
257
  /**
258
258
  * Initialize a list of GckObject from raw PKCS#11 handles. The handles argument must contain
259
259
  * contiguous CK_OBJECT_HANDLE handles in an array.
@@ -282,7 +282,7 @@ function slots_enumerate_objects(slots: Slot[], match: Attributes, options: Sess
282
282
  * @param flags the context in which the URI will be used.
283
283
  * @returns a newly allocated #GckUriData; which should be freed with gck_uri_data_free()
284
284
  */
285
- function uri_data_parse(string: string | null, flags: UriFlags): UriData
285
+ function uri_data_parse(string: string, flags: UriFlags): UriData
286
286
  function uri_error_quark(): GLib.Quark
287
287
  /**
288
288
  * Convert `CK_BBOOL` type memory to a boolean.
@@ -414,13 +414,13 @@ interface ObjectCache extends Object {
414
414
  * @param key name of the key for that association
415
415
  * @returns the data if found, or %NULL if no such data exists.
416
416
  */
417
- get_data(key: string | null): any | null
417
+ get_data(key: string): any | null
418
418
  /**
419
419
  * Gets a named field from the objects table of associations (see g_object_set_data()).
420
420
  * @param key name of the key for that association
421
421
  * @returns the data if found, or %NULL if no such data exists.
422
422
  */
423
- get_data(key: string | null): any | null
423
+ get_data(key: string): any | null
424
424
 
425
425
  // Own virtual methods of Gck-2.Gck.ObjectCache
426
426
 
@@ -713,7 +713,7 @@ interface Module {
713
713
  * usually reflects the path passed to [func`Module`.initialize].
714
714
  * @returns The path, do not modify or free this value.
715
715
  */
716
- get_path(): string | null
716
+ get_path(): string
717
717
  /**
718
718
  * Get the GckSlot objects for a given module.
719
719
  * @param token_present Whether to limit only to slots with a token present.
@@ -780,7 +780,7 @@ class Module extends GObject.Object {
780
780
  * @param cancellable optional cancellation object
781
781
  * @returns The loaded PKCS#11 module or %NULL if failed.
782
782
  */
783
- static initialize(path: string | null, cancellable: Gio.Cancellable | null): Module
783
+ static initialize(path: string, cancellable: Gio.Cancellable | null): Module
784
784
  /**
785
785
  * Asynchronously load and initialize a PKCS#11 module represented by a
786
786
  * [class`Module]` object.
@@ -788,7 +788,7 @@ class Module extends GObject.Object {
788
788
  * @param cancellable optional cancellation object
789
789
  * @param callback a callback which will be called when the operation completes
790
790
  */
791
- static initialize_async(path: string | null, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<Module> | null): void
791
+ static initialize_async(path: string, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<Module> | null): void
792
792
  /**
793
793
  * Finishes the asynchronous initialize operation.
794
794
  * @param result the asynchronous result
@@ -999,7 +999,7 @@ interface Object {
999
999
  * @param key name of the key for that association
1000
1000
  * @returns the data if found, or %NULL if no such data exists.
1001
1001
  */
1002
- get_data(key: string | null): any | null
1002
+ get_data(key: string): any | null
1003
1003
  /**
1004
1004
  * Get the data for the specified attribute from the object.
1005
1005
  *
@@ -2748,7 +2748,7 @@ class Attribute {
2748
2748
  * @param value the null-terminated string value of the attribute
2749
2749
  * @returns the new attribute; when done with the attribute u gck_attribute_free() to free it
2750
2750
  */
2751
- static new_string(attr_type: number, value: string | null): Attribute
2751
+ static new_string(attr_type: number, value: string): Attribute
2752
2752
  /**
2753
2753
  * Initialize a PKCS#11 attribute to a unsigned long. This will result
2754
2754
  * in a `CK_ULONG` attribute from the PKCS#11 specs.
@@ -3154,7 +3154,7 @@ interface Builder {
3154
3154
  * @param attr_type the new attribute type
3155
3155
  * @param value the attribute value
3156
3156
  */
3157
- set_string(attr_type: number, value: string | null): void
3157
+ set_string(attr_type: number, value: string): void
3158
3158
  /**
3159
3159
  * Set an attribute on the builder for the unsigned long `value`.
3160
3160
  * If an attribute with `attr_type` already exists in the builder then it is
@@ -3867,7 +3867,7 @@ class UriData {
3867
3867
  * @param flags the context in which the URI will be used.
3868
3868
  * @returns a newly allocated #GckUriData; which should be freed with gck_uri_data_free()
3869
3869
  */
3870
- static parse(string: string | null, flags: UriFlags): UriData
3870
+ static parse(string: string, flags: UriFlags): UriData
3871
3871
  }
3872
3872
 
3873
3873
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@girs/gck-2",
3
- "version": "4.1.0-3.2.6",
3
+ "version": "4.1.0-3.2.7",
4
4
  "description": "GJS TypeScript type definitions for Gck-2, generated from library version 4.1.0",
5
5
  "type": "module",
6
6
  "module": "gck-2.js",
@@ -25,10 +25,10 @@
25
25
  "test:cjs": "NODE_OPTIONS=--max_old_space_size=9216 tsc --noEmit gck-2.d.cts"
26
26
  },
27
27
  "dependencies": {
28
- "@girs/gio-2.0": "^2.78.0-3.2.6",
29
- "@girs/gjs": "^3.2.6",
30
- "@girs/glib-2.0": "^2.78.0-3.2.6",
31
- "@girs/gobject-2.0": "^2.78.0-3.2.6"
28
+ "@girs/gio-2.0": "^2.78.0-3.2.7",
29
+ "@girs/gjs": "^3.2.7",
30
+ "@girs/glib-2.0": "^2.78.0-3.2.7",
31
+ "@girs/gobject-2.0": "^2.78.0-3.2.7"
32
32
  },
33
33
  "devDependencies": {
34
34
  "typescript": "*"