@trylimbo/sdk-verifier 0.2.11-canary.18 → 0.2.11
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 +909 -78
- package/gen/ffi/index.js +910 -105
- package/package.json +4 -5
package/gen/ffi/index.d.ts
CHANGED
|
@@ -181,7 +181,7 @@ declare const pointerLiteralSymbol: unique symbol;
|
|
|
181
181
|
*/
|
|
182
182
|
declare const uniffiTypeNameSymbol: unique symbol;
|
|
183
183
|
declare namespace trylimbo_verifier_d_exports {
|
|
184
|
-
export { Actor, AssertionMetadata, AssetType, AssetVerification, AssetVerifier, AssetVerifierInterface, AssetVerifierLike, AssetVerifierOptions, Binder, BinderInterface, BinderLike, BinderPlugin, ByContent, ByReference, ClaimGeneratorInfo, Code, ContentBindingClass, ContentTrigger, Coordinate, CredentialOrigin, CredentialOrigin_Tags, DataSource, DeriveOptions, Detectors, Detectors_Tags, EndInclusivity, FieldViolation, FileSource, FileSourceInterface, FileSourceLike, FingerprintCheck, FingerprintCheck_Tags, FoundCredential, Frame, GoldenComparison, GoldenComparison_Tags, HardBinding, HashedUri, Ingredient, IngredientDeltaValidationResult, InitValidation, Item, Lineage, Manifest, ManifestAssertion, ManifestAssertionKind, ManifestStore, MediaValidation, MemorySource, MemorySourceInterface, MemorySourceLike, PluginRead, PluginRegistry, PluginRegistryInterface, PluginRegistryLike, Range, RangeSource, RangeSourceImpl, RangeType, Recovery, RecoveryDiscovery, RecoveryDiscovery_Tags, RecoveryIssue,
|
|
184
|
+
export { Actor, AssertionMetadata, AssetType, AssetVerification, AssetVerifier, AssetVerifierInterface, AssetVerifierLike, AssetVerifierOptions, Binder, BinderInterface, BinderLike, BinderPlugin, ByContent, ByReference, ClaimGeneratorInfo, Code, ContentBindingClass, ContentTrigger, Coordinate, CredentialOrigin, CredentialOrigin_Tags, DataSource, DeriveOptions, Detectors, Detectors_Tags, EndInclusivity, FieldViolation, FileSource, FileSourceInterface, FileSourceLike, FingerprintCheck, FingerprintCheck_Tags, FoundCredential, Frame, GoldenComparison, GoldenComparison_Tags, HardBinding, HashedUri, Ingredient, IngredientDeltaValidationResult, InitValidation, Item, Lineage, Manifest, ManifestAssertion, ManifestAssertionKind, ManifestStore, MediaValidation, MemorySource, MemorySourceInterface, MemorySourceLike, PluginRead, PluginRegistry, PluginRegistryInterface, PluginRegistryLike, Range, RangeSource, RangeSourceImpl, RangeType, Recovery, RecoveryDiscovery, RecoveryDiscovery_Tags, RecoveryIssue, RecoveryIssue_Tags, RecoveryPolicy, RecoveryStatus, RecoverySummary, Region, RegionOfInterest, RegistryOptions, Relationship, ResourceRef, ReviewRating, Role, SdkError, SdkError_Tags, SegmentTiming, SegmentValidation, SegmentValidation_Tags, SessionKeySummary, Shape, ShapeType, SignatureInfo, SigningAlgSchema, SimilarityScore, SoftBinding, StatusCodes, StreamValidation, StreamValidationInterface, StreamValidationLike, StreamVerifier, StreamVerifierInterface, StreamVerifierLike, StreamVerifierOptions, Text, TextSelector, TextSelectorRange, Time, TimeType, UnitType, UriOrResource, UriOrResource_Tags, ValidationCode, ValidationCodeKind, ValidationResults, ValidationState, ValidationStatus, Value, Verdict, VerdictRule, Verdict_Tags, VerifyOptions, c2paTrustList, c2paTsaTrustList, _default$1 as default, devCa, parse, resource, thumbnails };
|
|
185
185
|
}
|
|
186
186
|
/**
|
|
187
187
|
* Official C2PA Conformance Program signing-CA trust anchors (a compile-time
|
|
@@ -1989,73 +1989,570 @@ export declare enum RecoveryStatus {
|
|
|
1989
1989
|
*/
|
|
1990
1990
|
Incomplete = 3
|
|
1991
1991
|
}
|
|
1992
|
+
export declare enum RecoveryIssue_Tags {
|
|
1993
|
+
Binder = "Binder",
|
|
1994
|
+
DeprecatedAlgorithm = "DeprecatedAlgorithm",
|
|
1995
|
+
BindingQuery = "BindingQuery",
|
|
1996
|
+
QueryRefused = "QueryRefused",
|
|
1997
|
+
ContentForm = "ContentForm",
|
|
1998
|
+
ContentQuery = "ContentQuery",
|
|
1999
|
+
Capabilities = "Capabilities",
|
|
2000
|
+
ContentTooLarge = "ContentTooLarge",
|
|
2001
|
+
CandidateFetch = "CandidateFetch",
|
|
2002
|
+
CandidateValidation = "CandidateValidation",
|
|
2003
|
+
EndpointRefused = "EndpointRefused",
|
|
2004
|
+
ResourceLimit = "ResourceLimit"
|
|
2005
|
+
}
|
|
2006
|
+
/**
|
|
2007
|
+
* Why registry recovery did not complete cleanly, or why one candidate was omitted while another
|
|
2008
|
+
* succeeded. Kept as data so a partial recovery never loses the rest of the lookup outcome, and
|
|
2009
|
+
* each kind carries exactly what it is about.
|
|
2010
|
+
*/
|
|
2011
|
+
export declare const RecoveryIssue: Readonly<{
|
|
2012
|
+
instanceOf: (obj: any) => obj is RecoveryIssue;
|
|
2013
|
+
Binder: {
|
|
2014
|
+
new (inner: {
|
|
2015
|
+
binderIndex: number;
|
|
2016
|
+
message: string;
|
|
2017
|
+
}): {
|
|
2018
|
+
/**
|
|
2019
|
+
* @private
|
|
2020
|
+
* This field is private and should not be used, use `tag` instead.
|
|
2021
|
+
*/
|
|
2022
|
+
readonly [uniffiTypeNameSymbol]: "RecoveryIssue";
|
|
2023
|
+
readonly tag: RecoveryIssue_Tags.Binder;
|
|
2024
|
+
readonly inner: Readonly<{
|
|
2025
|
+
binderIndex: number;
|
|
2026
|
+
message: string;
|
|
2027
|
+
}>;
|
|
2028
|
+
};
|
|
2029
|
+
"new"(inner: {
|
|
2030
|
+
binderIndex: number;
|
|
2031
|
+
message: string;
|
|
2032
|
+
}): {
|
|
2033
|
+
/**
|
|
2034
|
+
* @private
|
|
2035
|
+
* This field is private and should not be used, use `tag` instead.
|
|
2036
|
+
*/
|
|
2037
|
+
readonly [uniffiTypeNameSymbol]: "RecoveryIssue";
|
|
2038
|
+
readonly tag: RecoveryIssue_Tags.Binder;
|
|
2039
|
+
readonly inner: Readonly<{
|
|
2040
|
+
binderIndex: number;
|
|
2041
|
+
message: string;
|
|
2042
|
+
}>;
|
|
2043
|
+
};
|
|
2044
|
+
instanceOf(obj: any): obj is {
|
|
2045
|
+
/**
|
|
2046
|
+
* @private
|
|
2047
|
+
* This field is private and should not be used, use `tag` instead.
|
|
2048
|
+
*/
|
|
2049
|
+
readonly [uniffiTypeNameSymbol]: "RecoveryIssue";
|
|
2050
|
+
readonly tag: RecoveryIssue_Tags.Binder;
|
|
2051
|
+
readonly inner: Readonly<{
|
|
2052
|
+
binderIndex: number;
|
|
2053
|
+
message: string;
|
|
2054
|
+
}>;
|
|
2055
|
+
};
|
|
2056
|
+
};
|
|
2057
|
+
DeprecatedAlgorithm: {
|
|
2058
|
+
new (inner: {
|
|
2059
|
+
algorithm: string;
|
|
2060
|
+
}): {
|
|
2061
|
+
/**
|
|
2062
|
+
* @private
|
|
2063
|
+
* This field is private and should not be used, use `tag` instead.
|
|
2064
|
+
*/
|
|
2065
|
+
readonly [uniffiTypeNameSymbol]: "RecoveryIssue";
|
|
2066
|
+
readonly tag: RecoveryIssue_Tags.DeprecatedAlgorithm;
|
|
2067
|
+
readonly inner: Readonly<{
|
|
2068
|
+
algorithm: string;
|
|
2069
|
+
}>;
|
|
2070
|
+
};
|
|
2071
|
+
"new"(inner: {
|
|
2072
|
+
algorithm: string;
|
|
2073
|
+
}): {
|
|
2074
|
+
/**
|
|
2075
|
+
* @private
|
|
2076
|
+
* This field is private and should not be used, use `tag` instead.
|
|
2077
|
+
*/
|
|
2078
|
+
readonly [uniffiTypeNameSymbol]: "RecoveryIssue";
|
|
2079
|
+
readonly tag: RecoveryIssue_Tags.DeprecatedAlgorithm;
|
|
2080
|
+
readonly inner: Readonly<{
|
|
2081
|
+
algorithm: string;
|
|
2082
|
+
}>;
|
|
2083
|
+
};
|
|
2084
|
+
instanceOf(obj: any): obj is {
|
|
2085
|
+
/**
|
|
2086
|
+
* @private
|
|
2087
|
+
* This field is private and should not be used, use `tag` instead.
|
|
2088
|
+
*/
|
|
2089
|
+
readonly [uniffiTypeNameSymbol]: "RecoveryIssue";
|
|
2090
|
+
readonly tag: RecoveryIssue_Tags.DeprecatedAlgorithm;
|
|
2091
|
+
readonly inner: Readonly<{
|
|
2092
|
+
algorithm: string;
|
|
2093
|
+
}>;
|
|
2094
|
+
};
|
|
2095
|
+
};
|
|
2096
|
+
BindingQuery: {
|
|
2097
|
+
new (inner: {
|
|
2098
|
+
binderIndex: number;
|
|
2099
|
+
algorithm: string;
|
|
2100
|
+
message: string;
|
|
2101
|
+
}): {
|
|
2102
|
+
/**
|
|
2103
|
+
* @private
|
|
2104
|
+
* This field is private and should not be used, use `tag` instead.
|
|
2105
|
+
*/
|
|
2106
|
+
readonly [uniffiTypeNameSymbol]: "RecoveryIssue";
|
|
2107
|
+
readonly tag: RecoveryIssue_Tags.BindingQuery;
|
|
2108
|
+
readonly inner: Readonly<{
|
|
2109
|
+
binderIndex: number;
|
|
2110
|
+
algorithm: string;
|
|
2111
|
+
message: string;
|
|
2112
|
+
}>;
|
|
2113
|
+
};
|
|
2114
|
+
"new"(inner: {
|
|
2115
|
+
binderIndex: number;
|
|
2116
|
+
algorithm: string;
|
|
2117
|
+
message: string;
|
|
2118
|
+
}): {
|
|
2119
|
+
/**
|
|
2120
|
+
* @private
|
|
2121
|
+
* This field is private and should not be used, use `tag` instead.
|
|
2122
|
+
*/
|
|
2123
|
+
readonly [uniffiTypeNameSymbol]: "RecoveryIssue";
|
|
2124
|
+
readonly tag: RecoveryIssue_Tags.BindingQuery;
|
|
2125
|
+
readonly inner: Readonly<{
|
|
2126
|
+
binderIndex: number;
|
|
2127
|
+
algorithm: string;
|
|
2128
|
+
message: string;
|
|
2129
|
+
}>;
|
|
2130
|
+
};
|
|
2131
|
+
instanceOf(obj: any): obj is {
|
|
2132
|
+
/**
|
|
2133
|
+
* @private
|
|
2134
|
+
* This field is private and should not be used, use `tag` instead.
|
|
2135
|
+
*/
|
|
2136
|
+
readonly [uniffiTypeNameSymbol]: "RecoveryIssue";
|
|
2137
|
+
readonly tag: RecoveryIssue_Tags.BindingQuery;
|
|
2138
|
+
readonly inner: Readonly<{
|
|
2139
|
+
binderIndex: number;
|
|
2140
|
+
algorithm: string;
|
|
2141
|
+
message: string;
|
|
2142
|
+
}>;
|
|
2143
|
+
};
|
|
2144
|
+
};
|
|
2145
|
+
QueryRefused: {
|
|
2146
|
+
new (inner: {
|
|
2147
|
+
algorithm: string;
|
|
2148
|
+
message: string;
|
|
2149
|
+
}): {
|
|
2150
|
+
/**
|
|
2151
|
+
* @private
|
|
2152
|
+
* This field is private and should not be used, use `tag` instead.
|
|
2153
|
+
*/
|
|
2154
|
+
readonly [uniffiTypeNameSymbol]: "RecoveryIssue";
|
|
2155
|
+
readonly tag: RecoveryIssue_Tags.QueryRefused;
|
|
2156
|
+
readonly inner: Readonly<{
|
|
2157
|
+
algorithm: string;
|
|
2158
|
+
message: string;
|
|
2159
|
+
}>;
|
|
2160
|
+
};
|
|
2161
|
+
"new"(inner: {
|
|
2162
|
+
algorithm: string;
|
|
2163
|
+
message: string;
|
|
2164
|
+
}): {
|
|
2165
|
+
/**
|
|
2166
|
+
* @private
|
|
2167
|
+
* This field is private and should not be used, use `tag` instead.
|
|
2168
|
+
*/
|
|
2169
|
+
readonly [uniffiTypeNameSymbol]: "RecoveryIssue";
|
|
2170
|
+
readonly tag: RecoveryIssue_Tags.QueryRefused;
|
|
2171
|
+
readonly inner: Readonly<{
|
|
2172
|
+
algorithm: string;
|
|
2173
|
+
message: string;
|
|
2174
|
+
}>;
|
|
2175
|
+
};
|
|
2176
|
+
instanceOf(obj: any): obj is {
|
|
2177
|
+
/**
|
|
2178
|
+
* @private
|
|
2179
|
+
* This field is private and should not be used, use `tag` instead.
|
|
2180
|
+
*/
|
|
2181
|
+
readonly [uniffiTypeNameSymbol]: "RecoveryIssue";
|
|
2182
|
+
readonly tag: RecoveryIssue_Tags.QueryRefused;
|
|
2183
|
+
readonly inner: Readonly<{
|
|
2184
|
+
algorithm: string;
|
|
2185
|
+
message: string;
|
|
2186
|
+
}>;
|
|
2187
|
+
};
|
|
2188
|
+
};
|
|
2189
|
+
ContentForm: {
|
|
2190
|
+
new (inner: {
|
|
2191
|
+
message: string;
|
|
2192
|
+
}): {
|
|
2193
|
+
/**
|
|
2194
|
+
* @private
|
|
2195
|
+
* This field is private and should not be used, use `tag` instead.
|
|
2196
|
+
*/
|
|
2197
|
+
readonly [uniffiTypeNameSymbol]: "RecoveryIssue";
|
|
2198
|
+
readonly tag: RecoveryIssue_Tags.ContentForm;
|
|
2199
|
+
readonly inner: Readonly<{
|
|
2200
|
+
message: string;
|
|
2201
|
+
}>;
|
|
2202
|
+
};
|
|
2203
|
+
"new"(inner: {
|
|
2204
|
+
message: string;
|
|
2205
|
+
}): {
|
|
2206
|
+
/**
|
|
2207
|
+
* @private
|
|
2208
|
+
* This field is private and should not be used, use `tag` instead.
|
|
2209
|
+
*/
|
|
2210
|
+
readonly [uniffiTypeNameSymbol]: "RecoveryIssue";
|
|
2211
|
+
readonly tag: RecoveryIssue_Tags.ContentForm;
|
|
2212
|
+
readonly inner: Readonly<{
|
|
2213
|
+
message: string;
|
|
2214
|
+
}>;
|
|
2215
|
+
};
|
|
2216
|
+
instanceOf(obj: any): obj is {
|
|
2217
|
+
/**
|
|
2218
|
+
* @private
|
|
2219
|
+
* This field is private and should not be used, use `tag` instead.
|
|
2220
|
+
*/
|
|
2221
|
+
readonly [uniffiTypeNameSymbol]: "RecoveryIssue";
|
|
2222
|
+
readonly tag: RecoveryIssue_Tags.ContentForm;
|
|
2223
|
+
readonly inner: Readonly<{
|
|
2224
|
+
message: string;
|
|
2225
|
+
}>;
|
|
2226
|
+
};
|
|
2227
|
+
};
|
|
2228
|
+
ContentQuery: {
|
|
2229
|
+
new (inner: {
|
|
2230
|
+
algorithm: string;
|
|
2231
|
+
message: string;
|
|
2232
|
+
}): {
|
|
2233
|
+
/**
|
|
2234
|
+
* @private
|
|
2235
|
+
* This field is private and should not be used, use `tag` instead.
|
|
2236
|
+
*/
|
|
2237
|
+
readonly [uniffiTypeNameSymbol]: "RecoveryIssue";
|
|
2238
|
+
readonly tag: RecoveryIssue_Tags.ContentQuery;
|
|
2239
|
+
readonly inner: Readonly<{
|
|
2240
|
+
algorithm: string;
|
|
2241
|
+
message: string;
|
|
2242
|
+
}>;
|
|
2243
|
+
};
|
|
2244
|
+
"new"(inner: {
|
|
2245
|
+
algorithm: string;
|
|
2246
|
+
message: string;
|
|
2247
|
+
}): {
|
|
2248
|
+
/**
|
|
2249
|
+
* @private
|
|
2250
|
+
* This field is private and should not be used, use `tag` instead.
|
|
2251
|
+
*/
|
|
2252
|
+
readonly [uniffiTypeNameSymbol]: "RecoveryIssue";
|
|
2253
|
+
readonly tag: RecoveryIssue_Tags.ContentQuery;
|
|
2254
|
+
readonly inner: Readonly<{
|
|
2255
|
+
algorithm: string;
|
|
2256
|
+
message: string;
|
|
2257
|
+
}>;
|
|
2258
|
+
};
|
|
2259
|
+
instanceOf(obj: any): obj is {
|
|
2260
|
+
/**
|
|
2261
|
+
* @private
|
|
2262
|
+
* This field is private and should not be used, use `tag` instead.
|
|
2263
|
+
*/
|
|
2264
|
+
readonly [uniffiTypeNameSymbol]: "RecoveryIssue";
|
|
2265
|
+
readonly tag: RecoveryIssue_Tags.ContentQuery;
|
|
2266
|
+
readonly inner: Readonly<{
|
|
2267
|
+
algorithm: string;
|
|
2268
|
+
message: string;
|
|
2269
|
+
}>;
|
|
2270
|
+
};
|
|
2271
|
+
};
|
|
2272
|
+
Capabilities: {
|
|
2273
|
+
new (inner: {
|
|
2274
|
+
message: string;
|
|
2275
|
+
}): {
|
|
2276
|
+
/**
|
|
2277
|
+
* @private
|
|
2278
|
+
* This field is private and should not be used, use `tag` instead.
|
|
2279
|
+
*/
|
|
2280
|
+
readonly [uniffiTypeNameSymbol]: "RecoveryIssue";
|
|
2281
|
+
readonly tag: RecoveryIssue_Tags.Capabilities;
|
|
2282
|
+
readonly inner: Readonly<{
|
|
2283
|
+
message: string;
|
|
2284
|
+
}>;
|
|
2285
|
+
};
|
|
2286
|
+
"new"(inner: {
|
|
2287
|
+
message: string;
|
|
2288
|
+
}): {
|
|
2289
|
+
/**
|
|
2290
|
+
* @private
|
|
2291
|
+
* This field is private and should not be used, use `tag` instead.
|
|
2292
|
+
*/
|
|
2293
|
+
readonly [uniffiTypeNameSymbol]: "RecoveryIssue";
|
|
2294
|
+
readonly tag: RecoveryIssue_Tags.Capabilities;
|
|
2295
|
+
readonly inner: Readonly<{
|
|
2296
|
+
message: string;
|
|
2297
|
+
}>;
|
|
2298
|
+
};
|
|
2299
|
+
instanceOf(obj: any): obj is {
|
|
2300
|
+
/**
|
|
2301
|
+
* @private
|
|
2302
|
+
* This field is private and should not be used, use `tag` instead.
|
|
2303
|
+
*/
|
|
2304
|
+
readonly [uniffiTypeNameSymbol]: "RecoveryIssue";
|
|
2305
|
+
readonly tag: RecoveryIssue_Tags.Capabilities;
|
|
2306
|
+
readonly inner: Readonly<{
|
|
2307
|
+
message: string;
|
|
2308
|
+
}>;
|
|
2309
|
+
};
|
|
2310
|
+
};
|
|
2311
|
+
ContentTooLarge: {
|
|
2312
|
+
new (inner: {
|
|
2313
|
+
capBytes: bigint;
|
|
2314
|
+
}): {
|
|
2315
|
+
/**
|
|
2316
|
+
* @private
|
|
2317
|
+
* This field is private and should not be used, use `tag` instead.
|
|
2318
|
+
*/
|
|
2319
|
+
readonly [uniffiTypeNameSymbol]: "RecoveryIssue";
|
|
2320
|
+
readonly tag: RecoveryIssue_Tags.ContentTooLarge;
|
|
2321
|
+
readonly inner: Readonly<{
|
|
2322
|
+
capBytes: bigint;
|
|
2323
|
+
}>;
|
|
2324
|
+
};
|
|
2325
|
+
"new"(inner: {
|
|
2326
|
+
capBytes: bigint;
|
|
2327
|
+
}): {
|
|
2328
|
+
/**
|
|
2329
|
+
* @private
|
|
2330
|
+
* This field is private and should not be used, use `tag` instead.
|
|
2331
|
+
*/
|
|
2332
|
+
readonly [uniffiTypeNameSymbol]: "RecoveryIssue";
|
|
2333
|
+
readonly tag: RecoveryIssue_Tags.ContentTooLarge;
|
|
2334
|
+
readonly inner: Readonly<{
|
|
2335
|
+
capBytes: bigint;
|
|
2336
|
+
}>;
|
|
2337
|
+
};
|
|
2338
|
+
instanceOf(obj: any): obj is {
|
|
2339
|
+
/**
|
|
2340
|
+
* @private
|
|
2341
|
+
* This field is private and should not be used, use `tag` instead.
|
|
2342
|
+
*/
|
|
2343
|
+
readonly [uniffiTypeNameSymbol]: "RecoveryIssue";
|
|
2344
|
+
readonly tag: RecoveryIssue_Tags.ContentTooLarge;
|
|
2345
|
+
readonly inner: Readonly<{
|
|
2346
|
+
capBytes: bigint;
|
|
2347
|
+
}>;
|
|
2348
|
+
};
|
|
2349
|
+
};
|
|
2350
|
+
CandidateFetch: {
|
|
2351
|
+
new (inner: {
|
|
2352
|
+
manifestId: string;
|
|
2353
|
+
message: string;
|
|
2354
|
+
}): {
|
|
2355
|
+
/**
|
|
2356
|
+
* @private
|
|
2357
|
+
* This field is private and should not be used, use `tag` instead.
|
|
2358
|
+
*/
|
|
2359
|
+
readonly [uniffiTypeNameSymbol]: "RecoveryIssue";
|
|
2360
|
+
readonly tag: RecoveryIssue_Tags.CandidateFetch;
|
|
2361
|
+
readonly inner: Readonly<{
|
|
2362
|
+
manifestId: string;
|
|
2363
|
+
message: string;
|
|
2364
|
+
}>;
|
|
2365
|
+
};
|
|
2366
|
+
"new"(inner: {
|
|
2367
|
+
manifestId: string;
|
|
2368
|
+
message: string;
|
|
2369
|
+
}): {
|
|
2370
|
+
/**
|
|
2371
|
+
* @private
|
|
2372
|
+
* This field is private and should not be used, use `tag` instead.
|
|
2373
|
+
*/
|
|
2374
|
+
readonly [uniffiTypeNameSymbol]: "RecoveryIssue";
|
|
2375
|
+
readonly tag: RecoveryIssue_Tags.CandidateFetch;
|
|
2376
|
+
readonly inner: Readonly<{
|
|
2377
|
+
manifestId: string;
|
|
2378
|
+
message: string;
|
|
2379
|
+
}>;
|
|
2380
|
+
};
|
|
2381
|
+
instanceOf(obj: any): obj is {
|
|
2382
|
+
/**
|
|
2383
|
+
* @private
|
|
2384
|
+
* This field is private and should not be used, use `tag` instead.
|
|
2385
|
+
*/
|
|
2386
|
+
readonly [uniffiTypeNameSymbol]: "RecoveryIssue";
|
|
2387
|
+
readonly tag: RecoveryIssue_Tags.CandidateFetch;
|
|
2388
|
+
readonly inner: Readonly<{
|
|
2389
|
+
manifestId: string;
|
|
2390
|
+
message: string;
|
|
2391
|
+
}>;
|
|
2392
|
+
};
|
|
2393
|
+
};
|
|
2394
|
+
CandidateValidation: {
|
|
2395
|
+
new (inner: {
|
|
2396
|
+
manifestId: string;
|
|
2397
|
+
reason: string;
|
|
2398
|
+
}): {
|
|
2399
|
+
/**
|
|
2400
|
+
* @private
|
|
2401
|
+
* This field is private and should not be used, use `tag` instead.
|
|
2402
|
+
*/
|
|
2403
|
+
readonly [uniffiTypeNameSymbol]: "RecoveryIssue";
|
|
2404
|
+
readonly tag: RecoveryIssue_Tags.CandidateValidation;
|
|
2405
|
+
readonly inner: Readonly<{
|
|
2406
|
+
manifestId: string;
|
|
2407
|
+
reason: string;
|
|
2408
|
+
}>;
|
|
2409
|
+
};
|
|
2410
|
+
"new"(inner: {
|
|
2411
|
+
manifestId: string;
|
|
2412
|
+
reason: string;
|
|
2413
|
+
}): {
|
|
2414
|
+
/**
|
|
2415
|
+
* @private
|
|
2416
|
+
* This field is private and should not be used, use `tag` instead.
|
|
2417
|
+
*/
|
|
2418
|
+
readonly [uniffiTypeNameSymbol]: "RecoveryIssue";
|
|
2419
|
+
readonly tag: RecoveryIssue_Tags.CandidateValidation;
|
|
2420
|
+
readonly inner: Readonly<{
|
|
2421
|
+
manifestId: string;
|
|
2422
|
+
reason: string;
|
|
2423
|
+
}>;
|
|
2424
|
+
};
|
|
2425
|
+
instanceOf(obj: any): obj is {
|
|
2426
|
+
/**
|
|
2427
|
+
* @private
|
|
2428
|
+
* This field is private and should not be used, use `tag` instead.
|
|
2429
|
+
*/
|
|
2430
|
+
readonly [uniffiTypeNameSymbol]: "RecoveryIssue";
|
|
2431
|
+
readonly tag: RecoveryIssue_Tags.CandidateValidation;
|
|
2432
|
+
readonly inner: Readonly<{
|
|
2433
|
+
manifestId: string;
|
|
2434
|
+
reason: string;
|
|
2435
|
+
}>;
|
|
2436
|
+
};
|
|
2437
|
+
};
|
|
2438
|
+
EndpointRefused: {
|
|
2439
|
+
new (inner: {
|
|
2440
|
+
manifestId: string;
|
|
2441
|
+
endpoint: string;
|
|
2442
|
+
}): {
|
|
2443
|
+
/**
|
|
2444
|
+
* @private
|
|
2445
|
+
* This field is private and should not be used, use `tag` instead.
|
|
2446
|
+
*/
|
|
2447
|
+
readonly [uniffiTypeNameSymbol]: "RecoveryIssue";
|
|
2448
|
+
readonly tag: RecoveryIssue_Tags.EndpointRefused;
|
|
2449
|
+
readonly inner: Readonly<{
|
|
2450
|
+
manifestId: string;
|
|
2451
|
+
endpoint: string;
|
|
2452
|
+
}>;
|
|
2453
|
+
};
|
|
2454
|
+
"new"(inner: {
|
|
2455
|
+
manifestId: string;
|
|
2456
|
+
endpoint: string;
|
|
2457
|
+
}): {
|
|
2458
|
+
/**
|
|
2459
|
+
* @private
|
|
2460
|
+
* This field is private and should not be used, use `tag` instead.
|
|
2461
|
+
*/
|
|
2462
|
+
readonly [uniffiTypeNameSymbol]: "RecoveryIssue";
|
|
2463
|
+
readonly tag: RecoveryIssue_Tags.EndpointRefused;
|
|
2464
|
+
readonly inner: Readonly<{
|
|
2465
|
+
manifestId: string;
|
|
2466
|
+
endpoint: string;
|
|
2467
|
+
}>;
|
|
2468
|
+
};
|
|
2469
|
+
instanceOf(obj: any): obj is {
|
|
2470
|
+
/**
|
|
2471
|
+
* @private
|
|
2472
|
+
* This field is private and should not be used, use `tag` instead.
|
|
2473
|
+
*/
|
|
2474
|
+
readonly [uniffiTypeNameSymbol]: "RecoveryIssue";
|
|
2475
|
+
readonly tag: RecoveryIssue_Tags.EndpointRefused;
|
|
2476
|
+
readonly inner: Readonly<{
|
|
2477
|
+
manifestId: string;
|
|
2478
|
+
endpoint: string;
|
|
2479
|
+
}>;
|
|
2480
|
+
};
|
|
2481
|
+
};
|
|
2482
|
+
ResourceLimit: {
|
|
2483
|
+
new (inner: {
|
|
2484
|
+
message: string;
|
|
2485
|
+
}): {
|
|
2486
|
+
/**
|
|
2487
|
+
* @private
|
|
2488
|
+
* This field is private and should not be used, use `tag` instead.
|
|
2489
|
+
*/
|
|
2490
|
+
readonly [uniffiTypeNameSymbol]: "RecoveryIssue";
|
|
2491
|
+
readonly tag: RecoveryIssue_Tags.ResourceLimit;
|
|
2492
|
+
readonly inner: Readonly<{
|
|
2493
|
+
message: string;
|
|
2494
|
+
}>;
|
|
2495
|
+
};
|
|
2496
|
+
"new"(inner: {
|
|
2497
|
+
message: string;
|
|
2498
|
+
}): {
|
|
2499
|
+
/**
|
|
2500
|
+
* @private
|
|
2501
|
+
* This field is private and should not be used, use `tag` instead.
|
|
2502
|
+
*/
|
|
2503
|
+
readonly [uniffiTypeNameSymbol]: "RecoveryIssue";
|
|
2504
|
+
readonly tag: RecoveryIssue_Tags.ResourceLimit;
|
|
2505
|
+
readonly inner: Readonly<{
|
|
2506
|
+
message: string;
|
|
2507
|
+
}>;
|
|
2508
|
+
};
|
|
2509
|
+
instanceOf(obj: any): obj is {
|
|
2510
|
+
/**
|
|
2511
|
+
* @private
|
|
2512
|
+
* This field is private and should not be used, use `tag` instead.
|
|
2513
|
+
*/
|
|
2514
|
+
readonly [uniffiTypeNameSymbol]: "RecoveryIssue";
|
|
2515
|
+
readonly tag: RecoveryIssue_Tags.ResourceLimit;
|
|
2516
|
+
readonly inner: Readonly<{
|
|
2517
|
+
message: string;
|
|
2518
|
+
}>;
|
|
2519
|
+
};
|
|
2520
|
+
};
|
|
2521
|
+
}>;
|
|
1992
2522
|
/**
|
|
1993
2523
|
* Why registry recovery did not complete cleanly, or why one candidate was omitted while another
|
|
1994
|
-
* succeeded. Kept as data so a partial recovery never loses the rest of the lookup outcome
|
|
1995
|
-
|
|
1996
|
-
export declare enum RecoveryIssueKind {
|
|
1997
|
-
Binder = 0,
|
|
1998
|
-
BindingQuery = 1,
|
|
1999
|
-
QueryRefused = 2,
|
|
2000
|
-
ContentQuery = 3,
|
|
2001
|
-
Capabilities = 4,
|
|
2002
|
-
ContentTooLarge = 5,
|
|
2003
|
-
CandidateFetch = 6,
|
|
2004
|
-
CandidateValidation = 7,
|
|
2005
|
-
ResourceLimit = 8,
|
|
2006
|
-
/**
|
|
2007
|
-
* A match named a resolution API this verifier was not configured to fetch from.
|
|
2008
|
-
*/
|
|
2009
|
-
EndpointRefused = 9
|
|
2010
|
-
}
|
|
2011
|
-
/**
|
|
2012
|
-
* One non-fatal recovery problem. `manifest_id` is present only for a returned candidate.
|
|
2013
|
-
*/
|
|
2014
|
-
export type RecoveryIssue = {
|
|
2015
|
-
kind: RecoveryIssueKind;
|
|
2016
|
-
manifestId?: string;
|
|
2017
|
-
message: string;
|
|
2018
|
-
};
|
|
2019
|
-
/**
|
|
2020
|
-
* Generated factory for {@link RecoveryIssue} record objects.
|
|
2524
|
+
* succeeded. Kept as data so a partial recovery never loses the rest of the lookup outcome, and
|
|
2525
|
+
* each kind carries exactly what it is about.
|
|
2021
2526
|
*/
|
|
2022
|
-
export
|
|
2023
|
-
create: (partial: Partial<RecoveryIssue> & Required<Omit<RecoveryIssue, "manifestId">>) => RecoveryIssue;
|
|
2024
|
-
new: (partial: Partial<RecoveryIssue> & Required<Omit<RecoveryIssue, "manifestId">>) => RecoveryIssue;
|
|
2025
|
-
defaults: () => Partial<RecoveryIssue>;
|
|
2026
|
-
}>;
|
|
2527
|
+
export type RecoveryIssue = InstanceType<typeof RecoveryIssue['Binder' | 'DeprecatedAlgorithm' | 'BindingQuery' | 'QueryRefused' | 'ContentForm' | 'ContentQuery' | 'Capabilities' | 'ContentTooLarge' | 'CandidateFetch' | 'CandidateValidation' | 'EndpointRefused' | 'ResourceLimit']>;
|
|
2027
2528
|
/**
|
|
2028
|
-
* Registry recovery outcome
|
|
2029
|
-
* non-fatal issue encountered on the way.
|
|
2529
|
+
* Registry recovery outcome and every non-fatal issue encountered on the way.
|
|
2030
2530
|
*/
|
|
2031
2531
|
export type RecoverySummary = {
|
|
2032
2532
|
status: RecoveryStatus;
|
|
2033
|
-
/**
|
|
2034
|
-
* Index into [`AssetVerification::credentials`]. Present only when recovery produced one
|
|
2035
|
-
* candidate, or a golden comparison found the embedded active manifest exactly. Multiple
|
|
2036
|
-
* soft-binding matches otherwise remain a list without an SDK-selected verdict.
|
|
2037
|
-
*/
|
|
2038
|
-
bestCredentialIndex?: number;
|
|
2039
2533
|
issues: Array<RecoveryIssue>;
|
|
2040
2534
|
};
|
|
2041
2535
|
/**
|
|
2042
2536
|
* Generated factory for {@link RecoverySummary} record objects.
|
|
2043
2537
|
*/
|
|
2044
2538
|
export declare const RecoverySummary: Readonly<{
|
|
2045
|
-
create: (partial: Partial<RecoverySummary> & Required<Omit<RecoverySummary,
|
|
2046
|
-
new: (partial: Partial<RecoverySummary> & Required<Omit<RecoverySummary,
|
|
2539
|
+
create: (partial: Partial<RecoverySummary> & Required<Omit<RecoverySummary, never>>) => RecoverySummary;
|
|
2540
|
+
new: (partial: Partial<RecoverySummary> & Required<Omit<RecoverySummary, never>>) => RecoverySummary;
|
|
2047
2541
|
defaults: () => Partial<RecoverySummary>;
|
|
2048
2542
|
}>;
|
|
2049
2543
|
export declare enum GoldenComparison_Tags {
|
|
2050
2544
|
NotRequested = "NotRequested",
|
|
2051
2545
|
NoEmbeddedManifest = "NoEmbeddedManifest",
|
|
2052
2546
|
NoRecoveredManifest = "NoRecoveredManifest",
|
|
2547
|
+
RecoveryIncomplete = "RecoveryIncomplete",
|
|
2053
2548
|
Matches = "Matches",
|
|
2054
2549
|
Differs = "Differs",
|
|
2055
|
-
|
|
2550
|
+
NoneMatches = "NoneMatches",
|
|
2551
|
+
Unreadable = "Unreadable"
|
|
2056
2552
|
}
|
|
2057
2553
|
/**
|
|
2058
|
-
* Typed completion of C2PA 2.4's `watermark-golden` / `fingerprint-golden` final comparison
|
|
2554
|
+
* Typed completion of C2PA 2.4's `watermark-golden` / `fingerprint-golden` final comparison:
|
|
2555
|
+
* the local active manifest against what the registry holds. Every outcome is its own variant.
|
|
2059
2556
|
*/
|
|
2060
2557
|
export declare const GoldenComparison: Readonly<{
|
|
2061
2558
|
instanceOf: (obj: any) => obj is GoldenComparison;
|
|
@@ -2137,6 +2634,32 @@ export declare const GoldenComparison: Readonly<{
|
|
|
2137
2634
|
readonly tag: GoldenComparison_Tags.NoRecoveredManifest;
|
|
2138
2635
|
};
|
|
2139
2636
|
};
|
|
2637
|
+
RecoveryIncomplete: {
|
|
2638
|
+
new (): {
|
|
2639
|
+
/**
|
|
2640
|
+
* @private
|
|
2641
|
+
* This field is private and should not be used, use `tag` instead.
|
|
2642
|
+
*/
|
|
2643
|
+
readonly [uniffiTypeNameSymbol]: "GoldenComparison";
|
|
2644
|
+
readonly tag: GoldenComparison_Tags.RecoveryIncomplete;
|
|
2645
|
+
};
|
|
2646
|
+
"new"(): {
|
|
2647
|
+
/**
|
|
2648
|
+
* @private
|
|
2649
|
+
* This field is private and should not be used, use `tag` instead.
|
|
2650
|
+
*/
|
|
2651
|
+
readonly [uniffiTypeNameSymbol]: "GoldenComparison";
|
|
2652
|
+
readonly tag: GoldenComparison_Tags.RecoveryIncomplete;
|
|
2653
|
+
};
|
|
2654
|
+
instanceOf(obj: any): obj is {
|
|
2655
|
+
/**
|
|
2656
|
+
* @private
|
|
2657
|
+
* This field is private and should not be used, use `tag` instead.
|
|
2658
|
+
*/
|
|
2659
|
+
readonly [uniffiTypeNameSymbol]: "GoldenComparison";
|
|
2660
|
+
readonly tag: GoldenComparison_Tags.RecoveryIncomplete;
|
|
2661
|
+
};
|
|
2662
|
+
};
|
|
2140
2663
|
Matches: {
|
|
2141
2664
|
new (inner: {
|
|
2142
2665
|
recoveredIndex: number;
|
|
@@ -2215,35 +2738,70 @@ export declare const GoldenComparison: Readonly<{
|
|
|
2215
2738
|
}>;
|
|
2216
2739
|
};
|
|
2217
2740
|
};
|
|
2218
|
-
|
|
2741
|
+
NoneMatches: {
|
|
2219
2742
|
new (inner: {
|
|
2220
|
-
|
|
2743
|
+
candidates: Array<number>;
|
|
2221
2744
|
}): {
|
|
2222
2745
|
/**
|
|
2223
2746
|
* @private
|
|
2224
2747
|
* This field is private and should not be used, use `tag` instead.
|
|
2225
2748
|
*/
|
|
2226
2749
|
readonly [uniffiTypeNameSymbol]: "GoldenComparison";
|
|
2227
|
-
readonly tag: GoldenComparison_Tags.
|
|
2750
|
+
readonly tag: GoldenComparison_Tags.NoneMatches;
|
|
2228
2751
|
readonly inner: Readonly<{
|
|
2229
|
-
|
|
2752
|
+
candidates: Array<number>;
|
|
2230
2753
|
}>;
|
|
2231
2754
|
};
|
|
2232
|
-
new
|
|
2233
|
-
|
|
2234
|
-
}
|
|
2235
|
-
|
|
2236
|
-
|
|
2237
|
-
|
|
2238
|
-
|
|
2755
|
+
"new"(inner: {
|
|
2756
|
+
candidates: Array<number>;
|
|
2757
|
+
}): {
|
|
2758
|
+
/**
|
|
2759
|
+
* @private
|
|
2760
|
+
* This field is private and should not be used, use `tag` instead.
|
|
2761
|
+
*/
|
|
2762
|
+
readonly [uniffiTypeNameSymbol]: "GoldenComparison";
|
|
2763
|
+
readonly tag: GoldenComparison_Tags.NoneMatches;
|
|
2764
|
+
readonly inner: Readonly<{
|
|
2765
|
+
candidates: Array<number>;
|
|
2766
|
+
}>;
|
|
2767
|
+
};
|
|
2768
|
+
instanceOf(obj: any): obj is {
|
|
2769
|
+
/**
|
|
2770
|
+
* @private
|
|
2771
|
+
* This field is private and should not be used, use `tag` instead.
|
|
2772
|
+
*/
|
|
2773
|
+
readonly [uniffiTypeNameSymbol]: "GoldenComparison";
|
|
2774
|
+
readonly tag: GoldenComparison_Tags.NoneMatches;
|
|
2775
|
+
readonly inner: Readonly<{
|
|
2776
|
+
candidates: Array<number>;
|
|
2777
|
+
}>;
|
|
2778
|
+
};
|
|
2779
|
+
};
|
|
2780
|
+
Unreadable: {
|
|
2781
|
+
new (inner: {
|
|
2782
|
+
recoveredIndex: number;
|
|
2783
|
+
}): {
|
|
2784
|
+
/**
|
|
2785
|
+
* @private
|
|
2786
|
+
* This field is private and should not be used, use `tag` instead.
|
|
2787
|
+
*/
|
|
2788
|
+
readonly [uniffiTypeNameSymbol]: "GoldenComparison";
|
|
2789
|
+
readonly tag: GoldenComparison_Tags.Unreadable;
|
|
2790
|
+
readonly inner: Readonly<{
|
|
2791
|
+
recoveredIndex: number;
|
|
2792
|
+
}>;
|
|
2793
|
+
};
|
|
2794
|
+
"new"(inner: {
|
|
2795
|
+
recoveredIndex: number;
|
|
2796
|
+
}): {
|
|
2239
2797
|
/**
|
|
2240
2798
|
* @private
|
|
2241
2799
|
* This field is private and should not be used, use `tag` instead.
|
|
2242
2800
|
*/
|
|
2243
2801
|
readonly [uniffiTypeNameSymbol]: "GoldenComparison";
|
|
2244
|
-
readonly tag: GoldenComparison_Tags.
|
|
2802
|
+
readonly tag: GoldenComparison_Tags.Unreadable;
|
|
2245
2803
|
readonly inner: Readonly<{
|
|
2246
|
-
recoveredIndex
|
|
2804
|
+
recoveredIndex: number;
|
|
2247
2805
|
}>;
|
|
2248
2806
|
};
|
|
2249
2807
|
instanceOf(obj: any): obj is {
|
|
@@ -2252,25 +2810,290 @@ export declare const GoldenComparison: Readonly<{
|
|
|
2252
2810
|
* This field is private and should not be used, use `tag` instead.
|
|
2253
2811
|
*/
|
|
2254
2812
|
readonly [uniffiTypeNameSymbol]: "GoldenComparison";
|
|
2255
|
-
readonly tag: GoldenComparison_Tags.
|
|
2813
|
+
readonly tag: GoldenComparison_Tags.Unreadable;
|
|
2256
2814
|
readonly inner: Readonly<{
|
|
2257
|
-
recoveredIndex
|
|
2815
|
+
recoveredIndex: number;
|
|
2258
2816
|
}>;
|
|
2259
2817
|
};
|
|
2260
2818
|
};
|
|
2261
2819
|
}>;
|
|
2262
2820
|
/**
|
|
2263
|
-
* Typed completion of C2PA 2.4's `watermark-golden` / `fingerprint-golden` final comparison
|
|
2821
|
+
* Typed completion of C2PA 2.4's `watermark-golden` / `fingerprint-golden` final comparison:
|
|
2822
|
+
* the local active manifest against what the registry holds. Every outcome is its own variant.
|
|
2823
|
+
*/
|
|
2824
|
+
export type GoldenComparison = InstanceType<typeof GoldenComparison['NotRequested' | 'NoEmbeddedManifest' | 'NoRecoveredManifest' | 'RecoveryIncomplete' | 'Matches' | 'Differs' | 'NoneMatches' | 'Unreadable']>;
|
|
2825
|
+
/**
|
|
2826
|
+
* The evidence that singled a recovered verdict out.
|
|
2264
2827
|
*/
|
|
2265
|
-
export
|
|
2828
|
+
export declare enum VerdictRule {
|
|
2829
|
+
OnlyCandidate = 0,
|
|
2830
|
+
/**
|
|
2831
|
+
* Every other candidate is superseded by a credential in this report.
|
|
2832
|
+
*/
|
|
2833
|
+
NotSuperseded = 1,
|
|
2834
|
+
/**
|
|
2835
|
+
* Its hash holds over these bytes and no other unsuperseded candidate's does.
|
|
2836
|
+
*/
|
|
2837
|
+
HardBinding = 2
|
|
2838
|
+
}
|
|
2839
|
+
export declare enum Verdict_Tags {
|
|
2840
|
+
Unsigned = "Unsigned",
|
|
2841
|
+
Inconclusive = "Inconclusive",
|
|
2842
|
+
Embedded = "Embedded",
|
|
2843
|
+
Recovered = "Recovered",
|
|
2844
|
+
RecoveredDerivative = "RecoveredDerivative",
|
|
2845
|
+
Ambiguous = "Ambiguous"
|
|
2846
|
+
}
|
|
2847
|
+
/**
|
|
2848
|
+
* What this verify concludes about the asset, chosen from [`AssetVerification::credentials`]
|
|
2849
|
+
* on signed evidence alone. Policy over the evidence: no credential's validation state changes,
|
|
2850
|
+
* and the list stays whole beside it.
|
|
2851
|
+
*
|
|
2852
|
+
* The embedded manifest is the verdict whenever the asset carries one that is not `Invalid`
|
|
2853
|
+
* and the golden comparison does not contradict it. When it `differs` from what the registry
|
|
2854
|
+
* holds, or several recovered candidates leave the comparison indeterminate, the embedded and
|
|
2855
|
+
* the recovered manifests are reported as ambiguous: C2PA 2.4's substitution use case leaves
|
|
2856
|
+
* that trust decision to the client. Otherwise a recovered candidate is named only when
|
|
2857
|
+
* evidence singles it out: it is the only one, or the only one no other credential in this
|
|
2858
|
+
* report supersedes (the successor's signed `parentOf` link), or the only one of those whose
|
|
2859
|
+
* hard binding holds over these bytes. A registry score, a signature time or a position in the
|
|
2860
|
+
* list is not evidence of which manifest belongs to these bytes, so candidates those alone would
|
|
2861
|
+
* separate are reported as ambiguous.
|
|
2862
|
+
*/
|
|
2863
|
+
export declare const Verdict: Readonly<{
|
|
2864
|
+
instanceOf: (obj: any) => obj is Verdict;
|
|
2865
|
+
Unsigned: {
|
|
2866
|
+
new (): {
|
|
2867
|
+
/**
|
|
2868
|
+
* @private
|
|
2869
|
+
* This field is private and should not be used, use `tag` instead.
|
|
2870
|
+
*/
|
|
2871
|
+
readonly [uniffiTypeNameSymbol]: "Verdict";
|
|
2872
|
+
readonly tag: Verdict_Tags.Unsigned;
|
|
2873
|
+
};
|
|
2874
|
+
"new"(): {
|
|
2875
|
+
/**
|
|
2876
|
+
* @private
|
|
2877
|
+
* This field is private and should not be used, use `tag` instead.
|
|
2878
|
+
*/
|
|
2879
|
+
readonly [uniffiTypeNameSymbol]: "Verdict";
|
|
2880
|
+
readonly tag: Verdict_Tags.Unsigned;
|
|
2881
|
+
};
|
|
2882
|
+
instanceOf(obj: any): obj is {
|
|
2883
|
+
/**
|
|
2884
|
+
* @private
|
|
2885
|
+
* This field is private and should not be used, use `tag` instead.
|
|
2886
|
+
*/
|
|
2887
|
+
readonly [uniffiTypeNameSymbol]: "Verdict";
|
|
2888
|
+
readonly tag: Verdict_Tags.Unsigned;
|
|
2889
|
+
};
|
|
2890
|
+
};
|
|
2891
|
+
Inconclusive: {
|
|
2892
|
+
new (): {
|
|
2893
|
+
/**
|
|
2894
|
+
* @private
|
|
2895
|
+
* This field is private and should not be used, use `tag` instead.
|
|
2896
|
+
*/
|
|
2897
|
+
readonly [uniffiTypeNameSymbol]: "Verdict";
|
|
2898
|
+
readonly tag: Verdict_Tags.Inconclusive;
|
|
2899
|
+
};
|
|
2900
|
+
"new"(): {
|
|
2901
|
+
/**
|
|
2902
|
+
* @private
|
|
2903
|
+
* This field is private and should not be used, use `tag` instead.
|
|
2904
|
+
*/
|
|
2905
|
+
readonly [uniffiTypeNameSymbol]: "Verdict";
|
|
2906
|
+
readonly tag: Verdict_Tags.Inconclusive;
|
|
2907
|
+
};
|
|
2908
|
+
instanceOf(obj: any): obj is {
|
|
2909
|
+
/**
|
|
2910
|
+
* @private
|
|
2911
|
+
* This field is private and should not be used, use `tag` instead.
|
|
2912
|
+
*/
|
|
2913
|
+
readonly [uniffiTypeNameSymbol]: "Verdict";
|
|
2914
|
+
readonly tag: Verdict_Tags.Inconclusive;
|
|
2915
|
+
};
|
|
2916
|
+
};
|
|
2917
|
+
Embedded: {
|
|
2918
|
+
new (): {
|
|
2919
|
+
/**
|
|
2920
|
+
* @private
|
|
2921
|
+
* This field is private and should not be used, use `tag` instead.
|
|
2922
|
+
*/
|
|
2923
|
+
readonly [uniffiTypeNameSymbol]: "Verdict";
|
|
2924
|
+
readonly tag: Verdict_Tags.Embedded;
|
|
2925
|
+
};
|
|
2926
|
+
"new"(): {
|
|
2927
|
+
/**
|
|
2928
|
+
* @private
|
|
2929
|
+
* This field is private and should not be used, use `tag` instead.
|
|
2930
|
+
*/
|
|
2931
|
+
readonly [uniffiTypeNameSymbol]: "Verdict";
|
|
2932
|
+
readonly tag: Verdict_Tags.Embedded;
|
|
2933
|
+
};
|
|
2934
|
+
instanceOf(obj: any): obj is {
|
|
2935
|
+
/**
|
|
2936
|
+
* @private
|
|
2937
|
+
* This field is private and should not be used, use `tag` instead.
|
|
2938
|
+
*/
|
|
2939
|
+
readonly [uniffiTypeNameSymbol]: "Verdict";
|
|
2940
|
+
readonly tag: Verdict_Tags.Embedded;
|
|
2941
|
+
};
|
|
2942
|
+
};
|
|
2943
|
+
Recovered: {
|
|
2944
|
+
new (inner: {
|
|
2945
|
+
index: number;
|
|
2946
|
+
decidedBy: VerdictRule;
|
|
2947
|
+
}): {
|
|
2948
|
+
/**
|
|
2949
|
+
* @private
|
|
2950
|
+
* This field is private and should not be used, use `tag` instead.
|
|
2951
|
+
*/
|
|
2952
|
+
readonly [uniffiTypeNameSymbol]: "Verdict";
|
|
2953
|
+
readonly tag: Verdict_Tags.Recovered;
|
|
2954
|
+
readonly inner: Readonly<{
|
|
2955
|
+
index: number;
|
|
2956
|
+
decidedBy: VerdictRule;
|
|
2957
|
+
}>;
|
|
2958
|
+
};
|
|
2959
|
+
"new"(inner: {
|
|
2960
|
+
index: number;
|
|
2961
|
+
decidedBy: VerdictRule;
|
|
2962
|
+
}): {
|
|
2963
|
+
/**
|
|
2964
|
+
* @private
|
|
2965
|
+
* This field is private and should not be used, use `tag` instead.
|
|
2966
|
+
*/
|
|
2967
|
+
readonly [uniffiTypeNameSymbol]: "Verdict";
|
|
2968
|
+
readonly tag: Verdict_Tags.Recovered;
|
|
2969
|
+
readonly inner: Readonly<{
|
|
2970
|
+
index: number;
|
|
2971
|
+
decidedBy: VerdictRule;
|
|
2972
|
+
}>;
|
|
2973
|
+
};
|
|
2974
|
+
instanceOf(obj: any): obj is {
|
|
2975
|
+
/**
|
|
2976
|
+
* @private
|
|
2977
|
+
* This field is private and should not be used, use `tag` instead.
|
|
2978
|
+
*/
|
|
2979
|
+
readonly [uniffiTypeNameSymbol]: "Verdict";
|
|
2980
|
+
readonly tag: Verdict_Tags.Recovered;
|
|
2981
|
+
readonly inner: Readonly<{
|
|
2982
|
+
index: number;
|
|
2983
|
+
decidedBy: VerdictRule;
|
|
2984
|
+
}>;
|
|
2985
|
+
};
|
|
2986
|
+
};
|
|
2987
|
+
RecoveredDerivative: {
|
|
2988
|
+
new (inner: {
|
|
2989
|
+
index: number;
|
|
2990
|
+
decidedBy: VerdictRule;
|
|
2991
|
+
}): {
|
|
2992
|
+
/**
|
|
2993
|
+
* @private
|
|
2994
|
+
* This field is private and should not be used, use `tag` instead.
|
|
2995
|
+
*/
|
|
2996
|
+
readonly [uniffiTypeNameSymbol]: "Verdict";
|
|
2997
|
+
readonly tag: Verdict_Tags.RecoveredDerivative;
|
|
2998
|
+
readonly inner: Readonly<{
|
|
2999
|
+
index: number;
|
|
3000
|
+
decidedBy: VerdictRule;
|
|
3001
|
+
}>;
|
|
3002
|
+
};
|
|
3003
|
+
"new"(inner: {
|
|
3004
|
+
index: number;
|
|
3005
|
+
decidedBy: VerdictRule;
|
|
3006
|
+
}): {
|
|
3007
|
+
/**
|
|
3008
|
+
* @private
|
|
3009
|
+
* This field is private and should not be used, use `tag` instead.
|
|
3010
|
+
*/
|
|
3011
|
+
readonly [uniffiTypeNameSymbol]: "Verdict";
|
|
3012
|
+
readonly tag: Verdict_Tags.RecoveredDerivative;
|
|
3013
|
+
readonly inner: Readonly<{
|
|
3014
|
+
index: number;
|
|
3015
|
+
decidedBy: VerdictRule;
|
|
3016
|
+
}>;
|
|
3017
|
+
};
|
|
3018
|
+
instanceOf(obj: any): obj is {
|
|
3019
|
+
/**
|
|
3020
|
+
* @private
|
|
3021
|
+
* This field is private and should not be used, use `tag` instead.
|
|
3022
|
+
*/
|
|
3023
|
+
readonly [uniffiTypeNameSymbol]: "Verdict";
|
|
3024
|
+
readonly tag: Verdict_Tags.RecoveredDerivative;
|
|
3025
|
+
readonly inner: Readonly<{
|
|
3026
|
+
index: number;
|
|
3027
|
+
decidedBy: VerdictRule;
|
|
3028
|
+
}>;
|
|
3029
|
+
};
|
|
3030
|
+
};
|
|
3031
|
+
Ambiguous: {
|
|
3032
|
+
new (inner: {
|
|
3033
|
+
candidates: Array<number>;
|
|
3034
|
+
}): {
|
|
3035
|
+
/**
|
|
3036
|
+
* @private
|
|
3037
|
+
* This field is private and should not be used, use `tag` instead.
|
|
3038
|
+
*/
|
|
3039
|
+
readonly [uniffiTypeNameSymbol]: "Verdict";
|
|
3040
|
+
readonly tag: Verdict_Tags.Ambiguous;
|
|
3041
|
+
readonly inner: Readonly<{
|
|
3042
|
+
candidates: Array<number>;
|
|
3043
|
+
}>;
|
|
3044
|
+
};
|
|
3045
|
+
"new"(inner: {
|
|
3046
|
+
candidates: Array<number>;
|
|
3047
|
+
}): {
|
|
3048
|
+
/**
|
|
3049
|
+
* @private
|
|
3050
|
+
* This field is private and should not be used, use `tag` instead.
|
|
3051
|
+
*/
|
|
3052
|
+
readonly [uniffiTypeNameSymbol]: "Verdict";
|
|
3053
|
+
readonly tag: Verdict_Tags.Ambiguous;
|
|
3054
|
+
readonly inner: Readonly<{
|
|
3055
|
+
candidates: Array<number>;
|
|
3056
|
+
}>;
|
|
3057
|
+
};
|
|
3058
|
+
instanceOf(obj: any): obj is {
|
|
3059
|
+
/**
|
|
3060
|
+
* @private
|
|
3061
|
+
* This field is private and should not be used, use `tag` instead.
|
|
3062
|
+
*/
|
|
3063
|
+
readonly [uniffiTypeNameSymbol]: "Verdict";
|
|
3064
|
+
readonly tag: Verdict_Tags.Ambiguous;
|
|
3065
|
+
readonly inner: Readonly<{
|
|
3066
|
+
candidates: Array<number>;
|
|
3067
|
+
}>;
|
|
3068
|
+
};
|
|
3069
|
+
};
|
|
3070
|
+
}>;
|
|
2266
3071
|
/**
|
|
2267
|
-
*
|
|
2268
|
-
*
|
|
3072
|
+
* What this verify concludes about the asset, chosen from [`AssetVerification::credentials`]
|
|
3073
|
+
* on signed evidence alone. Policy over the evidence: no credential's validation state changes,
|
|
3074
|
+
* and the list stays whole beside it.
|
|
3075
|
+
*
|
|
3076
|
+
* The embedded manifest is the verdict whenever the asset carries one that is not `Invalid`
|
|
3077
|
+
* and the golden comparison does not contradict it. When it `differs` from what the registry
|
|
3078
|
+
* holds, or several recovered candidates leave the comparison indeterminate, the embedded and
|
|
3079
|
+
* the recovered manifests are reported as ambiguous: C2PA 2.4's substitution use case leaves
|
|
3080
|
+
* that trust decision to the client. Otherwise a recovered candidate is named only when
|
|
3081
|
+
* evidence singles it out: it is the only one, or the only one no other credential in this
|
|
3082
|
+
* report supersedes (the successor's signed `parentOf` link), or the only one of those whose
|
|
3083
|
+
* hard binding holds over these bytes. A registry score, a signature time or a position in the
|
|
3084
|
+
* list is not evidence of which manifest belongs to these bytes, so candidates those alone would
|
|
3085
|
+
* separate are reported as ambiguous.
|
|
3086
|
+
*/
|
|
3087
|
+
export type Verdict = InstanceType<typeof Verdict['Unsigned' | 'Inconclusive' | 'Embedded' | 'Recovered' | 'RecoveredDerivative' | 'Ambiguous']>;
|
|
3088
|
+
/**
|
|
3089
|
+
* Complete asset verification result: every credential, the recovery state, the C2PA
|
|
3090
|
+
* golden-flow comparison, and the verdict the SDK's rules choose. See [`asset::Verdict`].
|
|
2269
3091
|
*/
|
|
2270
3092
|
export type AssetVerification = {
|
|
2271
3093
|
credentials: Array<FoundCredential>;
|
|
2272
3094
|
recovery: RecoverySummary;
|
|
2273
3095
|
goldenComparison: GoldenComparison;
|
|
3096
|
+
verdict: Verdict;
|
|
2274
3097
|
};
|
|
2275
3098
|
/**
|
|
2276
3099
|
* Generated factory for {@link AssetVerification} record objects.
|
|
@@ -2289,11 +3112,12 @@ export type RegistryOptions = {
|
|
|
2289
3112
|
*/
|
|
2290
3113
|
url: string;
|
|
2291
3114
|
/**
|
|
2292
|
-
* Federated resolution APIs a match may name as holding its manifest
|
|
2293
|
-
*
|
|
2294
|
-
*
|
|
3115
|
+
* Federated resolution APIs a match may name as holding its manifest, beside the ones the
|
|
3116
|
+
* C2PA algorithm list publishes, which are always allowed. C2PA 2.4 lets a match carry an
|
|
3117
|
+
* `endpoint`; one allowed is fetched from, any other is reported as refused. Checked like
|
|
3118
|
+
* `url`: https, or http on loopback only.
|
|
2295
3119
|
*/
|
|
2296
|
-
endpoints
|
|
3120
|
+
endpoints: Array<string>;
|
|
2297
3121
|
};
|
|
2298
3122
|
/**
|
|
2299
3123
|
* Generated factory for {@link RegistryOptions} record objects.
|
|
@@ -2705,7 +3529,7 @@ export declare enum RecoveryPolicy {
|
|
|
2705
3529
|
* It queries the registry on every verify, without making it load-bearing on the asset's own
|
|
2706
3530
|
* credential: the flow provides information about a substitution rather than gating the local
|
|
2707
3531
|
* manifest, so a registry that cannot be reached leaves [`RecoveryStatus::Incomplete`], the
|
|
2708
|
-
* reason as a [`RecoveryIssue`], and [`GoldenComparison::
|
|
3532
|
+
* reason as a [`RecoveryIssue`], and [`GoldenComparison::RecoveryIncomplete`]. A caller for whom a
|
|
2709
3533
|
* cross-check that never ran must not pass for agreement branches on that status.
|
|
2710
3534
|
*/
|
|
2711
3535
|
Always = 1
|
|
@@ -3511,7 +4335,7 @@ export type SegmentValidation = InstanceType<typeof SegmentValidation['Init' | '
|
|
|
3511
4335
|
*/
|
|
3512
4336
|
export interface AssetVerifierLike {
|
|
3513
4337
|
/**
|
|
3514
|
-
* Verify an asset from a [`RangeSource`] using the per-call binders and recovery
|
|
4338
|
+
* Verify an asset from a [`RangeSource`] using the per-call binders and recovery options.
|
|
3515
4339
|
* `plugins` carries the caller's
|
|
3516
4340
|
* plugins for non-c2pa formats (e.g. MXF); pass an empty `PluginRegistry` for a
|
|
3517
4341
|
* built-in C2PA media format. The SDK links no plugin itself. Returns embedded/recovered
|
|
@@ -3548,7 +4372,7 @@ export declare class AssetVerifier extends UniffiAbstractObject implements Asset
|
|
|
3548
4372
|
*/
|
|
3549
4373
|
static create(options: AssetVerifierOptions): AssetVerifierLike;
|
|
3550
4374
|
/**
|
|
3551
|
-
* Verify an asset from a [`RangeSource`] using the per-call binders and recovery
|
|
4375
|
+
* Verify an asset from a [`RangeSource`] using the per-call binders and recovery options.
|
|
3552
4376
|
* `plugins` carries the caller's
|
|
3553
4377
|
* plugins for non-c2pa formats (e.g. MXF); pass an empty `PluginRegistry` for a
|
|
3554
4378
|
* built-in C2PA media format. The SDK links no plugin itself. Returns embedded/recovered
|
|
@@ -4153,13 +4977,6 @@ declare const _default$1: Readonly<{
|
|
|
4153
4977
|
lift(value: UniffiByteArray): RecoveryIssue;
|
|
4154
4978
|
lower(value: RecoveryIssue, alloc: RustBufferAllocator): UniffiByteArray;
|
|
4155
4979
|
};
|
|
4156
|
-
FfiConverterTypeRecoveryIssueKind: {
|
|
4157
|
-
readFromCursor(c: Cursor): RecoveryIssueKind;
|
|
4158
|
-
writeIntoCursor(value: RecoveryIssueKind, c: Cursor): void;
|
|
4159
|
-
allocationSize(value: RecoveryIssueKind): number;
|
|
4160
|
-
lift(value: UniffiByteArray): RecoveryIssueKind;
|
|
4161
|
-
lower(value: RecoveryIssueKind, alloc: RustBufferAllocator): UniffiByteArray;
|
|
4162
|
-
};
|
|
4163
4980
|
FfiConverterTypeRecoveryPolicy: {
|
|
4164
4981
|
readFromCursor(c: Cursor): RecoveryPolicy;
|
|
4165
4982
|
writeIntoCursor(value: RecoveryPolicy, c: Cursor): void;
|
|
@@ -4395,6 +5212,20 @@ declare const _default$1: Readonly<{
|
|
|
4395
5212
|
lower(value: ValidationStatus, alloc: RustBufferAllocator): UniffiByteArray;
|
|
4396
5213
|
};
|
|
4397
5214
|
FfiConverterTypeValue: FfiConverter<UniffiByteArray, string>;
|
|
5215
|
+
FfiConverterTypeVerdict: {
|
|
5216
|
+
readFromCursor(c: Cursor): Verdict;
|
|
5217
|
+
writeIntoCursor(value: Verdict, c: Cursor): void;
|
|
5218
|
+
allocationSize(value: Verdict): number;
|
|
5219
|
+
lift(value: UniffiByteArray): Verdict;
|
|
5220
|
+
lower(value: Verdict, alloc: RustBufferAllocator): UniffiByteArray;
|
|
5221
|
+
};
|
|
5222
|
+
FfiConverterTypeVerdictRule: {
|
|
5223
|
+
readFromCursor(c: Cursor): VerdictRule;
|
|
5224
|
+
writeIntoCursor(value: VerdictRule, c: Cursor): void;
|
|
5225
|
+
allocationSize(value: VerdictRule): number;
|
|
5226
|
+
lift(value: UniffiByteArray): VerdictRule;
|
|
5227
|
+
lower(value: VerdictRule, alloc: RustBufferAllocator): UniffiByteArray;
|
|
5228
|
+
};
|
|
4398
5229
|
FfiConverterTypeVerifyOptions: {
|
|
4399
5230
|
readFromCursor(c: Cursor): VerifyOptions;
|
|
4400
5231
|
writeIntoCursor(value: VerifyOptions, c: Cursor): void;
|