@trylimbo/sdk-verifier 0.3.0-canary.41 → 0.3.0-canary.44
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/gen/ffi/index.d.ts +583 -45
- package/gen/ffi/index.js +677 -39
- package/package.json +10 -4
package/gen/ffi/index.js
CHANGED
|
@@ -1791,6 +1791,11 @@ const DEFINITIONS = {
|
|
|
1791
1791
|
ret: FfiType.Handle,
|
|
1792
1792
|
hasRustCallStatus: false
|
|
1793
1793
|
},
|
|
1794
|
+
"uniffi_trylimbo_sdk_verifier_fn_func_tamper_codes": {
|
|
1795
|
+
args: [],
|
|
1796
|
+
ret: FfiType.RustBuffer,
|
|
1797
|
+
hasRustCallStatus: true
|
|
1798
|
+
},
|
|
1794
1799
|
"uniffi_trylimbo_sdk_verifier_fn_constructor_assetverifier_create": {
|
|
1795
1800
|
args: [FfiType.RustBuffer, FfiType.RustBuffer],
|
|
1796
1801
|
ret: FfiType.Handle,
|
|
@@ -1954,6 +1959,11 @@ const DEFINITIONS = {
|
|
|
1954
1959
|
ret: FfiType.UInt16,
|
|
1955
1960
|
hasRustCallStatus: false
|
|
1956
1961
|
},
|
|
1962
|
+
"uniffi_trylimbo_sdk_verifier_checksum_func_tamper_codes": {
|
|
1963
|
+
args: [],
|
|
1964
|
+
ret: FfiType.UInt16,
|
|
1965
|
+
hasRustCallStatus: false
|
|
1966
|
+
},
|
|
1957
1967
|
"uniffi_trylimbo_sdk_verifier_checksum_constructor_assetverifier_create": {
|
|
1958
1968
|
args: [],
|
|
1959
1969
|
ret: FfiType.UInt16,
|
|
@@ -2336,13 +2346,24 @@ var trylimbo_verifier_exports = /* @__PURE__ */ __exportAll({
|
|
|
2336
2346
|
RecoverySummary: () => RecoverySummary,
|
|
2337
2347
|
RecoveryTrigger: () => RecoveryTrigger,
|
|
2338
2348
|
Reference: () => Reference,
|
|
2349
|
+
Region: () => Region,
|
|
2350
|
+
RegionCoordinate: () => RegionCoordinate,
|
|
2351
|
+
RegionForm: () => RegionForm,
|
|
2352
|
+
RegionForm_Tags: () => RegionForm_Tags,
|
|
2339
2353
|
RegionOfInterest: () => RegionOfInterest,
|
|
2354
|
+
RegionRange: () => RegionRange,
|
|
2355
|
+
RegionRange_Tags: () => RegionRange_Tags,
|
|
2356
|
+
RegionShape: () => RegionShape,
|
|
2357
|
+
RegionTextSelector: () => RegionTextSelector,
|
|
2358
|
+
RegionTextSelectorRange: () => RegionTextSelectorRange,
|
|
2359
|
+
RegionUnit: () => RegionUnit,
|
|
2340
2360
|
Relationship: () => Relationship,
|
|
2341
2361
|
Repository: () => Repository,
|
|
2342
2362
|
Repository_Tags: () => Repository_Tags,
|
|
2343
2363
|
ResourceRef: () => ResourceRef,
|
|
2344
2364
|
ReviewRating: () => ReviewRating,
|
|
2345
2365
|
Scope: () => Scope,
|
|
2366
|
+
Scope_Tags: () => Scope_Tags,
|
|
2346
2367
|
SdkError: () => SdkError,
|
|
2347
2368
|
SdkError_Tags: () => SdkError_Tags,
|
|
2348
2369
|
SegmentTiming: () => SegmentTiming,
|
|
@@ -2365,7 +2386,6 @@ var trylimbo_verifier_exports = /* @__PURE__ */ __exportAll({
|
|
|
2365
2386
|
TextSelectorRange: () => TextSelectorRange,
|
|
2366
2387
|
Time: () => Time,
|
|
2367
2388
|
TimeType: () => TimeType,
|
|
2368
|
-
Timespan: () => Timespan,
|
|
2369
2389
|
Trust: () => Trust,
|
|
2370
2390
|
UnitType: () => UnitType,
|
|
2371
2391
|
UriOrResource: () => UriOrResource,
|
|
@@ -2384,7 +2404,8 @@ var trylimbo_verifier_exports = /* @__PURE__ */ __exportAll({
|
|
|
2384
2404
|
default: () => trylimbo_verifier_default,
|
|
2385
2405
|
devCa: () => devCa,
|
|
2386
2406
|
parse: () => parse,
|
|
2387
|
-
resource: () => resource
|
|
2407
|
+
resource: () => resource,
|
|
2408
|
+
tamperCodes: () => tamperCodes
|
|
2388
2409
|
});
|
|
2389
2410
|
const uniffiCaller = new UniffiRustCaller(() => ({ code: 0 }));
|
|
2390
2411
|
const uniffiIsDebug = typeof process !== "object" || process?.env?.NODE_ENV !== "production" || false;
|
|
@@ -2513,6 +2534,21 @@ async function resource(manifest, uri, asyncOpts_) {
|
|
|
2513
2534
|
throw __error;
|
|
2514
2535
|
}
|
|
2515
2536
|
}
|
|
2537
|
+
/**
|
|
2538
|
+
* The failure codes that say a manifest's asset bytes or its claim signature no longer match what
|
|
2539
|
+
* was signed, as against a credential that is otherwise not good. A code absent here is never
|
|
2540
|
+
* tampering.
|
|
2541
|
+
*/
|
|
2542
|
+
function tamperCodes() {
|
|
2543
|
+
const __rb = uniffiCaller.rustCall((callStatus) => {
|
|
2544
|
+
return getter().uniffi_trylimbo_sdk_verifier_fn_func_tamper_codes(callStatus);
|
|
2545
|
+
}, FfiConverterString.lift.bind(FfiConverterString));
|
|
2546
|
+
try {
|
|
2547
|
+
return FfiConverterSequenceString.lift(__rb);
|
|
2548
|
+
} finally {
|
|
2549
|
+
getter().rustbuffer_free(__rb);
|
|
2550
|
+
}
|
|
2551
|
+
}
|
|
2516
2552
|
const FfiConverterString = uniffiCreateFfiConverterString((() => {
|
|
2517
2553
|
const encoder = new TextEncoder();
|
|
2518
2554
|
const decoder = new TextDecoder();
|
|
@@ -4360,7 +4396,7 @@ let FingerprintCheck_Tags = /* @__PURE__ */ function(FingerprintCheck_Tags) {
|
|
|
4360
4396
|
/**
|
|
4361
4397
|
* Whether the asset's own fingerprint backs up a manifest that a watermark led to.
|
|
4362
4398
|
*
|
|
4363
|
-
* C2PA 2.4 1.2.2.3: a watermark can be lifted from one asset onto another, so a mark alone does
|
|
4399
|
+
* C2PA 2.4 Soft Binding API section 1.2.2.3: a watermark can be lifted from one asset onto another, so a mark alone does
|
|
4364
4400
|
* not establish that the manifest it resolves to describes THIS asset. The mitigation the spec
|
|
4365
4401
|
* gives is to compare a fingerprint computed from the asset against the one the recovered
|
|
4366
4402
|
* manifest records, and `watermark-and-fingerprint` ends on exactly that comparison.
|
|
@@ -5859,7 +5895,7 @@ let Verdict_Tags = /* @__PURE__ */ function(Verdict_Tags) {
|
|
|
5859
5895
|
return Verdict_Tags;
|
|
5860
5896
|
}({});
|
|
5861
5897
|
/**
|
|
5862
|
-
* What this verify concludes about the asset, chosen from [`AssetVerification::credentials`]
|
|
5898
|
+
* What this verify concludes about the asset, chosen from [`AssetVerification::credentials`](super::AssetVerification::credentials)
|
|
5863
5899
|
* on signed evidence alone. Policy over the evidence: no credential's validation state changes,
|
|
5864
5900
|
* and the list stays whole beside it.
|
|
5865
5901
|
*
|
|
@@ -6370,10 +6406,36 @@ const FfiConverterTypeAssetVerifierOptions = (() => {
|
|
|
6370
6406
|
}
|
|
6371
6407
|
return new FFIConverter();
|
|
6372
6408
|
})();
|
|
6409
|
+
let RegionUnit = /* @__PURE__ */ function(RegionUnit) {
|
|
6410
|
+
RegionUnit[RegionUnit["Pixel"] = 0] = "Pixel";
|
|
6411
|
+
RegionUnit[RegionUnit["Percent"] = 1] = "Percent";
|
|
6412
|
+
return RegionUnit;
|
|
6413
|
+
}({});
|
|
6414
|
+
const FfiConverterTypeRegionUnit = (() => {
|
|
6415
|
+
class FFIConverter extends AbstractFfiConverterByteArray {
|
|
6416
|
+
readFromCursor(c) {
|
|
6417
|
+
switch (c.readI32()) {
|
|
6418
|
+
case 1: return 0;
|
|
6419
|
+
case 2: return 1;
|
|
6420
|
+
default: throw new UniffiInternalError.UnexpectedEnumCase();
|
|
6421
|
+
}
|
|
6422
|
+
}
|
|
6423
|
+
writeIntoCursor(value, c) {
|
|
6424
|
+
switch (value) {
|
|
6425
|
+
case 0: return c.writeI32(1);
|
|
6426
|
+
case 1: return c.writeI32(2);
|
|
6427
|
+
}
|
|
6428
|
+
}
|
|
6429
|
+
allocationSize(value) {
|
|
6430
|
+
return 4;
|
|
6431
|
+
}
|
|
6432
|
+
}
|
|
6433
|
+
return new FFIConverter();
|
|
6434
|
+
})();
|
|
6373
6435
|
/**
|
|
6374
|
-
* Generated factory for {@link
|
|
6436
|
+
* Generated factory for {@link RegionCoordinate} record objects.
|
|
6375
6437
|
*/
|
|
6376
|
-
const
|
|
6438
|
+
const RegionCoordinate = (() => {
|
|
6377
6439
|
const defaults = () => ({});
|
|
6378
6440
|
const create = (() => {
|
|
6379
6441
|
return uniffiCreateRecord(defaults);
|
|
@@ -6384,29 +6446,472 @@ const Timespan = (() => {
|
|
|
6384
6446
|
defaults: () => Object.freeze(defaults())
|
|
6385
6447
|
});
|
|
6386
6448
|
})();
|
|
6387
|
-
const
|
|
6449
|
+
const FfiConverterTypeRegionCoordinate = (() => {
|
|
6388
6450
|
class FFIConverter extends AbstractFfiConverterByteArray {
|
|
6389
6451
|
readFromCursor(c) {
|
|
6390
6452
|
return {
|
|
6391
|
-
|
|
6392
|
-
|
|
6453
|
+
x: FfiConverterFloat64.readFromCursor(c),
|
|
6454
|
+
y: FfiConverterFloat64.readFromCursor(c)
|
|
6393
6455
|
};
|
|
6394
6456
|
}
|
|
6395
6457
|
writeIntoCursor(value, c) {
|
|
6396
|
-
|
|
6397
|
-
|
|
6458
|
+
FfiConverterFloat64.writeIntoCursor(value.x, c);
|
|
6459
|
+
FfiConverterFloat64.writeIntoCursor(value.y, c);
|
|
6398
6460
|
}
|
|
6399
6461
|
allocationSize(value) {
|
|
6400
|
-
return
|
|
6462
|
+
return FfiConverterFloat64.allocationSize(value.x) + FfiConverterFloat64.allocationSize(value.y);
|
|
6463
|
+
}
|
|
6464
|
+
}
|
|
6465
|
+
return new FFIConverter();
|
|
6466
|
+
})();
|
|
6467
|
+
let RegionForm_Tags = /* @__PURE__ */ function(RegionForm_Tags) {
|
|
6468
|
+
RegionForm_Tags["Rectangle"] = "Rectangle";
|
|
6469
|
+
RegionForm_Tags["Circle"] = "Circle";
|
|
6470
|
+
RegionForm_Tags["Polygon"] = "Polygon";
|
|
6471
|
+
return RegionForm_Tags;
|
|
6472
|
+
}({});
|
|
6473
|
+
const RegionForm = (() => {
|
|
6474
|
+
class Rectangle_ extends UniffiEnum {
|
|
6475
|
+
/**
|
|
6476
|
+
* @private
|
|
6477
|
+
* This field is private and should not be used, use `tag` instead.
|
|
6478
|
+
*/
|
|
6479
|
+
[uniffiTypeNameSymbol] = "RegionForm";
|
|
6480
|
+
tag = "Rectangle";
|
|
6481
|
+
inner;
|
|
6482
|
+
constructor(inner) {
|
|
6483
|
+
super("RegionForm", "Rectangle");
|
|
6484
|
+
this.inner = Object.freeze(inner);
|
|
6485
|
+
}
|
|
6486
|
+
static new(inner) {
|
|
6487
|
+
return new Rectangle_(inner);
|
|
6488
|
+
}
|
|
6489
|
+
static instanceOf(obj) {
|
|
6490
|
+
return obj.tag === "Rectangle";
|
|
6491
|
+
}
|
|
6492
|
+
}
|
|
6493
|
+
class Circle_ extends UniffiEnum {
|
|
6494
|
+
/**
|
|
6495
|
+
* @private
|
|
6496
|
+
* This field is private and should not be used, use `tag` instead.
|
|
6497
|
+
*/
|
|
6498
|
+
[uniffiTypeNameSymbol] = "RegionForm";
|
|
6499
|
+
tag = "Circle";
|
|
6500
|
+
inner;
|
|
6501
|
+
constructor(inner) {
|
|
6502
|
+
super("RegionForm", "Circle");
|
|
6503
|
+
this.inner = Object.freeze(inner);
|
|
6504
|
+
}
|
|
6505
|
+
static new(inner) {
|
|
6506
|
+
return new Circle_(inner);
|
|
6507
|
+
}
|
|
6508
|
+
static instanceOf(obj) {
|
|
6509
|
+
return obj.tag === "Circle";
|
|
6510
|
+
}
|
|
6511
|
+
}
|
|
6512
|
+
/**
|
|
6513
|
+
* The vertices after the origin, at least one.
|
|
6514
|
+
*/
|
|
6515
|
+
class Polygon_ extends UniffiEnum {
|
|
6516
|
+
/**
|
|
6517
|
+
* @private
|
|
6518
|
+
* This field is private and should not be used, use `tag` instead.
|
|
6519
|
+
*/
|
|
6520
|
+
[uniffiTypeNameSymbol] = "RegionForm";
|
|
6521
|
+
tag = "Polygon";
|
|
6522
|
+
inner;
|
|
6523
|
+
constructor(inner) {
|
|
6524
|
+
super("RegionForm", "Polygon");
|
|
6525
|
+
this.inner = Object.freeze(inner);
|
|
6526
|
+
}
|
|
6527
|
+
static new(inner) {
|
|
6528
|
+
return new Polygon_(inner);
|
|
6529
|
+
}
|
|
6530
|
+
static instanceOf(obj) {
|
|
6531
|
+
return obj.tag === "Polygon";
|
|
6532
|
+
}
|
|
6533
|
+
}
|
|
6534
|
+
function instanceOf(obj) {
|
|
6535
|
+
return obj[uniffiTypeNameSymbol] === "RegionForm";
|
|
6536
|
+
}
|
|
6537
|
+
return Object.freeze({
|
|
6538
|
+
instanceOf,
|
|
6539
|
+
Rectangle: Rectangle_,
|
|
6540
|
+
Circle: Circle_,
|
|
6541
|
+
Polygon: Polygon_
|
|
6542
|
+
});
|
|
6543
|
+
})();
|
|
6544
|
+
const FfiConverterTypeRegionForm = (() => {
|
|
6545
|
+
class FFIConverter extends AbstractFfiConverterByteArray {
|
|
6546
|
+
readFromCursor(c) {
|
|
6547
|
+
switch (c.readI32()) {
|
|
6548
|
+
case 1: return new RegionForm.Rectangle({
|
|
6549
|
+
width: FfiConverterFloat64.readFromCursor(c),
|
|
6550
|
+
height: FfiConverterFloat64.readFromCursor(c)
|
|
6551
|
+
});
|
|
6552
|
+
case 2: return new RegionForm.Circle({ diameter: FfiConverterFloat64.readFromCursor(c) });
|
|
6553
|
+
case 3: return new RegionForm.Polygon({ vertices: FfiConverterSequenceTypeRegionCoordinate.readFromCursor(c) });
|
|
6554
|
+
default: throw new UniffiInternalError.UnexpectedEnumCase();
|
|
6555
|
+
}
|
|
6556
|
+
}
|
|
6557
|
+
writeIntoCursor(value, c) {
|
|
6558
|
+
switch (value.tag) {
|
|
6559
|
+
case "Rectangle": {
|
|
6560
|
+
c.writeI32(1);
|
|
6561
|
+
const inner = value.inner;
|
|
6562
|
+
FfiConverterFloat64.writeIntoCursor(inner.width, c);
|
|
6563
|
+
FfiConverterFloat64.writeIntoCursor(inner.height, c);
|
|
6564
|
+
return;
|
|
6565
|
+
}
|
|
6566
|
+
case "Circle": {
|
|
6567
|
+
c.writeI32(2);
|
|
6568
|
+
const inner = value.inner;
|
|
6569
|
+
FfiConverterFloat64.writeIntoCursor(inner.diameter, c);
|
|
6570
|
+
return;
|
|
6571
|
+
}
|
|
6572
|
+
case "Polygon": {
|
|
6573
|
+
c.writeI32(3);
|
|
6574
|
+
const inner = value.inner;
|
|
6575
|
+
FfiConverterSequenceTypeRegionCoordinate.writeIntoCursor(inner.vertices, c);
|
|
6576
|
+
return;
|
|
6577
|
+
}
|
|
6578
|
+
default: throw new UniffiInternalError.UnexpectedEnumCase();
|
|
6579
|
+
}
|
|
6580
|
+
}
|
|
6581
|
+
allocationSize(value) {
|
|
6582
|
+
switch (value.tag) {
|
|
6583
|
+
case "Rectangle": {
|
|
6584
|
+
const inner = value.inner;
|
|
6585
|
+
let size = 4;
|
|
6586
|
+
size += FfiConverterFloat64.allocationSize(inner.width);
|
|
6587
|
+
size += FfiConverterFloat64.allocationSize(inner.height);
|
|
6588
|
+
return size;
|
|
6589
|
+
}
|
|
6590
|
+
case "Circle": {
|
|
6591
|
+
const inner = value.inner;
|
|
6592
|
+
let size = 4;
|
|
6593
|
+
size += FfiConverterFloat64.allocationSize(inner.diameter);
|
|
6594
|
+
return size;
|
|
6595
|
+
}
|
|
6596
|
+
case "Polygon": {
|
|
6597
|
+
const inner = value.inner;
|
|
6598
|
+
let size = 4;
|
|
6599
|
+
size += FfiConverterSequenceTypeRegionCoordinate.allocationSize(inner.vertices);
|
|
6600
|
+
return size;
|
|
6601
|
+
}
|
|
6602
|
+
default: throw new UniffiInternalError.UnexpectedEnumCase();
|
|
6603
|
+
}
|
|
6401
6604
|
}
|
|
6402
6605
|
}
|
|
6403
6606
|
return new FFIConverter();
|
|
6404
6607
|
})();
|
|
6405
6608
|
/**
|
|
6406
|
-
* Generated factory for {@link
|
|
6609
|
+
* Generated factory for {@link RegionShape} record objects.
|
|
6407
6610
|
*/
|
|
6408
|
-
const
|
|
6409
|
-
const defaults = () => ({
|
|
6611
|
+
const RegionShape = (() => {
|
|
6612
|
+
const defaults = () => ({ outside: false });
|
|
6613
|
+
const create = (() => {
|
|
6614
|
+
return uniffiCreateRecord(defaults);
|
|
6615
|
+
})();
|
|
6616
|
+
return Object.freeze({
|
|
6617
|
+
create,
|
|
6618
|
+
new: create,
|
|
6619
|
+
defaults: () => Object.freeze(defaults())
|
|
6620
|
+
});
|
|
6621
|
+
})();
|
|
6622
|
+
const FfiConverterTypeRegionShape = (() => {
|
|
6623
|
+
class FFIConverter extends AbstractFfiConverterByteArray {
|
|
6624
|
+
readFromCursor(c) {
|
|
6625
|
+
return {
|
|
6626
|
+
unit: FfiConverterTypeRegionUnit.readFromCursor(c),
|
|
6627
|
+
origin: FfiConverterTypeRegionCoordinate.readFromCursor(c),
|
|
6628
|
+
form: FfiConverterTypeRegionForm.readFromCursor(c),
|
|
6629
|
+
outside: FfiConverterBool.readFromCursor(c)
|
|
6630
|
+
};
|
|
6631
|
+
}
|
|
6632
|
+
writeIntoCursor(value, c) {
|
|
6633
|
+
FfiConverterTypeRegionUnit.writeIntoCursor(value.unit, c);
|
|
6634
|
+
FfiConverterTypeRegionCoordinate.writeIntoCursor(value.origin, c);
|
|
6635
|
+
FfiConverterTypeRegionForm.writeIntoCursor(value.form, c);
|
|
6636
|
+
FfiConverterBool.writeIntoCursor(value.outside, c);
|
|
6637
|
+
}
|
|
6638
|
+
allocationSize(value) {
|
|
6639
|
+
return FfiConverterTypeRegionUnit.allocationSize(value.unit) + FfiConverterTypeRegionCoordinate.allocationSize(value.origin) + FfiConverterTypeRegionForm.allocationSize(value.form) + FfiConverterBool.allocationSize(value.outside);
|
|
6640
|
+
}
|
|
6641
|
+
}
|
|
6642
|
+
return new FFIConverter();
|
|
6643
|
+
})();
|
|
6644
|
+
/**
|
|
6645
|
+
* Generated factory for {@link RegionTextSelector} record objects.
|
|
6646
|
+
*/
|
|
6647
|
+
const RegionTextSelector = (() => {
|
|
6648
|
+
const defaults = () => ({
|
|
6649
|
+
start: void 0,
|
|
6650
|
+
end: void 0
|
|
6651
|
+
});
|
|
6652
|
+
const create = (() => {
|
|
6653
|
+
return uniffiCreateRecord(defaults);
|
|
6654
|
+
})();
|
|
6655
|
+
return Object.freeze({
|
|
6656
|
+
create,
|
|
6657
|
+
new: create,
|
|
6658
|
+
defaults: () => Object.freeze(defaults())
|
|
6659
|
+
});
|
|
6660
|
+
})();
|
|
6661
|
+
const FfiConverterTypeRegionTextSelector = (() => {
|
|
6662
|
+
class FFIConverter extends AbstractFfiConverterByteArray {
|
|
6663
|
+
readFromCursor(c) {
|
|
6664
|
+
return {
|
|
6665
|
+
fragment: FfiConverterString.readFromCursor(c),
|
|
6666
|
+
start: FfiConverterOptionalUInt32.readFromCursor(c),
|
|
6667
|
+
end: FfiConverterOptionalUInt32.readFromCursor(c)
|
|
6668
|
+
};
|
|
6669
|
+
}
|
|
6670
|
+
writeIntoCursor(value, c) {
|
|
6671
|
+
FfiConverterString.writeIntoCursor(value.fragment, c);
|
|
6672
|
+
FfiConverterOptionalUInt32.writeIntoCursor(value.start, c);
|
|
6673
|
+
FfiConverterOptionalUInt32.writeIntoCursor(value.end, c);
|
|
6674
|
+
}
|
|
6675
|
+
allocationSize(value) {
|
|
6676
|
+
return FfiConverterString.allocationSize(value.fragment) + FfiConverterOptionalUInt32.allocationSize(value.start) + FfiConverterOptionalUInt32.allocationSize(value.end);
|
|
6677
|
+
}
|
|
6678
|
+
}
|
|
6679
|
+
return new FFIConverter();
|
|
6680
|
+
})();
|
|
6681
|
+
/**
|
|
6682
|
+
* Generated factory for {@link RegionTextSelectorRange} record objects.
|
|
6683
|
+
*/
|
|
6684
|
+
const RegionTextSelectorRange = (() => {
|
|
6685
|
+
const defaults = () => ({ end: void 0 });
|
|
6686
|
+
const create = (() => {
|
|
6687
|
+
return uniffiCreateRecord(defaults);
|
|
6688
|
+
})();
|
|
6689
|
+
return Object.freeze({
|
|
6690
|
+
create,
|
|
6691
|
+
new: create,
|
|
6692
|
+
defaults: () => Object.freeze(defaults())
|
|
6693
|
+
});
|
|
6694
|
+
})();
|
|
6695
|
+
const FfiConverterTypeRegionTextSelectorRange = (() => {
|
|
6696
|
+
class FFIConverter extends AbstractFfiConverterByteArray {
|
|
6697
|
+
readFromCursor(c) {
|
|
6698
|
+
return {
|
|
6699
|
+
selector: FfiConverterTypeRegionTextSelector.readFromCursor(c),
|
|
6700
|
+
end: FfiConverterOptionalTypeRegionTextSelector.readFromCursor(c)
|
|
6701
|
+
};
|
|
6702
|
+
}
|
|
6703
|
+
writeIntoCursor(value, c) {
|
|
6704
|
+
FfiConverterTypeRegionTextSelector.writeIntoCursor(value.selector, c);
|
|
6705
|
+
FfiConverterOptionalTypeRegionTextSelector.writeIntoCursor(value.end, c);
|
|
6706
|
+
}
|
|
6707
|
+
allocationSize(value) {
|
|
6708
|
+
return FfiConverterTypeRegionTextSelector.allocationSize(value.selector) + FfiConverterOptionalTypeRegionTextSelector.allocationSize(value.end);
|
|
6709
|
+
}
|
|
6710
|
+
}
|
|
6711
|
+
return new FFIConverter();
|
|
6712
|
+
})();
|
|
6713
|
+
let RegionRange_Tags = /* @__PURE__ */ function(RegionRange_Tags) {
|
|
6714
|
+
RegionRange_Tags["Spatial"] = "Spatial";
|
|
6715
|
+
RegionRange_Tags["Frame"] = "Frame";
|
|
6716
|
+
RegionRange_Tags["Textual"] = "Textual";
|
|
6717
|
+
RegionRange_Tags["Identified"] = "Identified";
|
|
6718
|
+
return RegionRange_Tags;
|
|
6719
|
+
}({});
|
|
6720
|
+
const RegionRange = (() => {
|
|
6721
|
+
class Spatial_ extends UniffiEnum {
|
|
6722
|
+
/**
|
|
6723
|
+
* @private
|
|
6724
|
+
* This field is private and should not be used, use `tag` instead.
|
|
6725
|
+
*/
|
|
6726
|
+
[uniffiTypeNameSymbol] = "RegionRange";
|
|
6727
|
+
tag = "Spatial";
|
|
6728
|
+
inner;
|
|
6729
|
+
constructor(inner) {
|
|
6730
|
+
super("RegionRange", "Spatial");
|
|
6731
|
+
this.inner = Object.freeze(inner);
|
|
6732
|
+
}
|
|
6733
|
+
static new(inner) {
|
|
6734
|
+
return new Spatial_(inner);
|
|
6735
|
+
}
|
|
6736
|
+
static instanceOf(obj) {
|
|
6737
|
+
return obj.tag === "Spatial";
|
|
6738
|
+
}
|
|
6739
|
+
}
|
|
6740
|
+
/**
|
|
6741
|
+
* Frames of a video or pages of a document, from 0, both bounds inclusive; a bound left out
|
|
6742
|
+
* is the first or the last.
|
|
6743
|
+
*/
|
|
6744
|
+
class Frame_ extends UniffiEnum {
|
|
6745
|
+
/**
|
|
6746
|
+
* @private
|
|
6747
|
+
* This field is private and should not be used, use `tag` instead.
|
|
6748
|
+
*/
|
|
6749
|
+
[uniffiTypeNameSymbol] = "RegionRange";
|
|
6750
|
+
tag = "Frame";
|
|
6751
|
+
inner;
|
|
6752
|
+
constructor(inner) {
|
|
6753
|
+
super("RegionRange", "Frame");
|
|
6754
|
+
this.inner = Object.freeze(inner);
|
|
6755
|
+
}
|
|
6756
|
+
static new = (() => {
|
|
6757
|
+
const defaults = () => ({
|
|
6758
|
+
start: void 0,
|
|
6759
|
+
end: void 0
|
|
6760
|
+
});
|
|
6761
|
+
const create = uniffiCreateRecord(defaults);
|
|
6762
|
+
return (partial) => new Frame_(create(partial));
|
|
6763
|
+
})();
|
|
6764
|
+
static instanceOf(obj) {
|
|
6765
|
+
return obj.tag === "Frame";
|
|
6766
|
+
}
|
|
6767
|
+
}
|
|
6768
|
+
/**
|
|
6769
|
+
* Ranges of text, possibly discontinuous: at least one.
|
|
6770
|
+
*/
|
|
6771
|
+
class Textual_ extends UniffiEnum {
|
|
6772
|
+
/**
|
|
6773
|
+
* @private
|
|
6774
|
+
* This field is private and should not be used, use `tag` instead.
|
|
6775
|
+
*/
|
|
6776
|
+
[uniffiTypeNameSymbol] = "RegionRange";
|
|
6777
|
+
tag = "Textual";
|
|
6778
|
+
inner;
|
|
6779
|
+
constructor(inner) {
|
|
6780
|
+
super("RegionRange", "Textual");
|
|
6781
|
+
this.inner = Object.freeze(inner);
|
|
6782
|
+
}
|
|
6783
|
+
static new(inner) {
|
|
6784
|
+
return new Textual_(inner);
|
|
6785
|
+
}
|
|
6786
|
+
static instanceOf(obj) {
|
|
6787
|
+
return obj.tag === "Textual";
|
|
6788
|
+
}
|
|
6789
|
+
}
|
|
6790
|
+
/**
|
|
6791
|
+
* A track or other discrete item of the asset's container, such as `track_id` `2` of an MP4.
|
|
6792
|
+
*/
|
|
6793
|
+
class Identified_ extends UniffiEnum {
|
|
6794
|
+
/**
|
|
6795
|
+
* @private
|
|
6796
|
+
* This field is private and should not be used, use `tag` instead.
|
|
6797
|
+
*/
|
|
6798
|
+
[uniffiTypeNameSymbol] = "RegionRange";
|
|
6799
|
+
tag = "Identified";
|
|
6800
|
+
inner;
|
|
6801
|
+
constructor(inner) {
|
|
6802
|
+
super("RegionRange", "Identified");
|
|
6803
|
+
this.inner = Object.freeze(inner);
|
|
6804
|
+
}
|
|
6805
|
+
static new(inner) {
|
|
6806
|
+
return new Identified_(inner);
|
|
6807
|
+
}
|
|
6808
|
+
static instanceOf(obj) {
|
|
6809
|
+
return obj.tag === "Identified";
|
|
6810
|
+
}
|
|
6811
|
+
}
|
|
6812
|
+
function instanceOf(obj) {
|
|
6813
|
+
return obj[uniffiTypeNameSymbol] === "RegionRange";
|
|
6814
|
+
}
|
|
6815
|
+
return Object.freeze({
|
|
6816
|
+
instanceOf,
|
|
6817
|
+
Spatial: Spatial_,
|
|
6818
|
+
Frame: Frame_,
|
|
6819
|
+
Textual: Textual_,
|
|
6820
|
+
Identified: Identified_
|
|
6821
|
+
});
|
|
6822
|
+
})();
|
|
6823
|
+
const FfiConverterTypeRegionRange = (() => {
|
|
6824
|
+
class FFIConverter extends AbstractFfiConverterByteArray {
|
|
6825
|
+
readFromCursor(c) {
|
|
6826
|
+
switch (c.readI32()) {
|
|
6827
|
+
case 1: return new RegionRange.Spatial({ shape: FfiConverterTypeRegionShape.readFromCursor(c) });
|
|
6828
|
+
case 2: return new RegionRange.Frame({
|
|
6829
|
+
start: FfiConverterOptionalUInt32.readFromCursor(c),
|
|
6830
|
+
end: FfiConverterOptionalUInt32.readFromCursor(c)
|
|
6831
|
+
});
|
|
6832
|
+
case 3: return new RegionRange.Textual({ selectors: FfiConverterSequenceTypeRegionTextSelectorRange.readFromCursor(c) });
|
|
6833
|
+
case 4: return new RegionRange.Identified({
|
|
6834
|
+
identifier: FfiConverterString.readFromCursor(c),
|
|
6835
|
+
value: FfiConverterString.readFromCursor(c)
|
|
6836
|
+
});
|
|
6837
|
+
default: throw new UniffiInternalError.UnexpectedEnumCase();
|
|
6838
|
+
}
|
|
6839
|
+
}
|
|
6840
|
+
writeIntoCursor(value, c) {
|
|
6841
|
+
switch (value.tag) {
|
|
6842
|
+
case "Spatial": {
|
|
6843
|
+
c.writeI32(1);
|
|
6844
|
+
const inner = value.inner;
|
|
6845
|
+
FfiConverterTypeRegionShape.writeIntoCursor(inner.shape, c);
|
|
6846
|
+
return;
|
|
6847
|
+
}
|
|
6848
|
+
case "Frame": {
|
|
6849
|
+
c.writeI32(2);
|
|
6850
|
+
const inner = value.inner;
|
|
6851
|
+
FfiConverterOptionalUInt32.writeIntoCursor(inner.start, c);
|
|
6852
|
+
FfiConverterOptionalUInt32.writeIntoCursor(inner.end, c);
|
|
6853
|
+
return;
|
|
6854
|
+
}
|
|
6855
|
+
case "Textual": {
|
|
6856
|
+
c.writeI32(3);
|
|
6857
|
+
const inner = value.inner;
|
|
6858
|
+
FfiConverterSequenceTypeRegionTextSelectorRange.writeIntoCursor(inner.selectors, c);
|
|
6859
|
+
return;
|
|
6860
|
+
}
|
|
6861
|
+
case "Identified": {
|
|
6862
|
+
c.writeI32(4);
|
|
6863
|
+
const inner = value.inner;
|
|
6864
|
+
FfiConverterString.writeIntoCursor(inner.identifier, c);
|
|
6865
|
+
FfiConverterString.writeIntoCursor(inner.value, c);
|
|
6866
|
+
return;
|
|
6867
|
+
}
|
|
6868
|
+
default: throw new UniffiInternalError.UnexpectedEnumCase();
|
|
6869
|
+
}
|
|
6870
|
+
}
|
|
6871
|
+
allocationSize(value) {
|
|
6872
|
+
switch (value.tag) {
|
|
6873
|
+
case "Spatial": {
|
|
6874
|
+
const inner = value.inner;
|
|
6875
|
+
let size = 4;
|
|
6876
|
+
size += FfiConverterTypeRegionShape.allocationSize(inner.shape);
|
|
6877
|
+
return size;
|
|
6878
|
+
}
|
|
6879
|
+
case "Frame": {
|
|
6880
|
+
const inner = value.inner;
|
|
6881
|
+
let size = 4;
|
|
6882
|
+
size += FfiConverterOptionalUInt32.allocationSize(inner.start);
|
|
6883
|
+
size += FfiConverterOptionalUInt32.allocationSize(inner.end);
|
|
6884
|
+
return size;
|
|
6885
|
+
}
|
|
6886
|
+
case "Textual": {
|
|
6887
|
+
const inner = value.inner;
|
|
6888
|
+
let size = 4;
|
|
6889
|
+
size += FfiConverterSequenceTypeRegionTextSelectorRange.allocationSize(inner.selectors);
|
|
6890
|
+
return size;
|
|
6891
|
+
}
|
|
6892
|
+
case "Identified": {
|
|
6893
|
+
const inner = value.inner;
|
|
6894
|
+
let size = 4;
|
|
6895
|
+
size += FfiConverterString.allocationSize(inner.identifier);
|
|
6896
|
+
size += FfiConverterString.allocationSize(inner.value);
|
|
6897
|
+
return size;
|
|
6898
|
+
}
|
|
6899
|
+
default: throw new UniffiInternalError.UnexpectedEnumCase();
|
|
6900
|
+
}
|
|
6901
|
+
}
|
|
6902
|
+
}
|
|
6903
|
+
return new FFIConverter();
|
|
6904
|
+
})();
|
|
6905
|
+
/**
|
|
6906
|
+
* Generated factory for {@link Region} record objects.
|
|
6907
|
+
*/
|
|
6908
|
+
const Region = (() => {
|
|
6909
|
+
const defaults = () => ({
|
|
6910
|
+
name: void 0,
|
|
6911
|
+
identifier: void 0,
|
|
6912
|
+
type: void 0,
|
|
6913
|
+
description: void 0
|
|
6914
|
+
});
|
|
6410
6915
|
const create = (() => {
|
|
6411
6916
|
return uniffiCreateRecord(defaults);
|
|
6412
6917
|
})();
|
|
@@ -6416,16 +6921,137 @@ const Scope = (() => {
|
|
|
6416
6921
|
defaults: () => Object.freeze(defaults())
|
|
6417
6922
|
});
|
|
6418
6923
|
})();
|
|
6924
|
+
const FfiConverterTypeRegion = (() => {
|
|
6925
|
+
class FFIConverter extends AbstractFfiConverterByteArray {
|
|
6926
|
+
readFromCursor(c) {
|
|
6927
|
+
return {
|
|
6928
|
+
ranges: FfiConverterSequenceTypeRegionRange.readFromCursor(c),
|
|
6929
|
+
name: FfiConverterOptionalString.readFromCursor(c),
|
|
6930
|
+
identifier: FfiConverterOptionalString.readFromCursor(c),
|
|
6931
|
+
type: FfiConverterOptionalString.readFromCursor(c),
|
|
6932
|
+
description: FfiConverterOptionalString.readFromCursor(c)
|
|
6933
|
+
};
|
|
6934
|
+
}
|
|
6935
|
+
writeIntoCursor(value, c) {
|
|
6936
|
+
FfiConverterSequenceTypeRegionRange.writeIntoCursor(value.ranges, c);
|
|
6937
|
+
FfiConverterOptionalString.writeIntoCursor(value.name, c);
|
|
6938
|
+
FfiConverterOptionalString.writeIntoCursor(value.identifier, c);
|
|
6939
|
+
FfiConverterOptionalString.writeIntoCursor(value.type, c);
|
|
6940
|
+
FfiConverterOptionalString.writeIntoCursor(value.description, c);
|
|
6941
|
+
}
|
|
6942
|
+
allocationSize(value) {
|
|
6943
|
+
return FfiConverterSequenceTypeRegionRange.allocationSize(value.ranges) + FfiConverterOptionalString.allocationSize(value.name) + FfiConverterOptionalString.allocationSize(value.identifier) + FfiConverterOptionalString.allocationSize(value.type) + FfiConverterOptionalString.allocationSize(value.description);
|
|
6944
|
+
}
|
|
6945
|
+
}
|
|
6946
|
+
return new FFIConverter();
|
|
6947
|
+
})();
|
|
6948
|
+
let Scope_Tags = /* @__PURE__ */ function(Scope_Tags) {
|
|
6949
|
+
Scope_Tags["Timespan"] = "Timespan";
|
|
6950
|
+
Scope_Tags["Region"] = "Region";
|
|
6951
|
+
return Scope_Tags;
|
|
6952
|
+
}({});
|
|
6953
|
+
/**
|
|
6954
|
+
* A `soft-binding-scope-map`: the part of the content a value applies to, a timespan or a region,
|
|
6955
|
+
* never both (C2PA 2.3 18.10.3).
|
|
6956
|
+
*/
|
|
6957
|
+
const Scope = (() => {
|
|
6958
|
+
/**
|
|
6959
|
+
* Where the range starts in the media and how long it lasts, in whole milliseconds.
|
|
6960
|
+
*/
|
|
6961
|
+
class Timespan_ extends UniffiEnum {
|
|
6962
|
+
/**
|
|
6963
|
+
* @private
|
|
6964
|
+
* This field is private and should not be used, use `tag` instead.
|
|
6965
|
+
*/
|
|
6966
|
+
[uniffiTypeNameSymbol] = "Scope";
|
|
6967
|
+
tag = "Timespan";
|
|
6968
|
+
inner;
|
|
6969
|
+
constructor(inner) {
|
|
6970
|
+
super("Scope", "Timespan");
|
|
6971
|
+
this.inner = Object.freeze(inner);
|
|
6972
|
+
}
|
|
6973
|
+
static new(inner) {
|
|
6974
|
+
return new Timespan_(inner);
|
|
6975
|
+
}
|
|
6976
|
+
static instanceOf(obj) {
|
|
6977
|
+
return obj.tag === "Timespan";
|
|
6978
|
+
}
|
|
6979
|
+
}
|
|
6980
|
+
class Region_ extends UniffiEnum {
|
|
6981
|
+
/**
|
|
6982
|
+
* @private
|
|
6983
|
+
* This field is private and should not be used, use `tag` instead.
|
|
6984
|
+
*/
|
|
6985
|
+
[uniffiTypeNameSymbol] = "Scope";
|
|
6986
|
+
tag = "Region";
|
|
6987
|
+
inner;
|
|
6988
|
+
constructor(inner) {
|
|
6989
|
+
super("Scope", "Region");
|
|
6990
|
+
this.inner = Object.freeze(inner);
|
|
6991
|
+
}
|
|
6992
|
+
static new(inner) {
|
|
6993
|
+
return new Region_(inner);
|
|
6994
|
+
}
|
|
6995
|
+
static instanceOf(obj) {
|
|
6996
|
+
return obj.tag === "Region";
|
|
6997
|
+
}
|
|
6998
|
+
}
|
|
6999
|
+
function instanceOf(obj) {
|
|
7000
|
+
return obj[uniffiTypeNameSymbol] === "Scope";
|
|
7001
|
+
}
|
|
7002
|
+
return Object.freeze({
|
|
7003
|
+
instanceOf,
|
|
7004
|
+
Timespan: Timespan_,
|
|
7005
|
+
Region: Region_
|
|
7006
|
+
});
|
|
7007
|
+
})();
|
|
6419
7008
|
const FfiConverterTypeScope = (() => {
|
|
6420
7009
|
class FFIConverter extends AbstractFfiConverterByteArray {
|
|
6421
7010
|
readFromCursor(c) {
|
|
6422
|
-
|
|
7011
|
+
switch (c.readI32()) {
|
|
7012
|
+
case 1: return new Scope.Timespan({
|
|
7013
|
+
start: FfiConverterDuration.readFromCursor(c),
|
|
7014
|
+
duration: FfiConverterDuration.readFromCursor(c)
|
|
7015
|
+
});
|
|
7016
|
+
case 2: return new Scope.Region({ region: FfiConverterTypeRegion.readFromCursor(c) });
|
|
7017
|
+
default: throw new UniffiInternalError.UnexpectedEnumCase();
|
|
7018
|
+
}
|
|
6423
7019
|
}
|
|
6424
7020
|
writeIntoCursor(value, c) {
|
|
6425
|
-
|
|
7021
|
+
switch (value.tag) {
|
|
7022
|
+
case "Timespan": {
|
|
7023
|
+
c.writeI32(1);
|
|
7024
|
+
const inner = value.inner;
|
|
7025
|
+
FfiConverterDuration.writeIntoCursor(inner.start, c);
|
|
7026
|
+
FfiConverterDuration.writeIntoCursor(inner.duration, c);
|
|
7027
|
+
return;
|
|
7028
|
+
}
|
|
7029
|
+
case "Region": {
|
|
7030
|
+
c.writeI32(2);
|
|
7031
|
+
const inner = value.inner;
|
|
7032
|
+
FfiConverterTypeRegion.writeIntoCursor(inner.region, c);
|
|
7033
|
+
return;
|
|
7034
|
+
}
|
|
7035
|
+
default: throw new UniffiInternalError.UnexpectedEnumCase();
|
|
7036
|
+
}
|
|
6426
7037
|
}
|
|
6427
7038
|
allocationSize(value) {
|
|
6428
|
-
|
|
7039
|
+
switch (value.tag) {
|
|
7040
|
+
case "Timespan": {
|
|
7041
|
+
const inner = value.inner;
|
|
7042
|
+
let size = 4;
|
|
7043
|
+
size += FfiConverterDuration.allocationSize(inner.start);
|
|
7044
|
+
size += FfiConverterDuration.allocationSize(inner.duration);
|
|
7045
|
+
return size;
|
|
7046
|
+
}
|
|
7047
|
+
case "Region": {
|
|
7048
|
+
const inner = value.inner;
|
|
7049
|
+
let size = 4;
|
|
7050
|
+
size += FfiConverterTypeRegion.allocationSize(inner.region);
|
|
7051
|
+
return size;
|
|
7052
|
+
}
|
|
7053
|
+
default: throw new UniffiInternalError.UnexpectedEnumCase();
|
|
7054
|
+
}
|
|
6429
7055
|
}
|
|
6430
7056
|
}
|
|
6431
7057
|
return new FFIConverter();
|
|
@@ -6434,7 +7060,7 @@ const FfiConverterTypeScope = (() => {
|
|
|
6434
7060
|
* Generated factory for {@link Block} record objects.
|
|
6435
7061
|
*/
|
|
6436
7062
|
const Block = (() => {
|
|
6437
|
-
const defaults = () => ({ scope:
|
|
7063
|
+
const defaults = () => ({ scope: void 0 });
|
|
6438
7064
|
const create = (() => {
|
|
6439
7065
|
return uniffiCreateRecord(defaults);
|
|
6440
7066
|
})();
|
|
@@ -6449,15 +7075,15 @@ const FfiConverterTypeBlock = (() => {
|
|
|
6449
7075
|
readFromCursor(c) {
|
|
6450
7076
|
return {
|
|
6451
7077
|
value: FfiConverterArrayBuffer.readFromCursor(c),
|
|
6452
|
-
scope:
|
|
7078
|
+
scope: FfiConverterOptionalTypeScope.readFromCursor(c)
|
|
6453
7079
|
};
|
|
6454
7080
|
}
|
|
6455
7081
|
writeIntoCursor(value, c) {
|
|
6456
7082
|
FfiConverterArrayBuffer.writeIntoCursor(value.value, c);
|
|
6457
|
-
|
|
7083
|
+
FfiConverterOptionalTypeScope.writeIntoCursor(value.scope, c);
|
|
6458
7084
|
}
|
|
6459
7085
|
allocationSize(value) {
|
|
6460
|
-
return FfiConverterArrayBuffer.allocationSize(value.value) +
|
|
7086
|
+
return FfiConverterArrayBuffer.allocationSize(value.value) + FfiConverterOptionalTypeScope.allocationSize(value.scope);
|
|
6461
7087
|
}
|
|
6462
7088
|
}
|
|
6463
7089
|
return new FFIConverter();
|
|
@@ -7022,8 +7648,8 @@ let RecoveryTrigger = /* @__PURE__ */ function(RecoveryTrigger) {
|
|
|
7022
7648
|
*
|
|
7023
7649
|
* It queries the repository on every verify, without making it load-bearing on the asset's own
|
|
7024
7650
|
* credential: the flow provides information about a substitution rather than gating the local
|
|
7025
|
-
* manifest, so a repository that cannot be reached leaves [`RecoveryStatus::Incomplete`], the
|
|
7026
|
-
* reason as a [`RecoveryIssue`], and no [`Golden`]. A caller for whom a cross-check that never
|
|
7651
|
+
* manifest, so a repository that cannot be reached leaves [`RecoveryStatus::Incomplete`](super::RecoveryStatus::Incomplete), the
|
|
7652
|
+
* reason as a [`RecoveryIssue`](super::RecoveryIssue), and no [`Golden`](super::golden::Golden). A caller for whom a cross-check that never
|
|
7027
7653
|
* ran must not pass for agreement branches on that status.
|
|
7028
7654
|
*/
|
|
7029
7655
|
RecoveryTrigger[RecoveryTrigger["Always"] = 1] = "Always";
|
|
@@ -7194,7 +7820,7 @@ const uniffiCallbackInterfaceCompute = {
|
|
|
7194
7820
|
};
|
|
7195
7821
|
let SoftBindingSource_Tags = /* @__PURE__ */ function(SoftBindingSource_Tags) {
|
|
7196
7822
|
SoftBindingSource_Tags["Builtin"] = "Builtin";
|
|
7197
|
-
SoftBindingSource_Tags["
|
|
7823
|
+
SoftBindingSource_Tags["Hint"] = "Hint";
|
|
7198
7824
|
SoftBindingSource_Tags["Custom"] = "Custom";
|
|
7199
7825
|
return SoftBindingSource_Tags;
|
|
7200
7826
|
}({});
|
|
@@ -7225,25 +7851,25 @@ const SoftBindingSource = (() => {
|
|
|
7225
7851
|
}
|
|
7226
7852
|
}
|
|
7227
7853
|
/**
|
|
7228
|
-
* A value already
|
|
7854
|
+
* A value you already have, looked up as it is; nothing reads the asset for it.
|
|
7229
7855
|
*/
|
|
7230
|
-
class
|
|
7856
|
+
class Hint_ extends UniffiEnum {
|
|
7231
7857
|
/**
|
|
7232
7858
|
* @private
|
|
7233
7859
|
* This field is private and should not be used, use `tag` instead.
|
|
7234
7860
|
*/
|
|
7235
7861
|
[uniffiTypeNameSymbol] = "SoftBindingSource";
|
|
7236
|
-
tag = "
|
|
7862
|
+
tag = "Hint";
|
|
7237
7863
|
inner;
|
|
7238
7864
|
constructor(inner) {
|
|
7239
|
-
super("SoftBindingSource", "
|
|
7865
|
+
super("SoftBindingSource", "Hint");
|
|
7240
7866
|
this.inner = Object.freeze(inner);
|
|
7241
7867
|
}
|
|
7242
7868
|
static new(inner) {
|
|
7243
|
-
return new
|
|
7869
|
+
return new Hint_(inner);
|
|
7244
7870
|
}
|
|
7245
7871
|
static instanceOf(obj) {
|
|
7246
|
-
return obj.tag === "
|
|
7872
|
+
return obj.tag === "Hint";
|
|
7247
7873
|
}
|
|
7248
7874
|
}
|
|
7249
7875
|
/**
|
|
@@ -7274,7 +7900,7 @@ const SoftBindingSource = (() => {
|
|
|
7274
7900
|
return Object.freeze({
|
|
7275
7901
|
instanceOf,
|
|
7276
7902
|
Builtin: Builtin_,
|
|
7277
|
-
|
|
7903
|
+
Hint: Hint_,
|
|
7278
7904
|
Custom: Custom_
|
|
7279
7905
|
});
|
|
7280
7906
|
})();
|
|
@@ -7283,7 +7909,7 @@ const FfiConverterTypeSoftBindingSource = (() => {
|
|
|
7283
7909
|
readFromCursor(c) {
|
|
7284
7910
|
switch (c.readI32()) {
|
|
7285
7911
|
case 1: return new SoftBindingSource.Builtin({ alg: FfiConverterString.readFromCursor(c) });
|
|
7286
|
-
case 2: return new SoftBindingSource.
|
|
7912
|
+
case 2: return new SoftBindingSource.Hint({
|
|
7287
7913
|
alg: FfiConverterString.readFromCursor(c),
|
|
7288
7914
|
value: FfiConverterArrayBuffer.readFromCursor(c)
|
|
7289
7915
|
});
|
|
@@ -7299,7 +7925,7 @@ const FfiConverterTypeSoftBindingSource = (() => {
|
|
|
7299
7925
|
FfiConverterString.writeIntoCursor(inner.alg, c);
|
|
7300
7926
|
return;
|
|
7301
7927
|
}
|
|
7302
|
-
case "
|
|
7928
|
+
case "Hint": {
|
|
7303
7929
|
c.writeI32(2);
|
|
7304
7930
|
const inner = value.inner;
|
|
7305
7931
|
FfiConverterString.writeIntoCursor(inner.alg, c);
|
|
@@ -7323,7 +7949,7 @@ const FfiConverterTypeSoftBindingSource = (() => {
|
|
|
7323
7949
|
size += FfiConverterString.allocationSize(inner.alg);
|
|
7324
7950
|
return size;
|
|
7325
7951
|
}
|
|
7326
|
-
case "
|
|
7952
|
+
case "Hint": {
|
|
7327
7953
|
const inner = value.inner;
|
|
7328
7954
|
let size = 4;
|
|
7329
7955
|
size += FfiConverterString.allocationSize(inner.alg);
|
|
@@ -8213,7 +8839,11 @@ const FfiConverterSequenceTypeRecoveryIssue = new FfiConverterArray(FfiConverter
|
|
|
8213
8839
|
const FfiConverterSequenceUInt32 = new FfiConverterArray(FfiConverterUInt32);
|
|
8214
8840
|
const FfiConverterOptionalTypeGolden = new FfiConverterOptional(FfiConverterTypeGolden);
|
|
8215
8841
|
const FfiConverterSequenceTypeRepository = new FfiConverterArray(FfiConverterTypeRepository);
|
|
8216
|
-
const
|
|
8842
|
+
const FfiConverterSequenceTypeRegionCoordinate = new FfiConverterArray(FfiConverterTypeRegionCoordinate);
|
|
8843
|
+
const FfiConverterOptionalTypeRegionTextSelector = new FfiConverterOptional(FfiConverterTypeRegionTextSelector);
|
|
8844
|
+
const FfiConverterSequenceTypeRegionTextSelectorRange = new FfiConverterArray(FfiConverterTypeRegionTextSelectorRange);
|
|
8845
|
+
const FfiConverterSequenceTypeRegionRange = new FfiConverterArray(FfiConverterTypeRegionRange);
|
|
8846
|
+
const FfiConverterOptionalTypeScope = new FfiConverterOptional(FfiConverterTypeScope);
|
|
8217
8847
|
const FfiConverterOptionalTypeReference = new FfiConverterOptional(FfiConverterTypeReference);
|
|
8218
8848
|
const FfiConverterSequenceTypeValidationCode = new FfiConverterArray(FfiConverterTypeValidationCode);
|
|
8219
8849
|
const FfiConverterSequenceTypeSessionKey = new FfiConverterArray(FfiConverterTypeSessionKey);
|
|
@@ -8244,7 +8874,8 @@ function uniffiEnsureInitialized() {
|
|
|
8244
8874
|
if (getter().uniffi_trylimbo_sdk_verifier_checksum_func_dev_ca() !== 58891) throw new UniffiInternalError.ApiChecksumMismatch("uniffi_trylimbo_sdk_verifier_checksum_func_dev_ca");
|
|
8245
8875
|
if (getter().uniffi_trylimbo_sdk_verifier_checksum_func_parse() !== 2838) throw new UniffiInternalError.ApiChecksumMismatch("uniffi_trylimbo_sdk_verifier_checksum_func_parse");
|
|
8246
8876
|
if (getter().uniffi_trylimbo_sdk_verifier_checksum_func_resource() !== 21307) throw new UniffiInternalError.ApiChecksumMismatch("uniffi_trylimbo_sdk_verifier_checksum_func_resource");
|
|
8247
|
-
if (getter().
|
|
8877
|
+
if (getter().uniffi_trylimbo_sdk_verifier_checksum_func_tamper_codes() !== 44774) throw new UniffiInternalError.ApiChecksumMismatch("uniffi_trylimbo_sdk_verifier_checksum_func_tamper_codes");
|
|
8878
|
+
if (getter().uniffi_trylimbo_sdk_verifier_checksum_constructor_assetverifier_create() !== 4968) throw new UniffiInternalError.ApiChecksumMismatch("uniffi_trylimbo_sdk_verifier_checksum_constructor_assetverifier_create");
|
|
8248
8879
|
if (getter().uniffi_trylimbo_sdk_verifier_checksum_method_assetverifier_verify() !== 4436) throw new UniffiInternalError.ApiChecksumMismatch("uniffi_trylimbo_sdk_verifier_checksum_method_assetverifier_verify");
|
|
8249
8880
|
if (getter().uniffi_trylimbo_sdk_verifier_checksum_method_compute_alg() !== 65518) throw new UniffiInternalError.ApiChecksumMismatch("uniffi_trylimbo_sdk_verifier_checksum_method_compute_alg");
|
|
8250
8881
|
if (getter().uniffi_trylimbo_sdk_verifier_checksum_method_compute_compute() !== 17061) throw new UniffiInternalError.ApiChecksumMismatch("uniffi_trylimbo_sdk_verifier_checksum_method_compute_compute");
|
|
@@ -8323,7 +8954,15 @@ var trylimbo_verifier_default = Object.freeze({
|
|
|
8323
8954
|
FfiConverterTypeRecoverySummary,
|
|
8324
8955
|
FfiConverterTypeRecoveryTrigger,
|
|
8325
8956
|
FfiConverterTypeReference,
|
|
8957
|
+
FfiConverterTypeRegion,
|
|
8958
|
+
FfiConverterTypeRegionCoordinate,
|
|
8959
|
+
FfiConverterTypeRegionForm,
|
|
8326
8960
|
FfiConverterTypeRegionOfInterest,
|
|
8961
|
+
FfiConverterTypeRegionRange,
|
|
8962
|
+
FfiConverterTypeRegionShape,
|
|
8963
|
+
FfiConverterTypeRegionTextSelector,
|
|
8964
|
+
FfiConverterTypeRegionTextSelectorRange,
|
|
8965
|
+
FfiConverterTypeRegionUnit,
|
|
8327
8966
|
FfiConverterTypeRelationship,
|
|
8328
8967
|
FfiConverterTypeRepository,
|
|
8329
8968
|
FfiConverterTypeResourceRef,
|
|
@@ -8349,7 +8988,6 @@ var trylimbo_verifier_default = Object.freeze({
|
|
|
8349
8988
|
FfiConverterTypeTextSelectorRange,
|
|
8350
8989
|
FfiConverterTypeTime,
|
|
8351
8990
|
FfiConverterTypeTimeType,
|
|
8352
|
-
FfiConverterTypeTimespan,
|
|
8353
8991
|
FfiConverterTypeTrust,
|
|
8354
8992
|
FfiConverterTypeUnitType,
|
|
8355
8993
|
FfiConverterTypeUriOrResource,
|
|
@@ -8372,4 +9010,4 @@ if (!initialized) {
|
|
|
8372
9010
|
async function uniffiInitAsync() {}
|
|
8373
9011
|
var ffi_trylimbo_sdk_verifier_default = { trylimbo_verifier: trylimbo_verifier_exports };
|
|
8374
9012
|
//#endregion
|
|
8375
|
-
export { Actor, AssertionMetadata, AssetType, AssetVerification, AssetVerifier, AssetVerifierOptions, Block, ByteRange, ClaimGeneratorInfo, Code, ComputeImpl, ComputeRequest, Content, ContentWhen, Coordinate, Credential, CredentialOrigin, CredentialOrigin_Tags, DataSource, Discovery, DiscoveryVia, DiscoveryVia_Tags, EndInclusivity, FieldViolation, FileSource, FingerprintCheck, FingerprintCheck_Tags, Frame, Golden, Golden_Tags, HardBinding, HashedUri, Hint, Ingredient, IngredientDeltaValidationResult, InitValidation, Item, Lineage, Manifest, ManifestAssertion, ManifestAssertionKind, ManifestStore, MediaValidation, MemorySource, Range, RangeSourceImpl, RangeType, Recovery, RecoveryIssue, RecoveryIssue_Tags, RecoveryStatus, RecoverySummary, RecoveryTrigger, Reference, RegionOfInterest, Relationship, Repository, Repository_Tags, ResourceRef, ReviewRating, Scope, SdkError, SdkError_Tags, SegmentTiming, SegmentValidation, SegmentValidation_Tags, SessionKey, Shape, ShapeType, SignatureInfo, SigningAlgSchema, SoftBindingSource, SoftBindingSource_Tags, SoftBindingType, StatusCodes, StreamSession, StreamVerifier, StreamVerifierOptions, Text, TextSelector, TextSelectorRange, Time, TimeType,
|
|
9013
|
+
export { Actor, AssertionMetadata, AssetType, AssetVerification, AssetVerifier, AssetVerifierOptions, Block, ByteRange, ClaimGeneratorInfo, Code, ComputeImpl, ComputeRequest, Content, ContentWhen, Coordinate, Credential, CredentialOrigin, CredentialOrigin_Tags, DataSource, Discovery, DiscoveryVia, DiscoveryVia_Tags, EndInclusivity, FieldViolation, FileSource, FingerprintCheck, FingerprintCheck_Tags, Frame, Golden, Golden_Tags, HardBinding, HashedUri, Hint, Ingredient, IngredientDeltaValidationResult, InitValidation, Item, Lineage, Manifest, ManifestAssertion, ManifestAssertionKind, ManifestStore, MediaValidation, MemorySource, Range, RangeSourceImpl, RangeType, Recovery, RecoveryIssue, RecoveryIssue_Tags, RecoveryStatus, RecoverySummary, RecoveryTrigger, Reference, Region, RegionCoordinate, RegionForm, RegionForm_Tags, RegionOfInterest, RegionRange, RegionRange_Tags, RegionShape, RegionTextSelector, RegionTextSelectorRange, RegionUnit, Relationship, Repository, Repository_Tags, ResourceRef, ReviewRating, Scope, Scope_Tags, SdkError, SdkError_Tags, SegmentTiming, SegmentValidation, SegmentValidation_Tags, SessionKey, Shape, ShapeType, SignatureInfo, SigningAlgSchema, SoftBindingSource, SoftBindingSource_Tags, SoftBindingType, StatusCodes, StreamSession, StreamVerifier, StreamVerifierOptions, Text, TextSelector, TextSelectorRange, Time, TimeType, Trust, UnitType, UriOrResource, UriOrResource_Tags, ValidationCode, ValidationCodeKind, ValidationResults, ValidationState, ValidationStatus, Verdict, VerdictRule, Verdict_Tags, c2paTrustList, c2paTsaTrustList, computeSoftBinding, ffi_trylimbo_sdk_verifier_default as default, devCa, parse, resource, tamperCodes, uniffiInitAsync };
|