@girs/fwupd-2.0 2.0.0-3.2.6 → 2.0.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/fwupd-2.0.d.cts CHANGED
@@ -592,9 +592,9 @@ export enum TrustFlags {
592
592
  */
593
593
  METADATA,
594
594
  }
595
- export const DBUS_INTERFACE: string | null
596
- export const DBUS_PATH: string | null
597
- export const DBUS_SERVICE: string | null
595
+ export const DBUS_INTERFACE: string
596
+ export const DBUS_PATH: string
597
+ export const DBUS_SERVICE: string
598
598
  export const DEVICE_FLAG_ADD_COUNTERPART_GUIDS: number
599
599
  export const DEVICE_FLAG_ANOTHER_WRITE_REQUIRED: number
600
600
  export const DEVICE_FLAG_BACKUP_BEFORE_INSTALL: number
@@ -638,7 +638,7 @@ export const DEVICE_FLAG_USE_RUNTIME_VERSION: number
638
638
  export const DEVICE_FLAG_VERSION_CHECK_REQUIRED: number
639
639
  export const DEVICE_FLAG_WAIT_FOR_REPLUG: number
640
640
  export const DEVICE_FLAG_WILL_DISAPPEAR: number
641
- export const DEVICE_ID_ANY: string | null
641
+ export const DEVICE_ID_ANY: string
642
642
  export const PLUGIN_FLAG_CAPSULES_UNSUPPORTED: number
643
643
  export const PLUGIN_FLAG_CLEAR_UPDATABLE: number
644
644
  export const PLUGIN_FLAG_DISABLED: number
@@ -658,90 +658,90 @@ export const RELEASE_FLAG_IS_UPGRADE: number
658
658
  export const RELEASE_FLAG_NONE: number
659
659
  export const RELEASE_FLAG_TRUSTED_METADATA: number
660
660
  export const RELEASE_FLAG_TRUSTED_PAYLOAD: number
661
- export const RESULT_KEY_APPSTREAM_ID: string | null
662
- export const RESULT_KEY_BRANCH: string | null
663
- export const RESULT_KEY_CATEGORIES: string | null
664
- export const RESULT_KEY_CHECKSUM: string | null
665
- export const RESULT_KEY_CREATED: string | null
666
- export const RESULT_KEY_DESCRIPTION: string | null
667
- export const RESULT_KEY_DETACH_CAPTION: string | null
668
- export const RESULT_KEY_DETACH_IMAGE: string | null
669
- export const RESULT_KEY_DETAILS_URL: string | null
670
- export const RESULT_KEY_DEVICE_ID: string | null
671
- export const RESULT_KEY_FILENAME: string | null
672
- export const RESULT_KEY_FLAGS: string | null
673
- export const RESULT_KEY_FLASHES_LEFT: string | null
674
- export const RESULT_KEY_GUID: string | null
675
- export const RESULT_KEY_HOMEPAGE: string | null
676
- export const RESULT_KEY_HSI_LEVEL: string | null
677
- export const RESULT_KEY_HSI_RESULT: string | null
678
- export const RESULT_KEY_ICON: string | null
679
- export const RESULT_KEY_INSTALL_DURATION: string | null
680
- export const RESULT_KEY_INSTANCE_IDS: string | null
681
- export const RESULT_KEY_ISSUES: string | null
682
- export const RESULT_KEY_LICENSE: string | null
683
- export const RESULT_KEY_LOCATIONS: string | null
684
- export const RESULT_KEY_METADATA: string | null
685
- export const RESULT_KEY_MODIFIED: string | null
686
- export const RESULT_KEY_NAME: string | null
687
- export const RESULT_KEY_NAME_VARIANT_SUFFIX: string | null
688
- export const RESULT_KEY_PARENT_DEVICE_ID: string | null
689
- export const RESULT_KEY_PLUGIN: string | null
690
- export const RESULT_KEY_PROTOCOL: string | null
691
- export const RESULT_KEY_RELEASE: string | null
692
- export const RESULT_KEY_REMOTE_ID: string | null
693
- export const RESULT_KEY_SERIAL: string | null
694
- export const RESULT_KEY_SIZE: string | null
695
- export const RESULT_KEY_SOURCE_URL: string | null
696
- export const RESULT_KEY_STATUS: string | null
697
- export const RESULT_KEY_SUMMARY: string | null
698
- export const RESULT_KEY_TRUST_FLAGS: string | null
699
- export const RESULT_KEY_UPDATE_ERROR: string | null
700
- export const RESULT_KEY_UPDATE_IMAGE: string | null
701
- export const RESULT_KEY_UPDATE_MESSAGE: string | null
702
- export const RESULT_KEY_UPDATE_STATE: string | null
703
- export const RESULT_KEY_URGENCY: string | null
704
- export const RESULT_KEY_URI: string | null
705
- export const RESULT_KEY_VENDOR: string | null
706
- export const RESULT_KEY_VENDOR_ID: string | null
707
- export const RESULT_KEY_VERSION: string | null
708
- export const RESULT_KEY_VERSION_BOOTLOADER: string | null
709
- export const RESULT_KEY_VERSION_BOOTLOADER_RAW: string | null
710
- export const RESULT_KEY_VERSION_FORMAT: string | null
711
- export const RESULT_KEY_VERSION_LOWEST: string | null
712
- export const RESULT_KEY_VERSION_LOWEST_RAW: string | null
713
- export const RESULT_KEY_VERSION_RAW: string | null
714
- export const SECURITY_ATTR_ID_ACPI_DMAR: string | null
715
- export const SECURITY_ATTR_ID_ENCRYPTED_RAM: string | null
716
- export const SECURITY_ATTR_ID_FWUPD_ATTESTATION: string | null
717
- export const SECURITY_ATTR_ID_FWUPD_PLUGINS: string | null
718
- export const SECURITY_ATTR_ID_FWUPD_UPDATES: string | null
719
- export const SECURITY_ATTR_ID_INTEL_BOOTGUARD_ACM: string | null
720
- export const SECURITY_ATTR_ID_INTEL_BOOTGUARD_ENABLED: string | null
721
- export const SECURITY_ATTR_ID_INTEL_BOOTGUARD_OTP: string | null
722
- export const SECURITY_ATTR_ID_INTEL_BOOTGUARD_POLICY: string | null
723
- export const SECURITY_ATTR_ID_INTEL_BOOTGUARD_VERIFIED: string | null
724
- export const SECURITY_ATTR_ID_INTEL_CET_ACTIVE: string | null
725
- export const SECURITY_ATTR_ID_INTEL_CET_ENABLED: string | null
726
- export const SECURITY_ATTR_ID_INTEL_DCI_ENABLED: string | null
727
- export const SECURITY_ATTR_ID_INTEL_DCI_LOCKED: string | null
728
- export const SECURITY_ATTR_ID_INTEL_SMAP: string | null
729
- export const SECURITY_ATTR_ID_IOMMU: string | null
730
- export const SECURITY_ATTR_ID_KERNEL_LOCKDOWN: string | null
731
- export const SECURITY_ATTR_ID_KERNEL_SWAP: string | null
732
- export const SECURITY_ATTR_ID_KERNEL_TAINTED: string | null
733
- export const SECURITY_ATTR_ID_MEI_MANUFACTURING_MODE: string | null
734
- export const SECURITY_ATTR_ID_MEI_OVERRIDE_STRAP: string | null
735
- export const SECURITY_ATTR_ID_MEI_VERSION: string | null
736
- export const SECURITY_ATTR_ID_SPI_BIOSWE: string | null
737
- export const SECURITY_ATTR_ID_SPI_BLE: string | null
738
- export const SECURITY_ATTR_ID_SPI_SMM_BWP: string | null
739
- export const SECURITY_ATTR_ID_SUSPEND_TO_IDLE: string | null
740
- export const SECURITY_ATTR_ID_SUSPEND_TO_RAM: string | null
741
- export const SECURITY_ATTR_ID_TPM_RECONSTRUCTION_PCR0: string | null
742
- export const SECURITY_ATTR_ID_TPM_VERSION_20: string | null
743
- export const SECURITY_ATTR_ID_UEFI_PK: string | null
744
- export const SECURITY_ATTR_ID_UEFI_SECUREBOOT: string | null
661
+ export const RESULT_KEY_APPSTREAM_ID: string
662
+ export const RESULT_KEY_BRANCH: string
663
+ export const RESULT_KEY_CATEGORIES: string
664
+ export const RESULT_KEY_CHECKSUM: string
665
+ export const RESULT_KEY_CREATED: string
666
+ export const RESULT_KEY_DESCRIPTION: string
667
+ export const RESULT_KEY_DETACH_CAPTION: string
668
+ export const RESULT_KEY_DETACH_IMAGE: string
669
+ export const RESULT_KEY_DETAILS_URL: string
670
+ export const RESULT_KEY_DEVICE_ID: string
671
+ export const RESULT_KEY_FILENAME: string
672
+ export const RESULT_KEY_FLAGS: string
673
+ export const RESULT_KEY_FLASHES_LEFT: string
674
+ export const RESULT_KEY_GUID: string
675
+ export const RESULT_KEY_HOMEPAGE: string
676
+ export const RESULT_KEY_HSI_LEVEL: string
677
+ export const RESULT_KEY_HSI_RESULT: string
678
+ export const RESULT_KEY_ICON: string
679
+ export const RESULT_KEY_INSTALL_DURATION: string
680
+ export const RESULT_KEY_INSTANCE_IDS: string
681
+ export const RESULT_KEY_ISSUES: string
682
+ export const RESULT_KEY_LICENSE: string
683
+ export const RESULT_KEY_LOCATIONS: string
684
+ export const RESULT_KEY_METADATA: string
685
+ export const RESULT_KEY_MODIFIED: string
686
+ export const RESULT_KEY_NAME: string
687
+ export const RESULT_KEY_NAME_VARIANT_SUFFIX: string
688
+ export const RESULT_KEY_PARENT_DEVICE_ID: string
689
+ export const RESULT_KEY_PLUGIN: string
690
+ export const RESULT_KEY_PROTOCOL: string
691
+ export const RESULT_KEY_RELEASE: string
692
+ export const RESULT_KEY_REMOTE_ID: string
693
+ export const RESULT_KEY_SERIAL: string
694
+ export const RESULT_KEY_SIZE: string
695
+ export const RESULT_KEY_SOURCE_URL: string
696
+ export const RESULT_KEY_STATUS: string
697
+ export const RESULT_KEY_SUMMARY: string
698
+ export const RESULT_KEY_TRUST_FLAGS: string
699
+ export const RESULT_KEY_UPDATE_ERROR: string
700
+ export const RESULT_KEY_UPDATE_IMAGE: string
701
+ export const RESULT_KEY_UPDATE_MESSAGE: string
702
+ export const RESULT_KEY_UPDATE_STATE: string
703
+ export const RESULT_KEY_URGENCY: string
704
+ export const RESULT_KEY_URI: string
705
+ export const RESULT_KEY_VENDOR: string
706
+ export const RESULT_KEY_VENDOR_ID: string
707
+ export const RESULT_KEY_VERSION: string
708
+ export const RESULT_KEY_VERSION_BOOTLOADER: string
709
+ export const RESULT_KEY_VERSION_BOOTLOADER_RAW: string
710
+ export const RESULT_KEY_VERSION_FORMAT: string
711
+ export const RESULT_KEY_VERSION_LOWEST: string
712
+ export const RESULT_KEY_VERSION_LOWEST_RAW: string
713
+ export const RESULT_KEY_VERSION_RAW: string
714
+ export const SECURITY_ATTR_ID_ACPI_DMAR: string
715
+ export const SECURITY_ATTR_ID_ENCRYPTED_RAM: string
716
+ export const SECURITY_ATTR_ID_FWUPD_ATTESTATION: string
717
+ export const SECURITY_ATTR_ID_FWUPD_PLUGINS: string
718
+ export const SECURITY_ATTR_ID_FWUPD_UPDATES: string
719
+ export const SECURITY_ATTR_ID_INTEL_BOOTGUARD_ACM: string
720
+ export const SECURITY_ATTR_ID_INTEL_BOOTGUARD_ENABLED: string
721
+ export const SECURITY_ATTR_ID_INTEL_BOOTGUARD_OTP: string
722
+ export const SECURITY_ATTR_ID_INTEL_BOOTGUARD_POLICY: string
723
+ export const SECURITY_ATTR_ID_INTEL_BOOTGUARD_VERIFIED: string
724
+ export const SECURITY_ATTR_ID_INTEL_CET_ACTIVE: string
725
+ export const SECURITY_ATTR_ID_INTEL_CET_ENABLED: string
726
+ export const SECURITY_ATTR_ID_INTEL_DCI_ENABLED: string
727
+ export const SECURITY_ATTR_ID_INTEL_DCI_LOCKED: string
728
+ export const SECURITY_ATTR_ID_INTEL_SMAP: string
729
+ export const SECURITY_ATTR_ID_IOMMU: string
730
+ export const SECURITY_ATTR_ID_KERNEL_LOCKDOWN: string
731
+ export const SECURITY_ATTR_ID_KERNEL_SWAP: string
732
+ export const SECURITY_ATTR_ID_KERNEL_TAINTED: string
733
+ export const SECURITY_ATTR_ID_MEI_MANUFACTURING_MODE: string
734
+ export const SECURITY_ATTR_ID_MEI_OVERRIDE_STRAP: string
735
+ export const SECURITY_ATTR_ID_MEI_VERSION: string
736
+ export const SECURITY_ATTR_ID_SPI_BIOSWE: string
737
+ export const SECURITY_ATTR_ID_SPI_BLE: string
738
+ export const SECURITY_ATTR_ID_SPI_SMM_BWP: string
739
+ export const SECURITY_ATTR_ID_SUSPEND_TO_IDLE: string
740
+ export const SECURITY_ATTR_ID_SUSPEND_TO_RAM: string
741
+ export const SECURITY_ATTR_ID_TPM_RECONSTRUCTION_PCR0: string
742
+ export const SECURITY_ATTR_ID_TPM_VERSION_20: string
743
+ export const SECURITY_ATTR_ID_UEFI_PK: string
744
+ export const SECURITY_ATTR_ID_UEFI_SECUREBOOT: string
745
745
  /**
746
746
  * Builds a JSON report for the list of devices. No filtering is done on the
747
747
  * `devices` array, and it is expected that the caller will filter to something
@@ -757,7 +757,7 @@ export function build_history_report_json(devices: Device[]): string | null
757
757
  * @param salt The salt, or %NULL for none
758
758
  * @returns the SHA256 machine hash, or %NULL if the ID is not present
759
759
  */
760
- export function build_machine_id(salt: string | null): string | null
760
+ export function build_machine_id(salt: string): string | null
761
761
  /**
762
762
  * Builds a user-agent to use for the download.
763
763
  *
@@ -776,57 +776,57 @@ export function build_machine_id(salt: string | null): string | null
776
776
  * @param package_version client program version, e.g. "3.28.1"
777
777
  * @returns a string, e.g. `foo/0.1 (Linux i386 4.14.5; en; Fedora 27) fwupd/1.0.3`
778
778
  */
779
- export function build_user_agent(package_name: string | null, package_version: string | null): string | null
779
+ export function build_user_agent(package_name: string, package_version: string): string | null
780
780
  /**
781
781
  * Formats a checksum for display.
782
782
  * @param checksum A checksum
783
783
  * @returns text, or %NULL for invalid
784
784
  */
785
- export function checksum_format_for_display(checksum: string | null): string | null
785
+ export function checksum_format_for_display(checksum: string): string | null
786
786
  /**
787
787
  * Gets a the best possible checksum kind.
788
788
  * @param checksums checksums
789
789
  * @returns a checksum from the array, or %NULL if nothing was suitable
790
790
  */
791
- export function checksum_get_best(checksums: string[]): string | null
791
+ export function checksum_get_best(checksums: string[]): string
792
792
  /**
793
793
  * Gets a specific checksum kind.
794
794
  * @param checksums checksums
795
795
  * @param kind a #GChecksumType, e.g. %G_CHECKSUM_SHA512
796
796
  * @returns a checksum from the array, or %NULL if not found
797
797
  */
798
- export function checksum_get_by_kind(checksums: string[], kind: GLib.ChecksumType): string | null
798
+ export function checksum_get_by_kind(checksums: string[], kind: GLib.ChecksumType): string
799
799
  /**
800
800
  * Guesses the checksum kind based on the length of the hash.
801
801
  * @param checksum A checksum
802
802
  * @returns a #GChecksumType, e.g. %G_CHECKSUM_SHA1
803
803
  */
804
- export function checksum_guess_kind(checksum: string | null): GLib.ChecksumType
804
+ export function checksum_guess_kind(checksum: string): GLib.ChecksumType
805
805
  /**
806
806
  * Converts a string to a #FwupdError.
807
807
  * @param error A string, e.g. `org.freedesktop.fwupd.VersionNewer`
808
808
  * @returns enumerated value
809
809
  */
810
- export function error_from_string(error: string | null): Error
810
+ export function error_from_string(error: string): Error
811
811
  export function error_quark(): GLib.Quark
812
812
  /**
813
813
  * Converts a #FwupdError to a string.
814
814
  * @param error A #FwupdError, e.g. %FWUPD_ERROR_VERSION_NEWER
815
815
  * @returns identifier string
816
816
  */
817
- export function error_to_string(error: Error): string | null
817
+ export function error_to_string(error: Error): string
818
818
  /**
819
819
  * Converts a string to a #FwupdFeatureFlags.
820
820
  * @param feature_flag A string, e.g. `detach-action`
821
821
  * @returns enumerated value
822
822
  */
823
- export function feature_flag_from_string(feature_flag: string | null): FeatureFlags
823
+ export function feature_flag_from_string(feature_flag: string): FeatureFlags
824
824
  /**
825
825
  * Converts a #FwupdFeatureFlags to a string.
826
826
  * @param feature_flag A #FwupdFeatureFlags, e.g. %FWUPD_FEATURE_FLAG_DETACH_ACTION
827
827
  * @returns identifier string
828
828
  */
829
- export function feature_flag_to_string(feature_flag: FeatureFlags): string | null
829
+ export function feature_flag_to_string(feature_flag: FeatureFlags): string
830
830
  /**
831
831
  * Loads information from the system os-release file.
832
832
  * @returns keys from os-release
@@ -867,13 +867,13 @@ export function guid_hash_data(data: number, datasz: number, flags: GuidFlags):
867
867
  * @param str A source string to use as a key
868
868
  * @returns A new GUID, or %NULL if the string was invalid
869
869
  */
870
- export function guid_hash_string(str: string | null): string | null
870
+ export function guid_hash_string(str: string): string | null
871
871
  /**
872
872
  * Checks the string is a valid GUID.
873
873
  * @param guid string to check, e.g. `00112233-4455-6677-8899-aabbccddeeff`
874
874
  * @returns %TRUE if @guid was a valid GUID, %FALSE otherwise
875
875
  */
876
- export function guid_is_valid(guid: string | null): boolean
876
+ export function guid_is_valid(guid: string): boolean
877
877
  /**
878
878
  * Returns a text GUID of mixed or BE endian for a packed buffer.
879
879
  * @param guid a #fwupd_guid_t to read
@@ -886,61 +886,61 @@ export function guid_to_string(guid: number, flags: GuidFlags): string | null
886
886
  * @param keyring_kind a string, e.g. `gpg`
887
887
  * @returns a #FwupdKeyringKind, e.g. %FWUPD_KEYRING_KIND_GPG
888
888
  */
889
- export function keyring_kind_from_string(keyring_kind: string | null): KeyringKind
889
+ export function keyring_kind_from_string(keyring_kind: string): KeyringKind
890
890
  /**
891
891
  * Converts an enumerated type to a printable string.
892
892
  * @param keyring_kind a #FwupdKeyringKind, e.g. %FWUPD_KEYRING_KIND_GPG
893
893
  * @returns a string, e.g. `gpg`
894
894
  */
895
- export function keyring_kind_to_string(keyring_kind: KeyringKind): string | null
895
+ export function keyring_kind_to_string(keyring_kind: KeyringKind): string
896
896
  /**
897
897
  * Converts a string to a #FwupdStatus.
898
898
  * @param status A string, e.g. `decompressing`
899
899
  * @returns enumerated value
900
900
  */
901
- export function status_from_string(status: string | null): Status
901
+ export function status_from_string(status: string): Status
902
902
  /**
903
903
  * Converts a #FwupdStatus to a string.
904
904
  * @param status A #FwupdStatus, e.g. %FWUPD_STATUS_DECOMPRESSING
905
905
  * @returns identifier string
906
906
  */
907
- export function status_to_string(status: Status): string | null
907
+ export function status_to_string(status: Status): string
908
908
  /**
909
909
  * Converts a string to a #FwupdTrustFlags.
910
910
  * @param trust_flag A string, e.g. `payload`
911
911
  * @returns enumerated value
912
912
  */
913
- export function trust_flag_from_string(trust_flag: string | null): TrustFlags
913
+ export function trust_flag_from_string(trust_flag: string): TrustFlags
914
914
  /**
915
915
  * Converts a #FwupdTrustFlags to a string.
916
916
  * @param trust_flag A #FwupdTrustFlags, e.g. %FWUPD_TRUST_FLAG_PAYLOAD
917
917
  * @returns identifier string
918
918
  */
919
- export function trust_flag_to_string(trust_flag: TrustFlags): string | null
919
+ export function trust_flag_to_string(trust_flag: TrustFlags): string
920
920
  /**
921
921
  * Converts a string to a #FwupdUpdateState.
922
922
  * @param update_state A string, e.g. `pending`
923
923
  * @returns enumerated value
924
924
  */
925
- export function update_state_from_string(update_state: string | null): UpdateState
925
+ export function update_state_from_string(update_state: string): UpdateState
926
926
  /**
927
927
  * Converts a #FwupdUpdateState to a string.
928
928
  * @param update_state A #FwupdUpdateState, e.g. %FWUPD_UPDATE_STATE_PENDING
929
929
  * @returns identifier string
930
930
  */
931
- export function update_state_to_string(update_state: UpdateState): string | null
931
+ export function update_state_to_string(update_state: UpdateState): string
932
932
  /**
933
933
  * Converts text to a display version type.
934
934
  * @param str A string, e.g. `quad`
935
935
  * @returns A #FwupdVersionFormat, e.g. %FWUPD_VERSION_FORMAT_TRIPLET
936
936
  */
937
- export function version_format_from_string(str: string | null): VersionFormat
937
+ export function version_format_from_string(str: string): VersionFormat
938
938
  /**
939
939
  * Converts a display version type to text.
940
940
  * @param kind A #FwupdVersionFormat, e.g. %FWUPD_VERSION_FORMAT_TRIPLET
941
941
  * @returns A string, e.g. `quad`, or %NULL if not known
942
942
  */
943
- export function version_format_to_string(kind: VersionFormat): string | null
943
+ export function version_format_to_string(kind: VersionFormat): string
944
944
  export module Client {
945
945
 
946
946
  // Signal callback interfaces
@@ -1073,7 +1073,7 @@ export interface Client {
1073
1073
  * @param device_id a device
1074
1074
  * @returns %TRUE for success
1075
1075
  */
1076
- activate(cancellable: Gio.Cancellable | null, device_id: string | null): boolean
1076
+ activate(cancellable: Gio.Cancellable | null, device_id: string): boolean
1077
1077
  /**
1078
1078
  * Activates up a device, which normally means the device switches to a new
1079
1079
  * firmware version. This should only be called when data loss cannot occur.
@@ -1081,7 +1081,7 @@ export interface Client {
1081
1081
  * @param cancellable the #GCancellable, or %NULL
1082
1082
  * @param callback the function to run on completion
1083
1083
  */
1084
- activate_async(device_id: string | null, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
1084
+ activate_async(device_id: string, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
1085
1085
 
1086
1086
  // Overloads of activate_async
1087
1087
 
@@ -1094,7 +1094,7 @@ export interface Client {
1094
1094
  * @param cancellable the #GCancellable, or %NULL
1095
1095
  * @returns A Promise of: %TRUE for success
1096
1096
  */
1097
- activate_async(device_id: string | null, cancellable: Gio.Cancellable | null): globalThis.Promise<boolean>
1097
+ activate_async(device_id: string, cancellable: Gio.Cancellable | null): globalThis.Promise<boolean>
1098
1098
  /**
1099
1099
  * Gets the result of fwupd_client_activate_async().
1100
1100
  * @param res the #GAsyncResult
@@ -1107,14 +1107,14 @@ export interface Client {
1107
1107
  * @param cancellable the #GCancellable, or %NULL
1108
1108
  * @returns %TRUE for success
1109
1109
  */
1110
- clear_results(device_id: string | null, cancellable: Gio.Cancellable | null): boolean
1110
+ clear_results(device_id: string, cancellable: Gio.Cancellable | null): boolean
1111
1111
  /**
1112
1112
  * Clears the results for a specific device.
1113
1113
  * @param device_id a device
1114
1114
  * @param cancellable the #GCancellable, or %NULL
1115
1115
  * @param callback the function to run on completion
1116
1116
  */
1117
- clear_results_async(device_id: string | null, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
1117
+ clear_results_async(device_id: string, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
1118
1118
 
1119
1119
  // Overloads of clear_results_async
1120
1120
 
@@ -1126,7 +1126,7 @@ export interface Client {
1126
1126
  * @param cancellable the #GCancellable, or %NULL
1127
1127
  * @returns A Promise of: %TRUE for success
1128
1128
  */
1129
- clear_results_async(device_id: string | null, cancellable: Gio.Cancellable | null): globalThis.Promise<boolean>
1129
+ clear_results_async(device_id: string, cancellable: Gio.Cancellable | null): globalThis.Promise<boolean>
1130
1130
  /**
1131
1131
  * Gets the result of fwupd_client_clear_results_async().
1132
1132
  * @param res the #GAsyncResult
@@ -1180,7 +1180,7 @@ export interface Client {
1180
1180
  * @param cancellable the #GCancellable, or %NULL
1181
1181
  * @returns downloaded data, or %NULL for error
1182
1182
  */
1183
- download_bytes(url: string | null, flags: ClientDownloadFlags, cancellable: Gio.Cancellable | null): GLib.Bytes
1183
+ download_bytes(url: string, flags: ClientDownloadFlags, cancellable: Gio.Cancellable | null): GLib.Bytes
1184
1184
  /**
1185
1185
  * Downloads data from a remote server. The fwupd_client_set_user_agent() function
1186
1186
  * should be called before this method is used.
@@ -1196,7 +1196,7 @@ export interface Client {
1196
1196
  * @param cancellable the #GCancellable, or %NULL
1197
1197
  * @param callback the function to run on completion
1198
1198
  */
1199
- download_bytes_async(url: string | null, flags: ClientDownloadFlags, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
1199
+ download_bytes_async(url: string, flags: ClientDownloadFlags, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
1200
1200
 
1201
1201
  // Overloads of download_bytes_async
1202
1202
 
@@ -1217,7 +1217,7 @@ export interface Client {
1217
1217
  * @param cancellable the #GCancellable, or %NULL
1218
1218
  * @returns A Promise of: downloaded data, or %NULL for error
1219
1219
  */
1220
- download_bytes_async(url: string | null, flags: ClientDownloadFlags, cancellable: Gio.Cancellable | null): globalThis.Promise<GLib.Bytes>
1220
+ download_bytes_async(url: string, flags: ClientDownloadFlags, cancellable: Gio.Cancellable | null): globalThis.Promise<GLib.Bytes>
1221
1221
  /**
1222
1222
  * Gets the result of fwupd_client_download_bytes_async().
1223
1223
  * @param res the #GAsyncResult
@@ -1233,7 +1233,7 @@ export interface Client {
1233
1233
  * @param cancellable the #GCancellable, or %NULL
1234
1234
  * @returns %TRUE if the file was written, or %NULL for error
1235
1235
  */
1236
- download_file(url: string | null, file: Gio.File, flags: ClientDownloadFlags, cancellable: Gio.Cancellable | null): boolean
1236
+ download_file(url: string, file: Gio.File, flags: ClientDownloadFlags, cancellable: Gio.Cancellable | null): boolean
1237
1237
  /**
1238
1238
  * Sets up the client networking support ready for use. Most other download and
1239
1239
  * upload methods call this automatically, and do you only need to call this if
@@ -1320,14 +1320,14 @@ export interface Client {
1320
1320
  * Gets the daemon version number.
1321
1321
  * @returns a string, or %NULL for unknown.
1322
1322
  */
1323
- get_daemon_version(): string | null
1323
+ get_daemon_version(): string
1324
1324
  /**
1325
1325
  * Gets details about a specific firmware file.
1326
1326
  * @param filename the firmware filename, e.g. `firmware.cab`
1327
1327
  * @param cancellable the #GCancellable, or %NULL
1328
1328
  * @returns an array of results
1329
1329
  */
1330
- get_details(filename: string | null, cancellable: Gio.Cancellable | null): Device[]
1330
+ get_details(filename: string, cancellable: Gio.Cancellable | null): Device[]
1331
1331
  /**
1332
1332
  * Gets details about a specific firmware file.
1333
1333
  * @param bytes the firmware blob, e.g. the contents of `firmware.cab`
@@ -1366,7 +1366,7 @@ export interface Client {
1366
1366
  * @param cancellable the #GCancellable, or %NULL
1367
1367
  * @returns a #FwupdDevice or %NULL
1368
1368
  */
1369
- get_device_by_id(device_id: string | null, cancellable: Gio.Cancellable | null): Device
1369
+ get_device_by_id(device_id: string, cancellable: Gio.Cancellable | null): Device
1370
1370
  /**
1371
1371
  * Gets a device by it's device ID.
1372
1372
  *
@@ -1376,7 +1376,7 @@ export interface Client {
1376
1376
  * @param cancellable the #GCancellable, or %NULL
1377
1377
  * @param callback the function to run on completion
1378
1378
  */
1379
- get_device_by_id_async(device_id: string | null, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
1379
+ get_device_by_id_async(device_id: string, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
1380
1380
 
1381
1381
  // Overloads of get_device_by_id_async
1382
1382
 
@@ -1391,7 +1391,7 @@ export interface Client {
1391
1391
  * @param cancellable the #GCancellable, or %NULL
1392
1392
  * @returns A Promise of: a #FwupdDevice, or %NULL for failure
1393
1393
  */
1394
- get_device_by_id_async(device_id: string | null, cancellable: Gio.Cancellable | null): globalThis.Promise<Device>
1394
+ get_device_by_id_async(device_id: string, cancellable: Gio.Cancellable | null): globalThis.Promise<Device>
1395
1395
  /**
1396
1396
  * Gets the result of fwupd_client_get_device_by_id_async().
1397
1397
  * @param res the #GAsyncResult
@@ -1434,7 +1434,7 @@ export interface Client {
1434
1434
  * @param cancellable the #GCancellable, or %NULL
1435
1435
  * @returns devices or %NULL
1436
1436
  */
1437
- get_devices_by_guid(guid: string | null, cancellable: Gio.Cancellable | null): Device[]
1437
+ get_devices_by_guid(guid: string, cancellable: Gio.Cancellable | null): Device[]
1438
1438
  /**
1439
1439
  * Gets any devices that provide a specific GUID. An error is returned if no
1440
1440
  * devices contains this GUID.
@@ -1445,7 +1445,7 @@ export interface Client {
1445
1445
  * @param cancellable the #GCancellable, or %NULL
1446
1446
  * @param callback the function to run on completion
1447
1447
  */
1448
- get_devices_by_guid_async(guid: string | null, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
1448
+ get_devices_by_guid_async(guid: string, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
1449
1449
 
1450
1450
  // Overloads of get_devices_by_guid_async
1451
1451
 
@@ -1461,7 +1461,7 @@ export interface Client {
1461
1461
  * @param cancellable the #GCancellable, or %NULL
1462
1462
  * @returns A Promise of: results
1463
1463
  */
1464
- get_devices_by_guid_async(guid: string | null, cancellable: Gio.Cancellable | null): globalThis.Promise<Release[]>
1464
+ get_devices_by_guid_async(guid: string, cancellable: Gio.Cancellable | null): globalThis.Promise<Release[]>
1465
1465
  /**
1466
1466
  * Gets the result of fwupd_client_get_devices_by_guid_async().
1467
1467
  * @param res the #GAsyncResult
@@ -1480,7 +1480,7 @@ export interface Client {
1480
1480
  * @param cancellable the #GCancellable, or %NULL
1481
1481
  * @returns results
1482
1482
  */
1483
- get_downgrades(device_id: string | null, cancellable: Gio.Cancellable | null): Release[]
1483
+ get_downgrades(device_id: string, cancellable: Gio.Cancellable | null): Release[]
1484
1484
  /**
1485
1485
  * Gets all the downgrades for a specific device.
1486
1486
  *
@@ -1490,7 +1490,7 @@ export interface Client {
1490
1490
  * @param cancellable the #GCancellable, or %NULL
1491
1491
  * @param callback the function to run on completion
1492
1492
  */
1493
- get_downgrades_async(device_id: string | null, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
1493
+ get_downgrades_async(device_id: string, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
1494
1494
 
1495
1495
  // Overloads of get_downgrades_async
1496
1496
 
@@ -1505,7 +1505,7 @@ export interface Client {
1505
1505
  * @param cancellable the #GCancellable, or %NULL
1506
1506
  * @returns A Promise of: results
1507
1507
  */
1508
- get_downgrades_async(device_id: string | null, cancellable: Gio.Cancellable | null): globalThis.Promise<Release[]>
1508
+ get_downgrades_async(device_id: string, cancellable: Gio.Cancellable | null): globalThis.Promise<Release[]>
1509
1509
  /**
1510
1510
  * Gets the result of fwupd_client_get_downgrades_async().
1511
1511
  * @param res the #GAsyncResult
@@ -1551,12 +1551,12 @@ export interface Client {
1551
1551
  * Gets the string that represents the host machine ID
1552
1552
  * @returns a string, or %NULL for unknown.
1553
1553
  */
1554
- get_host_machine_id(): string | null
1554
+ get_host_machine_id(): string
1555
1555
  /**
1556
1556
  * Gets the string that represents the host running fwupd
1557
1557
  * @returns a string, or %NULL for unknown.
1558
1558
  */
1559
- get_host_product(): string | null
1559
+ get_host_product(): string
1560
1560
  /**
1561
1561
  * Gets all the host security attributes from the daemon.
1562
1562
  * @param cancellable the #GCancellable, or %NULL
@@ -1596,7 +1596,7 @@ export interface Client {
1596
1596
  * Gets the string that represents the host machine ID
1597
1597
  * @returns a string, or %NULL for unknown.
1598
1598
  */
1599
- get_host_security_id(): string | null
1599
+ get_host_security_id(): string
1600
1600
  /**
1601
1601
  * Gets the internal #GMainContext to use for synchronous methods.
1602
1602
  * By default the value is set a new #GMainContext.
@@ -1649,7 +1649,7 @@ export interface Client {
1649
1649
  * @param cancellable the #GCancellable, or %NULL
1650
1650
  * @returns results
1651
1651
  */
1652
- get_releases(device_id: string | null, cancellable: Gio.Cancellable | null): Release[]
1652
+ get_releases(device_id: string, cancellable: Gio.Cancellable | null): Release[]
1653
1653
  /**
1654
1654
  * Gets all the releases for a specific device
1655
1655
  *
@@ -1659,7 +1659,7 @@ export interface Client {
1659
1659
  * @param cancellable the #GCancellable, or %NULL
1660
1660
  * @param callback the function to run on completion
1661
1661
  */
1662
- get_releases_async(device_id: string | null, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
1662
+ get_releases_async(device_id: string, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
1663
1663
 
1664
1664
  // Overloads of get_releases_async
1665
1665
 
@@ -1674,7 +1674,7 @@ export interface Client {
1674
1674
  * @param cancellable the #GCancellable, or %NULL
1675
1675
  * @returns A Promise of: results
1676
1676
  */
1677
- get_releases_async(device_id: string | null, cancellable: Gio.Cancellable | null): globalThis.Promise<Release[]>
1677
+ get_releases_async(device_id: string, cancellable: Gio.Cancellable | null): globalThis.Promise<Release[]>
1678
1678
  /**
1679
1679
  * Gets the result of fwupd_client_get_releases_async().
1680
1680
  * @param res the #GAsyncResult
@@ -1687,14 +1687,14 @@ export interface Client {
1687
1687
  * @param cancellable the #GCancellable, or %NULL
1688
1688
  * @returns a #FwupdRemote, or %NULL if not found
1689
1689
  */
1690
- get_remote_by_id(remote_id: string | null, cancellable: Gio.Cancellable | null): Remote
1690
+ get_remote_by_id(remote_id: string, cancellable: Gio.Cancellable | null): Remote
1691
1691
  /**
1692
1692
  * Gets a specific remote that has been configured for the system.
1693
1693
  * @param remote_id the remote ID, e.g. `lvfs-testing`
1694
1694
  * @param cancellable the #GCancellable, or %NULL
1695
1695
  * @param callback the function to run on completion
1696
1696
  */
1697
- get_remote_by_id_async(remote_id: string | null, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
1697
+ get_remote_by_id_async(remote_id: string, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
1698
1698
 
1699
1699
  // Overloads of get_remote_by_id_async
1700
1700
 
@@ -1706,7 +1706,7 @@ export interface Client {
1706
1706
  * @param cancellable the #GCancellable, or %NULL
1707
1707
  * @returns A Promise of: a #FwupdRemote, or %NULL if not found
1708
1708
  */
1709
- get_remote_by_id_async(remote_id: string | null, cancellable: Gio.Cancellable | null): globalThis.Promise<Remote>
1709
+ get_remote_by_id_async(remote_id: string, cancellable: Gio.Cancellable | null): globalThis.Promise<Remote>
1710
1710
  /**
1711
1711
  * Gets the result of fwupd_client_get_remote_by_id_async().
1712
1712
  * @param res the #GAsyncResult
@@ -1789,7 +1789,7 @@ export interface Client {
1789
1789
  * @param cancellable the #GCancellable, or %NULL
1790
1790
  * @returns a #FwupdDevice, or %NULL for failure
1791
1791
  */
1792
- get_results(device_id: string | null, cancellable: Gio.Cancellable | null): Device
1792
+ get_results(device_id: string, cancellable: Gio.Cancellable | null): Device
1793
1793
  /**
1794
1794
  * Gets the results of a previous firmware update for a specific device.
1795
1795
  *
@@ -1799,7 +1799,7 @@ export interface Client {
1799
1799
  * @param cancellable the #GCancellable, or %NULL
1800
1800
  * @param callback the function to run on completion
1801
1801
  */
1802
- get_results_async(device_id: string | null, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
1802
+ get_results_async(device_id: string, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
1803
1803
 
1804
1804
  // Overloads of get_results_async
1805
1805
 
@@ -1814,7 +1814,7 @@ export interface Client {
1814
1814
  * @param cancellable the #GCancellable, or %NULL
1815
1815
  * @returns A Promise of: a #FwupdDevice, or %NULL for failure
1816
1816
  */
1817
- get_results_async(device_id: string | null, cancellable: Gio.Cancellable | null): globalThis.Promise<Device>
1817
+ get_results_async(device_id: string, cancellable: Gio.Cancellable | null): globalThis.Promise<Device>
1818
1818
  /**
1819
1819
  * Gets the result of fwupd_client_get_results_async().
1820
1820
  * @param res the #GAsyncResult
@@ -1837,7 +1837,7 @@ export interface Client {
1837
1837
  * @param cancellable the #GCancellable, or %NULL
1838
1838
  * @returns results
1839
1839
  */
1840
- get_upgrades(device_id: string | null, cancellable: Gio.Cancellable | null): Release[]
1840
+ get_upgrades(device_id: string, cancellable: Gio.Cancellable | null): Release[]
1841
1841
  /**
1842
1842
  * Gets all the upgrades for a specific device.
1843
1843
  *
@@ -1847,7 +1847,7 @@ export interface Client {
1847
1847
  * @param cancellable the #GCancellable, or %NULL
1848
1848
  * @param callback the function to run on completion
1849
1849
  */
1850
- get_upgrades_async(device_id: string | null, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
1850
+ get_upgrades_async(device_id: string, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
1851
1851
 
1852
1852
  // Overloads of get_upgrades_async
1853
1853
 
@@ -1862,7 +1862,7 @@ export interface Client {
1862
1862
  * @param cancellable the #GCancellable, or %NULL
1863
1863
  * @returns A Promise of: results
1864
1864
  */
1865
- get_upgrades_async(device_id: string | null, cancellable: Gio.Cancellable | null): globalThis.Promise<Release[]>
1865
+ get_upgrades_async(device_id: string, cancellable: Gio.Cancellable | null): globalThis.Promise<Release[]>
1866
1866
  /**
1867
1867
  * Gets the result of fwupd_client_get_upgrades_async().
1868
1868
  * @param res the #GAsyncResult
@@ -1875,7 +1875,7 @@ export interface Client {
1875
1875
  * version of fwupd somewhere in the provided string.
1876
1876
  * @returns a string, or %NULL for unknown.
1877
1877
  */
1878
- get_user_agent(): string | null
1878
+ get_user_agent(): string
1879
1879
  /**
1880
1880
  * Install a file onto a specific device.
1881
1881
  * @param device_id the device ID
@@ -1884,7 +1884,7 @@ export interface Client {
1884
1884
  * @param cancellable the #GCancellable, or %NULL
1885
1885
  * @returns %TRUE for success
1886
1886
  */
1887
- install(device_id: string | null, filename: string | null, install_flags: InstallFlags, cancellable: Gio.Cancellable | null): boolean
1887
+ install(device_id: string, filename: string, install_flags: InstallFlags, cancellable: Gio.Cancellable | null): boolean
1888
1888
  /**
1889
1889
  * Install firmware onto a specific device.
1890
1890
  *
@@ -1897,7 +1897,7 @@ export interface Client {
1897
1897
  * @param cancellable the #GCancellable, or %NULL
1898
1898
  * @param callback the function to run on completion
1899
1899
  */
1900
- install_async(device_id: string | null, filename: string | null, install_flags: InstallFlags, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
1900
+ install_async(device_id: string, filename: string, install_flags: InstallFlags, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
1901
1901
 
1902
1902
  // Overloads of install_async
1903
1903
 
@@ -1915,7 +1915,7 @@ export interface Client {
1915
1915
  * @param cancellable the #GCancellable, or %NULL
1916
1916
  * @returns A Promise of: %TRUE for success
1917
1917
  */
1918
- install_async(device_id: string | null, filename: string | null, install_flags: InstallFlags, cancellable: Gio.Cancellable | null): globalThis.Promise<boolean>
1918
+ install_async(device_id: string, filename: string, install_flags: InstallFlags, cancellable: Gio.Cancellable | null): globalThis.Promise<boolean>
1919
1919
  /**
1920
1920
  * Install firmware onto a specific device.
1921
1921
  * @param device_id the device ID
@@ -1924,7 +1924,7 @@ export interface Client {
1924
1924
  * @param cancellable the #GCancellable, or %NULL
1925
1925
  * @returns %TRUE for success
1926
1926
  */
1927
- install_bytes(device_id: string | null, bytes: GLib.Bytes, install_flags: InstallFlags, cancellable: Gio.Cancellable | null): boolean
1927
+ install_bytes(device_id: string, bytes: GLib.Bytes, install_flags: InstallFlags, cancellable: Gio.Cancellable | null): boolean
1928
1928
  /**
1929
1929
  * Install firmware onto a specific device.
1930
1930
  *
@@ -1937,7 +1937,7 @@ export interface Client {
1937
1937
  * @param cancellable the #GCancellable, or %NULL
1938
1938
  * @param callback the function to run on completion
1939
1939
  */
1940
- install_bytes_async(device_id: string | null, bytes: GLib.Bytes, install_flags: InstallFlags, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
1940
+ install_bytes_async(device_id: string, bytes: GLib.Bytes, install_flags: InstallFlags, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
1941
1941
 
1942
1942
  // Overloads of install_bytes_async
1943
1943
 
@@ -1955,7 +1955,7 @@ export interface Client {
1955
1955
  * @param cancellable the #GCancellable, or %NULL
1956
1956
  * @returns A Promise of: %TRUE for success
1957
1957
  */
1958
- install_bytes_async(device_id: string | null, bytes: GLib.Bytes, install_flags: InstallFlags, cancellable: Gio.Cancellable | null): globalThis.Promise<boolean>
1958
+ install_bytes_async(device_id: string, bytes: GLib.Bytes, install_flags: InstallFlags, cancellable: Gio.Cancellable | null): globalThis.Promise<boolean>
1959
1959
  /**
1960
1960
  * Gets the result of fwupd_client_install_bytes_async().
1961
1961
  * @param res the #GAsyncResult
@@ -2046,7 +2046,7 @@ export interface Client {
2046
2046
  * @param cancellable the #GCancellable, or %NULL
2047
2047
  * @returns %TRUE for success
2048
2048
  */
2049
- modify_config(key: string | null, value: string | null, cancellable: Gio.Cancellable | null): boolean
2049
+ modify_config(key: string, value: string, cancellable: Gio.Cancellable | null): boolean
2050
2050
  /**
2051
2051
  * Modifies a daemon config option.
2052
2052
  * The daemon will only respond to this request with proper permissions
@@ -2055,7 +2055,7 @@ export interface Client {
2055
2055
  * @param cancellable the #GCancellable, or %NULL
2056
2056
  * @param callback the function to run on completion
2057
2057
  */
2058
- modify_config_async(key: string | null, value: string | null, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
2058
+ modify_config_async(key: string, value: string, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
2059
2059
 
2060
2060
  // Overloads of modify_config_async
2061
2061
 
@@ -2069,7 +2069,7 @@ export interface Client {
2069
2069
  * @param cancellable the #GCancellable, or %NULL
2070
2070
  * @returns A Promise of: %TRUE for success
2071
2071
  */
2072
- modify_config_async(key: string | null, value: string | null, cancellable: Gio.Cancellable | null): globalThis.Promise<boolean>
2072
+ modify_config_async(key: string, value: string, cancellable: Gio.Cancellable | null): globalThis.Promise<boolean>
2073
2073
  /**
2074
2074
  * Gets the result of fwupd_client_modify_config_async().
2075
2075
  * @param res the #GAsyncResult
@@ -2087,7 +2087,7 @@ export interface Client {
2087
2087
  * @param cancellable the #GCancellable, or %NULL
2088
2088
  * @returns %TRUE for success
2089
2089
  */
2090
- modify_device(device_id: string | null, key: string | null, value: string | null, cancellable: Gio.Cancellable | null): boolean
2090
+ modify_device(device_id: string, key: string, value: string, cancellable: Gio.Cancellable | null): boolean
2091
2091
  /**
2092
2092
  * Modifies a device in a specific way. Not all properties on the #FwupdDevice
2093
2093
  * are settable by the client, and some may have other restrictions on `value`.
@@ -2097,7 +2097,7 @@ export interface Client {
2097
2097
  * @param cancellable the #GCancellable, or %NULL
2098
2098
  * @param callback the function to run on completion
2099
2099
  */
2100
- modify_device_async(device_id: string | null, key: string | null, value: string | null, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
2100
+ modify_device_async(device_id: string, key: string, value: string, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
2101
2101
 
2102
2102
  // Overloads of modify_device_async
2103
2103
 
@@ -2112,7 +2112,7 @@ export interface Client {
2112
2112
  * @param cancellable the #GCancellable, or %NULL
2113
2113
  * @returns A Promise of: %TRUE for success
2114
2114
  */
2115
- modify_device_async(device_id: string | null, key: string | null, value: string | null, cancellable: Gio.Cancellable | null): globalThis.Promise<boolean>
2115
+ modify_device_async(device_id: string, key: string, value: string, cancellable: Gio.Cancellable | null): globalThis.Promise<boolean>
2116
2116
  /**
2117
2117
  * Gets the result of fwupd_client_modify_device_async().
2118
2118
  * @param res the #GAsyncResult
@@ -2129,7 +2129,7 @@ export interface Client {
2129
2129
  * @param cancellable the #GCancellable, or %NULL
2130
2130
  * @returns %TRUE for success
2131
2131
  */
2132
- modify_remote(remote_id: string | null, key: string | null, value: string | null, cancellable: Gio.Cancellable | null): boolean
2132
+ modify_remote(remote_id: string, key: string, value: string, cancellable: Gio.Cancellable | null): boolean
2133
2133
  /**
2134
2134
  * Modifies a system remote in a specific way.
2135
2135
  * @param remote_id the remote ID, e.g. `lvfs-testing`
@@ -2138,7 +2138,7 @@ export interface Client {
2138
2138
  * @param cancellable the #GCancellable, or %NULL
2139
2139
  * @param callback the function to run on completion
2140
2140
  */
2141
- modify_remote_async(remote_id: string | null, key: string | null, value: string | null, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
2141
+ modify_remote_async(remote_id: string, key: string, value: string, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
2142
2142
 
2143
2143
  // Overloads of modify_remote_async
2144
2144
 
@@ -2152,7 +2152,7 @@ export interface Client {
2152
2152
  * @param cancellable the #GCancellable, or %NULL
2153
2153
  * @returns A Promise of: %TRUE for success
2154
2154
  */
2155
- modify_remote_async(remote_id: string | null, key: string | null, value: string | null, cancellable: Gio.Cancellable | null): globalThis.Promise<boolean>
2155
+ modify_remote_async(remote_id: string, key: string, value: string, cancellable: Gio.Cancellable | null): globalThis.Promise<boolean>
2156
2156
  /**
2157
2157
  * Gets the result of fwupd_client_modify_remote_async().
2158
2158
  * @param res the #GAsyncResult
@@ -2206,7 +2206,7 @@ export interface Client {
2206
2206
  * @param cancellable the #GCancellable, or %NULL
2207
2207
  * @returns a signature, or %NULL for failure
2208
2208
  */
2209
- self_sign(value: string | null, flags: SelfSignFlags, cancellable: Gio.Cancellable | null): string | null
2209
+ self_sign(value: string, flags: SelfSignFlags, cancellable: Gio.Cancellable | null): string | null
2210
2210
  /**
2211
2211
  * Signs the data using the client self-signed certificate.
2212
2212
  *
@@ -2217,7 +2217,7 @@ export interface Client {
2217
2217
  * @param cancellable the #GCancellable, or %NULL
2218
2218
  * @param callback the function to run on completion
2219
2219
  */
2220
- self_sign_async(value: string | null, flags: SelfSignFlags, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
2220
+ self_sign_async(value: string, flags: SelfSignFlags, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
2221
2221
 
2222
2222
  // Overloads of self_sign_async
2223
2223
 
@@ -2233,7 +2233,7 @@ export interface Client {
2233
2233
  * @param cancellable the #GCancellable, or %NULL
2234
2234
  * @returns A Promise of: a signature, or %NULL for failure
2235
2235
  */
2236
- self_sign_async(value: string | null, flags: SelfSignFlags, cancellable: Gio.Cancellable | null): globalThis.Promise<string | null>
2236
+ self_sign_async(value: string, flags: SelfSignFlags, cancellable: Gio.Cancellable | null): globalThis.Promise<string | null>
2237
2237
  /**
2238
2238
  * Gets the result of fwupd_client_self_sign_async().
2239
2239
  * @param res the #GAsyncResult
@@ -2354,7 +2354,7 @@ export interface Client {
2354
2354
  * should contain the runtime version of fwupd somewhere in the provided string.
2355
2355
  * @param user_agent the user agent ID, e.g. `gnome-software/3.34.1`
2356
2356
  */
2357
- set_user_agent(user_agent: string | null): void
2357
+ set_user_agent(user_agent: string): void
2358
2358
  /**
2359
2359
  * Builds a user-agent to use for the download.
2360
2360
  *
@@ -2368,21 +2368,21 @@ export interface Client {
2368
2368
  * @param package_name client program name, e.g. "gnome-software"
2369
2369
  * @param package_version client program version, e.g. "3.28.1"
2370
2370
  */
2371
- set_user_agent_for_package(package_name: string | null, package_version: string | null): void
2371
+ set_user_agent_for_package(package_name: string, package_version: string): void
2372
2372
  /**
2373
2373
  * Unlocks a specific device so firmware can be read or wrote.
2374
2374
  * @param device_id the device ID
2375
2375
  * @param cancellable the #GCancellable, or %NULL
2376
2376
  * @returns %TRUE for success
2377
2377
  */
2378
- unlock(device_id: string | null, cancellable: Gio.Cancellable | null): boolean
2378
+ unlock(device_id: string, cancellable: Gio.Cancellable | null): boolean
2379
2379
  /**
2380
2380
  * Unlocks a specific device so firmware can be read or wrote.
2381
2381
  * @param device_id the device ID
2382
2382
  * @param cancellable the #GCancellable, or %NULL
2383
2383
  * @param callback the function to run on completion
2384
2384
  */
2385
- unlock_async(device_id: string | null, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
2385
+ unlock_async(device_id: string, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
2386
2386
 
2387
2387
  // Overloads of unlock_async
2388
2388
 
@@ -2394,7 +2394,7 @@ export interface Client {
2394
2394
  * @param cancellable the #GCancellable, or %NULL
2395
2395
  * @returns A Promise of: %TRUE for success
2396
2396
  */
2397
- unlock_async(device_id: string | null, cancellable: Gio.Cancellable | null): globalThis.Promise<boolean>
2397
+ unlock_async(device_id: string, cancellable: Gio.Cancellable | null): globalThis.Promise<boolean>
2398
2398
  /**
2399
2399
  * Gets the result of fwupd_client_unlock_async().
2400
2400
  * @param res the #GAsyncResult
@@ -2414,7 +2414,7 @@ export interface Client {
2414
2414
  * @param cancellable the #GCancellable, or %NULL
2415
2415
  * @returns %TRUE for success
2416
2416
  */
2417
- update_metadata(remote_id: string | null, metadata_fn: string | null, signature_fn: string | null, cancellable: Gio.Cancellable | null): boolean
2417
+ update_metadata(remote_id: string, metadata_fn: string, signature_fn: string, cancellable: Gio.Cancellable | null): boolean
2418
2418
  /**
2419
2419
  * Updates the metadata. This allows a session process to download the metadata
2420
2420
  * and metadata signing file to be passed into the daemon to be checked and
@@ -2428,7 +2428,7 @@ export interface Client {
2428
2428
  * @param cancellable #GCancellable, or %NULL
2429
2429
  * @returns %TRUE for success
2430
2430
  */
2431
- update_metadata_bytes(remote_id: string | null, metadata: GLib.Bytes, signature: GLib.Bytes, cancellable: Gio.Cancellable | null): boolean
2431
+ update_metadata_bytes(remote_id: string, metadata: GLib.Bytes, signature: GLib.Bytes, cancellable: Gio.Cancellable | null): boolean
2432
2432
  /**
2433
2433
  * Updates the metadata. This allows a session process to download the metadata
2434
2434
  * and metadata signing file to be passed into the daemon to be checked and
@@ -2446,7 +2446,7 @@ export interface Client {
2446
2446
  * @param cancellable #GCancellable, or %NULL
2447
2447
  * @param callback the function to run on completion
2448
2448
  */
2449
- update_metadata_bytes_async(remote_id: string | null, metadata: GLib.Bytes, signature: GLib.Bytes, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
2449
+ update_metadata_bytes_async(remote_id: string, metadata: GLib.Bytes, signature: GLib.Bytes, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
2450
2450
 
2451
2451
  // Overloads of update_metadata_bytes_async
2452
2452
 
@@ -2469,7 +2469,7 @@ export interface Client {
2469
2469
  * @param cancellable #GCancellable, or %NULL
2470
2470
  * @returns A Promise of: %TRUE for success
2471
2471
  */
2472
- update_metadata_bytes_async(remote_id: string | null, metadata: GLib.Bytes, signature: GLib.Bytes, cancellable: Gio.Cancellable | null): globalThis.Promise<boolean>
2472
+ update_metadata_bytes_async(remote_id: string, metadata: GLib.Bytes, signature: GLib.Bytes, cancellable: Gio.Cancellable | null): globalThis.Promise<boolean>
2473
2473
  /**
2474
2474
  * Gets the result of fwupd_client_update_metadata_bytes_async().
2475
2475
  * @param res the #GAsyncResult
@@ -2486,7 +2486,7 @@ export interface Client {
2486
2486
  * @param cancellable the #GCancellable, or %NULL
2487
2487
  * @returns response data, or %NULL for error
2488
2488
  */
2489
- upload_bytes(url: string | null, payload: string | null, signature: string | null, flags: ClientUploadFlags, cancellable: Gio.Cancellable | null): GLib.Bytes
2489
+ upload_bytes(url: string, payload: string, signature: string | null, flags: ClientUploadFlags, cancellable: Gio.Cancellable | null): GLib.Bytes
2490
2490
  /**
2491
2491
  * Uploads data to a remote server. The fwupd_client_set_user_agent() function
2492
2492
  * should be called before this method is used.
@@ -2504,7 +2504,7 @@ export interface Client {
2504
2504
  * @param cancellable the #GCancellable, or %NULL
2505
2505
  * @param callback the function to run on completion
2506
2506
  */
2507
- upload_bytes_async(url: string | null, payload: string | null, signature: string | null, flags: ClientUploadFlags, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
2507
+ upload_bytes_async(url: string, payload: string, signature: string | null, flags: ClientUploadFlags, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
2508
2508
 
2509
2509
  // Overloads of upload_bytes_async
2510
2510
 
@@ -2527,7 +2527,7 @@ export interface Client {
2527
2527
  * @param cancellable the #GCancellable, or %NULL
2528
2528
  * @returns A Promise of: response data, or %NULL for error
2529
2529
  */
2530
- upload_bytes_async(url: string | null, payload: string | null, signature: string | null, flags: ClientUploadFlags, cancellable: Gio.Cancellable | null): globalThis.Promise<GLib.Bytes>
2530
+ upload_bytes_async(url: string, payload: string, signature: string | null, flags: ClientUploadFlags, cancellable: Gio.Cancellable | null): globalThis.Promise<GLib.Bytes>
2531
2531
  /**
2532
2532
  * Gets the result of fwupd_client_upload_bytes_async().
2533
2533
  * @param res the #GAsyncResult
@@ -2540,14 +2540,14 @@ export interface Client {
2540
2540
  * @param cancellable the #GCancellable, or %NULL
2541
2541
  * @returns %TRUE for verification success
2542
2542
  */
2543
- verify(device_id: string | null, cancellable: Gio.Cancellable | null): boolean
2543
+ verify(device_id: string, cancellable: Gio.Cancellable | null): boolean
2544
2544
  /**
2545
2545
  * Verify a specific device.
2546
2546
  * @param device_id the device ID
2547
2547
  * @param cancellable the #GCancellable, or %NULL
2548
2548
  * @param callback the function to run on completion
2549
2549
  */
2550
- verify_async(device_id: string | null, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
2550
+ verify_async(device_id: string, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
2551
2551
 
2552
2552
  // Overloads of verify_async
2553
2553
 
@@ -2559,7 +2559,7 @@ export interface Client {
2559
2559
  * @param cancellable the #GCancellable, or %NULL
2560
2560
  * @returns A Promise of: %TRUE for success
2561
2561
  */
2562
- verify_async(device_id: string | null, cancellable: Gio.Cancellable | null): globalThis.Promise<boolean>
2562
+ verify_async(device_id: string, cancellable: Gio.Cancellable | null): globalThis.Promise<boolean>
2563
2563
  /**
2564
2564
  * Gets the result of fwupd_client_verify_async().
2565
2565
  * @param res the #GAsyncResult
@@ -2572,14 +2572,14 @@ export interface Client {
2572
2572
  * @param cancellable the #GCancellable, or %NULL
2573
2573
  * @returns %TRUE for verification success
2574
2574
  */
2575
- verify_update(device_id: string | null, cancellable: Gio.Cancellable | null): boolean
2575
+ verify_update(device_id: string, cancellable: Gio.Cancellable | null): boolean
2576
2576
  /**
2577
2577
  * Update the verification record for a specific device.
2578
2578
  * @param device_id the device ID
2579
2579
  * @param cancellable the #GCancellable, or %NULL
2580
2580
  * @param callback the function to run on completion
2581
2581
  */
2582
- verify_update_async(device_id: string | null, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
2582
+ verify_update_async(device_id: string, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
2583
2583
 
2584
2584
  // Overloads of verify_update_async
2585
2585
 
@@ -2591,7 +2591,7 @@ export interface Client {
2591
2591
  * @param cancellable the #GCancellable, or %NULL
2592
2592
  * @returns A Promise of: %TRUE for success
2593
2593
  */
2594
- verify_update_async(device_id: string | null, cancellable: Gio.Cancellable | null): globalThis.Promise<boolean>
2594
+ verify_update_async(device_id: string, cancellable: Gio.Cancellable | null): globalThis.Promise<boolean>
2595
2595
  /**
2596
2596
  * Gets the result of fwupd_client_verify_update_async().
2597
2597
  * @param res the #GAsyncResult
@@ -2728,7 +2728,7 @@ export interface Device {
2728
2728
  * Sets the device checksum.
2729
2729
  * @param checksum the device checksum
2730
2730
  */
2731
- add_checksum(checksum: string | null): void
2731
+ add_checksum(checksum: string): void
2732
2732
  /**
2733
2733
  * Adds a child device. An child device is logically linked to the primary
2734
2734
  * device in some way.
@@ -2747,17 +2747,17 @@ export interface Device {
2747
2747
  * Adds the GUID if it does not already exist.
2748
2748
  * @param guid the GUID, e.g. `2082b5e0-7a64-478a-b1b2-e3404fab6dad`
2749
2749
  */
2750
- add_guid(guid: string | null): void
2750
+ add_guid(guid: string): void
2751
2751
  /**
2752
2752
  * Adds the icon name if it does not already exist.
2753
2753
  * @param icon the name, e.g. `input-mouse` or `/usr/share/icons/foo.png`
2754
2754
  */
2755
- add_icon(icon: string | null): void
2755
+ add_icon(icon: string): void
2756
2756
  /**
2757
2757
  * Adds the InstanceID if it does not already exist.
2758
2758
  * @param instance_id the GUID, e.g. `PCI\VEN_10EC&DEV_525A`
2759
2759
  */
2760
- add_instance_id(instance_id: string | null): void
2760
+ add_instance_id(instance_id: string): void
2761
2761
  /**
2762
2762
  * Adds a release for this device.
2763
2763
  * @param release a #FwupdRelease
@@ -2767,7 +2767,7 @@ export interface Device {
2767
2767
  * Adds a device vendor ID.
2768
2768
  * @param vendor_id the ID, e.g. 'USB:0x1234'
2769
2769
  */
2770
- add_vendor_id(vendor_id: string | null): void
2770
+ add_vendor_id(vendor_id: string): void
2771
2771
  /**
2772
2772
  * Comparison function for comparing two FwupdDevice objects.
2773
2773
  * @param device2 a #FwupdDevice
@@ -2778,7 +2778,7 @@ export interface Device {
2778
2778
  * Gets the current device branch.
2779
2779
  * @returns the device branch, or %NULL if unset
2780
2780
  */
2781
- get_branch(): string | null
2781
+ get_branch(): string
2782
2782
  /**
2783
2783
  * Gets the device checksums.
2784
2784
  * @returns the checksums, which may be empty
@@ -2798,7 +2798,7 @@ export interface Device {
2798
2798
  * Gets the device description in AppStream markup format.
2799
2799
  * @returns the device description, or %NULL if unset
2800
2800
  */
2801
- get_description(): string | null
2801
+ get_description(): string
2802
2802
  /**
2803
2803
  * Gets the device flags.
2804
2804
  * @returns the device flags, or 0 if unset
@@ -2813,7 +2813,7 @@ export interface Device {
2813
2813
  * Gets the default GUID.
2814
2814
  * @returns the GUID, or %NULL if unset
2815
2815
  */
2816
- get_guid_default(): string | null
2816
+ get_guid_default(): string
2817
2817
  /**
2818
2818
  * Gets the GUIDs.
2819
2819
  * @returns the GUIDs
@@ -2831,7 +2831,7 @@ export interface Device {
2831
2831
  * Gets the ID.
2832
2832
  * @returns the ID, or %NULL if unset
2833
2833
  */
2834
- get_id(): string | null
2834
+ get_id(): string
2835
2835
  /**
2836
2836
  * Gets the time estimate for firmware installation (in seconds)
2837
2837
  * @returns the estimated time to flash this device (or 0 if unset)
@@ -2851,7 +2851,7 @@ export interface Device {
2851
2851
  * Gets the device name.
2852
2852
  * @returns the device name, or %NULL if unset
2853
2853
  */
2854
- get_name(): string | null
2854
+ get_name(): string
2855
2855
  /**
2856
2856
  * Gets the parent.
2857
2857
  * @returns the parent device, or %NULL if unset
@@ -2861,17 +2861,17 @@ export interface Device {
2861
2861
  * Gets the ID.
2862
2862
  * @returns the parent ID, or %NULL if unset
2863
2863
  */
2864
- get_parent_id(): string | null
2864
+ get_parent_id(): string
2865
2865
  /**
2866
2866
  * Gets the plugin that created the device.
2867
2867
  * @returns the plugin name, or %NULL if unset
2868
2868
  */
2869
- get_plugin(): string | null
2869
+ get_plugin(): string
2870
2870
  /**
2871
2871
  * Gets the protocol that the device uses for updating.
2872
2872
  * @returns the protocol name, or %NULL if unset
2873
2873
  */
2874
- get_protocol(): string | null
2874
+ get_protocol(): string
2875
2875
  /**
2876
2876
  * Gets the default release for this device.
2877
2877
  * @returns the #FwupdRelease, or %NULL if not set
@@ -2886,7 +2886,7 @@ export interface Device {
2886
2886
  * Gets the serial number for the device.
2887
2887
  * @returns a string value, or %NULL if never set.
2888
2888
  */
2889
- get_serial(): string | null
2889
+ get_serial(): string
2890
2890
  /**
2891
2891
  * Returns what the device is currently doing.
2892
2892
  * @returns the status value, e.g. %FWUPD_STATUS_DEVICE_WRITE
@@ -2896,22 +2896,22 @@ export interface Device {
2896
2896
  * Gets the device summary.
2897
2897
  * @returns the device summary, or %NULL if unset
2898
2898
  */
2899
- get_summary(): string | null
2899
+ get_summary(): string
2900
2900
  /**
2901
2901
  * Gets the update error.
2902
2902
  * @returns the update error, or %NULL if unset
2903
2903
  */
2904
- get_update_error(): string | null
2904
+ get_update_error(): string
2905
2905
  /**
2906
2906
  * Gets the update image.
2907
2907
  * @returns the update image URL, or %NULL if unset
2908
2908
  */
2909
- get_update_image(): string | null
2909
+ get_update_image(): string
2910
2910
  /**
2911
2911
  * Gets the update message.
2912
2912
  * @returns the update message, or %NULL if unset
2913
2913
  */
2914
- get_update_message(): string | null
2914
+ get_update_message(): string
2915
2915
  /**
2916
2916
  * Gets the update state.
2917
2917
  * @returns the update state, or %FWUPD_UPDATE_STATE_UNKNOWN if unset
@@ -2921,12 +2921,12 @@ export interface Device {
2921
2921
  * Gets the device vendor.
2922
2922
  * @returns the device vendor, or %NULL if unset
2923
2923
  */
2924
- get_vendor(): string | null
2924
+ get_vendor(): string
2925
2925
  /**
2926
2926
  * Gets the combined device vendor ID.
2927
2927
  * @returns the device vendor, e.g. 'USB:0x1234|PCI:0x5678', or %NULL if unset
2928
2928
  */
2929
- get_vendor_id(): string | null
2929
+ get_vendor_id(): string
2930
2930
  /**
2931
2931
  * Gets the device vendor ID.
2932
2932
  * @returns the device vendor ID
@@ -2936,12 +2936,12 @@ export interface Device {
2936
2936
  * Gets the device version.
2937
2937
  * @returns the device version, or %NULL if unset
2938
2938
  */
2939
- get_version(): string | null
2939
+ get_version(): string
2940
2940
  /**
2941
2941
  * Gets the version of the bootloader.
2942
2942
  * @returns the device version_bootloader, or %NULL if unset
2943
2943
  */
2944
- get_version_bootloader(): string | null
2944
+ get_version_bootloader(): string
2945
2945
  /**
2946
2946
  * Gets the bootloader version of firmware the device will accept in raw format.
2947
2947
  * @returns integer version number, or %0 if unset
@@ -2956,7 +2956,7 @@ export interface Device {
2956
2956
  * Gets the lowest version of firmware the device will accept.
2957
2957
  * @returns the device version_lowest, or %NULL if unset
2958
2958
  */
2959
- get_version_lowest(): string | null
2959
+ get_version_lowest(): string
2960
2960
  /**
2961
2961
  * Gets the lowest version of firmware the device will accept in raw format.
2962
2962
  * @returns integer version number, or %0 if unset
@@ -2978,19 +2978,19 @@ export interface Device {
2978
2978
  * @param guid the GUID, e.g. `2082b5e0-7a64-478a-b1b2-e3404fab6dad`
2979
2979
  * @returns %TRUE if the GUID is found
2980
2980
  */
2981
- has_guid(guid: string | null): boolean
2981
+ has_guid(guid: string): boolean
2982
2982
  /**
2983
2983
  * Finds out if the device has this specific InstanceID.
2984
2984
  * @param instance_id the InstanceID, e.g. `PCI\VEN_10EC&DEV_525A`
2985
2985
  * @returns %TRUE if the InstanceID is found
2986
2986
  */
2987
- has_instance_id(instance_id: string | null): boolean
2987
+ has_instance_id(instance_id: string): boolean
2988
2988
  /**
2989
2989
  * Finds out if the device has this specific vendor ID.
2990
2990
  * @param vendor_id the ID, e.g. 'USB:0x1234'
2991
2991
  * @returns %TRUE if the ID is found
2992
2992
  */
2993
- has_vendor_id(vendor_id: string | null): boolean
2993
+ has_vendor_id(vendor_id: string): boolean
2994
2994
  /**
2995
2995
  * Copy all properties from the donor object if they have not already been set.
2996
2996
  * @param donor Another #FwupdDevice
@@ -3005,7 +3005,7 @@ export interface Device {
3005
3005
  * Sets the current device branch.
3006
3006
  * @param branch the device one line branch
3007
3007
  */
3008
- set_branch(branch: string | null): void
3008
+ set_branch(branch: string): void
3009
3009
  /**
3010
3010
  * Sets when the device was created.
3011
3011
  * @param created the UNIX time
@@ -3015,7 +3015,7 @@ export interface Device {
3015
3015
  * Sets the device description.
3016
3016
  * @param description the description in AppStream markup format
3017
3017
  */
3018
- set_description(description: string | null): void
3018
+ set_description(description: string): void
3019
3019
  /**
3020
3020
  * Sets the device flags.
3021
3021
  * @param flags the device flags, e.g. %FWUPD_DEVICE_FLAG_REQUIRE_AC
@@ -3030,7 +3030,7 @@ export interface Device {
3030
3030
  * Sets the ID.
3031
3031
  * @param id the device ID, e.g. `USB:foo`
3032
3032
  */
3033
- set_id(id: string | null): void
3033
+ set_id(id: string): void
3034
3034
  /**
3035
3035
  * Sets the time estimate for firmware installation (in seconds)
3036
3036
  * @param duration The amount of time
@@ -3045,7 +3045,7 @@ export interface Device {
3045
3045
  * Sets the device name.
3046
3046
  * @param name the device name, e.g. `ColorHug2`
3047
3047
  */
3048
- set_name(name: string | null): void
3048
+ set_name(name: string): void
3049
3049
  /**
3050
3050
  * Sets the parent. Only used internally.
3051
3051
  * @param parent another #FwupdDevice, or %NULL
@@ -3055,22 +3055,22 @@ export interface Device {
3055
3055
  * Sets the parent ID.
3056
3056
  * @param parent_id the device ID, e.g. `USB:foo`
3057
3057
  */
3058
- set_parent_id(parent_id: string | null): void
3058
+ set_parent_id(parent_id: string): void
3059
3059
  /**
3060
3060
  * Sets the plugin that created the device.
3061
3061
  * @param plugin the plugin name, e.g. `colorhug`
3062
3062
  */
3063
- set_plugin(plugin: string | null): void
3063
+ set_plugin(plugin: string): void
3064
3064
  /**
3065
3065
  * Sets the protocol that is used to update the device.
3066
3066
  * @param protocol the protocol name, e.g. `com.hughski.colorhug`
3067
3067
  */
3068
- set_protocol(protocol: string | null): void
3068
+ set_protocol(protocol: string): void
3069
3069
  /**
3070
3070
  * Sets the serial number for the device.
3071
3071
  * @param serial the device serial number
3072
3072
  */
3073
- set_serial(serial: string | null): void
3073
+ set_serial(serial: string): void
3074
3074
  /**
3075
3075
  * Sets what the device is currently doing.
3076
3076
  * @param status the status value, e.g. %FWUPD_STATUS_DEVICE_WRITE
@@ -3080,22 +3080,22 @@ export interface Device {
3080
3080
  * Sets the device summary.
3081
3081
  * @param summary the device one line summary
3082
3082
  */
3083
- set_summary(summary: string | null): void
3083
+ set_summary(summary: string): void
3084
3084
  /**
3085
3085
  * Sets the update error.
3086
3086
  * @param update_error the update error string
3087
3087
  */
3088
- set_update_error(update_error: string | null): void
3088
+ set_update_error(update_error: string): void
3089
3089
  /**
3090
3090
  * Sets the update image.
3091
3091
  * @param update_image the update image URL
3092
3092
  */
3093
- set_update_image(update_image: string | null): void
3093
+ set_update_image(update_image: string): void
3094
3094
  /**
3095
3095
  * Sets the update message.
3096
3096
  * @param update_message the update message string
3097
3097
  */
3098
- set_update_message(update_message: string | null): void
3098
+ set_update_message(update_message: string): void
3099
3099
  /**
3100
3100
  * Sets the update state.
3101
3101
  * @param update_state the state, e.g. %FWUPD_UPDATE_STATE_PENDING
@@ -3105,22 +3105,22 @@ export interface Device {
3105
3105
  * Sets the device vendor.
3106
3106
  * @param vendor the description
3107
3107
  */
3108
- set_vendor(vendor: string | null): void
3108
+ set_vendor(vendor: string): void
3109
3109
  /**
3110
3110
  * Sets the device vendor ID.
3111
3111
  * @param vendor_id the ID, e.g. 'USB:0x1234' or 'USB:0x1234|PCI:0x5678'
3112
3112
  */
3113
- set_vendor_id(vendor_id: string | null): void
3113
+ set_vendor_id(vendor_id: string): void
3114
3114
  /**
3115
3115
  * Sets the device version.
3116
3116
  * @param version the device version, e.g. `1.2.3`
3117
3117
  */
3118
- set_version(version: string | null): void
3118
+ set_version(version: string): void
3119
3119
  /**
3120
3120
  * Sets the bootloader version.
3121
3121
  * @param version_bootloader the description
3122
3122
  */
3123
- set_version_bootloader(version_bootloader: string | null): void
3123
+ set_version_bootloader(version_bootloader: string): void
3124
3124
  /**
3125
3125
  * Sets the raw bootloader version number from the hardware before converted to a string.
3126
3126
  * @param version_bootloader_raw the raw hardware version
@@ -3135,7 +3135,7 @@ export interface Device {
3135
3135
  * Sets the lowest version of firmware the device will accept.
3136
3136
  * @param version_lowest the description
3137
3137
  */
3138
- set_version_lowest(version_lowest: string | null): void
3138
+ set_version_lowest(version_lowest: string): void
3139
3139
  /**
3140
3140
  * Sets the raw lowest version number from the hardware before converted to a string.
3141
3141
  * @param version_lowest_raw the raw hardware version
@@ -3229,13 +3229,13 @@ export class Device extends GObject.Object {
3229
3229
  * @param device_flag A string, e.g. `require-ac`
3230
3230
  * @returns enumerated value
3231
3231
  */
3232
- static flag_from_string(device_flag: string | null): DeviceFlags
3232
+ static flag_from_string(device_flag: string): DeviceFlags
3233
3233
  /**
3234
3234
  * Converts a #FwupdDeviceFlags to a string.
3235
3235
  * @param device_flag A #FwupdDeviceFlags, e.g. %FWUPD_DEVICE_FLAG_REQUIRE_AC
3236
3236
  * @returns identifier string
3237
3237
  */
3238
- static flag_to_string(device_flag: DeviceFlags): string | null
3238
+ static flag_to_string(device_flag: DeviceFlags): string
3239
3239
  /**
3240
3240
  * Creates a new device using packed data.
3241
3241
  * @param value a #GVariant
@@ -3249,7 +3249,7 @@ export class Device extends GObject.Object {
3249
3249
  * @param device_id string to check, e.g. `d3fae86d95e5d56626129d00e332c4b8dac95442`
3250
3250
  * @returns %TRUE if @guid was a fwupd device ID, %FALSE otherwise
3251
3251
  */
3252
- static id_is_valid(device_id: string | null): boolean
3252
+ static id_is_valid(device_id: string): boolean
3253
3253
  }
3254
3254
 
3255
3255
  export module Plugin {
@@ -3293,7 +3293,7 @@ export interface Plugin {
3293
3293
  * Gets the plugin name.
3294
3294
  * @returns the plugin name, or %NULL if unset
3295
3295
  */
3296
- get_name(): string | null
3296
+ get_name(): string
3297
3297
  /**
3298
3298
  * Finds if the plugin has a specific plugin flag.
3299
3299
  * @param flag the #FwupdPluginFlags
@@ -3314,7 +3314,7 @@ export interface Plugin {
3314
3314
  * Sets the plugin name.
3315
3315
  * @param name the plugin name, e.g. `bios`
3316
3316
  */
3317
- set_name(name: string | null): void
3317
+ set_name(name: string): void
3318
3318
  /**
3319
3319
  * Builds a text representation of the object.
3320
3320
  * @returns text, or %NULL for invalid
@@ -3374,13 +3374,13 @@ export class Plugin extends GObject.Object {
3374
3374
  * @param plugin_flag A string, e.g. `require-ac`
3375
3375
  * @returns enumerated value
3376
3376
  */
3377
- static flag_from_string(plugin_flag: string | null): PluginFlags
3377
+ static flag_from_string(plugin_flag: string): PluginFlags
3378
3378
  /**
3379
3379
  * Converts a #FwupdDeviceFlags to a string.
3380
3380
  * @param plugin_flag A #FwupdPluginFlags, e.g. %FWUPD_DEVICE_FLAG_REQUIRE_AC
3381
3381
  * @returns identifier string
3382
3382
  */
3383
- static flag_to_string(plugin_flag: PluginFlags): string | null
3383
+ static flag_to_string(plugin_flag: PluginFlags): string
3384
3384
  /**
3385
3385
  * Creates a new plugin using packed data.
3386
3386
  * @param value a #GVariant
@@ -3410,12 +3410,12 @@ export interface Release {
3410
3410
  * Adds the update category.
3411
3411
  * @param category the update category, e.g. `X-EmbeddedController`
3412
3412
  */
3413
- add_category(category: string | null): void
3413
+ add_category(category: string): void
3414
3414
  /**
3415
3415
  * Sets the update checksum.
3416
3416
  * @param checksum the update checksum
3417
3417
  */
3418
- add_checksum(checksum: string | null): void
3418
+ add_checksum(checksum: string): void
3419
3419
  /**
3420
3420
  * Adds a specific release flag to the release.
3421
3421
  * @param flag the #FwupdReleaseFlags
@@ -3425,12 +3425,12 @@ export interface Release {
3425
3425
  * Adds an resolved issue to this release.
3426
3426
  * @param issue the update issue, e.g. `CVE-2019-12345`
3427
3427
  */
3428
- add_issue(issue: string | null): void
3428
+ add_issue(issue: string): void
3429
3429
  /**
3430
3430
  * Adds an update URI, i.e. where you can download the firmware from.
3431
3431
  * @param location the update URI
3432
3432
  */
3433
- add_location(location: string | null): void
3433
+ add_location(location: string): void
3434
3434
  /**
3435
3435
  * Sets multiple release metadata items.
3436
3436
  * @param hash the key-values
@@ -3441,17 +3441,17 @@ export interface Release {
3441
3441
  * @param key the key
3442
3442
  * @param value the value
3443
3443
  */
3444
- add_metadata_item(key: string | null, value: string | null): void
3444
+ add_metadata_item(key: string, value: string): void
3445
3445
  /**
3446
3446
  * Gets the AppStream ID.
3447
3447
  * @returns the AppStream ID, or %NULL if unset
3448
3448
  */
3449
- get_appstream_id(): string | null
3449
+ get_appstream_id(): string
3450
3450
  /**
3451
3451
  * Gets the update branch.
3452
3452
  * @returns the alternate branch, or %NULL if unset
3453
3453
  */
3454
- get_branch(): string | null
3454
+ get_branch(): string
3455
3455
  /**
3456
3456
  * Gets the release categories.
3457
3457
  * @returns the categories, which may be empty
@@ -3471,27 +3471,27 @@ export interface Release {
3471
3471
  * Gets the update description in AppStream markup format.
3472
3472
  * @returns the update description, or %NULL if unset
3473
3473
  */
3474
- get_description(): string | null
3474
+ get_description(): string
3475
3475
  /**
3476
3476
  * Gets the optional text caption used to manually detach the device.
3477
3477
  * @returns the string caption, or %NULL if unset
3478
3478
  */
3479
- get_detach_caption(): string | null
3479
+ get_detach_caption(): string
3480
3480
  /**
3481
3481
  * Gets the optional image used to manually detach the device.
3482
3482
  * @returns the URI, or %NULL if unset
3483
3483
  */
3484
- get_detach_image(): string | null
3484
+ get_detach_image(): string
3485
3485
  /**
3486
3486
  * Gets the URL for the online update notes.
3487
3487
  * @returns the update URL, or %NULL if unset
3488
3488
  */
3489
- get_details_url(): string | null
3489
+ get_details_url(): string
3490
3490
  /**
3491
3491
  * Gets the update filename.
3492
3492
  * @returns the update filename, or %NULL if unset
3493
3493
  */
3494
- get_filename(): string | null
3494
+ get_filename(): string
3495
3495
  /**
3496
3496
  * Gets the release flags.
3497
3497
  * @returns the release flags, or 0 if unset
@@ -3501,7 +3501,7 @@ export interface Release {
3501
3501
  * Gets the update homepage.
3502
3502
  * @returns the update homepage, or %NULL if unset
3503
3503
  */
3504
- get_homepage(): string | null
3504
+ get_homepage(): string
3505
3505
  /**
3506
3506
  * Gets the time estimate for firmware installation (in seconds)
3507
3507
  * @returns the estimated time to flash this release (or 0 if unset)
@@ -3516,7 +3516,7 @@ export interface Release {
3516
3516
  * Gets the update license.
3517
3517
  * @returns the update license, or %NULL if unset
3518
3518
  */
3519
- get_license(): string | null
3519
+ get_license(): string
3520
3520
  /**
3521
3521
  * Gets the update URI, i.e. where you can download the firmware from.
3522
3522
  *
@@ -3535,27 +3535,27 @@ export interface Release {
3535
3535
  * @param key the key
3536
3536
  * @returns the value, or %NULL if unset
3537
3537
  */
3538
- get_metadata_item(key: string | null): string | null
3538
+ get_metadata_item(key: string): string
3539
3539
  /**
3540
3540
  * Gets the update name.
3541
3541
  * @returns the update name, or %NULL if unset
3542
3542
  */
3543
- get_name(): string | null
3543
+ get_name(): string
3544
3544
  /**
3545
3545
  * Gets the update variant suffix.
3546
3546
  * @returns the update variant, or %NULL if unset
3547
3547
  */
3548
- get_name_variant_suffix(): string | null
3548
+ get_name_variant_suffix(): string
3549
3549
  /**
3550
3550
  * Gets the update protocol.
3551
3551
  * @returns the update protocol, or %NULL if unset
3552
3552
  */
3553
- get_protocol(): string | null
3553
+ get_protocol(): string
3554
3554
  /**
3555
3555
  * Gets the remote ID that can be used for downloading.
3556
3556
  * @returns the ID, or %NULL if unset
3557
3557
  */
3558
- get_remote_id(): string | null
3558
+ get_remote_id(): string
3559
3559
  /**
3560
3560
  * Gets the update size.
3561
3561
  * @returns the update size in bytes, or 0 if unset
@@ -3565,12 +3565,12 @@ export interface Release {
3565
3565
  * Gets the URL of the source code used to build this release.
3566
3566
  * @returns the update source_url, or %NULL if unset
3567
3567
  */
3568
- get_source_url(): string | null
3568
+ get_source_url(): string
3569
3569
  /**
3570
3570
  * Gets the update summary.
3571
3571
  * @returns the update summary, or %NULL if unset
3572
3572
  */
3573
- get_summary(): string | null
3573
+ get_summary(): string
3574
3574
  /**
3575
3575
  * Gets the trust level of the release.
3576
3576
  * @returns the trust bitfield, e.g. #FWUPD_TRUST_FLAG_PAYLOAD
@@ -3580,12 +3580,12 @@ export interface Release {
3580
3580
  * Gets the update image.
3581
3581
  * @returns the update image URL, or %NULL if unset
3582
3582
  */
3583
- get_update_image(): string | null
3583
+ get_update_image(): string
3584
3584
  /**
3585
3585
  * Gets the update message.
3586
3586
  * @returns the update message, or %NULL if unset
3587
3587
  */
3588
- get_update_message(): string | null
3588
+ get_update_message(): string
3589
3589
  /**
3590
3590
  * Gets the release urgency.
3591
3591
  * @returns the release urgency, or 0 if unset
@@ -3595,29 +3595,29 @@ export interface Release {
3595
3595
  * Gets the default update URI.
3596
3596
  * @returns the update URI, or %NULL if unset
3597
3597
  */
3598
- get_uri(): string | null
3598
+ get_uri(): string
3599
3599
  /**
3600
3600
  * Gets the update vendor.
3601
3601
  * @returns the update vendor, or %NULL if unset
3602
3602
  */
3603
- get_vendor(): string | null
3603
+ get_vendor(): string
3604
3604
  /**
3605
3605
  * Gets the update version.
3606
3606
  * @returns the update version, or %NULL if unset
3607
3607
  */
3608
- get_version(): string | null
3608
+ get_version(): string
3609
3609
  /**
3610
3610
  * Finds out if the release has the update category.
3611
3611
  * @param category the update category, e.g. `X-EmbeddedController`
3612
3612
  * @returns %TRUE if the release matches
3613
3613
  */
3614
- has_category(category: string | null): boolean
3614
+ has_category(category: string): boolean
3615
3615
  /**
3616
3616
  * Finds out if the release has the update checksum.
3617
3617
  * @param checksum the update checksum
3618
3618
  * @returns %TRUE if the release matches
3619
3619
  */
3620
- has_checksum(checksum: string | null): boolean
3620
+ has_checksum(checksum: string): boolean
3621
3621
  /**
3622
3622
  * Finds if the release has a specific release flag.
3623
3623
  * @param flag the #FwupdReleaseFlags
@@ -3633,12 +3633,12 @@ export interface Release {
3633
3633
  * Sets the AppStream ID.
3634
3634
  * @param appstream_id the AppStream component ID, e.g. `org.hughski.ColorHug2.firmware`
3635
3635
  */
3636
- set_appstream_id(appstream_id: string | null): void
3636
+ set_appstream_id(appstream_id: string): void
3637
3637
  /**
3638
3638
  * Sets the alternate branch.
3639
3639
  * @param branch the update one line branch
3640
3640
  */
3641
- set_branch(branch: string | null): void
3641
+ set_branch(branch: string): void
3642
3642
  /**
3643
3643
  * Sets when the update was created.
3644
3644
  * @param created UTC timestamp in UNIX format
@@ -3648,27 +3648,27 @@ export interface Release {
3648
3648
  * Sets the update description.
3649
3649
  * @param description the update description in AppStream markup format
3650
3650
  */
3651
- set_description(description: string | null): void
3651
+ set_description(description: string): void
3652
3652
  /**
3653
3653
  * Sets the optional text caption used to manually detach the device.
3654
3654
  * @param detach_caption string caption
3655
3655
  */
3656
- set_detach_caption(detach_caption: string | null): void
3656
+ set_detach_caption(detach_caption: string): void
3657
3657
  /**
3658
3658
  * Sets the optional image used to manually detach the device.
3659
3659
  * @param detach_image a fully qualified URI
3660
3660
  */
3661
- set_detach_image(detach_image: string | null): void
3661
+ set_detach_image(detach_image: string): void
3662
3662
  /**
3663
3663
  * Sets the URL for the online update notes.
3664
3664
  * @param details_url the URL
3665
3665
  */
3666
- set_details_url(details_url: string | null): void
3666
+ set_details_url(details_url: string): void
3667
3667
  /**
3668
3668
  * Sets the update filename.
3669
3669
  * @param filename the update filename on disk
3670
3670
  */
3671
- set_filename(filename: string | null): void
3671
+ set_filename(filename: string): void
3672
3672
  /**
3673
3673
  * Sets the release flags.
3674
3674
  * @param flags the release flags, e.g. %FWUPD_RELEASE_FLAG_TRUSTED_PAYLOAD
@@ -3678,7 +3678,7 @@ export interface Release {
3678
3678
  * Sets the update homepage.
3679
3679
  * @param homepage the description
3680
3680
  */
3681
- set_homepage(homepage: string | null): void
3681
+ set_homepage(homepage: string): void
3682
3682
  /**
3683
3683
  * Sets the time estimate for firmware installation (in seconds)
3684
3684
  * @param duration The amount of time
@@ -3688,27 +3688,27 @@ export interface Release {
3688
3688
  * Sets the update license.
3689
3689
  * @param license the description
3690
3690
  */
3691
- set_license(license: string | null): void
3691
+ set_license(license: string): void
3692
3692
  /**
3693
3693
  * Sets the update name.
3694
3694
  * @param name the description
3695
3695
  */
3696
- set_name(name: string | null): void
3696
+ set_name(name: string): void
3697
3697
  /**
3698
3698
  * Sets the update variant suffix.
3699
3699
  * @param name_variant_suffix the description
3700
3700
  */
3701
- set_name_variant_suffix(name_variant_suffix: string | null): void
3701
+ set_name_variant_suffix(name_variant_suffix: string): void
3702
3702
  /**
3703
3703
  * Sets the update protocol.
3704
3704
  * @param protocol the update protocol, e.g. `org.usb.dfu`
3705
3705
  */
3706
- set_protocol(protocol: string | null): void
3706
+ set_protocol(protocol: string): void
3707
3707
  /**
3708
3708
  * Sets the remote ID that can be used for downloading.
3709
3709
  * @param remote_id the release ID, e.g. `USB:foo`
3710
3710
  */
3711
- set_remote_id(remote_id: string | null): void
3711
+ set_remote_id(remote_id: string): void
3712
3712
  /**
3713
3713
  * Sets the update size.
3714
3714
  * @param size the update size in bytes
@@ -3718,12 +3718,12 @@ export interface Release {
3718
3718
  * Sets the URL of the source code used to build this release.
3719
3719
  * @param source_url the URL
3720
3720
  */
3721
- set_source_url(source_url: string | null): void
3721
+ set_source_url(source_url: string): void
3722
3722
  /**
3723
3723
  * Sets the update summary.
3724
3724
  * @param summary the update one line summary
3725
3725
  */
3726
- set_summary(summary: string | null): void
3726
+ set_summary(summary: string): void
3727
3727
  /**
3728
3728
  * Sets the trust level of the release.
3729
3729
  * @param trust_flags the bitfield, e.g. #FWUPD_TRUST_FLAG_PAYLOAD
@@ -3733,12 +3733,12 @@ export interface Release {
3733
3733
  * Sets the update image.
3734
3734
  * @param update_image the update image URL
3735
3735
  */
3736
- set_update_image(update_image: string | null): void
3736
+ set_update_image(update_image: string): void
3737
3737
  /**
3738
3738
  * Sets the update message.
3739
3739
  * @param update_message the update message string
3740
3740
  */
3741
- set_update_message(update_message: string | null): void
3741
+ set_update_message(update_message: string): void
3742
3742
  /**
3743
3743
  * Sets the release urgency.
3744
3744
  * @param urgency the release urgency, e.g. %FWUPD_RELEASE_FLAG_TRUSTED_PAYLOAD
@@ -3748,17 +3748,17 @@ export interface Release {
3748
3748
  * Sets the update URI, i.e. where you can download the firmware from.
3749
3749
  * @param uri the update URI
3750
3750
  */
3751
- set_uri(uri: string | null): void
3751
+ set_uri(uri: string): void
3752
3752
  /**
3753
3753
  * Sets the update vendor.
3754
3754
  * @param vendor the vendor name, e.g. `Hughski Limited`
3755
3755
  */
3756
- set_vendor(vendor: string | null): void
3756
+ set_vendor(vendor: string): void
3757
3757
  /**
3758
3758
  * Sets the update version.
3759
3759
  * @param version the update version, e.g. `1.2.4`
3760
3760
  */
3761
- set_version(version: string | null): void
3761
+ set_version(version: string): void
3762
3762
  /**
3763
3763
  * Builds a text representation of the object.
3764
3764
  * @returns text, or %NULL for invalid
@@ -3812,13 +3812,13 @@ export class Release extends GObject.Object {
3812
3812
  * @param release_flag A string, e.g. `trusted-payload`
3813
3813
  * @returns enumerated value
3814
3814
  */
3815
- static flag_from_string(release_flag: string | null): ReleaseFlags
3815
+ static flag_from_string(release_flag: string): ReleaseFlags
3816
3816
  /**
3817
3817
  * Converts a #FwupdReleaseFlags to a string.
3818
3818
  * @param release_flag A #FwupdReleaseFlags, e.g. %FWUPD_RELEASE_FLAG_TRUSTED_PAYLOAD
3819
3819
  * @returns identifier string
3820
3820
  */
3821
- static flag_to_string(release_flag: ReleaseFlags): string | null
3821
+ static flag_to_string(release_flag: ReleaseFlags): string
3822
3822
  /**
3823
3823
  * Creates a new release using packed data.
3824
3824
  * @param value a #GVariant
@@ -3830,13 +3830,13 @@ export class Release extends GObject.Object {
3830
3830
  * @param release_urgency A string, e.g. `low`
3831
3831
  * @returns enumerated value
3832
3832
  */
3833
- static urgency_from_string(release_urgency: string | null): ReleaseUrgency
3833
+ static urgency_from_string(release_urgency: string): ReleaseUrgency
3834
3834
  /**
3835
3835
  * Converts an enumerated value to a string.
3836
3836
  * @param release_urgency A #FwupdReleaseUrgency, e.g. %FWUPD_RELEASE_URGENCY_HIGH
3837
3837
  * @returns identifier string
3838
3838
  */
3839
- static urgency_to_string(release_urgency: ReleaseUrgency): string | null
3839
+ static urgency_to_string(release_urgency: ReleaseUrgency): string
3840
3840
  }
3841
3841
 
3842
3842
  export module Remote {
@@ -3936,7 +3936,7 @@ export interface Remote {
3936
3936
  * @param url the URL to use
3937
3937
  * @returns a URI, or %NULL for error
3938
3938
  */
3939
- build_firmware_uri(url: string | null): string | null
3939
+ build_firmware_uri(url: string): string | null
3940
3940
  /**
3941
3941
  * Gets the age of the remote in seconds.
3942
3942
  * @returns a age, or %G_MAXUINT64 for unavailable
@@ -3946,7 +3946,7 @@ export interface Remote {
3946
3946
  * Gets the remote agreement in AppStream markup format
3947
3947
  * @returns a string, or %NULL if unset
3948
3948
  */
3949
- get_agreement(): string | null
3949
+ get_agreement(): string
3950
3950
  /**
3951
3951
  * Gets if firmware from the remote should be checked against the list
3952
3952
  * of a approved checksums.
@@ -3967,7 +3967,7 @@ export interface Remote {
3967
3967
  * Gets the remote checksum.
3968
3968
  * @returns a string, or %NULL if unset
3969
3969
  */
3970
- get_checksum(): string | null
3970
+ get_checksum(): string
3971
3971
  /**
3972
3972
  * Gets if the remote is enabled and should be used.
3973
3973
  * @returns a #TRUE if the remote is enabled
@@ -3977,27 +3977,27 @@ export interface Remote {
3977
3977
  * Gets the path and filename that the remote is using for a cache.
3978
3978
  * @returns a string, or %NULL for unset
3979
3979
  */
3980
- get_filename_cache(): string | null
3980
+ get_filename_cache(): string
3981
3981
  /**
3982
3982
  * Gets the path and filename that the remote is using for a signature cache.
3983
3983
  * @returns a string, or %NULL for unset
3984
3984
  */
3985
- get_filename_cache_sig(): string | null
3985
+ get_filename_cache_sig(): string
3986
3986
  /**
3987
3987
  * Gets the path and filename of the remote itself, typically a `.conf` file.
3988
3988
  * @returns a string, or %NULL for unset
3989
3989
  */
3990
- get_filename_source(): string | null
3990
+ get_filename_source(): string
3991
3991
  /**
3992
3992
  * Gets the base URI for firmware.
3993
3993
  * @returns a URI, or %NULL for unset.
3994
3994
  */
3995
- get_firmware_base_uri(): string | null
3995
+ get_firmware_base_uri(): string
3996
3996
  /**
3997
3997
  * Gets the remote ID, e.g. `lvfs-testing`.
3998
3998
  * @returns a string, or %NULL if unset
3999
3999
  */
4000
- get_id(): string | null
4000
+ get_id(): string
4001
4001
  /**
4002
4002
  * Gets the keyring kind of the remote.
4003
4003
  * @returns a #FwupdKeyringKind, e.g. #FWUPD_KEYRING_KIND_GPG
@@ -4012,12 +4012,12 @@ export interface Remote {
4012
4012
  * Gets the URI for the remote metadata.
4013
4013
  * @returns a URI, or %NULL for invalid.
4014
4014
  */
4015
- get_metadata_uri(): string | null
4015
+ get_metadata_uri(): string
4016
4016
  /**
4017
4017
  * Gets the URI for the remote metadata signature.
4018
4018
  * @returns a URI, or %NULL for invalid.
4019
4019
  */
4020
- get_metadata_uri_sig(): string | null
4020
+ get_metadata_uri_sig(): string
4021
4021
  /**
4022
4022
  * Gets the list of remotes this plugin should be ordered after.
4023
4023
  * @returns an array
@@ -4032,7 +4032,7 @@ export interface Remote {
4032
4032
  * Gets the password configured for the remote.
4033
4033
  * @returns a string, or %NULL for unset
4034
4034
  */
4035
- get_password(): string | null
4035
+ get_password(): string
4036
4036
  /**
4037
4037
  * Gets the priority of the remote, where bigger numbers are better.
4038
4038
  * @returns a priority, or 0 for the default value
@@ -4042,27 +4042,27 @@ export interface Remote {
4042
4042
  * Gets the base directory for storing remote metadata
4043
4043
  * @returns a string, or %NULL if unset
4044
4044
  */
4045
- get_remotes_dir(): string | null
4045
+ get_remotes_dir(): string
4046
4046
  /**
4047
4047
  * Gets the URI for the remote reporting.
4048
4048
  * @returns a URI, or %NULL for invalid.
4049
4049
  */
4050
- get_report_uri(): string | null
4050
+ get_report_uri(): string
4051
4051
  /**
4052
4052
  * Gets the URI for the security report.
4053
4053
  * @returns a URI, or %NULL for invalid.
4054
4054
  */
4055
- get_security_report_uri(): string | null
4055
+ get_security_report_uri(): string
4056
4056
  /**
4057
4057
  * Gets the remote title, e.g. `Linux Vendor Firmware Service`.
4058
4058
  * @returns a string, or %NULL if unset
4059
4059
  */
4060
- get_title(): string | null
4060
+ get_title(): string
4061
4061
  /**
4062
4062
  * Gets the username configured for the remote.
4063
4063
  * @returns a string, or %NULL for unset
4064
4064
  */
4065
- get_username(): string | null
4065
+ get_username(): string
4066
4066
  /**
4067
4067
  * Sets up the remote ready for use. Most other methods call this
4068
4068
  * for you, and do you only need to call this if you are just watching
@@ -4071,13 +4071,13 @@ export interface Remote {
4071
4071
  * @param cancellable the #GCancellable, or %NULL
4072
4072
  * @returns %TRUE for success
4073
4073
  */
4074
- load_from_filename(filename: string | null, cancellable: Gio.Cancellable | null): boolean
4074
+ load_from_filename(filename: string, cancellable: Gio.Cancellable | null): boolean
4075
4075
  /**
4076
4076
  * Parses the signature, updating the metadata URI as appropriate.
4077
4077
  * @param filename A filename
4078
4078
  * @returns %TRUE for success
4079
4079
  */
4080
- load_signature(filename: string | null): boolean
4080
+ load_signature(filename: string): boolean
4081
4081
  /**
4082
4082
  * Parses the signature, updating the metadata URI as appropriate.
4083
4083
  *
@@ -4091,7 +4091,7 @@ export interface Remote {
4091
4091
  * Sets the remote agreement in AppStream markup format
4092
4092
  * @param agreement Agreement markup
4093
4093
  */
4094
- set_agreement(agreement: string | null): void
4094
+ set_agreement(agreement: string): void
4095
4095
  /**
4096
4096
  * Sets the keyring kind
4097
4097
  * @param keyring_kind #FwupdKeyringKind e.g. #FWUPD_KEYRING_KIND_PKCS7
@@ -4111,7 +4111,7 @@ export interface Remote {
4111
4111
  * Sets the directory to store remote data
4112
4112
  * @param directory Remotes directory
4113
4113
  */
4114
- set_remotes_dir(directory: string | null): void
4114
+ set_remotes_dir(directory: string): void
4115
4115
  /**
4116
4116
  * Creates a GVariant from the remote data.
4117
4117
  * @returns the GVariant, or %NULL for error
@@ -4181,13 +4181,13 @@ export class Remote extends GObject.Object {
4181
4181
  * @param kind a string, e.g. `download`
4182
4182
  * @returns a #FwupdRemoteKind, e.g. %FWUPD_REMOTE_KIND_DOWNLOAD
4183
4183
  */
4184
- static kind_from_string(kind: string | null): RemoteKind
4184
+ static kind_from_string(kind: string): RemoteKind
4185
4185
  /**
4186
4186
  * Converts an enumerated type to a printable string.
4187
4187
  * @param kind a #FwupdRemoteKind, e.g. %FWUPD_REMOTE_KIND_DOWNLOAD
4188
4188
  * @returns a string, e.g. `download`
4189
4189
  */
4190
- static kind_to_string(kind: RemoteKind): string | null
4190
+ static kind_to_string(kind: RemoteKind): string
4191
4191
  }
4192
4192
 
4193
4193
  export module SecurityAttr {
@@ -4217,18 +4217,18 @@ export interface SecurityAttr {
4217
4217
  * @param key metadata key
4218
4218
  * @param value metadata value
4219
4219
  */
4220
- add_metadata(key: string | null, value: string | null): void
4220
+ add_metadata(key: string, value: string | null): void
4221
4221
  /**
4222
4222
  * Adds an attribute appstream_id to obsolete. The obsoleted attribute will not
4223
4223
  * contribute to the calculated HSI value or be visible in command line tools.
4224
4224
  * @param appstream_id the appstream_id or plugin name
4225
4225
  */
4226
- add_obsolete(appstream_id: string | null): void
4226
+ add_obsolete(appstream_id: string): void
4227
4227
  /**
4228
4228
  * Gets the AppStream ID.
4229
4229
  * @returns the AppStream ID, or %NULL if unset
4230
4230
  */
4231
- get_appstream_id(): string | null
4231
+ get_appstream_id(): string
4232
4232
  /**
4233
4233
  * Gets the self flags.
4234
4234
  * @returns the self flags, or 0 if unset
@@ -4244,12 +4244,12 @@ export interface SecurityAttr {
4244
4244
  * @param key metadata key
4245
4245
  * @returns the metadata value, or %NULL if unfound
4246
4246
  */
4247
- get_metadata(key: string | null): string | null
4247
+ get_metadata(key: string): string | null
4248
4248
  /**
4249
4249
  * Gets the attribute name.
4250
4250
  * @returns the attribute name, or %NULL if unset
4251
4251
  */
4252
- get_name(): string | null
4252
+ get_name(): string
4253
4253
  /**
4254
4254
  * Gets the list of attribute obsoletes. The obsoleted attributes will not
4255
4255
  * contribute to the calculated HSI value or be visible in command line tools.
@@ -4260,7 +4260,7 @@ export interface SecurityAttr {
4260
4260
  * Gets the plugin that created the attribute.
4261
4261
  * @returns the plugin name, or %NULL if unset
4262
4262
  */
4263
- get_plugin(): string | null
4263
+ get_plugin(): string
4264
4264
  /**
4265
4265
  * Gets the optional HSI result.
4266
4266
  * @returns the #FwupdSecurityAttrResult, e.g %FWUPD_SECURITY_ATTR_LEVEL_LOCKED
@@ -4270,7 +4270,7 @@ export interface SecurityAttr {
4270
4270
  * Gets the attribute URL.
4271
4271
  * @returns the attribute result, or %NULL if unset
4272
4272
  */
4273
- get_url(): string | null
4273
+ get_url(): string
4274
4274
  /**
4275
4275
  * Finds if the self has a specific self flag.
4276
4276
  * @param flag the #FwupdSecurityAttrFlags
@@ -4282,12 +4282,12 @@ export interface SecurityAttr {
4282
4282
  * @param appstream_id the attribute appstream_id
4283
4283
  * @returns %TRUE if the self matches
4284
4284
  */
4285
- has_obsolete(appstream_id: string | null): boolean
4285
+ has_obsolete(appstream_id: string): boolean
4286
4286
  /**
4287
4287
  * Sets the AppStream ID.
4288
4288
  * @param appstream_id the AppStream component ID, e.g. `com.intel.BiosGuard`
4289
4289
  */
4290
- set_appstream_id(appstream_id: string | null): void
4290
+ set_appstream_id(appstream_id: string): void
4291
4291
  /**
4292
4292
  * Sets the self flags.
4293
4293
  * @param flags the self flags, e.g. %FWUPD_SECURITY_ATTR_FLAG_OBSOLETED
@@ -4303,12 +4303,12 @@ export interface SecurityAttr {
4303
4303
  * Sets the attribute name.
4304
4304
  * @param name the attribute name
4305
4305
  */
4306
- set_name(name: string | null): void
4306
+ set_name(name: string): void
4307
4307
  /**
4308
4308
  * Sets the plugin that created the attribute.
4309
4309
  * @param plugin the plugin name
4310
4310
  */
4311
- set_plugin(plugin: string | null): void
4311
+ set_plugin(plugin: string): void
4312
4312
  /**
4313
4313
  * Sets the optional HSI result. This is required because some attributes may
4314
4314
  * be a "success" when something is `locked` or may be "failed" if `found`.
@@ -4319,7 +4319,7 @@ export interface SecurityAttr {
4319
4319
  * Sets the attribute result.
4320
4320
  * @param url the attribute URL
4321
4321
  */
4322
- set_url(url: string | null): void
4322
+ set_url(url: string): void
4323
4323
  /**
4324
4324
  * Builds a text representation of the object.
4325
4325
  * @returns text, or %NULL for invalid
@@ -4375,13 +4375,13 @@ export class SecurityAttr extends GObject.Object {
4375
4375
  * @param flag A #FwupdSecurityAttrFlags, e.g. %FWUPD_SECURITY_ATTR_FLAG_SUCCESS
4376
4376
  * @returns string, or %NULL
4377
4377
  */
4378
- static flag_to_string(flag: SecurityAttrFlags): string | null
4378
+ static flag_to_string(flag: SecurityAttrFlags): string
4379
4379
  /**
4380
4380
  * Returns the string suffix for the flag.
4381
4381
  * @param flag A #FwupdSecurityAttrFlags, e.g. %FWUPD_SECURITY_ATTR_FLAG_RUNTIME_UPDATES
4382
4382
  * @returns string, or %NULL
4383
4383
  */
4384
- static flag_to_suffix(flag: SecurityAttrFlags): string | null
4384
+ static flag_to_suffix(flag: SecurityAttrFlags): string
4385
4385
  /**
4386
4386
  * Creates a new self using packed data.
4387
4387
  * @param value a #GVariant
@@ -4393,7 +4393,7 @@ export class SecurityAttr extends GObject.Object {
4393
4393
  * @param result A #FwupdSecurityAttrResult, e.g. %FWUPD_SECURITY_ATTR_RESULT_ENABLED
4394
4394
  * @returns string, or %NULL
4395
4395
  */
4396
- static result_to_string(result: SecurityAttrResult): string | null
4396
+ static result_to_string(result: SecurityAttrResult): string
4397
4397
  }
4398
4398
 
4399
4399
  export interface ClientClass {