ffi-bindings 1.0.2 → 1.0.4

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.
@@ -1,13 +1,4 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports["default"] = exports.MediaRetentionPolicy = exports.EncryptionState = void 0;
7
- var wasmBundle = _interopRequireWildcard(require("./wasm-bindgen/index.js"));
8
- var _uniffiBindgenReactNative = require("uniffi-bindgen-react-native");
9
1
  var _process;
10
- function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, "default": e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
11
2
  function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
12
3
  function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
13
4
  function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
@@ -20,14 +11,21 @@ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.
20
11
  function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }
21
12
  function _inherits(t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, "prototype", { writable: !1 }), e && _setPrototypeOf(t, e); }
22
13
  function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
23
- function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); } // This file was autogenerated by some hot garbage in the `uniffi-bindgen-react-native` crate.
14
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
15
+ // This file was autogenerated by some hot garbage in the `uniffi-bindgen-react-native` crate.
24
16
  // Trust me, you don't want to mess with it!
25
- /* tslint:disable */ /* eslint-disable */ // @ts-nocheck
17
+
18
+ /* tslint:disable */
19
+ /* eslint-disable */
20
+ // @ts-nocheck
21
+ import * as wasmBundle from "./wasm-bindgen/index.js";
22
+ import { AbstractFfiConverterByteArray, FfiConverterDuration, FfiConverterInt32, FfiConverterOptional, FfiConverterUInt64, UniffiInternalError, UniffiRustCaller, uniffiCreateFfiConverterString, uniffiCreateRecord } from "uniffi-bindgen-react-native";
23
+
26
24
  // Get converters from the other files, if any.
27
25
  var nativeModule = function nativeModule() {
28
26
  return wasmBundle;
29
27
  };
30
- var uniffiCaller = new _uniffiBindgenReactNative.UniffiRustCaller(function () {
28
+ var uniffiCaller = new UniffiRustCaller(function () {
31
29
  return new wasmBundle.RustCallStatus();
32
30
  });
33
31
  var uniffiIsDebug =
@@ -46,12 +44,12 @@ var uniffiIsDebug =
46
44
  /**
47
45
  * Generated factory for {@link MediaRetentionPolicy} record objects.
48
46
  */
49
- var MediaRetentionPolicy = exports.MediaRetentionPolicy = function () {
47
+ export var MediaRetentionPolicy = function () {
50
48
  var _defaults = function defaults() {
51
49
  return {};
52
50
  };
53
51
  var create = function () {
54
- return (0, _uniffiBindgenReactNative.uniffiCreateRecord)(_defaults);
52
+ return uniffiCreateRecord(_defaults);
55
53
  }();
56
54
  return Object.freeze({
57
55
  create: create,
@@ -92,7 +90,7 @@ var FfiConverterTypeMediaRetentionPolicy = function () {
92
90
  return FfiConverterOptionalUInt64.allocationSize(value.maxCacheSize) + FfiConverterOptionalUInt64.allocationSize(value.maxFileSize) + FfiConverterOptionalDuration.allocationSize(value.lastAccessExpiry) + FfiConverterOptionalDuration.allocationSize(value.cleanupFrequency);
93
91
  }
94
92
  }]);
95
- }(_uniffiBindgenReactNative.AbstractFfiConverterByteArray);
93
+ }(AbstractFfiConverterByteArray);
96
94
  ;
97
95
  return new FFIConverter();
98
96
  }();
@@ -111,12 +109,12 @@ var stringConverter = function () {
111
109
  }
112
110
  };
113
111
  }();
114
- var FfiConverterString = (0, _uniffiBindgenReactNative.uniffiCreateFfiConverterString)(stringConverter);
112
+ var FfiConverterString = uniffiCreateFfiConverterString(stringConverter);
115
113
 
116
114
  /**
117
115
  * Represents the state of a room encryption.
118
116
  */
119
- var EncryptionState = exports.EncryptionState = /*#__PURE__*/function (EncryptionState) {
117
+ export var EncryptionState = /*#__PURE__*/function (EncryptionState) {
120
118
  /**
121
119
  * The room is encrypted.
122
120
  */
@@ -133,7 +131,7 @@ var EncryptionState = exports.EncryptionState = /*#__PURE__*/function (Encryptio
133
131
  return EncryptionState;
134
132
  }({});
135
133
  var FfiConverterTypeEncryptionState = function () {
136
- var ordinalConverter = _uniffiBindgenReactNative.FfiConverterInt32;
134
+ var ordinalConverter = FfiConverterInt32;
137
135
  var FFIConverter = /*#__PURE__*/function (_AbstractFfiConverter2) {
138
136
  function FFIConverter() {
139
137
  _classCallCheck(this, FFIConverter);
@@ -151,7 +149,7 @@ var FfiConverterTypeEncryptionState = function () {
151
149
  case 3:
152
150
  return EncryptionState.Unknown;
153
151
  default:
154
- throw new _uniffiBindgenReactNative.UniffiInternalError.UnexpectedEnumCase();
152
+ throw new UniffiInternalError.UnexpectedEnumCase();
155
153
  }
156
154
  }
157
155
  }, {
@@ -172,15 +170,15 @@ var FfiConverterTypeEncryptionState = function () {
172
170
  return ordinalConverter.allocationSize(0);
173
171
  }
174
172
  }]);
175
- }(_uniffiBindgenReactNative.AbstractFfiConverterByteArray);
173
+ }(AbstractFfiConverterByteArray);
176
174
  return new FFIConverter();
177
175
  }();
178
176
 
179
177
  // FfiConverter for UniffiDuration | undefined
180
- var FfiConverterOptionalDuration = new _uniffiBindgenReactNative.FfiConverterOptional(_uniffiBindgenReactNative.FfiConverterDuration);
178
+ var FfiConverterOptionalDuration = new FfiConverterOptional(FfiConverterDuration);
181
179
 
182
180
  // FfiConverter for /*u64*/bigint | undefined
183
- var FfiConverterOptionalUInt64 = new _uniffiBindgenReactNative.FfiConverterOptional(_uniffiBindgenReactNative.FfiConverterUInt64);
181
+ var FfiConverterOptionalUInt64 = new FfiConverterOptional(FfiConverterUInt64);
184
182
 
185
183
  /**
186
184
  * This should be called before anything else.
@@ -198,10 +196,10 @@ function uniffiEnsureInitialized() {
198
196
  // Get the scaffolding contract version by calling the into the dylib
199
197
  var scaffoldingContractVersion = nativeModule().ubrn_ffi_matrix_sdk_base_uniffi_contract_version();
200
198
  if (bindingsContractVersion !== scaffoldingContractVersion) {
201
- throw new _uniffiBindgenReactNative.UniffiInternalError.ContractVersionMismatch(scaffoldingContractVersion, bindingsContractVersion);
199
+ throw new UniffiInternalError.ContractVersionMismatch(scaffoldingContractVersion, bindingsContractVersion);
202
200
  }
203
201
  }
204
- var _default = exports["default"] = Object.freeze({
202
+ export default Object.freeze({
205
203
  initialize: uniffiEnsureInitialized,
206
204
  converters: {
207
205
  FfiConverterTypeEncryptionState: FfiConverterTypeEncryptionState,
@@ -1,13 +1,4 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports["default"] = exports.ShieldStateCode = exports.BackgroundTaskFailureReason_Tags = exports.BackgroundTaskFailureReason = void 0;
7
- var wasmBundle = _interopRequireWildcard(require("./wasm-bindgen/index.js"));
8
- var _uniffiBindgenReactNative = require("uniffi-bindgen-react-native");
9
1
  var _process;
10
- function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, "default": e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
11
2
  function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
12
3
  function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
13
4
  function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
@@ -21,14 +12,21 @@ function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf
21
12
  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
22
13
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
23
14
  function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
24
- function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); } // This file was autogenerated by some hot garbage in the `uniffi-bindgen-react-native` crate.
15
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
16
+ // This file was autogenerated by some hot garbage in the `uniffi-bindgen-react-native` crate.
25
17
  // Trust me, you don't want to mess with it!
26
- /* tslint:disable */ /* eslint-disable */ // @ts-nocheck
18
+
19
+ /* tslint:disable */
20
+ /* eslint-disable */
21
+ // @ts-nocheck
22
+ import * as wasmBundle from "./wasm-bindgen/index.js";
23
+ import { AbstractFfiConverterByteArray, FfiConverterInt32, FfiConverterOptional, UniffiEnum, UniffiInternalError, UniffiRustCaller, uniffiCreateFfiConverterString, uniffiTypeNameSymbol } from "uniffi-bindgen-react-native";
24
+
27
25
  // Get converters from the other files, if any.
28
26
  var nativeModule = function nativeModule() {
29
27
  return wasmBundle;
30
28
  };
31
- var uniffiCaller = new _uniffiBindgenReactNative.UniffiRustCaller(function () {
29
+ var uniffiCaller = new UniffiRustCaller(function () {
32
30
  return new wasmBundle.RustCallStatus();
33
31
  });
34
32
  var uniffiIsDebug =
@@ -53,10 +51,10 @@ var stringConverter = function () {
53
51
  }
54
52
  };
55
53
  }();
56
- var FfiConverterString = (0, _uniffiBindgenReactNative.uniffiCreateFfiConverterString)(stringConverter);
54
+ var FfiConverterString = uniffiCreateFfiConverterString(stringConverter);
57
55
 
58
56
  // Enum: BackgroundTaskFailureReason
59
- var BackgroundTaskFailureReason_Tags = exports.BackgroundTaskFailureReason_Tags = /*#__PURE__*/function (BackgroundTaskFailureReason_Tags) {
57
+ export var BackgroundTaskFailureReason_Tags = /*#__PURE__*/function (BackgroundTaskFailureReason_Tags) {
60
58
  BackgroundTaskFailureReason_Tags["Panic"] = "Panic";
61
59
  BackgroundTaskFailureReason_Tags["Error"] = "Error";
62
60
  BackgroundTaskFailureReason_Tags["EarlyTermination"] = "EarlyTermination";
@@ -65,7 +63,7 @@ var BackgroundTaskFailureReason_Tags = exports.BackgroundTaskFailureReason_Tags
65
63
  /**
66
64
  * Reason why a background task failed.
67
65
  */
68
- var BackgroundTaskFailureReason = exports.BackgroundTaskFailureReason = function () {
66
+ export var BackgroundTaskFailureReason = function () {
69
67
  /**
70
68
  * The task panicked.
71
69
  */
@@ -78,7 +76,7 @@ var BackgroundTaskFailureReason = exports.BackgroundTaskFailureReason = function
78
76
  * @private
79
77
  * This field is private and should not be used, use `tag` instead.
80
78
  */
81
- _defineProperty(_this, _uniffiBindgenReactNative.uniffiTypeNameSymbol, "BackgroundTaskFailureReason");
79
+ _defineProperty(_this, uniffiTypeNameSymbol, "BackgroundTaskFailureReason");
82
80
  _defineProperty(_this, "tag", BackgroundTaskFailureReason_Tags.Panic);
83
81
  _defineProperty(_this, "inner", void 0);
84
82
  _this.inner = Object.freeze(inner);
@@ -96,7 +94,7 @@ var BackgroundTaskFailureReason = exports.BackgroundTaskFailureReason = function
96
94
  return obj.tag === BackgroundTaskFailureReason_Tags.Panic;
97
95
  }
98
96
  }]);
99
- }(_uniffiBindgenReactNative.UniffiEnum);
97
+ }(UniffiEnum);
100
98
  /**
101
99
  * The task returned an error.
102
100
  */
@@ -109,7 +107,7 @@ var BackgroundTaskFailureReason = exports.BackgroundTaskFailureReason = function
109
107
  * @private
110
108
  * This field is private and should not be used, use `tag` instead.
111
109
  */
112
- _defineProperty(_this2, _uniffiBindgenReactNative.uniffiTypeNameSymbol, "BackgroundTaskFailureReason");
110
+ _defineProperty(_this2, uniffiTypeNameSymbol, "BackgroundTaskFailureReason");
113
111
  _defineProperty(_this2, "tag", BackgroundTaskFailureReason_Tags.Error);
114
112
  _defineProperty(_this2, "inner", void 0);
115
113
  _this2.inner = Object.freeze(inner);
@@ -127,7 +125,7 @@ var BackgroundTaskFailureReason = exports.BackgroundTaskFailureReason = function
127
125
  return obj.tag === BackgroundTaskFailureReason_Tags.Error;
128
126
  }
129
127
  }]);
130
- }(_uniffiBindgenReactNative.UniffiEnum);
128
+ }(UniffiEnum);
131
129
  /**
132
130
  * The task ended unexpectedly (for tasks expected to run forever).
133
131
  */
@@ -140,7 +138,7 @@ var BackgroundTaskFailureReason = exports.BackgroundTaskFailureReason = function
140
138
  * @private
141
139
  * This field is private and should not be used, use `tag` instead.
142
140
  */
143
- _defineProperty(_this3, _uniffiBindgenReactNative.uniffiTypeNameSymbol, "BackgroundTaskFailureReason");
141
+ _defineProperty(_this3, uniffiTypeNameSymbol, "BackgroundTaskFailureReason");
144
142
  _defineProperty(_this3, "tag", BackgroundTaskFailureReason_Tags.EarlyTermination);
145
143
  return _this3;
146
144
  }
@@ -156,9 +154,9 @@ var BackgroundTaskFailureReason = exports.BackgroundTaskFailureReason = function
156
154
  return obj.tag === BackgroundTaskFailureReason_Tags.EarlyTermination;
157
155
  }
158
156
  }]);
159
- }(_uniffiBindgenReactNative.UniffiEnum);
157
+ }(UniffiEnum);
160
158
  function instanceOf(obj) {
161
- return obj[_uniffiBindgenReactNative.uniffiTypeNameSymbol] === "BackgroundTaskFailureReason";
159
+ return obj[uniffiTypeNameSymbol] === "BackgroundTaskFailureReason";
162
160
  }
163
161
  return Object.freeze({
164
162
  instanceOf: instanceOf,
@@ -174,7 +172,7 @@ var BackgroundTaskFailureReason = exports.BackgroundTaskFailureReason = function
174
172
 
175
173
  // FfiConverter for enum BackgroundTaskFailureReason
176
174
  var FfiConverterTypeBackgroundTaskFailureReason = function () {
177
- var ordinalConverter = _uniffiBindgenReactNative.FfiConverterInt32;
175
+ var ordinalConverter = FfiConverterInt32;
178
176
  var FFIConverter = /*#__PURE__*/function (_AbstractFfiConverter) {
179
177
  function FFIConverter() {
180
178
  _classCallCheck(this, FFIConverter);
@@ -197,7 +195,7 @@ var FfiConverterTypeBackgroundTaskFailureReason = function () {
197
195
  case 3:
198
196
  return new BackgroundTaskFailureReason.EarlyTermination();
199
197
  default:
200
- throw new _uniffiBindgenReactNative.UniffiInternalError.UnexpectedEnumCase();
198
+ throw new UniffiInternalError.UnexpectedEnumCase();
201
199
  }
202
200
  }
203
201
  }, {
@@ -226,7 +224,7 @@ var FfiConverterTypeBackgroundTaskFailureReason = function () {
226
224
  }
227
225
  default:
228
226
  // Throwing from here means that BackgroundTaskFailureReason_Tags hasn't matched an ordinal.
229
- throw new _uniffiBindgenReactNative.UniffiInternalError.UnexpectedEnumCase();
227
+ throw new UniffiInternalError.UnexpectedEnumCase();
230
228
  }
231
229
  }
232
230
  }, {
@@ -253,18 +251,18 @@ var FfiConverterTypeBackgroundTaskFailureReason = function () {
253
251
  return ordinalConverter.allocationSize(3);
254
252
  }
255
253
  default:
256
- throw new _uniffiBindgenReactNative.UniffiInternalError.UnexpectedEnumCase();
254
+ throw new UniffiInternalError.UnexpectedEnumCase();
257
255
  }
258
256
  }
259
257
  }]);
260
- }(_uniffiBindgenReactNative.AbstractFfiConverterByteArray);
258
+ }(AbstractFfiConverterByteArray);
261
259
  return new FFIConverter();
262
260
  }();
263
261
 
264
262
  /**
265
263
  * A machine-readable representation of the authenticity for a `ShieldState`.
266
264
  */
267
- var ShieldStateCode = exports.ShieldStateCode = /*#__PURE__*/function (ShieldStateCode) {
265
+ export var ShieldStateCode = /*#__PURE__*/function (ShieldStateCode) {
268
266
  /**
269
267
  * Not enough information available to check the authenticity.
270
268
  */
@@ -293,7 +291,7 @@ var ShieldStateCode = exports.ShieldStateCode = /*#__PURE__*/function (ShieldSta
293
291
  return ShieldStateCode;
294
292
  }({});
295
293
  var FfiConverterTypeShieldStateCode = function () {
296
- var ordinalConverter = _uniffiBindgenReactNative.FfiConverterInt32;
294
+ var ordinalConverter = FfiConverterInt32;
297
295
  var FFIConverter = /*#__PURE__*/function (_AbstractFfiConverter2) {
298
296
  function FFIConverter() {
299
297
  _classCallCheck(this, FFIConverter);
@@ -317,7 +315,7 @@ var FfiConverterTypeShieldStateCode = function () {
317
315
  case 6:
318
316
  return ShieldStateCode.MismatchedSender;
319
317
  default:
320
- throw new _uniffiBindgenReactNative.UniffiInternalError.UnexpectedEnumCase();
318
+ throw new UniffiInternalError.UnexpectedEnumCase();
321
319
  }
322
320
  }
323
321
  }, {
@@ -344,12 +342,12 @@ var FfiConverterTypeShieldStateCode = function () {
344
342
  return ordinalConverter.allocationSize(0);
345
343
  }
346
344
  }]);
347
- }(_uniffiBindgenReactNative.AbstractFfiConverterByteArray);
345
+ }(AbstractFfiConverterByteArray);
348
346
  return new FFIConverter();
349
347
  }();
350
348
 
351
349
  // FfiConverter for string | undefined
352
- var FfiConverterOptionalString = new _uniffiBindgenReactNative.FfiConverterOptional(FfiConverterString);
350
+ var FfiConverterOptionalString = new FfiConverterOptional(FfiConverterString);
353
351
 
354
352
  /**
355
353
  * This should be called before anything else.
@@ -367,10 +365,10 @@ function uniffiEnsureInitialized() {
367
365
  // Get the scaffolding contract version by calling the into the dylib
368
366
  var scaffoldingContractVersion = nativeModule().ubrn_ffi_matrix_sdk_common_uniffi_contract_version();
369
367
  if (bindingsContractVersion !== scaffoldingContractVersion) {
370
- throw new _uniffiBindgenReactNative.UniffiInternalError.ContractVersionMismatch(scaffoldingContractVersion, bindingsContractVersion);
368
+ throw new UniffiInternalError.ContractVersionMismatch(scaffoldingContractVersion, bindingsContractVersion);
371
369
  }
372
370
  }
373
- var _default = exports["default"] = Object.freeze({
371
+ export default Object.freeze({
374
372
  initialize: uniffiEnsureInitialized,
375
373
  converters: {
376
374
  FfiConverterTypeBackgroundTaskFailureReason: FfiConverterTypeBackgroundTaskFailureReason,