@trylimbo/sdk-verifier 0.1.1-canary.103 → 0.1.1-canary.105
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 +159 -159
- package/package.json +3 -3
package/gen/ffi/index.d.ts
CHANGED
|
@@ -187,16 +187,16 @@ declare namespace trylimbo_verifier_d_exports {
|
|
|
187
187
|
* Official C2PA Conformance Program signing-CA trust anchors (a compile-time
|
|
188
188
|
* snapshot). Trusted by default already; exposed for callers pinning their own list.
|
|
189
189
|
*/
|
|
190
|
-
declare function c2paTrustList(): string;
|
|
190
|
+
export declare function c2paTrustList(): string;
|
|
191
191
|
/**
|
|
192
192
|
* Official C2PA time-stamping-authority (TSA) trust anchors (a compile-time snapshot).
|
|
193
193
|
*/
|
|
194
|
-
declare function c2paTsaTrustList(): string;
|
|
194
|
+
export declare function c2paTsaTrustList(): string;
|
|
195
195
|
/**
|
|
196
196
|
* PEM trust anchor for the Limbo Integrity development signing environment, **development
|
|
197
197
|
* only**, no security guarantees. Never ship it in a release anchor list.
|
|
198
198
|
*/
|
|
199
|
-
declare function devCa(): string;
|
|
199
|
+
export declare function devCa(): string;
|
|
200
200
|
/**
|
|
201
201
|
* Parse a detached C2PA manifest store: a `.c2pa` sidecar, or the bytes a registry serves for a
|
|
202
202
|
* manifest id.
|
|
@@ -213,7 +213,7 @@ declare function devCa(): string;
|
|
|
213
213
|
*
|
|
214
214
|
* `READER_INVALID` when the bytes are not a manifest store c2pa can parse.
|
|
215
215
|
*/
|
|
216
|
-
declare function parse(manifest: ArrayBuffer): ManifestStore;
|
|
216
|
+
export declare function parse(manifest: ArrayBuffer): ManifestStore;
|
|
217
217
|
/**
|
|
218
218
|
* The bytes of one resource in a detached manifest store, or nothing when it holds none under
|
|
219
219
|
* `uri`.
|
|
@@ -229,7 +229,7 @@ declare function parse(manifest: ArrayBuffer): ManifestStore;
|
|
|
229
229
|
* `READER_INVALID` when the bytes are not a manifest store c2pa can parse, or the store holds
|
|
230
230
|
* the resource but cannot produce it.
|
|
231
231
|
*/
|
|
232
|
-
declare function resource(manifest: ArrayBuffer, uri: string): ArrayBuffer | undefined;
|
|
232
|
+
export declare function resource(manifest: ArrayBuffer, uri: string): ArrayBuffer | undefined;
|
|
233
233
|
/**
|
|
234
234
|
* Every thumbnail the store references, by the `identifier` it references them under: each
|
|
235
235
|
* manifest's claim thumbnail and each ingredient's.
|
|
@@ -241,7 +241,7 @@ declare function resource(manifest: ArrayBuffer, uri: string): ArrayBuffer | und
|
|
|
241
241
|
*
|
|
242
242
|
* `READER_INVALID` when the bytes are not a manifest store c2pa can parse.
|
|
243
243
|
*/
|
|
244
|
-
declare function thumbnails(manifest: ArrayBuffer): Map<string, ArrayBuffer>;
|
|
244
|
+
export declare function thumbnails(manifest: ArrayBuffer): Map<string, ArrayBuffer>;
|
|
245
245
|
/**
|
|
246
246
|
* A `HashedUri` provides a reference to content available within the same
|
|
247
247
|
* manifest store.
|
|
@@ -249,7 +249,7 @@ declare function thumbnails(manifest: ArrayBuffer): Map<string, ArrayBuffer>;
|
|
|
249
249
|
* This is described in [URI References in the C2PA Technical
|
|
250
250
|
* Specification](https://spec.c2pa.org/specifications/specifications/2.3/specs/C2PA_Specification.html#_uri_references).
|
|
251
251
|
*/
|
|
252
|
-
type HashedUri = {
|
|
252
|
+
export type HashedUri = {
|
|
253
253
|
/**
|
|
254
254
|
* A string identifying the cryptographic hash algorithm used to compute
|
|
255
255
|
* the hash
|
|
@@ -267,7 +267,7 @@ type HashedUri = {
|
|
|
267
267
|
/**
|
|
268
268
|
* Generated factory for {@link HashedUri} record objects.
|
|
269
269
|
*/
|
|
270
|
-
declare const HashedUri: Readonly<{
|
|
270
|
+
export declare const HashedUri: Readonly<{
|
|
271
271
|
create: (partial: Partial<HashedUri> & Required<Omit<HashedUri, "alg">>) => HashedUri;
|
|
272
272
|
new: (partial: Partial<HashedUri> & Required<Omit<HashedUri, "alg">>) => HashedUri;
|
|
273
273
|
defaults: () => Partial<HashedUri>;
|
|
@@ -275,7 +275,7 @@ declare const HashedUri: Readonly<{
|
|
|
275
275
|
/**
|
|
276
276
|
* Identifies a person responsible for an action.
|
|
277
277
|
*/
|
|
278
|
-
type Actor = {
|
|
278
|
+
export type Actor = {
|
|
279
279
|
/**
|
|
280
280
|
* List of references to W3C Verifiable Credentials.
|
|
281
281
|
*/
|
|
@@ -288,7 +288,7 @@ type Actor = {
|
|
|
288
288
|
/**
|
|
289
289
|
* Generated factory for {@link Actor} record objects.
|
|
290
290
|
*/
|
|
291
|
-
declare const Actor: Readonly<{
|
|
291
|
+
export declare const Actor: Readonly<{
|
|
292
292
|
create: (partial: Partial<Actor> & Required<Omit<Actor, "credentials" | "identifier">>) => Actor;
|
|
293
293
|
new: (partial: Partial<Actor> & Required<Omit<Actor, "credentials" | "identifier">>) => Actor;
|
|
294
294
|
defaults: () => Partial<Actor>;
|
|
@@ -296,7 +296,7 @@ declare const Actor: Readonly<{
|
|
|
296
296
|
/**
|
|
297
297
|
* A description of the source for assertion data
|
|
298
298
|
*/
|
|
299
|
-
type DataSource = {
|
|
299
|
+
export type DataSource = {
|
|
300
300
|
/**
|
|
301
301
|
* A list of [`Actor`]s associated with this source.
|
|
302
302
|
*/
|
|
@@ -313,7 +313,7 @@ type DataSource = {
|
|
|
313
313
|
/**
|
|
314
314
|
* Generated factory for {@link DataSource} record objects.
|
|
315
315
|
*/
|
|
316
|
-
declare const DataSource: Readonly<{
|
|
316
|
+
export declare const DataSource: Readonly<{
|
|
317
317
|
create: (partial: Partial<DataSource> & Required<Omit<DataSource, "actors" | "details">>) => DataSource;
|
|
318
318
|
new: (partial: Partial<DataSource> & Required<Omit<DataSource, "actors" | "details">>) => DataSource;
|
|
319
319
|
defaults: () => Partial<DataSource>;
|
|
@@ -322,13 +322,13 @@ declare const DataSource: Readonly<{
|
|
|
322
322
|
* Typealias from the type name used in the UDL file to the builtin type. This
|
|
323
323
|
* is needed because the UDL type name is used in function/method signatures.
|
|
324
324
|
*/
|
|
325
|
-
type Value = string;
|
|
325
|
+
export type Value = string;
|
|
326
326
|
/**
|
|
327
327
|
* A frame range representing starting and ending frames or pages.
|
|
328
328
|
*
|
|
329
329
|
* If both `start` and `end` are missing, the frame will span the entire asset.
|
|
330
330
|
*/
|
|
331
|
-
type Frame = {
|
|
331
|
+
export type Frame = {
|
|
332
332
|
/**
|
|
333
333
|
* The end of the frame inclusive or the end of the asset if not present.
|
|
334
334
|
*/
|
|
@@ -343,7 +343,7 @@ type Frame = {
|
|
|
343
343
|
/**
|
|
344
344
|
* Generated factory for {@link Frame} record objects.
|
|
345
345
|
*/
|
|
346
|
-
declare const Frame: Readonly<{
|
|
346
|
+
export declare const Frame: Readonly<{
|
|
347
347
|
create: (partial: Partial<Frame> & Required<Omit<Frame, "end" | "start">>) => Frame;
|
|
348
348
|
new: (partial: Partial<Frame> & Required<Omit<Frame, "end" | "start">>) => Frame;
|
|
349
349
|
defaults: () => Partial<Frame>;
|
|
@@ -351,7 +351,7 @@ declare const Frame: Readonly<{
|
|
|
351
351
|
/**
|
|
352
352
|
* Description of the boundaries of an identified range.
|
|
353
353
|
*/
|
|
354
|
-
type Item = {
|
|
354
|
+
export type Item = {
|
|
355
355
|
/**
|
|
356
356
|
* The container-specific term used to identify items, such as "track_id" for MP4 or "item_ID" for HEIF.
|
|
357
357
|
*/
|
|
@@ -364,7 +364,7 @@ type Item = {
|
|
|
364
364
|
/**
|
|
365
365
|
* Generated factory for {@link Item} record objects.
|
|
366
366
|
*/
|
|
367
|
-
declare const Item: Readonly<{
|
|
367
|
+
export declare const Item: Readonly<{
|
|
368
368
|
create: (partial: Partial<Item> & Required<Omit<Item, never>>) => Item;
|
|
369
369
|
new: (partial: Partial<Item> & Required<Omit<Item, never>>) => Item;
|
|
370
370
|
defaults: () => Partial<Item>;
|
|
@@ -372,7 +372,7 @@ declare const Item: Readonly<{
|
|
|
372
372
|
/**
|
|
373
373
|
* An x, y coordinate used for specifying vertices in polygons.
|
|
374
374
|
*/
|
|
375
|
-
type Coordinate = {
|
|
375
|
+
export type Coordinate = {
|
|
376
376
|
/**
|
|
377
377
|
* The coordinate along the x-axis.
|
|
378
378
|
*/
|
|
@@ -385,7 +385,7 @@ type Coordinate = {
|
|
|
385
385
|
/**
|
|
386
386
|
* Generated factory for {@link Coordinate} record objects.
|
|
387
387
|
*/
|
|
388
|
-
declare const Coordinate: Readonly<{
|
|
388
|
+
export declare const Coordinate: Readonly<{
|
|
389
389
|
create: (partial: Partial<Coordinate> & Required<Omit<Coordinate, never>>) => Coordinate;
|
|
390
390
|
new: (partial: Partial<Coordinate> & Required<Omit<Coordinate, never>>) => Coordinate;
|
|
391
391
|
defaults: () => Partial<Coordinate>;
|
|
@@ -393,7 +393,7 @@ declare const Coordinate: Readonly<{
|
|
|
393
393
|
/**
|
|
394
394
|
* The type of shape for the range.
|
|
395
395
|
*/
|
|
396
|
-
declare enum ShapeType {
|
|
396
|
+
export declare enum ShapeType {
|
|
397
397
|
/**
|
|
398
398
|
* A rectangle.
|
|
399
399
|
*/
|
|
@@ -410,7 +410,7 @@ declare enum ShapeType {
|
|
|
410
410
|
/**
|
|
411
411
|
* The type of unit for the range.
|
|
412
412
|
*/
|
|
413
|
-
declare enum UnitType {
|
|
413
|
+
export declare enum UnitType {
|
|
414
414
|
/**
|
|
415
415
|
* Use pixels.
|
|
416
416
|
*/
|
|
@@ -423,7 +423,7 @@ declare enum UnitType {
|
|
|
423
423
|
/**
|
|
424
424
|
* A spatial range representing rectangle, circle, or a polygon.
|
|
425
425
|
*/
|
|
426
|
-
type Shape = {
|
|
426
|
+
export type Shape = {
|
|
427
427
|
/**
|
|
428
428
|
* The height of a rectnagle.
|
|
429
429
|
*
|
|
@@ -464,7 +464,7 @@ type Shape = {
|
|
|
464
464
|
/**
|
|
465
465
|
* Generated factory for {@link Shape} record objects.
|
|
466
466
|
*/
|
|
467
|
-
declare const Shape: Readonly<{
|
|
467
|
+
export declare const Shape: Readonly<{
|
|
468
468
|
create: (partial: Partial<Shape> & Required<Omit<Shape, "height" | "inside" | "vertices" | "width">>) => Shape;
|
|
469
469
|
new: (partial: Partial<Shape> & Required<Omit<Shape, "height" | "inside" | "vertices" | "width">>) => Shape;
|
|
470
470
|
defaults: () => Partial<Shape>;
|
|
@@ -474,7 +474,7 @@ declare const Shape: Readonly<{
|
|
|
474
474
|
*
|
|
475
475
|
* This is modeled after the W3C Web Annotation selector model.
|
|
476
476
|
*/
|
|
477
|
-
type TextSelector = {
|
|
477
|
+
export type TextSelector = {
|
|
478
478
|
/**
|
|
479
479
|
* The end character offset or the end of the fragment if not present.
|
|
480
480
|
*/
|
|
@@ -491,7 +491,7 @@ type TextSelector = {
|
|
|
491
491
|
/**
|
|
492
492
|
* Generated factory for {@link TextSelector} record objects.
|
|
493
493
|
*/
|
|
494
|
-
declare const TextSelector: Readonly<{
|
|
494
|
+
export declare const TextSelector: Readonly<{
|
|
495
495
|
create: (partial: Partial<TextSelector> & Required<Omit<TextSelector, "end" | "start">>) => TextSelector;
|
|
496
496
|
new: (partial: Partial<TextSelector> & Required<Omit<TextSelector, "end" | "start">>) => TextSelector;
|
|
497
497
|
defaults: () => Partial<TextSelector>;
|
|
@@ -499,7 +499,7 @@ declare const TextSelector: Readonly<{
|
|
|
499
499
|
/**
|
|
500
500
|
* One or two [`TextSelector`] identifiying the range to select.
|
|
501
501
|
*/
|
|
502
|
-
type TextSelectorRange = {
|
|
502
|
+
export type TextSelectorRange = {
|
|
503
503
|
/**
|
|
504
504
|
* The end of the text range.
|
|
505
505
|
*/
|
|
@@ -512,7 +512,7 @@ type TextSelectorRange = {
|
|
|
512
512
|
/**
|
|
513
513
|
* Generated factory for {@link TextSelectorRange} record objects.
|
|
514
514
|
*/
|
|
515
|
-
declare const TextSelectorRange: Readonly<{
|
|
515
|
+
export declare const TextSelectorRange: Readonly<{
|
|
516
516
|
create: (partial: Partial<TextSelectorRange> & Required<Omit<TextSelectorRange, "end">>) => TextSelectorRange;
|
|
517
517
|
new: (partial: Partial<TextSelectorRange> & Required<Omit<TextSelectorRange, "end">>) => TextSelectorRange;
|
|
518
518
|
defaults: () => Partial<TextSelectorRange>;
|
|
@@ -520,7 +520,7 @@ declare const TextSelectorRange: Readonly<{
|
|
|
520
520
|
/**
|
|
521
521
|
* A textual range representing multiple (possibly discontinuous) ranges of text.
|
|
522
522
|
*/
|
|
523
|
-
type Text = {
|
|
523
|
+
export type Text = {
|
|
524
524
|
/**
|
|
525
525
|
* The ranges of text to select.
|
|
526
526
|
*/
|
|
@@ -529,7 +529,7 @@ type Text = {
|
|
|
529
529
|
/**
|
|
530
530
|
* Generated factory for {@link Text} record objects.
|
|
531
531
|
*/
|
|
532
|
-
declare const Text: Readonly<{
|
|
532
|
+
export declare const Text: Readonly<{
|
|
533
533
|
create: (partial: Partial<Text> & Required<Omit<Text, never>>) => Text;
|
|
534
534
|
new: (partial: Partial<Text> & Required<Omit<Text, never>>) => Text;
|
|
535
535
|
defaults: () => Partial<Text>;
|
|
@@ -537,7 +537,7 @@ declare const Text: Readonly<{
|
|
|
537
537
|
/**
|
|
538
538
|
* Whether a temporal range includes its ending instant.
|
|
539
539
|
*/
|
|
540
|
-
declare enum EndInclusivity {
|
|
540
|
+
export declare enum EndInclusivity {
|
|
541
541
|
/**
|
|
542
542
|
* The ending instant is part of the range.
|
|
543
543
|
*/
|
|
@@ -550,7 +550,7 @@ declare enum EndInclusivity {
|
|
|
550
550
|
/**
|
|
551
551
|
* The type of time.
|
|
552
552
|
*/
|
|
553
|
-
declare enum TimeType {
|
|
553
|
+
export declare enum TimeType {
|
|
554
554
|
/**
|
|
555
555
|
* Times are described using Normal Play Time (npt) as described in RFC 2326.
|
|
556
556
|
*/
|
|
@@ -563,7 +563,7 @@ declare enum TimeType {
|
|
|
563
563
|
/**
|
|
564
564
|
* A temporal range representing a starting time to an ending time.
|
|
565
565
|
*/
|
|
566
|
-
type Time = {
|
|
566
|
+
export type Time = {
|
|
567
567
|
/**
|
|
568
568
|
* The end time or the end of the asset if not present.
|
|
569
569
|
*/
|
|
@@ -584,7 +584,7 @@ type Time = {
|
|
|
584
584
|
/**
|
|
585
585
|
* Generated factory for {@link Time} record objects.
|
|
586
586
|
*/
|
|
587
|
-
declare const Time: Readonly<{
|
|
587
|
+
export declare const Time: Readonly<{
|
|
588
588
|
create: (partial: Partial<Time> & Required<Omit<Time, "end" | "endInclusivity" | "start">>) => Time;
|
|
589
589
|
new: (partial: Partial<Time> & Required<Omit<Time, "end" | "endInclusivity" | "start">>) => Time;
|
|
590
590
|
defaults: () => Partial<Time>;
|
|
@@ -592,7 +592,7 @@ declare const Time: Readonly<{
|
|
|
592
592
|
/**
|
|
593
593
|
* The type of range for the region of interest.
|
|
594
594
|
*/
|
|
595
|
-
declare enum RangeType {
|
|
595
|
+
export declare enum RangeType {
|
|
596
596
|
/**
|
|
597
597
|
* A spatial range, see [`Shape`] for more details.
|
|
598
598
|
*/
|
|
@@ -617,7 +617,7 @@ declare enum RangeType {
|
|
|
617
617
|
/**
|
|
618
618
|
* A spatial, temporal, frame, or textual range describing the region of interest.
|
|
619
619
|
*/
|
|
620
|
-
type Range = {
|
|
620
|
+
export type Range = {
|
|
621
621
|
/**
|
|
622
622
|
* A frame range.
|
|
623
623
|
*/
|
|
@@ -646,7 +646,7 @@ type Range = {
|
|
|
646
646
|
/**
|
|
647
647
|
* Generated factory for {@link Range} record objects.
|
|
648
648
|
*/
|
|
649
|
-
declare const Range: Readonly<{
|
|
649
|
+
export declare const Range: Readonly<{
|
|
650
650
|
create: (partial: Partial<Range> & Required<Omit<Range, "frame" | "item" | "shape" | "text" | "time">>) => Range;
|
|
651
651
|
new: (partial: Partial<Range> & Required<Omit<Range, "frame" | "item" | "shape" | "text" | "time">>) => Range;
|
|
652
652
|
defaults: () => Partial<Range>;
|
|
@@ -654,7 +654,7 @@ declare const Range: Readonly<{
|
|
|
654
654
|
/**
|
|
655
655
|
* A role describing the region.
|
|
656
656
|
*/
|
|
657
|
-
declare enum Role {
|
|
657
|
+
export declare enum Role {
|
|
658
658
|
/**
|
|
659
659
|
* Arbitrary area worth identifying.
|
|
660
660
|
*/
|
|
@@ -699,7 +699,7 @@ declare enum Role {
|
|
|
699
699
|
* [`AssertionMetadata::region_of_interest`][crate::assertions::AssertionMetadata::region_of_interest], or
|
|
700
700
|
* [`SoftBindingScope::region`][crate::assertions::soft_binding::SoftBindingScope::region].
|
|
701
701
|
*/
|
|
702
|
-
type RegionOfInterest = {
|
|
702
|
+
export type RegionOfInterest = {
|
|
703
703
|
/**
|
|
704
704
|
* A free-text string.
|
|
705
705
|
*/
|
|
@@ -736,7 +736,7 @@ type RegionOfInterest = {
|
|
|
736
736
|
/**
|
|
737
737
|
* Generated factory for {@link RegionOfInterest} record objects.
|
|
738
738
|
*/
|
|
739
|
-
declare const RegionOfInterest: Readonly<{
|
|
739
|
+
export declare const RegionOfInterest: Readonly<{
|
|
740
740
|
create: (partial: Partial<RegionOfInterest> & Required<Omit<RegionOfInterest, "description" | "identifier" | "metadata" | "name" | "role" | "type">>) => RegionOfInterest;
|
|
741
741
|
new: (partial: Partial<RegionOfInterest> & Required<Omit<RegionOfInterest, "description" | "identifier" | "metadata" | "name" | "role" | "type">>) => RegionOfInterest;
|
|
742
742
|
defaults: () => Partial<RegionOfInterest>;
|
|
@@ -746,7 +746,7 @@ declare const RegionOfInterest: Readonly<{
|
|
|
746
746
|
*
|
|
747
747
|
* See [C2PA Specification - Review Ratings](https://spec.c2pa.org/specifications/specifications/2.3/specs/C2PA_Specification.html#_review_ratings).
|
|
748
748
|
*/
|
|
749
|
-
type ReviewRating = {
|
|
749
|
+
export type ReviewRating = {
|
|
750
750
|
code?: string;
|
|
751
751
|
explanation: string;
|
|
752
752
|
value: number;
|
|
@@ -754,7 +754,7 @@ type ReviewRating = {
|
|
|
754
754
|
/**
|
|
755
755
|
* Generated factory for {@link ReviewRating} record objects.
|
|
756
756
|
*/
|
|
757
|
-
declare const ReviewRating: Readonly<{
|
|
757
|
+
export declare const ReviewRating: Readonly<{
|
|
758
758
|
create: (partial: Partial<ReviewRating> & Required<Omit<ReviewRating, "code">>) => ReviewRating;
|
|
759
759
|
new: (partial: Partial<ReviewRating> & Required<Omit<ReviewRating, "code">>) => ReviewRating;
|
|
760
760
|
defaults: () => Partial<ReviewRating>;
|
|
@@ -762,7 +762,7 @@ declare const ReviewRating: Readonly<{
|
|
|
762
762
|
/**
|
|
763
763
|
* The AssertionMetadata structure can be used as part of other assertions or on its own to reference others
|
|
764
764
|
*/
|
|
765
|
-
type AssertionMetadata = {
|
|
765
|
+
export type AssertionMetadata = {
|
|
766
766
|
dataSource?: DataSource;
|
|
767
767
|
dateTime?: string;
|
|
768
768
|
localizations?: Array<Map<string, Map<string, string>>>;
|
|
@@ -773,7 +773,7 @@ type AssertionMetadata = {
|
|
|
773
773
|
/**
|
|
774
774
|
* Generated factory for {@link AssertionMetadata} record objects.
|
|
775
775
|
*/
|
|
776
|
-
declare const AssertionMetadata: Readonly<{
|
|
776
|
+
export declare const AssertionMetadata: Readonly<{
|
|
777
777
|
create: (partial: Partial<AssertionMetadata> & Required<Omit<AssertionMetadata, "dataSource" | "dateTime" | "localizations" | "reference" | "regionOfInterest" | "reviewRatings">>) => AssertionMetadata;
|
|
778
778
|
new: (partial: Partial<AssertionMetadata> & Required<Omit<AssertionMetadata, "dataSource" | "dateTime" | "localizations" | "reference" | "regionOfInterest" | "reviewRatings">>) => AssertionMetadata;
|
|
779
779
|
defaults: () => Partial<AssertionMetadata>;
|
|
@@ -781,26 +781,26 @@ declare const AssertionMetadata: Readonly<{
|
|
|
781
781
|
/**
|
|
782
782
|
* `AssetType`
|
|
783
783
|
*/
|
|
784
|
-
type AssetType = {
|
|
784
|
+
export type AssetType = {
|
|
785
785
|
type: string;
|
|
786
786
|
version?: string;
|
|
787
787
|
};
|
|
788
788
|
/**
|
|
789
789
|
* Generated factory for {@link AssetType} record objects.
|
|
790
790
|
*/
|
|
791
|
-
declare const AssetType: Readonly<{
|
|
791
|
+
export declare const AssetType: Readonly<{
|
|
792
792
|
create: (partial: Partial<AssetType> & Required<Omit<AssetType, "version">>) => AssetType;
|
|
793
793
|
new: (partial: Partial<AssetType> & Required<Omit<AssetType, "version">>) => AssetType;
|
|
794
794
|
defaults: () => Partial<AssetType>;
|
|
795
795
|
}>;
|
|
796
|
-
type SoftBinding = {
|
|
796
|
+
export type SoftBinding = {
|
|
797
797
|
alg: string;
|
|
798
798
|
value: string;
|
|
799
799
|
};
|
|
800
800
|
/**
|
|
801
801
|
* Generated factory for {@link SoftBinding} record objects.
|
|
802
802
|
*/
|
|
803
|
-
declare const SoftBinding: Readonly<{
|
|
803
|
+
export declare const SoftBinding: Readonly<{
|
|
804
804
|
create: (partial: Partial<SoftBinding> & Required<Omit<SoftBinding, never>>) => SoftBinding;
|
|
805
805
|
new: (partial: Partial<SoftBinding> & Required<Omit<SoftBinding, never>>) => SoftBinding;
|
|
806
806
|
defaults: () => Partial<SoftBinding>;
|
|
@@ -809,7 +809,7 @@ declare const SoftBinding: Readonly<{
|
|
|
809
809
|
* Typealias from the type name used in the UDL file to the builtin type. This
|
|
810
810
|
* is needed because the UDL type name is used in function/method signatures.
|
|
811
811
|
*/
|
|
812
|
-
type SimilarityScore = number;
|
|
812
|
+
export type SimilarityScore = number;
|
|
813
813
|
/**
|
|
814
814
|
* The class of binding a registry derived from an uploaded asset.
|
|
815
815
|
*
|
|
@@ -817,14 +817,14 @@ type SimilarityScore = number;
|
|
|
817
817
|
* one. The algorithm and class are still evidence because the request selects exactly that
|
|
818
818
|
* advertised algorithm.
|
|
819
819
|
*/
|
|
820
|
-
declare enum ContentBindingClass {
|
|
820
|
+
export declare enum ContentBindingClass {
|
|
821
821
|
Fingerprint = 0,
|
|
822
822
|
Watermark = 1
|
|
823
823
|
}
|
|
824
824
|
/**
|
|
825
825
|
* One algorithm-specific piece of evidence returned by a content lookup.
|
|
826
826
|
*/
|
|
827
|
-
type ContentBindingEvidence = {
|
|
827
|
+
export type ContentBindingEvidence = {
|
|
828
828
|
algorithm: string;
|
|
829
829
|
class: ContentBindingClass;
|
|
830
830
|
hint?: SoftBinding;
|
|
@@ -833,12 +833,12 @@ type ContentBindingEvidence = {
|
|
|
833
833
|
/**
|
|
834
834
|
* Generated factory for {@link ContentBindingEvidence} record objects.
|
|
835
835
|
*/
|
|
836
|
-
declare const ContentBindingEvidence: Readonly<{
|
|
836
|
+
export declare const ContentBindingEvidence: Readonly<{
|
|
837
837
|
create: (partial: Partial<ContentBindingEvidence> & Required<Omit<ContentBindingEvidence, "hint" | "registryScore">>) => ContentBindingEvidence;
|
|
838
838
|
new: (partial: Partial<ContentBindingEvidence> & Required<Omit<ContentBindingEvidence, "hint" | "registryScore">>) => ContentBindingEvidence;
|
|
839
839
|
defaults: () => Partial<ContentBindingEvidence>;
|
|
840
840
|
}>;
|
|
841
|
-
declare enum CredentialOrigin_Tags {
|
|
841
|
+
export declare enum CredentialOrigin_Tags {
|
|
842
842
|
Embedded = "Embedded",
|
|
843
843
|
RecoveredByFingerprint = "RecoveredByFingerprint",
|
|
844
844
|
RecoveredByWatermark = "RecoveredByWatermark",
|
|
@@ -848,7 +848,7 @@ declare enum CredentialOrigin_Tags {
|
|
|
848
848
|
* FFI projection of the domain origin. The soft-binding DTO remains public and wire-shaped,
|
|
849
849
|
* while the domain value keeps its constructor invariant private.
|
|
850
850
|
*/
|
|
851
|
-
declare const CredentialOrigin: Readonly<{
|
|
851
|
+
export declare const CredentialOrigin: Readonly<{
|
|
852
852
|
instanceOf: (obj: any) => obj is CredentialOrigin;
|
|
853
853
|
Embedded: {
|
|
854
854
|
new (): {
|
|
@@ -1008,11 +1008,11 @@ declare const CredentialOrigin: Readonly<{
|
|
|
1008
1008
|
* FFI projection of the domain origin. The soft-binding DTO remains public and wire-shaped,
|
|
1009
1009
|
* while the domain value keeps its constructor invariant private.
|
|
1010
1010
|
*/
|
|
1011
|
-
type CredentialOrigin = InstanceType<typeof CredentialOrigin['Embedded' | 'RecoveredByFingerprint' | 'RecoveredByWatermark' | 'RecoveredByContent']>;
|
|
1011
|
+
export type CredentialOrigin = InstanceType<typeof CredentialOrigin['Embedded' | 'RecoveredByFingerprint' | 'RecoveredByWatermark' | 'RecoveredByContent']>;
|
|
1012
1012
|
/**
|
|
1013
1013
|
* Assertions in C2PA can be stored in several formats
|
|
1014
1014
|
*/
|
|
1015
|
-
declare enum ManifestAssertionKind {
|
|
1015
|
+
export declare enum ManifestAssertionKind {
|
|
1016
1016
|
Cbor = 0,
|
|
1017
1017
|
Json = 1,
|
|
1018
1018
|
Binary = 2,
|
|
@@ -1021,7 +1021,7 @@ declare enum ManifestAssertionKind {
|
|
|
1021
1021
|
/**
|
|
1022
1022
|
* A labeled container for an Assertion value in a Manifest
|
|
1023
1023
|
*/
|
|
1024
|
-
type ManifestAssertion = {
|
|
1024
|
+
export type ManifestAssertion = {
|
|
1025
1025
|
/**
|
|
1026
1026
|
* True if this assertion is attributed to the signer
|
|
1027
1027
|
* This maps to a created vs a gathered assertion. (defaults to false)
|
|
@@ -1047,7 +1047,7 @@ type ManifestAssertion = {
|
|
|
1047
1047
|
/**
|
|
1048
1048
|
* Generated factory for {@link ManifestAssertion} record objects.
|
|
1049
1049
|
*/
|
|
1050
|
-
declare const ManifestAssertion: Readonly<{
|
|
1050
|
+
export declare const ManifestAssertion: Readonly<{
|
|
1051
1051
|
create: (partial: Partial<ManifestAssertion> & Required<Omit<ManifestAssertion, "created" | "instance" | "kind">>) => ManifestAssertion;
|
|
1052
1052
|
new: (partial: Partial<ManifestAssertion> & Required<Omit<ManifestAssertion, "created" | "instance" | "kind">>) => ManifestAssertion;
|
|
1053
1053
|
defaults: () => Partial<ManifestAssertion>;
|
|
@@ -1057,7 +1057,7 @@ declare const ManifestAssertion: Readonly<{
|
|
|
1057
1057
|
*
|
|
1058
1058
|
* The underlying data can be read as a stream via [`Reader::resource_to_stream`][crate::Reader::resource_to_stream].
|
|
1059
1059
|
*/
|
|
1060
|
-
type ResourceRef = {
|
|
1060
|
+
export type ResourceRef = {
|
|
1061
1061
|
/**
|
|
1062
1062
|
* The algorithm used to hash the resource (if applicable).
|
|
1063
1063
|
*/
|
|
@@ -1086,19 +1086,19 @@ type ResourceRef = {
|
|
|
1086
1086
|
/**
|
|
1087
1087
|
* Generated factory for {@link ResourceRef} record objects.
|
|
1088
1088
|
*/
|
|
1089
|
-
declare const ResourceRef: Readonly<{
|
|
1089
|
+
export declare const ResourceRef: Readonly<{
|
|
1090
1090
|
create: (partial: Partial<ResourceRef> & Required<Omit<ResourceRef, "alg" | "dataTypes" | "hash">>) => ResourceRef;
|
|
1091
1091
|
new: (partial: Partial<ResourceRef> & Required<Omit<ResourceRef, "alg" | "dataTypes" | "hash">>) => ResourceRef;
|
|
1092
1092
|
defaults: () => Partial<ResourceRef>;
|
|
1093
1093
|
}>;
|
|
1094
|
-
declare enum UriOrResource_Tags {
|
|
1094
|
+
export declare enum UriOrResource_Tags {
|
|
1095
1095
|
ResourceRef = "ResourceRef",
|
|
1096
1096
|
HashedUri = "HashedUri"
|
|
1097
1097
|
}
|
|
1098
1098
|
/**
|
|
1099
1099
|
* `UriOrResource`
|
|
1100
1100
|
*/
|
|
1101
|
-
declare const UriOrResource: Readonly<{
|
|
1101
|
+
export declare const UriOrResource: Readonly<{
|
|
1102
1102
|
instanceOf: (obj: any) => obj is UriOrResource;
|
|
1103
1103
|
ResourceRef: {
|
|
1104
1104
|
new (v0: ResourceRef): {
|
|
@@ -1162,13 +1162,13 @@ declare const UriOrResource: Readonly<{
|
|
|
1162
1162
|
/**
|
|
1163
1163
|
* `UriOrResource`
|
|
1164
1164
|
*/
|
|
1165
|
-
type UriOrResource = InstanceType<typeof UriOrResource['ResourceRef' | 'HashedUri']>;
|
|
1165
|
+
export type UriOrResource = InstanceType<typeof UriOrResource['ResourceRef' | 'HashedUri']>;
|
|
1166
1166
|
/**
|
|
1167
1167
|
* Description of the claim generator, or the software used in generating the claim.
|
|
1168
1168
|
*
|
|
1169
1169
|
* This structure is also used for actions softwareAgent
|
|
1170
1170
|
*/
|
|
1171
|
-
type ClaimGeneratorInfo = {
|
|
1171
|
+
export type ClaimGeneratorInfo = {
|
|
1172
1172
|
/**
|
|
1173
1173
|
* hashed URI to the icon (either embedded or remote)
|
|
1174
1174
|
*/
|
|
@@ -1194,7 +1194,7 @@ type ClaimGeneratorInfo = {
|
|
|
1194
1194
|
/**
|
|
1195
1195
|
* Generated factory for {@link ClaimGeneratorInfo} record objects.
|
|
1196
1196
|
*/
|
|
1197
|
-
declare const ClaimGeneratorInfo: Readonly<{
|
|
1197
|
+
export declare const ClaimGeneratorInfo: Readonly<{
|
|
1198
1198
|
create: (partial: Partial<ClaimGeneratorInfo> & Required<Omit<ClaimGeneratorInfo, "icon" | "operatingSystem" | "specVersion" | "version">>) => ClaimGeneratorInfo;
|
|
1199
1199
|
new: (partial: Partial<ClaimGeneratorInfo> & Required<Omit<ClaimGeneratorInfo, "icon" | "operatingSystem" | "specVersion" | "version">>) => ClaimGeneratorInfo;
|
|
1200
1200
|
defaults: () => Partial<ClaimGeneratorInfo>;
|
|
@@ -1202,7 +1202,7 @@ declare const ClaimGeneratorInfo: Readonly<{
|
|
|
1202
1202
|
/**
|
|
1203
1203
|
* The relationship of the ingredient to the current asset.
|
|
1204
1204
|
*/
|
|
1205
|
-
declare enum Relationship {
|
|
1205
|
+
export declare enum Relationship {
|
|
1206
1206
|
/**
|
|
1207
1207
|
* The current asset is derived from this ingredient.
|
|
1208
1208
|
*/
|
|
@@ -1222,7 +1222,7 @@ declare enum Relationship {
|
|
|
1222
1222
|
*
|
|
1223
1223
|
* See [Existing Manifests - C2PA Technical Specification](https://spec.c2pa.org/specifications/specifications/2.3/specs/C2PA_Specification.html#_existing_manifests).
|
|
1224
1224
|
*/
|
|
1225
|
-
type ValidationStatus = {
|
|
1225
|
+
export type ValidationStatus = {
|
|
1226
1226
|
code: string;
|
|
1227
1227
|
explanation?: string;
|
|
1228
1228
|
url?: string;
|
|
@@ -1230,7 +1230,7 @@ type ValidationStatus = {
|
|
|
1230
1230
|
/**
|
|
1231
1231
|
* Generated factory for {@link ValidationStatus} record objects.
|
|
1232
1232
|
*/
|
|
1233
|
-
declare const ValidationStatus: Readonly<{
|
|
1233
|
+
export declare const ValidationStatus: Readonly<{
|
|
1234
1234
|
create: (partial: Partial<ValidationStatus> & Required<Omit<ValidationStatus, "explanation" | "url">>) => ValidationStatus;
|
|
1235
1235
|
new: (partial: Partial<ValidationStatus> & Required<Omit<ValidationStatus, "explanation" | "url">>) => ValidationStatus;
|
|
1236
1236
|
defaults: () => Partial<ValidationStatus>;
|
|
@@ -1238,7 +1238,7 @@ declare const ValidationStatus: Readonly<{
|
|
|
1238
1238
|
/**
|
|
1239
1239
|
* Contains a set of success, informational, and failure validation status codes.
|
|
1240
1240
|
*/
|
|
1241
|
-
type StatusCodes = {
|
|
1241
|
+
export type StatusCodes = {
|
|
1242
1242
|
/**
|
|
1243
1243
|
* An array of validation failure codes. May be empty.
|
|
1244
1244
|
*/
|
|
@@ -1255,7 +1255,7 @@ type StatusCodes = {
|
|
|
1255
1255
|
/**
|
|
1256
1256
|
* Generated factory for {@link StatusCodes} record objects.
|
|
1257
1257
|
*/
|
|
1258
|
-
declare const StatusCodes: Readonly<{
|
|
1258
|
+
export declare const StatusCodes: Readonly<{
|
|
1259
1259
|
create: (partial: Partial<StatusCodes> & Required<Omit<StatusCodes, never>>) => StatusCodes;
|
|
1260
1260
|
new: (partial: Partial<StatusCodes> & Required<Omit<StatusCodes, never>>) => StatusCodes;
|
|
1261
1261
|
defaults: () => Partial<StatusCodes>;
|
|
@@ -1263,7 +1263,7 @@ declare const StatusCodes: Readonly<{
|
|
|
1263
1263
|
/**
|
|
1264
1264
|
* Represents any changes or deltas between the current and previous validation results for an ingredient's manifest.
|
|
1265
1265
|
*/
|
|
1266
|
-
type IngredientDeltaValidationResult = {
|
|
1266
|
+
export type IngredientDeltaValidationResult = {
|
|
1267
1267
|
/**
|
|
1268
1268
|
* JUMBF URI reference to the ingredient assertion
|
|
1269
1269
|
*/
|
|
@@ -1276,7 +1276,7 @@ type IngredientDeltaValidationResult = {
|
|
|
1276
1276
|
/**
|
|
1277
1277
|
* Generated factory for {@link IngredientDeltaValidationResult} record objects.
|
|
1278
1278
|
*/
|
|
1279
|
-
declare const IngredientDeltaValidationResult: Readonly<{
|
|
1279
|
+
export declare const IngredientDeltaValidationResult: Readonly<{
|
|
1280
1280
|
create: (partial: Partial<IngredientDeltaValidationResult> & Required<Omit<IngredientDeltaValidationResult, never>>) => IngredientDeltaValidationResult;
|
|
1281
1281
|
new: (partial: Partial<IngredientDeltaValidationResult> & Required<Omit<IngredientDeltaValidationResult, never>>) => IngredientDeltaValidationResult;
|
|
1282
1282
|
defaults: () => Partial<IngredientDeltaValidationResult>;
|
|
@@ -1287,7 +1287,7 @@ declare const IngredientDeltaValidationResult: Readonly<{
|
|
|
1287
1287
|
* The map contains the validation results for the active manifest and any ingredient deltas.
|
|
1288
1288
|
* It is normal for there to be many
|
|
1289
1289
|
*/
|
|
1290
|
-
type ValidationResults = {
|
|
1290
|
+
export type ValidationResults = {
|
|
1291
1291
|
/**
|
|
1292
1292
|
* Validation status codes for the ingredient's active manifest. Present if ingredient is a C2PA
|
|
1293
1293
|
* asset. Not present if the ingredient is not a C2PA asset.
|
|
@@ -1310,7 +1310,7 @@ type ValidationResults = {
|
|
|
1310
1310
|
/**
|
|
1311
1311
|
* Generated factory for {@link ValidationResults} record objects.
|
|
1312
1312
|
*/
|
|
1313
|
-
declare const ValidationResults: Readonly<{
|
|
1313
|
+
export declare const ValidationResults: Readonly<{
|
|
1314
1314
|
create: (partial: Partial<ValidationResults> & Required<Omit<ValidationResults, "activeManifest" | "ingredientDeltas" | "specVersion" | "trustListUri">>) => ValidationResults;
|
|
1315
1315
|
new: (partial: Partial<ValidationResults> & Required<Omit<ValidationResults, "activeManifest" | "ingredientDeltas" | "specVersion" | "trustListUri">>) => ValidationResults;
|
|
1316
1316
|
defaults: () => Partial<ValidationResults>;
|
|
@@ -1318,7 +1318,7 @@ declare const ValidationResults: Readonly<{
|
|
|
1318
1318
|
/**
|
|
1319
1319
|
* An `Ingredient` is any external asset that has been used in the creation of an asset.
|
|
1320
1320
|
*/
|
|
1321
|
-
type Ingredient = {
|
|
1321
|
+
export type Ingredient = {
|
|
1322
1322
|
/**
|
|
1323
1323
|
* The active manifest label (if one exists).
|
|
1324
1324
|
*
|
|
@@ -1424,7 +1424,7 @@ type Ingredient = {
|
|
|
1424
1424
|
/**
|
|
1425
1425
|
* Generated factory for {@link Ingredient} record objects.
|
|
1426
1426
|
*/
|
|
1427
|
-
declare const Ingredient: Readonly<{
|
|
1427
|
+
export declare const Ingredient: Readonly<{
|
|
1428
1428
|
create: (partial: Partial<Ingredient> & Required<Omit<Ingredient, "activeManifest" | "data" | "dataTypes" | "description" | "digitalSourceType" | "documentId" | "format" | "hash" | "informationalUri" | "instanceId" | "label" | "manifestData" | "metadata" | "ocspResponses" | "provenance" | "softBindingAlgorithmsMatched" | "thumbnail" | "title" | "validationResults" | "validationStatus">>) => Ingredient;
|
|
1429
1429
|
new: (partial: Partial<Ingredient> & Required<Omit<Ingredient, "activeManifest" | "data" | "dataTypes" | "description" | "digitalSourceType" | "documentId" | "format" | "hash" | "informationalUri" | "instanceId" | "label" | "manifestData" | "metadata" | "ocspResponses" | "provenance" | "softBindingAlgorithmsMatched" | "thumbnail" | "title" | "validationResults" | "validationStatus">>) => Ingredient;
|
|
1430
1430
|
defaults: () => Partial<Ingredient>;
|
|
@@ -1437,7 +1437,7 @@ declare const Ingredient: Readonly<{
|
|
|
1437
1437
|
* `SigningAlg` in their JSON schema reference this mirror (whose variants match
|
|
1438
1438
|
* `SigningAlg`'s serialized form) via `#[schemars(with = "...")]`.
|
|
1439
1439
|
*/
|
|
1440
|
-
declare enum SigningAlgSchema {
|
|
1440
|
+
export declare enum SigningAlgSchema {
|
|
1441
1441
|
Es256 = 0,
|
|
1442
1442
|
Es384 = 1,
|
|
1443
1443
|
Es512 = 2,
|
|
@@ -1449,7 +1449,7 @@ declare enum SigningAlgSchema {
|
|
|
1449
1449
|
/**
|
|
1450
1450
|
* Holds information about a signature
|
|
1451
1451
|
*/
|
|
1452
|
-
type SignatureInfo = {
|
|
1452
|
+
export type SignatureInfo = {
|
|
1453
1453
|
/**
|
|
1454
1454
|
* Human-readable issuing authority for this signature.
|
|
1455
1455
|
*/
|
|
@@ -1478,7 +1478,7 @@ type SignatureInfo = {
|
|
|
1478
1478
|
/**
|
|
1479
1479
|
* Generated factory for {@link SignatureInfo} record objects.
|
|
1480
1480
|
*/
|
|
1481
|
-
declare const SignatureInfo: Readonly<{
|
|
1481
|
+
export declare const SignatureInfo: Readonly<{
|
|
1482
1482
|
create: (partial: Partial<SignatureInfo> & Required<Omit<SignatureInfo, "alg" | "certSerialNumber" | "commonName" | "issuer" | "revocationStatus" | "time">>) => SignatureInfo;
|
|
1483
1483
|
new: (partial: Partial<SignatureInfo> & Required<Omit<SignatureInfo, "alg" | "certSerialNumber" | "commonName" | "issuer" | "revocationStatus" | "time">>) => SignatureInfo;
|
|
1484
1484
|
defaults: () => Partial<SignatureInfo>;
|
|
@@ -1486,7 +1486,7 @@ declare const SignatureInfo: Readonly<{
|
|
|
1486
1486
|
/**
|
|
1487
1487
|
* A Manifest represents all the information in a c2pa manifest
|
|
1488
1488
|
*/
|
|
1489
|
-
type Manifest = {
|
|
1489
|
+
export type Manifest = {
|
|
1490
1490
|
/**
|
|
1491
1491
|
* A list of assertions
|
|
1492
1492
|
*/
|
|
@@ -1556,7 +1556,7 @@ type Manifest = {
|
|
|
1556
1556
|
/**
|
|
1557
1557
|
* Generated factory for {@link Manifest} record objects.
|
|
1558
1558
|
*/
|
|
1559
|
-
declare const Manifest: Readonly<{
|
|
1559
|
+
export declare const Manifest: Readonly<{
|
|
1560
1560
|
create: (partial: Partial<Manifest> & Required<Omit<Manifest, "claimGenerator" | "claimGeneratorInfo" | "claimVersion" | "credentials" | "format" | "label" | "metadata" | "redactions" | "signatureInfo" | "thumbnail" | "title" | "vendor">>) => Manifest;
|
|
1561
1561
|
new: (partial: Partial<Manifest> & Required<Omit<Manifest, "claimGenerator" | "claimGeneratorInfo" | "claimVersion" | "credentials" | "format" | "label" | "metadata" | "redactions" | "signatureInfo" | "thumbnail" | "title" | "vendor">>) => Manifest;
|
|
1562
1562
|
defaults: () => Partial<Manifest>;
|
|
@@ -1567,7 +1567,7 @@ declare const Manifest: Readonly<{
|
|
|
1567
1567
|
*
|
|
1568
1568
|
* See [Validation states - C2PA Technical Specification](https://spec.c2pa.org/specifications/specifications/2.3/specs/C2PA_Specification.html#_validation_states).
|
|
1569
1569
|
*/
|
|
1570
|
-
declare enum ValidationState {
|
|
1570
|
+
export declare enum ValidationState {
|
|
1571
1571
|
/**
|
|
1572
1572
|
* The manifest store fails to meet ValidationState::WellFormed requirements, meaning it cannot
|
|
1573
1573
|
* even be parsed or its basic structure is non-compliant.
|
|
@@ -1592,7 +1592,7 @@ declare enum ValidationState {
|
|
|
1592
1592
|
/**
|
|
1593
1593
|
* Use a Reader to read and validate a manifest store.
|
|
1594
1594
|
*/
|
|
1595
|
-
type ManifestStore = {
|
|
1595
|
+
export type ManifestStore = {
|
|
1596
1596
|
/**
|
|
1597
1597
|
* A label for the active (most recent) manifest in the store
|
|
1598
1598
|
*/
|
|
@@ -1617,12 +1617,12 @@ type ManifestStore = {
|
|
|
1617
1617
|
/**
|
|
1618
1618
|
* Generated factory for {@link ManifestStore} record objects.
|
|
1619
1619
|
*/
|
|
1620
|
-
declare const ManifestStore: Readonly<{
|
|
1620
|
+
export declare const ManifestStore: Readonly<{
|
|
1621
1621
|
create: (partial: Partial<ManifestStore> & Required<Omit<ManifestStore, "activeManifest" | "validationResults" | "validationState" | "validationStatus">>) => ManifestStore;
|
|
1622
1622
|
new: (partial: Partial<ManifestStore> & Required<Omit<ManifestStore, "activeManifest" | "validationResults" | "validationState" | "validationStatus">>) => ManifestStore;
|
|
1623
1623
|
defaults: () => Partial<ManifestStore>;
|
|
1624
1624
|
}>;
|
|
1625
|
-
declare enum FingerprintCheck_Tags {
|
|
1625
|
+
export declare enum FingerprintCheck_Tags {
|
|
1626
1626
|
NotNeeded = "NotNeeded",
|
|
1627
1627
|
NothingToCompare = "NothingToCompare",
|
|
1628
1628
|
Unsupported = "Unsupported",
|
|
@@ -1640,7 +1640,7 @@ declare enum FingerprintCheck_Tags {
|
|
|
1640
1640
|
* Reported rather than enforced: a transcode legitimately shifts a fingerprint, so where the line
|
|
1641
1641
|
* falls is the relying party's policy, not this SDK's. What the SDK owes them is the measurement.
|
|
1642
1642
|
*/
|
|
1643
|
-
declare const FingerprintCheck: Readonly<{
|
|
1643
|
+
export declare const FingerprintCheck: Readonly<{
|
|
1644
1644
|
instanceOf: (obj: any) => obj is FingerprintCheck;
|
|
1645
1645
|
NotNeeded: {
|
|
1646
1646
|
new (): {
|
|
@@ -1810,13 +1810,13 @@ declare const FingerprintCheck: Readonly<{
|
|
|
1810
1810
|
* Reported rather than enforced: a transcode legitimately shifts a fingerprint, so where the line
|
|
1811
1811
|
* falls is the relying party's policy, not this SDK's. What the SDK owes them is the measurement.
|
|
1812
1812
|
*/
|
|
1813
|
-
type FingerprintCheck = InstanceType<typeof FingerprintCheck['NotNeeded' | 'NothingToCompare' | 'Unsupported' | 'Indeterminate' | 'Compared']>;
|
|
1813
|
+
export type FingerprintCheck = InstanceType<typeof FingerprintCheck['NotNeeded' | 'NothingToCompare' | 'Unsupported' | 'Indeterminate' | 'Compared']>;
|
|
1814
1814
|
/**
|
|
1815
1815
|
* One `verify` result: the c2pa manifest store, plus where it came from: see [`asset::CredentialOrigin`],
|
|
1816
1816
|
* whose recovered variants carry the same `SoftBinding` record `Binder.derive` returns, so a
|
|
1817
1817
|
* derived binding and a recovering one are one type.
|
|
1818
1818
|
*/
|
|
1819
|
-
type FoundCredential = {
|
|
1819
|
+
export type FoundCredential = {
|
|
1820
1820
|
/**
|
|
1821
1821
|
* The bytes behind every thumbnail the manifests reference, by that reference's
|
|
1822
1822
|
* `identifier`: each manifest's claim thumbnail and each ingredient's. The manifests state
|
|
@@ -1840,7 +1840,7 @@ type FoundCredential = {
|
|
|
1840
1840
|
/**
|
|
1841
1841
|
* Generated factory for {@link FoundCredential} record objects.
|
|
1842
1842
|
*/
|
|
1843
|
-
declare const FoundCredential: Readonly<{
|
|
1843
|
+
export declare const FoundCredential: Readonly<{
|
|
1844
1844
|
create: (partial: Partial<FoundCredential> & Required<Omit<FoundCredential, never>>) => FoundCredential;
|
|
1845
1845
|
new: (partial: Partial<FoundCredential> & Required<Omit<FoundCredential, never>>) => FoundCredential;
|
|
1846
1846
|
defaults: () => Partial<FoundCredential>;
|
|
@@ -1848,7 +1848,7 @@ declare const FoundCredential: Readonly<{
|
|
|
1848
1848
|
/**
|
|
1849
1849
|
* Whether the configured recovery sequence ran to a conclusive answer.
|
|
1850
1850
|
*/
|
|
1851
|
-
declare enum RecoveryStatus {
|
|
1851
|
+
export declare enum RecoveryStatus {
|
|
1852
1852
|
NotRequested = 0,
|
|
1853
1853
|
NotFound = 1,
|
|
1854
1854
|
Recovered = 2,
|
|
@@ -1861,7 +1861,7 @@ declare enum RecoveryStatus {
|
|
|
1861
1861
|
* Why registry recovery did not complete cleanly, or why one candidate was omitted while another
|
|
1862
1862
|
* succeeded. Kept as data so a partial recovery never loses the rest of the lookup outcome.
|
|
1863
1863
|
*/
|
|
1864
|
-
declare enum RecoveryIssueKind {
|
|
1864
|
+
export declare enum RecoveryIssueKind {
|
|
1865
1865
|
Binder = 0,
|
|
1866
1866
|
BindingQuery = 1,
|
|
1867
1867
|
QueryRefused = 2,
|
|
@@ -1875,7 +1875,7 @@ declare enum RecoveryIssueKind {
|
|
|
1875
1875
|
/**
|
|
1876
1876
|
* One non-fatal recovery problem. `manifest_id` is present only for a returned candidate.
|
|
1877
1877
|
*/
|
|
1878
|
-
type RecoveryIssue = {
|
|
1878
|
+
export type RecoveryIssue = {
|
|
1879
1879
|
kind: RecoveryIssueKind;
|
|
1880
1880
|
manifestId?: string;
|
|
1881
1881
|
message: string;
|
|
@@ -1883,7 +1883,7 @@ type RecoveryIssue = {
|
|
|
1883
1883
|
/**
|
|
1884
1884
|
* Generated factory for {@link RecoveryIssue} record objects.
|
|
1885
1885
|
*/
|
|
1886
|
-
declare const RecoveryIssue: Readonly<{
|
|
1886
|
+
export declare const RecoveryIssue: Readonly<{
|
|
1887
1887
|
create: (partial: Partial<RecoveryIssue> & Required<Omit<RecoveryIssue, "manifestId">>) => RecoveryIssue;
|
|
1888
1888
|
new: (partial: Partial<RecoveryIssue> & Required<Omit<RecoveryIssue, "manifestId">>) => RecoveryIssue;
|
|
1889
1889
|
defaults: () => Partial<RecoveryIssue>;
|
|
@@ -1892,7 +1892,7 @@ declare const RecoveryIssue: Readonly<{
|
|
|
1892
1892
|
* Registry recovery outcome, including the strongest successfully validated candidate and every
|
|
1893
1893
|
* non-fatal issue encountered on the way.
|
|
1894
1894
|
*/
|
|
1895
|
-
type RecoverySummary = {
|
|
1895
|
+
export type RecoverySummary = {
|
|
1896
1896
|
status: RecoveryStatus;
|
|
1897
1897
|
/**
|
|
1898
1898
|
* Index into [`AssetVerification::credentials`]. Ranking is strongest-first, so this is the
|
|
@@ -1904,12 +1904,12 @@ type RecoverySummary = {
|
|
|
1904
1904
|
/**
|
|
1905
1905
|
* Generated factory for {@link RecoverySummary} record objects.
|
|
1906
1906
|
*/
|
|
1907
|
-
declare const RecoverySummary: Readonly<{
|
|
1907
|
+
export declare const RecoverySummary: Readonly<{
|
|
1908
1908
|
create: (partial: Partial<RecoverySummary> & Required<Omit<RecoverySummary, "bestCredentialIndex">>) => RecoverySummary;
|
|
1909
1909
|
new: (partial: Partial<RecoverySummary> & Required<Omit<RecoverySummary, "bestCredentialIndex">>) => RecoverySummary;
|
|
1910
1910
|
defaults: () => Partial<RecoverySummary>;
|
|
1911
1911
|
}>;
|
|
1912
|
-
declare enum GoldenComparison_Tags {
|
|
1912
|
+
export declare enum GoldenComparison_Tags {
|
|
1913
1913
|
NotRequested = "NotRequested",
|
|
1914
1914
|
NoEmbeddedManifest = "NoEmbeddedManifest",
|
|
1915
1915
|
NoRecoveredManifest = "NoRecoveredManifest",
|
|
@@ -1920,7 +1920,7 @@ declare enum GoldenComparison_Tags {
|
|
|
1920
1920
|
/**
|
|
1921
1921
|
* Typed completion of C2PA 2.4's `watermark-golden` / `fingerprint-golden` final comparison.
|
|
1922
1922
|
*/
|
|
1923
|
-
declare const GoldenComparison: Readonly<{
|
|
1923
|
+
export declare const GoldenComparison: Readonly<{
|
|
1924
1924
|
instanceOf: (obj: any) => obj is GoldenComparison;
|
|
1925
1925
|
NotRequested: {
|
|
1926
1926
|
new (): {
|
|
@@ -2125,12 +2125,12 @@ declare const GoldenComparison: Readonly<{
|
|
|
2125
2125
|
/**
|
|
2126
2126
|
* Typed completion of C2PA 2.4's `watermark-golden` / `fingerprint-golden` final comparison.
|
|
2127
2127
|
*/
|
|
2128
|
-
type GoldenComparison = InstanceType<typeof GoldenComparison['NotRequested' | 'NoEmbeddedManifest' | 'NoRecoveredManifest' | 'Matches' | 'Differs' | 'Indeterminate']>;
|
|
2128
|
+
export type GoldenComparison = InstanceType<typeof GoldenComparison['NotRequested' | 'NoEmbeddedManifest' | 'NoRecoveredManifest' | 'Matches' | 'Differs' | 'Indeterminate']>;
|
|
2129
2129
|
/**
|
|
2130
2130
|
* Complete asset verification result, including conclusive/incomplete recovery state and the
|
|
2131
2131
|
* C2PA golden-flow comparison against the strongest recovered credential.
|
|
2132
2132
|
*/
|
|
2133
|
-
type AssetVerification = {
|
|
2133
|
+
export type AssetVerification = {
|
|
2134
2134
|
credentials: Array<FoundCredential>;
|
|
2135
2135
|
recovery: RecoverySummary;
|
|
2136
2136
|
goldenComparison: GoldenComparison;
|
|
@@ -2138,7 +2138,7 @@ type AssetVerification = {
|
|
|
2138
2138
|
/**
|
|
2139
2139
|
* Generated factory for {@link AssetVerification} record objects.
|
|
2140
2140
|
*/
|
|
2141
|
-
declare const AssetVerification: Readonly<{
|
|
2141
|
+
export declare const AssetVerification: Readonly<{
|
|
2142
2142
|
create: (partial: Partial<AssetVerification> & Required<Omit<AssetVerification, never>>) => AssetVerification;
|
|
2143
2143
|
new: (partial: Partial<AssetVerification> & Required<Omit<AssetVerification, never>>) => AssetVerification;
|
|
2144
2144
|
defaults: () => Partial<AssetVerification>;
|
|
@@ -2146,7 +2146,7 @@ declare const AssetVerification: Readonly<{
|
|
|
2146
2146
|
/**
|
|
2147
2147
|
* When [`AssetVerifier::verify_asset`] queries the registry.
|
|
2148
2148
|
*/
|
|
2149
|
-
declare enum RecoveryPolicy {
|
|
2149
|
+
export declare enum RecoveryPolicy {
|
|
2150
2150
|
/**
|
|
2151
2151
|
* Only when the asset carries no manifest of its own, the stripped or never-embedded copy
|
|
2152
2152
|
* whose credential lives only in the registry. An asset that is still signed costs no round
|
|
@@ -2175,7 +2175,7 @@ declare enum RecoveryPolicy {
|
|
|
2175
2175
|
* Separate from [`RecoveryPolicy`], which decides *when* a recovery runs: one names the trigger
|
|
2176
2176
|
* and the other the reach, and crossing them is what the two enums exist to keep legible.
|
|
2177
2177
|
*/
|
|
2178
|
-
declare enum RegistryQueries {
|
|
2178
|
+
export declare enum RegistryQueries {
|
|
2179
2179
|
/**
|
|
2180
2180
|
* Bindings this client derived, looked up by value. The asset never leaves the caller, which
|
|
2181
2181
|
* is what a verifier embedded in someone else's page needs: it can ask whether a code it
|
|
@@ -2197,7 +2197,7 @@ declare enum RegistryQueries {
|
|
|
2197
2197
|
* Where the registry is, when to query it, and how far. One value rather than an endpoint beside
|
|
2198
2198
|
* loose flags, so a policy cannot be configured on a verifier that has nowhere to apply it.
|
|
2199
2199
|
*/
|
|
2200
|
-
type RegistryOptions = {
|
|
2200
|
+
export type RegistryOptions = {
|
|
2201
2201
|
/**
|
|
2202
2202
|
* Soft Binding Resolution API base URL (`https://registry.trylimbo.com`).
|
|
2203
2203
|
*/
|
|
@@ -2214,7 +2214,7 @@ type RegistryOptions = {
|
|
|
2214
2214
|
/**
|
|
2215
2215
|
* Generated factory for {@link RegistryOptions} record objects.
|
|
2216
2216
|
*/
|
|
2217
|
-
declare const RegistryOptions: Readonly<{
|
|
2217
|
+
export declare const RegistryOptions: Readonly<{
|
|
2218
2218
|
create: (partial: Partial<RegistryOptions> & Required<Omit<RegistryOptions, "queries" | "recovery">>) => RegistryOptions;
|
|
2219
2219
|
new: (partial: Partial<RegistryOptions> & Required<Omit<RegistryOptions, "queries" | "recovery">>) => RegistryOptions;
|
|
2220
2220
|
defaults: () => Partial<RegistryOptions>;
|
|
@@ -2227,7 +2227,7 @@ declare const RegistryOptions: Readonly<{
|
|
|
2227
2227
|
* tsify (camelCase, optional fields) on wasm, a `uniffi::Record` on the native
|
|
2228
2228
|
* `ffi` build, so there is no per-lane DTO copy. Off both lanes it is a plain struct.
|
|
2229
2229
|
*/
|
|
2230
|
-
type AssetVerifierOptions = {
|
|
2230
|
+
export type AssetVerifierOptions = {
|
|
2231
2231
|
/**
|
|
2232
2232
|
* The registry to recover from. Omit for a verifier that only checks embedded manifests.
|
|
2233
2233
|
*/
|
|
@@ -2252,7 +2252,7 @@ type AssetVerifierOptions = {
|
|
|
2252
2252
|
/**
|
|
2253
2253
|
* Generated factory for {@link AssetVerifierOptions} record objects.
|
|
2254
2254
|
*/
|
|
2255
|
-
declare const AssetVerifierOptions: Readonly<{
|
|
2255
|
+
export declare const AssetVerifierOptions: Readonly<{
|
|
2256
2256
|
create: (partial: Partial<AssetVerifierOptions> & Required<Omit<AssetVerifierOptions, "registry" | "trustC2paAnchors" | "trustedIcaIssuers">>) => AssetVerifierOptions;
|
|
2257
2257
|
new: (partial: Partial<AssetVerifierOptions> & Required<Omit<AssetVerifierOptions, "registry" | "trustC2paAnchors" | "trustedIcaIssuers">>) => AssetVerifierOptions;
|
|
2258
2258
|
defaults: () => Partial<AssetVerifierOptions>;
|
|
@@ -2261,13 +2261,13 @@ declare const AssetVerifierOptions: Readonly<{
|
|
|
2261
2261
|
* Everything one [`Binder::derive`] needs beyond the asset. `format` overrides the format sniffed
|
|
2262
2262
|
* from the leading bytes.
|
|
2263
2263
|
*/
|
|
2264
|
-
type DeriveOptions = {
|
|
2264
|
+
export type DeriveOptions = {
|
|
2265
2265
|
format?: string;
|
|
2266
2266
|
};
|
|
2267
2267
|
/**
|
|
2268
2268
|
* Generated factory for {@link DeriveOptions} record objects.
|
|
2269
2269
|
*/
|
|
2270
|
-
declare const DeriveOptions: Readonly<{
|
|
2270
|
+
export declare const DeriveOptions: Readonly<{
|
|
2271
2271
|
create: (partial: Partial<DeriveOptions> & Required<Omit<DeriveOptions, "format">>) => DeriveOptions;
|
|
2272
2272
|
new: (partial: Partial<DeriveOptions> & Required<Omit<DeriveOptions, "format">>) => DeriveOptions;
|
|
2273
2273
|
defaults: () => Partial<DeriveOptions>;
|
|
@@ -2275,7 +2275,7 @@ declare const DeriveOptions: Readonly<{
|
|
|
2275
2275
|
/**
|
|
2276
2276
|
* One `google.rpc.BadRequest.FieldViolation`: a request field that failed a constraint.
|
|
2277
2277
|
*/
|
|
2278
|
-
type FieldViolation = {
|
|
2278
|
+
export type FieldViolation = {
|
|
2279
2279
|
/**
|
|
2280
2280
|
* A dotted proto path to the offending field (`""` for a message-level rule).
|
|
2281
2281
|
*/
|
|
@@ -2292,7 +2292,7 @@ type FieldViolation = {
|
|
|
2292
2292
|
/**
|
|
2293
2293
|
* Generated factory for {@link FieldViolation} record objects.
|
|
2294
2294
|
*/
|
|
2295
|
-
declare const FieldViolation: Readonly<{
|
|
2295
|
+
export declare const FieldViolation: Readonly<{
|
|
2296
2296
|
create: (partial: Partial<FieldViolation> & Required<Omit<FieldViolation, never>>) => FieldViolation;
|
|
2297
2297
|
new: (partial: Partial<FieldViolation> & Required<Omit<FieldViolation, never>>) => FieldViolation;
|
|
2298
2298
|
defaults: () => Partial<FieldViolation>;
|
|
@@ -2300,7 +2300,7 @@ declare const FieldViolation: Readonly<{
|
|
|
2300
2300
|
/**
|
|
2301
2301
|
* Whether a code is a success, an informational note, or a failure.
|
|
2302
2302
|
*/
|
|
2303
|
-
declare enum ValidationCodeKind {
|
|
2303
|
+
export declare enum ValidationCodeKind {
|
|
2304
2304
|
Success = 0,
|
|
2305
2305
|
Informational = 1,
|
|
2306
2306
|
Failure = 2
|
|
@@ -2308,7 +2308,7 @@ declare enum ValidationCodeKind {
|
|
|
2308
2308
|
/**
|
|
2309
2309
|
* One C2PA validation status entry (spec §15.3).
|
|
2310
2310
|
*/
|
|
2311
|
-
type ValidationCode = {
|
|
2311
|
+
export type ValidationCode = {
|
|
2312
2312
|
/**
|
|
2313
2313
|
* C2PA validation status string (e.g. `signingCredential.trusted`).
|
|
2314
2314
|
*/
|
|
@@ -2318,7 +2318,7 @@ type ValidationCode = {
|
|
|
2318
2318
|
/**
|
|
2319
2319
|
* Generated factory for {@link ValidationCode} record objects.
|
|
2320
2320
|
*/
|
|
2321
|
-
declare const ValidationCode: Readonly<{
|
|
2321
|
+
export declare const ValidationCode: Readonly<{
|
|
2322
2322
|
create: (partial: Partial<ValidationCode> & Required<Omit<ValidationCode, never>>) => ValidationCode;
|
|
2323
2323
|
new: (partial: Partial<ValidationCode> & Required<Omit<ValidationCode, never>>) => ValidationCode;
|
|
2324
2324
|
defaults: () => Partial<ValidationCode>;
|
|
@@ -2326,7 +2326,7 @@ declare const ValidationCode: Readonly<{
|
|
|
2326
2326
|
/**
|
|
2327
2327
|
* A session signing key from the init manifest's roster (spec §19.4.4).
|
|
2328
2328
|
*/
|
|
2329
|
-
type SessionKeySummary = {
|
|
2329
|
+
export type SessionKeySummary = {
|
|
2330
2330
|
/**
|
|
2331
2331
|
* Identifier of the session signing key.
|
|
2332
2332
|
*/
|
|
@@ -2339,7 +2339,7 @@ type SessionKeySummary = {
|
|
|
2339
2339
|
/**
|
|
2340
2340
|
* Generated factory for {@link SessionKeySummary} record objects.
|
|
2341
2341
|
*/
|
|
2342
|
-
declare const SessionKeySummary: Readonly<{
|
|
2342
|
+
export declare const SessionKeySummary: Readonly<{
|
|
2343
2343
|
create: (partial: Partial<SessionKeySummary> & Required<Omit<SessionKeySummary, never>>) => SessionKeySummary;
|
|
2344
2344
|
new: (partial: Partial<SessionKeySummary> & Required<Omit<SessionKeySummary, never>>) => SessionKeySummary;
|
|
2345
2345
|
defaults: () => Partial<SessionKeySummary>;
|
|
@@ -2347,7 +2347,7 @@ declare const SessionKeySummary: Readonly<{
|
|
|
2347
2347
|
/**
|
|
2348
2348
|
* Outcome of validating a stream's init segment.
|
|
2349
2349
|
*/
|
|
2350
|
-
type InitValidation = {
|
|
2350
|
+
export type InitValidation = {
|
|
2351
2351
|
/**
|
|
2352
2352
|
* The init manifest's C2PA validation state (spec §14.3). Read from
|
|
2353
2353
|
* `Reader::validation_state()`, so unlike `manifest.validation_state` it is
|
|
@@ -2364,7 +2364,7 @@ type InitValidation = {
|
|
|
2364
2364
|
/**
|
|
2365
2365
|
* Generated factory for {@link InitValidation} record objects.
|
|
2366
2366
|
*/
|
|
2367
|
-
declare const InitValidation: Readonly<{
|
|
2367
|
+
export declare const InitValidation: Readonly<{
|
|
2368
2368
|
create: (partial: Partial<InitValidation> & Required<Omit<InitValidation, never>>) => InitValidation;
|
|
2369
2369
|
new: (partial: Partial<InitValidation> & Required<Omit<InitValidation, never>>) => InitValidation;
|
|
2370
2370
|
defaults: () => Partial<InitValidation>;
|
|
@@ -2372,7 +2372,7 @@ declare const InitValidation: Readonly<{
|
|
|
2372
2372
|
/**
|
|
2373
2373
|
* Timing facts carried by a media segment's container.
|
|
2374
2374
|
*/
|
|
2375
|
-
type SegmentTiming = {
|
|
2375
|
+
export type SegmentTiming = {
|
|
2376
2376
|
/**
|
|
2377
2377
|
* Media segment sequence number (exact below 2^53).
|
|
2378
2378
|
*/
|
|
@@ -2389,7 +2389,7 @@ type SegmentTiming = {
|
|
|
2389
2389
|
/**
|
|
2390
2390
|
* Generated factory for {@link SegmentTiming} record objects.
|
|
2391
2391
|
*/
|
|
2392
|
-
declare const SegmentTiming: Readonly<{
|
|
2392
|
+
export declare const SegmentTiming: Readonly<{
|
|
2393
2393
|
create: (partial: Partial<SegmentTiming> & Required<Omit<SegmentTiming, "eventDurationSecs" | "timescale">>) => SegmentTiming;
|
|
2394
2394
|
new: (partial: Partial<SegmentTiming> & Required<Omit<SegmentTiming, "eventDurationSecs" | "timescale">>) => SegmentTiming;
|
|
2395
2395
|
defaults: () => Partial<SegmentTiming>;
|
|
@@ -2397,7 +2397,7 @@ declare const SegmentTiming: Readonly<{
|
|
|
2397
2397
|
/**
|
|
2398
2398
|
* Outcome of validating a media segment against its stream's init.
|
|
2399
2399
|
*/
|
|
2400
|
-
type MediaValidation = {
|
|
2400
|
+
export type MediaValidation = {
|
|
2401
2401
|
valid: boolean;
|
|
2402
2402
|
codes: Array<ValidationCode>;
|
|
2403
2403
|
keyId: ArrayBuffer;
|
|
@@ -2407,7 +2407,7 @@ type MediaValidation = {
|
|
|
2407
2407
|
/**
|
|
2408
2408
|
* Generated factory for {@link MediaValidation} record objects.
|
|
2409
2409
|
*/
|
|
2410
|
-
declare const MediaValidation: Readonly<{
|
|
2410
|
+
export declare const MediaValidation: Readonly<{
|
|
2411
2411
|
create: (partial: Partial<MediaValidation> & Required<Omit<MediaValidation, never>>) => MediaValidation;
|
|
2412
2412
|
new: (partial: Partial<MediaValidation> & Required<Omit<MediaValidation, never>>) => MediaValidation;
|
|
2413
2413
|
defaults: () => Partial<MediaValidation>;
|
|
@@ -2417,14 +2417,14 @@ declare const MediaValidation: Readonly<{
|
|
|
2417
2417
|
* primitives, so a plugin in its OWN UniFFI namespace declares a structurally identical
|
|
2418
2418
|
* one and the two cross the boundary without sharing a Rust type.
|
|
2419
2419
|
*/
|
|
2420
|
-
type Region = {
|
|
2420
|
+
export type Region = {
|
|
2421
2421
|
offset: bigint;
|
|
2422
2422
|
length: bigint;
|
|
2423
2423
|
};
|
|
2424
2424
|
/**
|
|
2425
2425
|
* Generated factory for {@link Region} record objects.
|
|
2426
2426
|
*/
|
|
2427
|
-
declare const Region: Readonly<{
|
|
2427
|
+
export declare const Region: Readonly<{
|
|
2428
2428
|
create: (partial: Partial<Region> & Required<Omit<Region, never>>) => Region;
|
|
2429
2429
|
new: (partial: Partial<Region> & Required<Omit<Region, never>>) => Region;
|
|
2430
2430
|
defaults: () => Partial<Region>;
|
|
@@ -2437,7 +2437,7 @@ declare const Region: Readonly<{
|
|
|
2437
2437
|
* with `ffi`, a `uniffi::Record` for the native `StreamVerifier.create` binding, so there
|
|
2438
2438
|
* is no per-lane DTO copy. Off both lanes it is a plain struct.
|
|
2439
2439
|
*/
|
|
2440
|
-
type StreamVerifierOptions = {
|
|
2440
|
+
export type StreamVerifierOptions = {
|
|
2441
2441
|
/**
|
|
2442
2442
|
* PEM trust anchors for the caller's own issuers.
|
|
2443
2443
|
*/
|
|
@@ -2464,7 +2464,7 @@ type StreamVerifierOptions = {
|
|
|
2464
2464
|
/**
|
|
2465
2465
|
* Generated factory for {@link StreamVerifierOptions} record objects.
|
|
2466
2466
|
*/
|
|
2467
|
-
declare const StreamVerifierOptions: Readonly<{
|
|
2467
|
+
export declare const StreamVerifierOptions: Readonly<{
|
|
2468
2468
|
create: (partial: Partial<StreamVerifierOptions> & Required<Omit<StreamVerifierOptions, "segmentSkewToleranceSecs" | "trustC2paAnchors" | "trustedIcaIssuers">>) => StreamVerifierOptions;
|
|
2469
2469
|
new: (partial: Partial<StreamVerifierOptions> & Required<Omit<StreamVerifierOptions, "segmentSkewToleranceSecs" | "trustC2paAnchors" | "trustedIcaIssuers">>) => StreamVerifierOptions;
|
|
2470
2470
|
defaults: () => Partial<StreamVerifierOptions>;
|
|
@@ -2475,7 +2475,7 @@ declare const StreamVerifierOptions: Readonly<{
|
|
|
2475
2475
|
* The wasm lane projects this as the Connect `snake_case` string, so a consumer
|
|
2476
2476
|
* narrows on `err.code === "resource_exhausted"`; the native lane projects an enum.
|
|
2477
2477
|
*/
|
|
2478
|
-
declare enum Code {
|
|
2478
|
+
export declare enum Code {
|
|
2479
2479
|
Canceled = 0,
|
|
2480
2480
|
Unknown = 1,
|
|
2481
2481
|
InvalidArgument = 2,
|
|
@@ -2493,7 +2493,7 @@ declare enum Code {
|
|
|
2493
2493
|
DataLoss = 14,
|
|
2494
2494
|
Unauthenticated = 15
|
|
2495
2495
|
}
|
|
2496
|
-
declare enum SdkError_Tags {
|
|
2496
|
+
export declare enum SdkError_Tags {
|
|
2497
2497
|
Reason = "Reason",
|
|
2498
2498
|
Invalid = "Invalid",
|
|
2499
2499
|
Status = "Status"
|
|
@@ -2503,7 +2503,7 @@ declare enum SdkError_Tags {
|
|
|
2503
2503
|
* as a semantic reason, a request validation, or a bare status. `code` and `message`
|
|
2504
2504
|
* are common to every variant.
|
|
2505
2505
|
*/
|
|
2506
|
-
declare const SdkError: Readonly<{
|
|
2506
|
+
export declare const SdkError: Readonly<{
|
|
2507
2507
|
instanceOf: (obj: any) => obj is SdkError;
|
|
2508
2508
|
Reason: {
|
|
2509
2509
|
new (inner: {
|
|
@@ -2825,7 +2825,7 @@ declare const SdkError: Readonly<{
|
|
|
2825
2825
|
* as a semantic reason, a request validation, or a bare status. `code` and `message`
|
|
2826
2826
|
* are common to every variant.
|
|
2827
2827
|
*/
|
|
2828
|
-
type SdkError = InstanceType<typeof SdkError['Reason' | 'Invalid' | 'Status']>;
|
|
2828
|
+
export type SdkError = InstanceType<typeof SdkError['Reason' | 'Invalid' | 'Status']>;
|
|
2829
2829
|
/**
|
|
2830
2830
|
* The host-supplied ranged reader: `length()` returns the asset size in bytes, `read_at`
|
|
2831
2831
|
* reads `length` bytes starting at `offset`. Each call crosses the FFI boundary, and the
|
|
@@ -2848,7 +2848,7 @@ type SdkError = InstanceType<typeof SdkError['Reason' | 'Invalid' | 'Status']>;
|
|
|
2848
2848
|
* is indistinguishable from a legitimate end of file, so an S3 timeout would silently verify or
|
|
2849
2849
|
* sign a truncated asset.
|
|
2850
2850
|
*/
|
|
2851
|
-
interface RangeSource {
|
|
2851
|
+
export interface RangeSource {
|
|
2852
2852
|
length(asyncOpts_?: {
|
|
2853
2853
|
signal: AbortSignal;
|
|
2854
2854
|
}): Promise<bigint>;
|
|
@@ -2878,7 +2878,7 @@ interface RangeSource {
|
|
|
2878
2878
|
* is indistinguishable from a legitimate end of file, so an S3 timeout would silently verify or
|
|
2879
2879
|
* sign a truncated asset.
|
|
2880
2880
|
*/
|
|
2881
|
-
declare class RangeSourceImpl extends UniffiAbstractObject implements RangeSource {
|
|
2881
|
+
export declare class RangeSourceImpl extends UniffiAbstractObject implements RangeSource {
|
|
2882
2882
|
readonly [uniffiTypeNameSymbol] = "RangeSourceImpl";
|
|
2883
2883
|
readonly [destructorGuardSymbol]: UniffiGcObject;
|
|
2884
2884
|
readonly [pointerLiteralSymbol]: UniffiHandle;
|
|
@@ -2896,7 +2896,7 @@ declare class RangeSourceImpl extends UniffiAbstractObject implements RangeSourc
|
|
|
2896
2896
|
* A soft-binding binder: how a recoverable binding is derived from an asset. Put these inside the
|
|
2897
2897
|
* issuer's manifest mode to sign and index under them, and pass them in verify options to recover.
|
|
2898
2898
|
*/
|
|
2899
|
-
interface BinderLike {
|
|
2899
|
+
export interface BinderLike {
|
|
2900
2900
|
/**
|
|
2901
2901
|
* This binder's binding for `source`, or `None` when there is none. `format` overrides
|
|
2902
2902
|
* the format sniffed from the leading bytes.
|
|
@@ -2916,12 +2916,12 @@ interface BinderLike {
|
|
|
2916
2916
|
/**
|
|
2917
2917
|
* @deprecated Use `BinderLike` instead.
|
|
2918
2918
|
*/
|
|
2919
|
-
type BinderInterface = BinderLike;
|
|
2919
|
+
export type BinderInterface = BinderLike;
|
|
2920
2920
|
/**
|
|
2921
2921
|
* A soft-binding binder: how a recoverable binding is derived from an asset. Put these inside the
|
|
2922
2922
|
* issuer's manifest mode to sign and index under them, and pass them in verify options to recover.
|
|
2923
2923
|
*/
|
|
2924
|
-
declare class Binder extends UniffiAbstractObject implements BinderLike {
|
|
2924
|
+
export declare class Binder extends UniffiAbstractObject implements BinderLike {
|
|
2925
2925
|
readonly [uniffiTypeNameSymbol] = "Binder";
|
|
2926
2926
|
readonly [destructorGuardSymbol]: UniffiGcObject;
|
|
2927
2927
|
readonly [pointerLiteralSymbol]: UniffiHandle;
|
|
@@ -2959,7 +2959,7 @@ declare class Binder extends UniffiAbstractObject implements BinderLike {
|
|
|
2959
2959
|
* Every method is given the asset as a [`RangeSource`], so a plugin never opens its own
|
|
2960
2960
|
* view and the bytes it parses are the bytes the core hashes.
|
|
2961
2961
|
*/
|
|
2962
|
-
interface PluginRead {
|
|
2962
|
+
export interface PluginRead {
|
|
2963
2963
|
/**
|
|
2964
2964
|
* The media types this plugin owns: its dispatch set, declared as data. The core
|
|
2965
2965
|
* asserts a [`sniff`](Self::sniff) result is a member of this list.
|
|
@@ -2983,7 +2983,7 @@ interface PluginRead {
|
|
|
2983
2983
|
* The plugins one `verify` call may dispatch to. Rust-backed on purpose: see
|
|
2984
2984
|
* the module docs for why a plain sequence of foreign objects cannot cross today.
|
|
2985
2985
|
*/
|
|
2986
|
-
interface PluginRegistryLike {
|
|
2986
|
+
export interface PluginRegistryLike {
|
|
2987
2987
|
/**
|
|
2988
2988
|
* Whether no plugin is registered, meaning a c2pa-only verify.
|
|
2989
2989
|
*
|
|
@@ -3014,12 +3014,12 @@ interface PluginRegistryLike {
|
|
|
3014
3014
|
/**
|
|
3015
3015
|
* @deprecated Use `PluginRegistryLike` instead.
|
|
3016
3016
|
*/
|
|
3017
|
-
type PluginRegistryInterface = PluginRegistryLike;
|
|
3017
|
+
export type PluginRegistryInterface = PluginRegistryLike;
|
|
3018
3018
|
/**
|
|
3019
3019
|
* The plugins one `verify` call may dispatch to. Rust-backed on purpose: see
|
|
3020
3020
|
* the module docs for why a plain sequence of foreign objects cannot cross today.
|
|
3021
3021
|
*/
|
|
3022
|
-
declare class PluginRegistry extends UniffiAbstractObject implements PluginRegistryLike {
|
|
3022
|
+
export declare class PluginRegistry extends UniffiAbstractObject implements PluginRegistryLike {
|
|
3023
3023
|
readonly [uniffiTypeNameSymbol] = "PluginRegistry";
|
|
3024
3024
|
readonly [destructorGuardSymbol]: UniffiGcObject;
|
|
3025
3025
|
readonly [pointerLiteralSymbol]: UniffiHandle;
|
|
@@ -3060,19 +3060,19 @@ declare class PluginRegistry extends UniffiAbstractObject implements PluginRegis
|
|
|
3060
3060
|
* first hit wins; pass `[]` for none. `plugins` carries the caller's plugins for non-c2pa formats
|
|
3061
3061
|
* (e.g. MXF); a built-in C2PA media format needs none.
|
|
3062
3062
|
*/
|
|
3063
|
-
type VerifyOptions = {
|
|
3063
|
+
export type VerifyOptions = {
|
|
3064
3064
|
binders: Array<BinderLike>;
|
|
3065
3065
|
plugins?: PluginRegistryLike;
|
|
3066
3066
|
};
|
|
3067
3067
|
/**
|
|
3068
3068
|
* Generated factory for {@link VerifyOptions} record objects.
|
|
3069
3069
|
*/
|
|
3070
|
-
declare const VerifyOptions: Readonly<{
|
|
3070
|
+
export declare const VerifyOptions: Readonly<{
|
|
3071
3071
|
create: (partial: Partial<VerifyOptions> & Required<Omit<VerifyOptions, "plugins">>) => VerifyOptions;
|
|
3072
3072
|
new: (partial: Partial<VerifyOptions> & Required<Omit<VerifyOptions, "plugins">>) => VerifyOptions;
|
|
3073
3073
|
defaults: () => Partial<VerifyOptions>;
|
|
3074
3074
|
}>;
|
|
3075
|
-
declare enum SegmentValidation_Tags {
|
|
3075
|
+
export declare enum SegmentValidation_Tags {
|
|
3076
3076
|
Init = "Init",
|
|
3077
3077
|
Media = "Media",
|
|
3078
3078
|
Unknown = "Unknown"
|
|
@@ -3080,7 +3080,7 @@ declare enum SegmentValidation_Tags {
|
|
|
3080
3080
|
/**
|
|
3081
3081
|
* Result of `StreamValidation.validate`.
|
|
3082
3082
|
*/
|
|
3083
|
-
declare const SegmentValidation: Readonly<{
|
|
3083
|
+
export declare const SegmentValidation: Readonly<{
|
|
3084
3084
|
instanceOf: (obj: any) => obj is SegmentValidation;
|
|
3085
3085
|
Init: {
|
|
3086
3086
|
new (v0: InitValidation): {
|
|
@@ -3170,11 +3170,11 @@ declare const SegmentValidation: Readonly<{
|
|
|
3170
3170
|
/**
|
|
3171
3171
|
* Result of `StreamValidation.validate`.
|
|
3172
3172
|
*/
|
|
3173
|
-
type SegmentValidation = InstanceType<typeof SegmentValidation['Init' | 'Media' | 'Unknown']>;
|
|
3173
|
+
export type SegmentValidation = InstanceType<typeof SegmentValidation['Init' | 'Media' | 'Unknown']>;
|
|
3174
3174
|
/**
|
|
3175
3175
|
* A C2PA asset verifier bound to a trust configuration. Construct once, verify many.
|
|
3176
3176
|
*/
|
|
3177
|
-
interface AssetVerifierLike {
|
|
3177
|
+
export interface AssetVerifierLike {
|
|
3178
3178
|
/**
|
|
3179
3179
|
* Verify an asset from a [`RangeSource`] (the host's ranged reader). `binders`
|
|
3180
3180
|
* compose soft-binding recovery after the embedded pass, tried in order,
|
|
@@ -3196,11 +3196,11 @@ interface AssetVerifierLike {
|
|
|
3196
3196
|
/**
|
|
3197
3197
|
* @deprecated Use `AssetVerifierLike` instead.
|
|
3198
3198
|
*/
|
|
3199
|
-
type AssetVerifierInterface = AssetVerifierLike;
|
|
3199
|
+
export type AssetVerifierInterface = AssetVerifierLike;
|
|
3200
3200
|
/**
|
|
3201
3201
|
* A C2PA asset verifier bound to a trust configuration. Construct once, verify many.
|
|
3202
3202
|
*/
|
|
3203
|
-
declare class AssetVerifier extends UniffiAbstractObject implements AssetVerifierLike {
|
|
3203
|
+
export declare class AssetVerifier extends UniffiAbstractObject implements AssetVerifierLike {
|
|
3204
3204
|
readonly [uniffiTypeNameSymbol] = "AssetVerifier";
|
|
3205
3205
|
readonly [destructorGuardSymbol]: UniffiGcObject;
|
|
3206
3206
|
readonly [pointerLiteralSymbol]: UniffiHandle;
|
|
@@ -3249,7 +3249,7 @@ declare class AssetVerifier extends UniffiAbstractObject implements AssetVerifie
|
|
|
3249
3249
|
* This is an implementation of the [`RangeSource`] interface, not a way around it: the SDK still
|
|
3250
3250
|
* only ever asks for the ranges it needs, and no entry point takes a path.
|
|
3251
3251
|
*/
|
|
3252
|
-
interface FileSourceLike {
|
|
3252
|
+
export interface FileSourceLike {
|
|
3253
3253
|
length(asyncOpts_?: {
|
|
3254
3254
|
signal: AbortSignal;
|
|
3255
3255
|
}): Promise<bigint>;
|
|
@@ -3260,7 +3260,7 @@ interface FileSourceLike {
|
|
|
3260
3260
|
/**
|
|
3261
3261
|
* @deprecated Use `FileSourceLike` instead.
|
|
3262
3262
|
*/
|
|
3263
|
-
type FileSourceInterface = FileSourceLike;
|
|
3263
|
+
export type FileSourceInterface = FileSourceLike;
|
|
3264
3264
|
/**
|
|
3265
3265
|
* A [`RangeSource`] over a local file, opened and read by the SDK itself.
|
|
3266
3266
|
*
|
|
@@ -3277,7 +3277,7 @@ type FileSourceInterface = FileSourceLike;
|
|
|
3277
3277
|
* This is an implementation of the [`RangeSource`] interface, not a way around it: the SDK still
|
|
3278
3278
|
* only ever asks for the ranges it needs, and no entry point takes a path.
|
|
3279
3279
|
*/
|
|
3280
|
-
declare class FileSource extends UniffiAbstractObject implements FileSourceLike {
|
|
3280
|
+
export declare class FileSource extends UniffiAbstractObject implements FileSourceLike {
|
|
3281
3281
|
readonly [uniffiTypeNameSymbol] = "FileSource";
|
|
3282
3282
|
readonly [destructorGuardSymbol]: UniffiGcObject;
|
|
3283
3283
|
readonly [pointerLiteralSymbol]: UniffiHandle;
|
|
@@ -3318,7 +3318,7 @@ declare class FileSource extends UniffiAbstractObject implements FileSourceLike
|
|
|
3318
3318
|
* 10 MB, 315ms for 500 MB. That is the one part of a sign or verify the SDK cannot move off your
|
|
3319
3319
|
* thread, and neither a ranged source nor [`FileSource`] pays it.
|
|
3320
3320
|
*/
|
|
3321
|
-
interface MemorySourceLike {
|
|
3321
|
+
export interface MemorySourceLike {
|
|
3322
3322
|
length(asyncOpts_?: {
|
|
3323
3323
|
signal: AbortSignal;
|
|
3324
3324
|
}): Promise<bigint>;
|
|
@@ -3329,7 +3329,7 @@ interface MemorySourceLike {
|
|
|
3329
3329
|
/**
|
|
3330
3330
|
* @deprecated Use `MemorySourceLike` instead.
|
|
3331
3331
|
*/
|
|
3332
|
-
type MemorySourceInterface = MemorySourceLike;
|
|
3332
|
+
export type MemorySourceInterface = MemorySourceLike;
|
|
3333
3333
|
/**
|
|
3334
3334
|
* An in-memory [`RangeSource`], for a caller that already holds the whole asset as
|
|
3335
3335
|
* bytes and doesn't want to write a custom source. A **native** implementation of a
|
|
@@ -3349,7 +3349,7 @@ type MemorySourceInterface = MemorySourceLike;
|
|
|
3349
3349
|
* 10 MB, 315ms for 500 MB. That is the one part of a sign or verify the SDK cannot move off your
|
|
3350
3350
|
* thread, and neither a ranged source nor [`FileSource`] pays it.
|
|
3351
3351
|
*/
|
|
3352
|
-
declare class MemorySource extends UniffiAbstractObject implements MemorySourceLike {
|
|
3352
|
+
export declare class MemorySource extends UniffiAbstractObject implements MemorySourceLike {
|
|
3353
3353
|
readonly [uniffiTypeNameSymbol] = "MemorySource";
|
|
3354
3354
|
readonly [destructorGuardSymbol]: UniffiGcObject;
|
|
3355
3355
|
readonly [pointerLiteralSymbol]: UniffiHandle;
|
|
@@ -3372,7 +3372,7 @@ declare class MemorySource extends UniffiAbstractObject implements MemorySourceL
|
|
|
3372
3372
|
* One stream being validated. It owns the session keys and manifest ids its init segments
|
|
3373
3373
|
* advertised, so releasing the stream is dropping this object.
|
|
3374
3374
|
*/
|
|
3375
|
-
interface StreamValidationLike {
|
|
3375
|
+
export interface StreamValidationLike {
|
|
3376
3376
|
/**
|
|
3377
3377
|
* Everything this stream's init segments have registered, as CBOR for another node to
|
|
3378
3378
|
* [`resume`](StreamVerifier::resume) from.
|
|
@@ -3404,12 +3404,12 @@ interface StreamValidationLike {
|
|
|
3404
3404
|
/**
|
|
3405
3405
|
* @deprecated Use `StreamValidationLike` instead.
|
|
3406
3406
|
*/
|
|
3407
|
-
type StreamValidationInterface = StreamValidationLike;
|
|
3407
|
+
export type StreamValidationInterface = StreamValidationLike;
|
|
3408
3408
|
/**
|
|
3409
3409
|
* One stream being validated. It owns the session keys and manifest ids its init segments
|
|
3410
3410
|
* advertised, so releasing the stream is dropping this object.
|
|
3411
3411
|
*/
|
|
3412
|
-
declare class StreamValidation extends UniffiAbstractObject implements StreamValidationLike {
|
|
3412
|
+
export declare class StreamValidation extends UniffiAbstractObject implements StreamValidationLike {
|
|
3413
3413
|
readonly [uniffiTypeNameSymbol] = "StreamValidation";
|
|
3414
3414
|
readonly [destructorGuardSymbol]: UniffiGcObject;
|
|
3415
3415
|
readonly [pointerLiteralSymbol]: UniffiHandle;
|
|
@@ -3448,7 +3448,7 @@ declare class StreamValidation extends UniffiAbstractObject implements StreamVal
|
|
|
3448
3448
|
* A live-stream verifier bound to a trust configuration. Construct once with
|
|
3449
3449
|
* [`create`](Self::create), then [`open`](Self::open) a stream to feed segments to.
|
|
3450
3450
|
*/
|
|
3451
|
-
interface StreamVerifierLike {
|
|
3451
|
+
export interface StreamVerifierLike {
|
|
3452
3452
|
/**
|
|
3453
3453
|
* Open `stream_id` for validation, handing back a [`StreamValidation`] to feed
|
|
3454
3454
|
* segments to.
|
|
@@ -3473,12 +3473,12 @@ interface StreamVerifierLike {
|
|
|
3473
3473
|
/**
|
|
3474
3474
|
* @deprecated Use `StreamVerifierLike` instead.
|
|
3475
3475
|
*/
|
|
3476
|
-
type StreamVerifierInterface = StreamVerifierLike;
|
|
3476
|
+
export type StreamVerifierInterface = StreamVerifierLike;
|
|
3477
3477
|
/**
|
|
3478
3478
|
* A live-stream verifier bound to a trust configuration. Construct once with
|
|
3479
3479
|
* [`create`](Self::create), then [`open`](Self::open) a stream to feed segments to.
|
|
3480
3480
|
*/
|
|
3481
|
-
declare class StreamVerifier extends UniffiAbstractObject implements StreamVerifierLike {
|
|
3481
|
+
export declare class StreamVerifier extends UniffiAbstractObject implements StreamVerifierLike {
|
|
3482
3482
|
readonly [uniffiTypeNameSymbol] = "StreamVerifier";
|
|
3483
3483
|
readonly [destructorGuardSymbol]: UniffiGcObject;
|
|
3484
3484
|
readonly [pointerLiteralSymbol]: UniffiHandle;
|
|
@@ -4018,9 +4018,9 @@ declare const _default$1: Readonly<{
|
|
|
4018
4018
|
}>;
|
|
4019
4019
|
//#endregion
|
|
4020
4020
|
//#region ../../../../target/trylimbo/codegen/ffi-trylimbo_sdk_verifier/index.d.ts
|
|
4021
|
-
declare function uniffiInitAsync(): Promise<void>;
|
|
4021
|
+
export declare function uniffiInitAsync(): Promise<void>;
|
|
4022
4022
|
declare const _default: {
|
|
4023
4023
|
trylimbo_verifier: typeof trylimbo_verifier_d_exports;
|
|
4024
4024
|
};
|
|
4025
4025
|
//#endregion
|
|
4026
|
-
export {
|
|
4026
|
+
export { _default as default };
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"optionalDependencies": {
|
|
3
|
-
"@trylimbo/sdk-verifier-linux-arm64-gnu": "0.1.1-canary.
|
|
4
|
-
"@trylimbo/sdk-verifier-linux-x64-gnu": "0.1.1-canary.
|
|
3
|
+
"@trylimbo/sdk-verifier-linux-arm64-gnu": "0.1.1-canary.105",
|
|
4
|
+
"@trylimbo/sdk-verifier-linux-x64-gnu": "0.1.1-canary.105",
|
|
5
5
|
"@ubjs/node-linux-arm64-gnu": "0.31.0-5",
|
|
6
6
|
"@ubjs/node-linux-x64-gnu": "0.31.0-5"
|
|
7
7
|
},
|
|
8
8
|
"name": "@trylimbo/sdk-verifier",
|
|
9
|
-
"version": "0.1.1-canary.
|
|
9
|
+
"version": "0.1.1-canary.105",
|
|
10
10
|
"license": "UNLICENSED",
|
|
11
11
|
"repository": {
|
|
12
12
|
"type": "git",
|