@trylimbo/sdk-verifier 0.2.25-canary.38 → 0.3.0-canary.40
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 +8 -7
- package/gen/ffi/index.js +10 -9
- package/package.json +3 -3
package/gen/ffi/index.d.ts
CHANGED
|
@@ -4172,8 +4172,8 @@ export interface AssetVerifierLike {
|
|
|
4172
4172
|
/**
|
|
4173
4173
|
* Verify an asset from a [`RangeSource`]. `recovery` is what this verify may do to recover
|
|
4174
4174
|
* a manifest, or nothing: then the asset is read for what it carries and no repository is
|
|
4175
|
-
* asked. `plugins` are the caller's
|
|
4176
|
-
*
|
|
4175
|
+
* asked. `plugins` are the caller's additional container readers, in dispatch order.
|
|
4176
|
+
* An empty list uses the registered C2PA handlers, including any loaded native modules.
|
|
4177
4177
|
* Returns embedded/recovered credentials plus typed recovery and golden-comparison
|
|
4178
4178
|
* outcomes.
|
|
4179
4179
|
* `format` optionally declares the media type for inputs such as SVG and plain text.
|
|
@@ -4201,18 +4201,19 @@ export declare class AssetVerifier extends UniffiAbstractObject implements Asset
|
|
|
4201
4201
|
readonly [pointerLiteralSymbol]: UniffiHandle;
|
|
4202
4202
|
private constructor();
|
|
4203
4203
|
/**
|
|
4204
|
-
* Build a verifier from [`AssetVerifierOptions`].
|
|
4204
|
+
* Build a verifier from [`AssetVerifierOptions`] and optional native format libraries.
|
|
4205
4205
|
*
|
|
4206
4206
|
* # Errors
|
|
4207
4207
|
*
|
|
4208
|
-
* `TRUST_CONFIG_INVALID` when the trust anchors can't be parsed
|
|
4208
|
+
* `TRUST_CONFIG_INVALID` when the trust anchors can't be parsed; `MODULE_FAILED` when a
|
|
4209
|
+
* module cannot be loaded.
|
|
4209
4210
|
*/
|
|
4210
|
-
static create(options: AssetVerifierOptions): AssetVerifierLike;
|
|
4211
|
+
static create(options: AssetVerifierOptions, modules?: Array<string>): AssetVerifierLike;
|
|
4211
4212
|
/**
|
|
4212
4213
|
* Verify an asset from a [`RangeSource`]. `recovery` is what this verify may do to recover
|
|
4213
4214
|
* a manifest, or nothing: then the asset is read for what it carries and no repository is
|
|
4214
|
-
* asked. `plugins` are the caller's
|
|
4215
|
-
*
|
|
4215
|
+
* asked. `plugins` are the caller's additional container readers, in dispatch order.
|
|
4216
|
+
* An empty list uses the registered C2PA handlers, including any loaded native modules.
|
|
4216
4217
|
* Returns embedded/recovered credentials plus typed recovery and golden-comparison
|
|
4217
4218
|
* outcomes.
|
|
4218
4219
|
* `format` optionally declares the media type for inputs such as SVG and plain text.
|
package/gen/ffi/index.js
CHANGED
|
@@ -1792,7 +1792,7 @@ const DEFINITIONS = {
|
|
|
1792
1792
|
hasRustCallStatus: false
|
|
1793
1793
|
},
|
|
1794
1794
|
"uniffi_trylimbo_sdk_verifier_fn_constructor_assetverifier_create": {
|
|
1795
|
-
args: [FfiType.RustBuffer],
|
|
1795
|
+
args: [FfiType.RustBuffer, FfiType.RustBuffer],
|
|
1796
1796
|
ret: FfiType.Handle,
|
|
1797
1797
|
hasRustCallStatus: true
|
|
1798
1798
|
},
|
|
@@ -7598,22 +7598,23 @@ var AssetVerifier = class extends UniffiAbstractObject {
|
|
|
7598
7598
|
this[destructorGuardSymbol] = uniffiTypeAssetVerifierObjectFactory.bless(pointer);
|
|
7599
7599
|
}
|
|
7600
7600
|
/**
|
|
7601
|
-
* Build a verifier from [`AssetVerifierOptions`].
|
|
7601
|
+
* Build a verifier from [`AssetVerifierOptions`] and optional native format libraries.
|
|
7602
7602
|
*
|
|
7603
7603
|
* # Errors
|
|
7604
7604
|
*
|
|
7605
|
-
* `TRUST_CONFIG_INVALID` when the trust anchors can't be parsed
|
|
7605
|
+
* `TRUST_CONFIG_INVALID` when the trust anchors can't be parsed; `MODULE_FAILED` when a
|
|
7606
|
+
* module cannot be loaded.
|
|
7606
7607
|
*/
|
|
7607
|
-
static create(options) {
|
|
7608
|
+
static create(options, modules = []) {
|
|
7608
7609
|
return FfiConverterTypeAssetVerifier.lift(uniffiCaller.rustCallWithError(FfiConverterTypeSdkError.lift.bind(FfiConverterTypeSdkError), (callStatus) => {
|
|
7609
|
-
return getter().uniffi_trylimbo_sdk_verifier_fn_constructor_assetverifier_create(FfiConverterTypeAssetVerifierOptions.lower(options, getter().rustbuffer_alloc), callStatus);
|
|
7610
|
+
return getter().uniffi_trylimbo_sdk_verifier_fn_constructor_assetverifier_create(FfiConverterTypeAssetVerifierOptions.lower(options, getter().rustbuffer_alloc), FfiConverterSequenceString.lower(modules, getter().rustbuffer_alloc), callStatus);
|
|
7610
7611
|
}, FfiConverterString.lift.bind(FfiConverterString)));
|
|
7611
7612
|
}
|
|
7612
7613
|
/**
|
|
7613
7614
|
* Verify an asset from a [`RangeSource`]. `recovery` is what this verify may do to recover
|
|
7614
7615
|
* a manifest, or nothing: then the asset is read for what it carries and no repository is
|
|
7615
|
-
* asked. `plugins` are the caller's
|
|
7616
|
-
*
|
|
7616
|
+
* asked. `plugins` are the caller's additional container readers, in dispatch order.
|
|
7617
|
+
* An empty list uses the registered C2PA handlers, including any loaded native modules.
|
|
7617
7618
|
* Returns embedded/recovered credentials plus typed recovery and golden-comparison
|
|
7618
7619
|
* outcomes.
|
|
7619
7620
|
* `format` optionally declares the media type for inputs such as SVG and plain text.
|
|
@@ -8243,8 +8244,8 @@ function uniffiEnsureInitialized() {
|
|
|
8243
8244
|
if (getter().uniffi_trylimbo_sdk_verifier_checksum_func_dev_ca() !== 58891) throw new UniffiInternalError.ApiChecksumMismatch("uniffi_trylimbo_sdk_verifier_checksum_func_dev_ca");
|
|
8244
8245
|
if (getter().uniffi_trylimbo_sdk_verifier_checksum_func_parse() !== 2838) throw new UniffiInternalError.ApiChecksumMismatch("uniffi_trylimbo_sdk_verifier_checksum_func_parse");
|
|
8245
8246
|
if (getter().uniffi_trylimbo_sdk_verifier_checksum_func_resource() !== 21307) throw new UniffiInternalError.ApiChecksumMismatch("uniffi_trylimbo_sdk_verifier_checksum_func_resource");
|
|
8246
|
-
if (getter().uniffi_trylimbo_sdk_verifier_checksum_constructor_assetverifier_create() !==
|
|
8247
|
-
if (getter().uniffi_trylimbo_sdk_verifier_checksum_method_assetverifier_verify() !==
|
|
8247
|
+
if (getter().uniffi_trylimbo_sdk_verifier_checksum_constructor_assetverifier_create() !== 32816) throw new UniffiInternalError.ApiChecksumMismatch("uniffi_trylimbo_sdk_verifier_checksum_constructor_assetverifier_create");
|
|
8248
|
+
if (getter().uniffi_trylimbo_sdk_verifier_checksum_method_assetverifier_verify() !== 4436) throw new UniffiInternalError.ApiChecksumMismatch("uniffi_trylimbo_sdk_verifier_checksum_method_assetverifier_verify");
|
|
8248
8249
|
if (getter().uniffi_trylimbo_sdk_verifier_checksum_method_compute_alg() !== 65518) throw new UniffiInternalError.ApiChecksumMismatch("uniffi_trylimbo_sdk_verifier_checksum_method_compute_alg");
|
|
8249
8250
|
if (getter().uniffi_trylimbo_sdk_verifier_checksum_method_compute_compute() !== 17061) throw new UniffiInternalError.ApiChecksumMismatch("uniffi_trylimbo_sdk_verifier_checksum_method_compute_compute");
|
|
8250
8251
|
if (getter().uniffi_trylimbo_sdk_verifier_checksum_method_credential_hard_binding() !== 52977) throw new UniffiInternalError.ApiChecksumMismatch("uniffi_trylimbo_sdk_verifier_checksum_method_credential_hard_binding");
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"optionalDependencies": {
|
|
3
|
-
"@trylimbo/sdk-verifier-linux-arm64-gnu": "0.
|
|
4
|
-
"@trylimbo/sdk-verifier-linux-x64-gnu": "0.
|
|
3
|
+
"@trylimbo/sdk-verifier-linux-arm64-gnu": "0.3.0-canary.40",
|
|
4
|
+
"@trylimbo/sdk-verifier-linux-x64-gnu": "0.3.0-canary.40",
|
|
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.
|
|
9
|
+
"version": "0.3.0-canary.40",
|
|
10
10
|
"license": "UNLICENSED",
|
|
11
11
|
"repository": {
|
|
12
12
|
"type": "git",
|