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