@trylimbo/sdk-verifier 0.2.12-canary.28 → 0.2.12
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 +105 -109
- package/gen/ffi/index.js +192 -189
- package/package.json +3 -3
package/gen/ffi/index.js
CHANGED
|
@@ -1669,12 +1669,12 @@ const DEFINITIONS = {
|
|
|
1669
1669
|
ret: FfiType.Void,
|
|
1670
1670
|
hasRustCallStatus: true
|
|
1671
1671
|
},
|
|
1672
|
-
"
|
|
1672
|
+
"uniffi_trylimbo_sdk_verifier_fn_clone_streamsession": {
|
|
1673
1673
|
args: [FfiType.Handle],
|
|
1674
1674
|
ret: FfiType.Handle,
|
|
1675
1675
|
hasRustCallStatus: true
|
|
1676
1676
|
},
|
|
1677
|
-
"
|
|
1677
|
+
"uniffi_trylimbo_sdk_verifier_fn_free_streamsession": {
|
|
1678
1678
|
args: [FfiType.Handle],
|
|
1679
1679
|
ret: FfiType.Void,
|
|
1680
1680
|
hasRustCallStatus: true
|
|
@@ -1699,8 +1699,8 @@ const DEFINITIONS = {
|
|
|
1699
1699
|
ret: FfiType.Void,
|
|
1700
1700
|
hasRustCallStatus: false
|
|
1701
1701
|
},
|
|
1702
|
-
"
|
|
1703
|
-
args: [FfiType.Reference(FfiType.Struct("
|
|
1702
|
+
"uniffi_trylimbo_sdk_verifier_fn_init_callback_vtable_pluginreader": {
|
|
1703
|
+
args: [FfiType.Reference(FfiType.Struct("VTableCallbackInterfaceTrylimboVerifierPluginReader"))],
|
|
1704
1704
|
ret: FfiType.Void,
|
|
1705
1705
|
hasRustCallStatus: false
|
|
1706
1706
|
},
|
|
@@ -1838,12 +1838,12 @@ const DEFINITIONS = {
|
|
|
1838
1838
|
ret: FfiType.Handle,
|
|
1839
1839
|
hasRustCallStatus: false
|
|
1840
1840
|
},
|
|
1841
|
-
"
|
|
1841
|
+
"uniffi_trylimbo_sdk_verifier_fn_method_streamsession_export": {
|
|
1842
1842
|
args: [FfiType.Handle],
|
|
1843
1843
|
ret: FfiType.RustBuffer,
|
|
1844
1844
|
hasRustCallStatus: true
|
|
1845
1845
|
},
|
|
1846
|
-
"
|
|
1846
|
+
"uniffi_trylimbo_sdk_verifier_fn_method_streamsession_validate": {
|
|
1847
1847
|
args: [FfiType.Handle, FfiType.Handle],
|
|
1848
1848
|
ret: FfiType.Handle,
|
|
1849
1849
|
hasRustCallStatus: false
|
|
@@ -1977,12 +1977,12 @@ const DEFINITIONS = {
|
|
|
1977
1977
|
ret: FfiType.UInt16,
|
|
1978
1978
|
hasRustCallStatus: false
|
|
1979
1979
|
},
|
|
1980
|
-
"
|
|
1980
|
+
"uniffi_trylimbo_sdk_verifier_checksum_method_streamsession_export": {
|
|
1981
1981
|
args: [],
|
|
1982
1982
|
ret: FfiType.UInt16,
|
|
1983
1983
|
hasRustCallStatus: false
|
|
1984
1984
|
},
|
|
1985
|
-
"
|
|
1985
|
+
"uniffi_trylimbo_sdk_verifier_checksum_method_streamsession_validate": {
|
|
1986
1986
|
args: [],
|
|
1987
1987
|
ret: FfiType.UInt16,
|
|
1988
1988
|
hasRustCallStatus: false
|
|
@@ -2078,13 +2078,13 @@ const DEFINITIONS = {
|
|
|
2078
2078
|
ret: FfiType.Void,
|
|
2079
2079
|
hasRustCallStatus: false
|
|
2080
2080
|
},
|
|
2081
|
-
"
|
|
2081
|
+
"CallbackInterfaceTrylimboVerifierPluginReaderMethod0": {
|
|
2082
2082
|
args: [FfiType.Handle],
|
|
2083
2083
|
ret: FfiType.RustBuffer,
|
|
2084
2084
|
hasRustCallStatus: true,
|
|
2085
2085
|
outReturn: true
|
|
2086
2086
|
},
|
|
2087
|
-
"
|
|
2087
|
+
"CallbackInterfaceTrylimboVerifierPluginReaderMethod1": {
|
|
2088
2088
|
args: [
|
|
2089
2089
|
FfiType.Handle,
|
|
2090
2090
|
FfiType.Handle,
|
|
@@ -2095,7 +2095,7 @@ const DEFINITIONS = {
|
|
|
2095
2095
|
hasRustCallStatus: false,
|
|
2096
2096
|
outReturn: true
|
|
2097
2097
|
},
|
|
2098
|
-
"
|
|
2098
|
+
"CallbackInterfaceTrylimboVerifierPluginReaderMethod2": {
|
|
2099
2099
|
args: [
|
|
2100
2100
|
FfiType.Handle,
|
|
2101
2101
|
FfiType.Handle,
|
|
@@ -2106,12 +2106,12 @@ const DEFINITIONS = {
|
|
|
2106
2106
|
hasRustCallStatus: false,
|
|
2107
2107
|
outReturn: true
|
|
2108
2108
|
},
|
|
2109
|
-
"
|
|
2109
|
+
"CallbackInterfaceCloneTrylimboVerifier_PluginReader": {
|
|
2110
2110
|
args: [FfiType.Handle],
|
|
2111
2111
|
ret: FfiType.Handle,
|
|
2112
2112
|
hasRustCallStatus: false
|
|
2113
2113
|
},
|
|
2114
|
-
"
|
|
2114
|
+
"CallbackInterfaceFreeTrylimboVerifier_PluginReader": {
|
|
2115
2115
|
args: [FfiType.Handle],
|
|
2116
2116
|
ret: FfiType.Void,
|
|
2117
2117
|
hasRustCallStatus: false
|
|
@@ -2171,26 +2171,26 @@ const DEFINITIONS = {
|
|
|
2171
2171
|
type: FfiType.Callback("CallbackInterfaceTrylimboVerifierRangeSourceMethod1")
|
|
2172
2172
|
}
|
|
2173
2173
|
],
|
|
2174
|
-
"
|
|
2174
|
+
"VTableCallbackInterfaceTrylimboVerifierPluginReader": [
|
|
2175
2175
|
{
|
|
2176
2176
|
name: "uniffi_free",
|
|
2177
|
-
type: FfiType.Callback("
|
|
2177
|
+
type: FfiType.Callback("CallbackInterfaceFreeTrylimboVerifier_PluginReader")
|
|
2178
2178
|
},
|
|
2179
2179
|
{
|
|
2180
2180
|
name: "uniffi_clone",
|
|
2181
|
-
type: FfiType.Callback("
|
|
2181
|
+
type: FfiType.Callback("CallbackInterfaceCloneTrylimboVerifier_PluginReader")
|
|
2182
2182
|
},
|
|
2183
2183
|
{
|
|
2184
2184
|
name: "media_types",
|
|
2185
|
-
type: FfiType.Callback("
|
|
2185
|
+
type: FfiType.Callback("CallbackInterfaceTrylimboVerifierPluginReaderMethod0")
|
|
2186
2186
|
},
|
|
2187
2187
|
{
|
|
2188
2188
|
name: "sniff",
|
|
2189
|
-
type: FfiType.Callback("
|
|
2189
|
+
type: FfiType.Callback("CallbackInterfaceTrylimboVerifierPluginReaderMethod1")
|
|
2190
2190
|
},
|
|
2191
2191
|
{
|
|
2192
2192
|
name: "locate",
|
|
2193
|
-
type: FfiType.Callback("
|
|
2193
|
+
type: FfiType.Callback("CallbackInterfaceTrylimboVerifierPluginReaderMethod2")
|
|
2194
2194
|
}
|
|
2195
2195
|
]
|
|
2196
2196
|
}
|
|
@@ -2227,6 +2227,7 @@ var trylimbo_verifier_exports = /* @__PURE__ */ __exportAll({
|
|
|
2227
2227
|
ContentBindingClass: () => ContentBindingClass,
|
|
2228
2228
|
ContentTrigger: () => ContentTrigger,
|
|
2229
2229
|
Coordinate: () => Coordinate,
|
|
2230
|
+
Credential: () => Credential,
|
|
2230
2231
|
CredentialOrigin: () => CredentialOrigin,
|
|
2231
2232
|
CredentialOrigin_Tags: () => CredentialOrigin_Tags,
|
|
2232
2233
|
DataSource: () => DataSource,
|
|
@@ -2236,7 +2237,6 @@ var trylimbo_verifier_exports = /* @__PURE__ */ __exportAll({
|
|
|
2236
2237
|
FileSource: () => FileSource,
|
|
2237
2238
|
FingerprintCheck: () => FingerprintCheck,
|
|
2238
2239
|
FingerprintCheck_Tags: () => FingerprintCheck_Tags,
|
|
2239
|
-
FoundCredential: () => FoundCredential,
|
|
2240
2240
|
Frame: () => Frame,
|
|
2241
2241
|
GoldenComparison: () => GoldenComparison,
|
|
2242
2242
|
GoldenComparison_Tags: () => GoldenComparison_Tags,
|
|
@@ -2263,9 +2263,9 @@ var trylimbo_verifier_exports = /* @__PURE__ */ __exportAll({
|
|
|
2263
2263
|
RecoveryDiscovery_Tags: () => RecoveryDiscovery_Tags,
|
|
2264
2264
|
RecoveryIssue: () => RecoveryIssue,
|
|
2265
2265
|
RecoveryIssue_Tags: () => RecoveryIssue_Tags,
|
|
2266
|
-
RecoveryPolicy: () => RecoveryPolicy,
|
|
2267
2266
|
RecoveryStatus: () => RecoveryStatus,
|
|
2268
2267
|
RecoverySummary: () => RecoverySummary,
|
|
2268
|
+
RecoveryTrigger: () => RecoveryTrigger,
|
|
2269
2269
|
Region: () => Region,
|
|
2270
2270
|
RegionOfInterest: () => RegionOfInterest,
|
|
2271
2271
|
Relationship: () => Relationship,
|
|
@@ -2286,7 +2286,7 @@ var trylimbo_verifier_exports = /* @__PURE__ */ __exportAll({
|
|
|
2286
2286
|
SigningAlgSchema: () => SigningAlgSchema,
|
|
2287
2287
|
SoftBinding: () => SoftBinding,
|
|
2288
2288
|
StatusCodes: () => StatusCodes,
|
|
2289
|
-
|
|
2289
|
+
StreamSession: () => StreamSession,
|
|
2290
2290
|
StreamVerifier: () => StreamVerifier,
|
|
2291
2291
|
StreamVerifierOptions: () => StreamVerifierOptions,
|
|
2292
2292
|
Text: () => Text,
|
|
@@ -2542,7 +2542,7 @@ const FfiConverterTypeDataSource = (() => {
|
|
|
2542
2542
|
}
|
|
2543
2543
|
return new FFIConverter();
|
|
2544
2544
|
})();
|
|
2545
|
-
const
|
|
2545
|
+
const FfiConverterTypeJsonValue = FfiConverterString;
|
|
2546
2546
|
/**
|
|
2547
2547
|
* Generated factory for {@link Frame} record objects.
|
|
2548
2548
|
*/
|
|
@@ -3153,7 +3153,7 @@ const FfiConverterTypeRegionOfInterest = (() => {
|
|
|
3153
3153
|
return {
|
|
3154
3154
|
description: FfiConverterOptionalString.readFromCursor(c),
|
|
3155
3155
|
identifier: FfiConverterOptionalString.readFromCursor(c),
|
|
3156
|
-
metadata:
|
|
3156
|
+
metadata: FfiConverterOptionalTypeJsonValue.readFromCursor(c),
|
|
3157
3157
|
name: FfiConverterOptionalString.readFromCursor(c),
|
|
3158
3158
|
region: FfiConverterSequenceTypeRange.readFromCursor(c),
|
|
3159
3159
|
role: FfiConverterOptionalTypeRole.readFromCursor(c),
|
|
@@ -3163,14 +3163,14 @@ const FfiConverterTypeRegionOfInterest = (() => {
|
|
|
3163
3163
|
writeIntoCursor(value, c) {
|
|
3164
3164
|
FfiConverterOptionalString.writeIntoCursor(value.description, c);
|
|
3165
3165
|
FfiConverterOptionalString.writeIntoCursor(value.identifier, c);
|
|
3166
|
-
|
|
3166
|
+
FfiConverterOptionalTypeJsonValue.writeIntoCursor(value.metadata, c);
|
|
3167
3167
|
FfiConverterOptionalString.writeIntoCursor(value.name, c);
|
|
3168
3168
|
FfiConverterSequenceTypeRange.writeIntoCursor(value.region, c);
|
|
3169
3169
|
FfiConverterOptionalTypeRole.writeIntoCursor(value.role, c);
|
|
3170
3170
|
FfiConverterOptionalString.writeIntoCursor(value.type, c);
|
|
3171
3171
|
}
|
|
3172
3172
|
allocationSize(value) {
|
|
3173
|
-
return FfiConverterOptionalString.allocationSize(value.description) + FfiConverterOptionalString.allocationSize(value.identifier) +
|
|
3173
|
+
return FfiConverterOptionalString.allocationSize(value.description) + FfiConverterOptionalString.allocationSize(value.identifier) + FfiConverterOptionalTypeJsonValue.allocationSize(value.metadata) + FfiConverterOptionalString.allocationSize(value.name) + FfiConverterSequenceTypeRange.allocationSize(value.region) + FfiConverterOptionalTypeRole.allocationSize(value.role) + FfiConverterOptionalString.allocationSize(value.type);
|
|
3174
3174
|
}
|
|
3175
3175
|
}
|
|
3176
3176
|
return new FFIConverter();
|
|
@@ -3887,7 +3887,7 @@ const FfiConverterTypeManifestAssertion = (() => {
|
|
|
3887
3887
|
readFromCursor(c) {
|
|
3888
3888
|
return {
|
|
3889
3889
|
created: FfiConverterOptionalBoolean.readFromCursor(c),
|
|
3890
|
-
data:
|
|
3890
|
+
data: FfiConverterTypeJsonValue.readFromCursor(c),
|
|
3891
3891
|
instance: FfiConverterOptionalUInt32.readFromCursor(c),
|
|
3892
3892
|
kind: FfiConverterOptionalTypeManifestAssertionKind.readFromCursor(c),
|
|
3893
3893
|
label: FfiConverterString.readFromCursor(c)
|
|
@@ -3895,13 +3895,13 @@ const FfiConverterTypeManifestAssertion = (() => {
|
|
|
3895
3895
|
}
|
|
3896
3896
|
writeIntoCursor(value, c) {
|
|
3897
3897
|
FfiConverterOptionalBoolean.writeIntoCursor(value.created, c);
|
|
3898
|
-
|
|
3898
|
+
FfiConverterTypeJsonValue.writeIntoCursor(value.data, c);
|
|
3899
3899
|
FfiConverterOptionalUInt32.writeIntoCursor(value.instance, c);
|
|
3900
3900
|
FfiConverterOptionalTypeManifestAssertionKind.writeIntoCursor(value.kind, c);
|
|
3901
3901
|
FfiConverterString.writeIntoCursor(value.label, c);
|
|
3902
3902
|
}
|
|
3903
3903
|
allocationSize(value) {
|
|
3904
|
-
return FfiConverterOptionalBoolean.allocationSize(value.created) +
|
|
3904
|
+
return FfiConverterOptionalBoolean.allocationSize(value.created) + FfiConverterTypeJsonValue.allocationSize(value.data) + FfiConverterOptionalUInt32.allocationSize(value.instance) + FfiConverterOptionalTypeManifestAssertionKind.allocationSize(value.kind) + FfiConverterString.allocationSize(value.label);
|
|
3905
3905
|
}
|
|
3906
3906
|
}
|
|
3907
3907
|
return new FFIConverter();
|
|
@@ -4445,7 +4445,7 @@ const FfiConverterTypeManifest = (() => {
|
|
|
4445
4445
|
claimGenerator: FfiConverterOptionalString.readFromCursor(c),
|
|
4446
4446
|
claimGeneratorInfo: FfiConverterOptionalSequenceTypeClaimGeneratorInfo.readFromCursor(c),
|
|
4447
4447
|
claimVersion: FfiConverterOptionalUInt8.readFromCursor(c),
|
|
4448
|
-
credentials:
|
|
4448
|
+
credentials: FfiConverterOptionalSequenceTypeJsonValue.readFromCursor(c),
|
|
4449
4449
|
format: FfiConverterOptionalString.readFromCursor(c),
|
|
4450
4450
|
ingredients: FfiConverterSequenceTypeIngredient.readFromCursor(c),
|
|
4451
4451
|
instanceId: FfiConverterString.readFromCursor(c),
|
|
@@ -4463,7 +4463,7 @@ const FfiConverterTypeManifest = (() => {
|
|
|
4463
4463
|
FfiConverterOptionalString.writeIntoCursor(value.claimGenerator, c);
|
|
4464
4464
|
FfiConverterOptionalSequenceTypeClaimGeneratorInfo.writeIntoCursor(value.claimGeneratorInfo, c);
|
|
4465
4465
|
FfiConverterOptionalUInt8.writeIntoCursor(value.claimVersion, c);
|
|
4466
|
-
|
|
4466
|
+
FfiConverterOptionalSequenceTypeJsonValue.writeIntoCursor(value.credentials, c);
|
|
4467
4467
|
FfiConverterOptionalString.writeIntoCursor(value.format, c);
|
|
4468
4468
|
FfiConverterSequenceTypeIngredient.writeIntoCursor(value.ingredients, c);
|
|
4469
4469
|
FfiConverterString.writeIntoCursor(value.instanceId, c);
|
|
@@ -4476,7 +4476,7 @@ const FfiConverterTypeManifest = (() => {
|
|
|
4476
4476
|
FfiConverterOptionalString.writeIntoCursor(value.vendor, c);
|
|
4477
4477
|
}
|
|
4478
4478
|
allocationSize(value) {
|
|
4479
|
-
return FfiConverterSequenceTypeManifestAssertion.allocationSize(value.assertions) + FfiConverterOptionalString.allocationSize(value.claimGenerator) + FfiConverterOptionalSequenceTypeClaimGeneratorInfo.allocationSize(value.claimGeneratorInfo) + FfiConverterOptionalUInt8.allocationSize(value.claimVersion) +
|
|
4479
|
+
return FfiConverterSequenceTypeManifestAssertion.allocationSize(value.assertions) + FfiConverterOptionalString.allocationSize(value.claimGenerator) + FfiConverterOptionalSequenceTypeClaimGeneratorInfo.allocationSize(value.claimGeneratorInfo) + FfiConverterOptionalUInt8.allocationSize(value.claimVersion) + FfiConverterOptionalSequenceTypeJsonValue.allocationSize(value.credentials) + FfiConverterOptionalString.allocationSize(value.format) + FfiConverterSequenceTypeIngredient.allocationSize(value.ingredients) + FfiConverterString.allocationSize(value.instanceId) + FfiConverterOptionalString.allocationSize(value.label) + FfiConverterOptionalSequenceTypeAssertionMetadata.allocationSize(value.metadata) + FfiConverterOptionalSequenceString.allocationSize(value.redactions) + FfiConverterOptionalTypeSignatureInfo.allocationSize(value.signatureInfo) + FfiConverterOptionalTypeResourceRef.allocationSize(value.thumbnail) + FfiConverterOptionalString.allocationSize(value.title) + FfiConverterOptionalString.allocationSize(value.vendor);
|
|
4480
4480
|
}
|
|
4481
4481
|
}
|
|
4482
4482
|
return new FFIConverter();
|
|
@@ -4584,7 +4584,7 @@ let HardBinding = /* @__PURE__ */ function(HardBinding) {
|
|
|
4584
4584
|
/**
|
|
4585
4585
|
* No data, box, BMFF or collection hash failed against these bytes.
|
|
4586
4586
|
*/
|
|
4587
|
-
HardBinding[HardBinding["
|
|
4587
|
+
HardBinding[HardBinding["Match"] = 0] = "Match";
|
|
4588
4588
|
/**
|
|
4589
4589
|
* A hash mismatch is among the active manifest's failures: the manifest describes other
|
|
4590
4590
|
* bytes. Whether it is otherwise authentic is its remaining statuses.
|
|
@@ -4646,9 +4646,9 @@ const FfiConverterTypeLineage = (() => {
|
|
|
4646
4646
|
return new FFIConverter();
|
|
4647
4647
|
})();
|
|
4648
4648
|
/**
|
|
4649
|
-
* Generated factory for {@link
|
|
4649
|
+
* Generated factory for {@link Credential} record objects.
|
|
4650
4650
|
*/
|
|
4651
|
-
const
|
|
4651
|
+
const Credential = (() => {
|
|
4652
4652
|
const defaults = () => ({});
|
|
4653
4653
|
const create = (() => {
|
|
4654
4654
|
return uniffiCreateRecord(defaults);
|
|
@@ -4659,7 +4659,7 @@ const FoundCredential = (() => {
|
|
|
4659
4659
|
defaults: () => Object.freeze(defaults())
|
|
4660
4660
|
});
|
|
4661
4661
|
})();
|
|
4662
|
-
const
|
|
4662
|
+
const FfiConverterTypeCredential = (() => {
|
|
4663
4663
|
class FFIConverter extends AbstractFfiConverterByteArray {
|
|
4664
4664
|
readFromCursor(c) {
|
|
4665
4665
|
return {
|
|
@@ -4722,19 +4722,19 @@ const FfiConverterTypeRecoveryStatus = (() => {
|
|
|
4722
4722
|
return new FFIConverter();
|
|
4723
4723
|
})();
|
|
4724
4724
|
let RecoveryIssue_Tags = /* @__PURE__ */ function(RecoveryIssue_Tags) {
|
|
4725
|
-
RecoveryIssue_Tags["
|
|
4726
|
-
RecoveryIssue_Tags["
|
|
4725
|
+
RecoveryIssue_Tags["BinderFailed"] = "BinderFailed";
|
|
4726
|
+
RecoveryIssue_Tags["AlgorithmDeprecated"] = "AlgorithmDeprecated";
|
|
4727
4727
|
RecoveryIssue_Tags["BindingUndeclared"] = "BindingUndeclared";
|
|
4728
|
-
RecoveryIssue_Tags["
|
|
4728
|
+
RecoveryIssue_Tags["BindingQueryFailed"] = "BindingQueryFailed";
|
|
4729
4729
|
RecoveryIssue_Tags["QueryRefused"] = "QueryRefused";
|
|
4730
|
-
RecoveryIssue_Tags["
|
|
4731
|
-
RecoveryIssue_Tags["
|
|
4732
|
-
RecoveryIssue_Tags["
|
|
4730
|
+
RecoveryIssue_Tags["ContentFormUnsupported"] = "ContentFormUnsupported";
|
|
4731
|
+
RecoveryIssue_Tags["ContentQueryFailed"] = "ContentQueryFailed";
|
|
4732
|
+
RecoveryIssue_Tags["CapabilitiesUnavailable"] = "CapabilitiesUnavailable";
|
|
4733
4733
|
RecoveryIssue_Tags["ContentTooLarge"] = "ContentTooLarge";
|
|
4734
|
-
RecoveryIssue_Tags["
|
|
4735
|
-
RecoveryIssue_Tags["
|
|
4734
|
+
RecoveryIssue_Tags["CandidateFetchFailed"] = "CandidateFetchFailed";
|
|
4735
|
+
RecoveryIssue_Tags["CandidateInvalid"] = "CandidateInvalid";
|
|
4736
4736
|
RecoveryIssue_Tags["EndpointRefused"] = "EndpointRefused";
|
|
4737
|
-
RecoveryIssue_Tags["
|
|
4737
|
+
RecoveryIssue_Tags["ResourceLimitReached"] = "ResourceLimitReached";
|
|
4738
4738
|
return RecoveryIssue_Tags;
|
|
4739
4739
|
}({});
|
|
4740
4740
|
/**
|
|
@@ -4746,46 +4746,46 @@ const RecoveryIssue = (() => {
|
|
|
4746
4746
|
/**
|
|
4747
4747
|
* A binder faulted while deriving its binding.
|
|
4748
4748
|
*/
|
|
4749
|
-
class
|
|
4749
|
+
class BinderFailed_ extends UniffiEnum {
|
|
4750
4750
|
/**
|
|
4751
4751
|
* @private
|
|
4752
4752
|
* This field is private and should not be used, use `tag` instead.
|
|
4753
4753
|
*/
|
|
4754
4754
|
[uniffiTypeNameSymbol] = "RecoveryIssue";
|
|
4755
|
-
tag = "
|
|
4755
|
+
tag = "BinderFailed";
|
|
4756
4756
|
inner;
|
|
4757
4757
|
constructor(inner) {
|
|
4758
|
-
super("RecoveryIssue", "
|
|
4758
|
+
super("RecoveryIssue", "BinderFailed");
|
|
4759
4759
|
this.inner = Object.freeze(inner);
|
|
4760
4760
|
}
|
|
4761
4761
|
static new(inner) {
|
|
4762
|
-
return new
|
|
4762
|
+
return new BinderFailed_(inner);
|
|
4763
4763
|
}
|
|
4764
4764
|
static instanceOf(obj) {
|
|
4765
|
-
return obj.tag === "
|
|
4765
|
+
return obj.tag === "BinderFailed";
|
|
4766
4766
|
}
|
|
4767
4767
|
}
|
|
4768
4768
|
/**
|
|
4769
4769
|
* A binder derived a binding under an algorithm the C2PA list deprecates, which a validator
|
|
4770
4770
|
* should not resolve (2.4 18.10.4). A repository cannot be declared for one.
|
|
4771
4771
|
*/
|
|
4772
|
-
class
|
|
4772
|
+
class AlgorithmDeprecated_ extends UniffiEnum {
|
|
4773
4773
|
/**
|
|
4774
4774
|
* @private
|
|
4775
4775
|
* This field is private and should not be used, use `tag` instead.
|
|
4776
4776
|
*/
|
|
4777
4777
|
[uniffiTypeNameSymbol] = "RecoveryIssue";
|
|
4778
|
-
tag = "
|
|
4778
|
+
tag = "AlgorithmDeprecated";
|
|
4779
4779
|
inner;
|
|
4780
4780
|
constructor(inner) {
|
|
4781
|
-
super("RecoveryIssue", "
|
|
4781
|
+
super("RecoveryIssue", "AlgorithmDeprecated");
|
|
4782
4782
|
this.inner = Object.freeze(inner);
|
|
4783
4783
|
}
|
|
4784
4784
|
static new(inner) {
|
|
4785
|
-
return new
|
|
4785
|
+
return new AlgorithmDeprecated_(inner);
|
|
4786
4786
|
}
|
|
4787
4787
|
static instanceOf(obj) {
|
|
4788
|
-
return obj.tag === "
|
|
4788
|
+
return obj.tag === "AlgorithmDeprecated";
|
|
4789
4789
|
}
|
|
4790
4790
|
}
|
|
4791
4791
|
/**
|
|
@@ -4814,23 +4814,23 @@ const RecoveryIssue = (() => {
|
|
|
4814
4814
|
/**
|
|
4815
4815
|
* A binder's `matches/byBinding` lookup failed upstream at this repository.
|
|
4816
4816
|
*/
|
|
4817
|
-
class
|
|
4817
|
+
class BindingQueryFailed_ extends UniffiEnum {
|
|
4818
4818
|
/**
|
|
4819
4819
|
* @private
|
|
4820
4820
|
* This field is private and should not be used, use `tag` instead.
|
|
4821
4821
|
*/
|
|
4822
4822
|
[uniffiTypeNameSymbol] = "RecoveryIssue";
|
|
4823
|
-
tag = "
|
|
4823
|
+
tag = "BindingQueryFailed";
|
|
4824
4824
|
inner;
|
|
4825
4825
|
constructor(inner) {
|
|
4826
|
-
super("RecoveryIssue", "
|
|
4826
|
+
super("RecoveryIssue", "BindingQueryFailed");
|
|
4827
4827
|
this.inner = Object.freeze(inner);
|
|
4828
4828
|
}
|
|
4829
4829
|
static new(inner) {
|
|
4830
|
-
return new
|
|
4830
|
+
return new BindingQueryFailed_(inner);
|
|
4831
4831
|
}
|
|
4832
4832
|
static instanceOf(obj) {
|
|
4833
|
-
return obj.tag === "
|
|
4833
|
+
return obj.tag === "BindingQueryFailed";
|
|
4834
4834
|
}
|
|
4835
4835
|
}
|
|
4836
4836
|
/**
|
|
@@ -4859,67 +4859,67 @@ const RecoveryIssue = (() => {
|
|
|
4859
4859
|
/**
|
|
4860
4860
|
* A content form could not be asked of this repository at all.
|
|
4861
4861
|
*/
|
|
4862
|
-
class
|
|
4862
|
+
class ContentFormUnsupported_ extends UniffiEnum {
|
|
4863
4863
|
/**
|
|
4864
4864
|
* @private
|
|
4865
4865
|
* This field is private and should not be used, use `tag` instead.
|
|
4866
4866
|
*/
|
|
4867
4867
|
[uniffiTypeNameSymbol] = "RecoveryIssue";
|
|
4868
|
-
tag = "
|
|
4868
|
+
tag = "ContentFormUnsupported";
|
|
4869
4869
|
inner;
|
|
4870
4870
|
constructor(inner) {
|
|
4871
|
-
super("RecoveryIssue", "
|
|
4871
|
+
super("RecoveryIssue", "ContentFormUnsupported");
|
|
4872
4872
|
this.inner = Object.freeze(inner);
|
|
4873
4873
|
}
|
|
4874
4874
|
static new(inner) {
|
|
4875
|
-
return new
|
|
4875
|
+
return new ContentFormUnsupported_(inner);
|
|
4876
4876
|
}
|
|
4877
4877
|
static instanceOf(obj) {
|
|
4878
|
-
return obj.tag === "
|
|
4878
|
+
return obj.tag === "ContentFormUnsupported";
|
|
4879
4879
|
}
|
|
4880
4880
|
}
|
|
4881
4881
|
/**
|
|
4882
4882
|
* One content request, under this algorithm, failed upstream at this repository.
|
|
4883
4883
|
*/
|
|
4884
|
-
class
|
|
4884
|
+
class ContentQueryFailed_ extends UniffiEnum {
|
|
4885
4885
|
/**
|
|
4886
4886
|
* @private
|
|
4887
4887
|
* This field is private and should not be used, use `tag` instead.
|
|
4888
4888
|
*/
|
|
4889
4889
|
[uniffiTypeNameSymbol] = "RecoveryIssue";
|
|
4890
|
-
tag = "
|
|
4890
|
+
tag = "ContentQueryFailed";
|
|
4891
4891
|
inner;
|
|
4892
4892
|
constructor(inner) {
|
|
4893
|
-
super("RecoveryIssue", "
|
|
4893
|
+
super("RecoveryIssue", "ContentQueryFailed");
|
|
4894
4894
|
this.inner = Object.freeze(inner);
|
|
4895
4895
|
}
|
|
4896
4896
|
static new(inner) {
|
|
4897
|
-
return new
|
|
4897
|
+
return new ContentQueryFailed_(inner);
|
|
4898
4898
|
}
|
|
4899
4899
|
static instanceOf(obj) {
|
|
4900
|
-
return obj.tag === "
|
|
4900
|
+
return obj.tag === "ContentQueryFailed";
|
|
4901
4901
|
}
|
|
4902
4902
|
}
|
|
4903
4903
|
/**
|
|
4904
4904
|
* This repository's capabilities could not be read.
|
|
4905
4905
|
*/
|
|
4906
|
-
class
|
|
4906
|
+
class CapabilitiesUnavailable_ extends UniffiEnum {
|
|
4907
4907
|
/**
|
|
4908
4908
|
* @private
|
|
4909
4909
|
* This field is private and should not be used, use `tag` instead.
|
|
4910
4910
|
*/
|
|
4911
4911
|
[uniffiTypeNameSymbol] = "RecoveryIssue";
|
|
4912
|
-
tag = "
|
|
4912
|
+
tag = "CapabilitiesUnavailable";
|
|
4913
4913
|
inner;
|
|
4914
4914
|
constructor(inner) {
|
|
4915
|
-
super("RecoveryIssue", "
|
|
4915
|
+
super("RecoveryIssue", "CapabilitiesUnavailable");
|
|
4916
4916
|
this.inner = Object.freeze(inner);
|
|
4917
4917
|
}
|
|
4918
4918
|
static new(inner) {
|
|
4919
|
-
return new
|
|
4919
|
+
return new CapabilitiesUnavailable_(inner);
|
|
4920
4920
|
}
|
|
4921
4921
|
static instanceOf(obj) {
|
|
4922
|
-
return obj.tag === "
|
|
4922
|
+
return obj.tag === "CapabilitiesUnavailable";
|
|
4923
4923
|
}
|
|
4924
4924
|
}
|
|
4925
4925
|
/**
|
|
@@ -4947,45 +4947,45 @@ const RecoveryIssue = (() => {
|
|
|
4947
4947
|
/**
|
|
4948
4948
|
* A matched manifest could not be fetched from this repository.
|
|
4949
4949
|
*/
|
|
4950
|
-
class
|
|
4950
|
+
class CandidateFetchFailed_ extends UniffiEnum {
|
|
4951
4951
|
/**
|
|
4952
4952
|
* @private
|
|
4953
4953
|
* This field is private and should not be used, use `tag` instead.
|
|
4954
4954
|
*/
|
|
4955
4955
|
[uniffiTypeNameSymbol] = "RecoveryIssue";
|
|
4956
|
-
tag = "
|
|
4956
|
+
tag = "CandidateFetchFailed";
|
|
4957
4957
|
inner;
|
|
4958
4958
|
constructor(inner) {
|
|
4959
|
-
super("RecoveryIssue", "
|
|
4959
|
+
super("RecoveryIssue", "CandidateFetchFailed");
|
|
4960
4960
|
this.inner = Object.freeze(inner);
|
|
4961
4961
|
}
|
|
4962
4962
|
static new(inner) {
|
|
4963
|
-
return new
|
|
4963
|
+
return new CandidateFetchFailed_(inner);
|
|
4964
4964
|
}
|
|
4965
4965
|
static instanceOf(obj) {
|
|
4966
|
-
return obj.tag === "
|
|
4966
|
+
return obj.tag === "CandidateFetchFailed";
|
|
4967
4967
|
}
|
|
4968
4968
|
}
|
|
4969
4969
|
/**
|
|
4970
4970
|
* A fetched manifest did not validate as a credential for this asset.
|
|
4971
4971
|
*/
|
|
4972
|
-
class
|
|
4972
|
+
class CandidateInvalid_ extends UniffiEnum {
|
|
4973
4973
|
/**
|
|
4974
4974
|
* @private
|
|
4975
4975
|
* This field is private and should not be used, use `tag` instead.
|
|
4976
4976
|
*/
|
|
4977
4977
|
[uniffiTypeNameSymbol] = "RecoveryIssue";
|
|
4978
|
-
tag = "
|
|
4978
|
+
tag = "CandidateInvalid";
|
|
4979
4979
|
inner;
|
|
4980
4980
|
constructor(inner) {
|
|
4981
|
-
super("RecoveryIssue", "
|
|
4981
|
+
super("RecoveryIssue", "CandidateInvalid");
|
|
4982
4982
|
this.inner = Object.freeze(inner);
|
|
4983
4983
|
}
|
|
4984
4984
|
static new(inner) {
|
|
4985
|
-
return new
|
|
4985
|
+
return new CandidateInvalid_(inner);
|
|
4986
4986
|
}
|
|
4987
4987
|
static instanceOf(obj) {
|
|
4988
|
-
return obj.tag === "
|
|
4988
|
+
return obj.tag === "CandidateInvalid";
|
|
4989
4989
|
}
|
|
4990
4990
|
}
|
|
4991
4991
|
/**
|
|
@@ -5013,23 +5013,23 @@ const RecoveryIssue = (() => {
|
|
|
5013
5013
|
/**
|
|
5014
5014
|
* A cumulative byte or time budget ended the batch before every candidate was processed.
|
|
5015
5015
|
*/
|
|
5016
|
-
class
|
|
5016
|
+
class ResourceLimitReached_ extends UniffiEnum {
|
|
5017
5017
|
/**
|
|
5018
5018
|
* @private
|
|
5019
5019
|
* This field is private and should not be used, use `tag` instead.
|
|
5020
5020
|
*/
|
|
5021
5021
|
[uniffiTypeNameSymbol] = "RecoveryIssue";
|
|
5022
|
-
tag = "
|
|
5022
|
+
tag = "ResourceLimitReached";
|
|
5023
5023
|
inner;
|
|
5024
5024
|
constructor(inner) {
|
|
5025
|
-
super("RecoveryIssue", "
|
|
5025
|
+
super("RecoveryIssue", "ResourceLimitReached");
|
|
5026
5026
|
this.inner = Object.freeze(inner);
|
|
5027
5027
|
}
|
|
5028
5028
|
static new(inner) {
|
|
5029
|
-
return new
|
|
5029
|
+
return new ResourceLimitReached_(inner);
|
|
5030
5030
|
}
|
|
5031
5031
|
static instanceOf(obj) {
|
|
5032
|
-
return obj.tag === "
|
|
5032
|
+
return obj.tag === "ResourceLimitReached";
|
|
5033
5033
|
}
|
|
5034
5034
|
}
|
|
5035
5035
|
function instanceOf(obj) {
|
|
@@ -5037,35 +5037,35 @@ const RecoveryIssue = (() => {
|
|
|
5037
5037
|
}
|
|
5038
5038
|
return Object.freeze({
|
|
5039
5039
|
instanceOf,
|
|
5040
|
-
|
|
5041
|
-
|
|
5040
|
+
BinderFailed: BinderFailed_,
|
|
5041
|
+
AlgorithmDeprecated: AlgorithmDeprecated_,
|
|
5042
5042
|
BindingUndeclared: BindingUndeclared_,
|
|
5043
|
-
|
|
5043
|
+
BindingQueryFailed: BindingQueryFailed_,
|
|
5044
5044
|
QueryRefused: QueryRefused_,
|
|
5045
|
-
|
|
5046
|
-
|
|
5047
|
-
|
|
5045
|
+
ContentFormUnsupported: ContentFormUnsupported_,
|
|
5046
|
+
ContentQueryFailed: ContentQueryFailed_,
|
|
5047
|
+
CapabilitiesUnavailable: CapabilitiesUnavailable_,
|
|
5048
5048
|
ContentTooLarge: ContentTooLarge_,
|
|
5049
|
-
|
|
5050
|
-
|
|
5049
|
+
CandidateFetchFailed: CandidateFetchFailed_,
|
|
5050
|
+
CandidateInvalid: CandidateInvalid_,
|
|
5051
5051
|
EndpointRefused: EndpointRefused_,
|
|
5052
|
-
|
|
5052
|
+
ResourceLimitReached: ResourceLimitReached_
|
|
5053
5053
|
});
|
|
5054
5054
|
})();
|
|
5055
5055
|
const FfiConverterTypeRecoveryIssue = (() => {
|
|
5056
5056
|
class FFIConverter extends AbstractFfiConverterByteArray {
|
|
5057
5057
|
readFromCursor(c) {
|
|
5058
5058
|
switch (c.readI32()) {
|
|
5059
|
-
case 1: return new RecoveryIssue.
|
|
5059
|
+
case 1: return new RecoveryIssue.BinderFailed({
|
|
5060
5060
|
binderIndex: FfiConverterUInt32.readFromCursor(c),
|
|
5061
5061
|
message: FfiConverterString.readFromCursor(c)
|
|
5062
5062
|
});
|
|
5063
|
-
case 2: return new RecoveryIssue.
|
|
5063
|
+
case 2: return new RecoveryIssue.AlgorithmDeprecated({ algorithm: FfiConverterString.readFromCursor(c) });
|
|
5064
5064
|
case 3: return new RecoveryIssue.BindingUndeclared({
|
|
5065
5065
|
binderIndex: FfiConverterUInt32.readFromCursor(c),
|
|
5066
5066
|
algorithm: FfiConverterString.readFromCursor(c)
|
|
5067
5067
|
});
|
|
5068
|
-
case 4: return new RecoveryIssue.
|
|
5068
|
+
case 4: return new RecoveryIssue.BindingQueryFailed({
|
|
5069
5069
|
repository: FfiConverterString.readFromCursor(c),
|
|
5070
5070
|
binderIndex: FfiConverterUInt32.readFromCursor(c),
|
|
5071
5071
|
algorithm: FfiConverterString.readFromCursor(c),
|
|
@@ -5076,26 +5076,26 @@ const FfiConverterTypeRecoveryIssue = (() => {
|
|
|
5076
5076
|
algorithm: FfiConverterString.readFromCursor(c),
|
|
5077
5077
|
message: FfiConverterString.readFromCursor(c)
|
|
5078
5078
|
});
|
|
5079
|
-
case 6: return new RecoveryIssue.
|
|
5079
|
+
case 6: return new RecoveryIssue.ContentFormUnsupported({
|
|
5080
5080
|
repository: FfiConverterString.readFromCursor(c),
|
|
5081
5081
|
message: FfiConverterString.readFromCursor(c)
|
|
5082
5082
|
});
|
|
5083
|
-
case 7: return new RecoveryIssue.
|
|
5083
|
+
case 7: return new RecoveryIssue.ContentQueryFailed({
|
|
5084
5084
|
repository: FfiConverterString.readFromCursor(c),
|
|
5085
5085
|
algorithm: FfiConverterString.readFromCursor(c),
|
|
5086
5086
|
message: FfiConverterString.readFromCursor(c)
|
|
5087
5087
|
});
|
|
5088
|
-
case 8: return new RecoveryIssue.
|
|
5088
|
+
case 8: return new RecoveryIssue.CapabilitiesUnavailable({
|
|
5089
5089
|
repository: FfiConverterString.readFromCursor(c),
|
|
5090
5090
|
message: FfiConverterString.readFromCursor(c)
|
|
5091
5091
|
});
|
|
5092
5092
|
case 9: return new RecoveryIssue.ContentTooLarge({ capBytes: FfiConverterUInt64.readFromCursor(c) });
|
|
5093
|
-
case 10: return new RecoveryIssue.
|
|
5093
|
+
case 10: return new RecoveryIssue.CandidateFetchFailed({
|
|
5094
5094
|
repository: FfiConverterString.readFromCursor(c),
|
|
5095
5095
|
manifestId: FfiConverterString.readFromCursor(c),
|
|
5096
5096
|
message: FfiConverterString.readFromCursor(c)
|
|
5097
5097
|
});
|
|
5098
|
-
case 11: return new RecoveryIssue.
|
|
5098
|
+
case 11: return new RecoveryIssue.CandidateInvalid({
|
|
5099
5099
|
manifestId: FfiConverterString.readFromCursor(c),
|
|
5100
5100
|
reason: FfiConverterString.readFromCursor(c)
|
|
5101
5101
|
});
|
|
@@ -5104,20 +5104,20 @@ const FfiConverterTypeRecoveryIssue = (() => {
|
|
|
5104
5104
|
manifestId: FfiConverterString.readFromCursor(c),
|
|
5105
5105
|
endpoint: FfiConverterString.readFromCursor(c)
|
|
5106
5106
|
});
|
|
5107
|
-
case 13: return new RecoveryIssue.
|
|
5107
|
+
case 13: return new RecoveryIssue.ResourceLimitReached({ message: FfiConverterString.readFromCursor(c) });
|
|
5108
5108
|
default: throw new UniffiInternalError.UnexpectedEnumCase();
|
|
5109
5109
|
}
|
|
5110
5110
|
}
|
|
5111
5111
|
writeIntoCursor(value, c) {
|
|
5112
5112
|
switch (value.tag) {
|
|
5113
|
-
case "
|
|
5113
|
+
case "BinderFailed": {
|
|
5114
5114
|
c.writeI32(1);
|
|
5115
5115
|
const inner = value.inner;
|
|
5116
5116
|
FfiConverterUInt32.writeIntoCursor(inner.binderIndex, c);
|
|
5117
5117
|
FfiConverterString.writeIntoCursor(inner.message, c);
|
|
5118
5118
|
return;
|
|
5119
5119
|
}
|
|
5120
|
-
case "
|
|
5120
|
+
case "AlgorithmDeprecated": {
|
|
5121
5121
|
c.writeI32(2);
|
|
5122
5122
|
const inner = value.inner;
|
|
5123
5123
|
FfiConverterString.writeIntoCursor(inner.algorithm, c);
|
|
@@ -5130,7 +5130,7 @@ const FfiConverterTypeRecoveryIssue = (() => {
|
|
|
5130
5130
|
FfiConverterString.writeIntoCursor(inner.algorithm, c);
|
|
5131
5131
|
return;
|
|
5132
5132
|
}
|
|
5133
|
-
case "
|
|
5133
|
+
case "BindingQueryFailed": {
|
|
5134
5134
|
c.writeI32(4);
|
|
5135
5135
|
const inner = value.inner;
|
|
5136
5136
|
FfiConverterString.writeIntoCursor(inner.repository, c);
|
|
@@ -5147,14 +5147,14 @@ const FfiConverterTypeRecoveryIssue = (() => {
|
|
|
5147
5147
|
FfiConverterString.writeIntoCursor(inner.message, c);
|
|
5148
5148
|
return;
|
|
5149
5149
|
}
|
|
5150
|
-
case "
|
|
5150
|
+
case "ContentFormUnsupported": {
|
|
5151
5151
|
c.writeI32(6);
|
|
5152
5152
|
const inner = value.inner;
|
|
5153
5153
|
FfiConverterString.writeIntoCursor(inner.repository, c);
|
|
5154
5154
|
FfiConverterString.writeIntoCursor(inner.message, c);
|
|
5155
5155
|
return;
|
|
5156
5156
|
}
|
|
5157
|
-
case "
|
|
5157
|
+
case "ContentQueryFailed": {
|
|
5158
5158
|
c.writeI32(7);
|
|
5159
5159
|
const inner = value.inner;
|
|
5160
5160
|
FfiConverterString.writeIntoCursor(inner.repository, c);
|
|
@@ -5162,7 +5162,7 @@ const FfiConverterTypeRecoveryIssue = (() => {
|
|
|
5162
5162
|
FfiConverterString.writeIntoCursor(inner.message, c);
|
|
5163
5163
|
return;
|
|
5164
5164
|
}
|
|
5165
|
-
case "
|
|
5165
|
+
case "CapabilitiesUnavailable": {
|
|
5166
5166
|
c.writeI32(8);
|
|
5167
5167
|
const inner = value.inner;
|
|
5168
5168
|
FfiConverterString.writeIntoCursor(inner.repository, c);
|
|
@@ -5175,7 +5175,7 @@ const FfiConverterTypeRecoveryIssue = (() => {
|
|
|
5175
5175
|
FfiConverterUInt64.writeIntoCursor(inner.capBytes, c);
|
|
5176
5176
|
return;
|
|
5177
5177
|
}
|
|
5178
|
-
case "
|
|
5178
|
+
case "CandidateFetchFailed": {
|
|
5179
5179
|
c.writeI32(10);
|
|
5180
5180
|
const inner = value.inner;
|
|
5181
5181
|
FfiConverterString.writeIntoCursor(inner.repository, c);
|
|
@@ -5183,7 +5183,7 @@ const FfiConverterTypeRecoveryIssue = (() => {
|
|
|
5183
5183
|
FfiConverterString.writeIntoCursor(inner.message, c);
|
|
5184
5184
|
return;
|
|
5185
5185
|
}
|
|
5186
|
-
case "
|
|
5186
|
+
case "CandidateInvalid": {
|
|
5187
5187
|
c.writeI32(11);
|
|
5188
5188
|
const inner = value.inner;
|
|
5189
5189
|
FfiConverterString.writeIntoCursor(inner.manifestId, c);
|
|
@@ -5198,7 +5198,7 @@ const FfiConverterTypeRecoveryIssue = (() => {
|
|
|
5198
5198
|
FfiConverterString.writeIntoCursor(inner.endpoint, c);
|
|
5199
5199
|
return;
|
|
5200
5200
|
}
|
|
5201
|
-
case "
|
|
5201
|
+
case "ResourceLimitReached": {
|
|
5202
5202
|
c.writeI32(13);
|
|
5203
5203
|
const inner = value.inner;
|
|
5204
5204
|
FfiConverterString.writeIntoCursor(inner.message, c);
|
|
@@ -5209,14 +5209,14 @@ const FfiConverterTypeRecoveryIssue = (() => {
|
|
|
5209
5209
|
}
|
|
5210
5210
|
allocationSize(value) {
|
|
5211
5211
|
switch (value.tag) {
|
|
5212
|
-
case "
|
|
5212
|
+
case "BinderFailed": {
|
|
5213
5213
|
const inner = value.inner;
|
|
5214
5214
|
let size = 4;
|
|
5215
5215
|
size += FfiConverterUInt32.allocationSize(inner.binderIndex);
|
|
5216
5216
|
size += FfiConverterString.allocationSize(inner.message);
|
|
5217
5217
|
return size;
|
|
5218
5218
|
}
|
|
5219
|
-
case "
|
|
5219
|
+
case "AlgorithmDeprecated": {
|
|
5220
5220
|
const inner = value.inner;
|
|
5221
5221
|
let size = 4;
|
|
5222
5222
|
size += FfiConverterString.allocationSize(inner.algorithm);
|
|
@@ -5229,7 +5229,7 @@ const FfiConverterTypeRecoveryIssue = (() => {
|
|
|
5229
5229
|
size += FfiConverterString.allocationSize(inner.algorithm);
|
|
5230
5230
|
return size;
|
|
5231
5231
|
}
|
|
5232
|
-
case "
|
|
5232
|
+
case "BindingQueryFailed": {
|
|
5233
5233
|
const inner = value.inner;
|
|
5234
5234
|
let size = 4;
|
|
5235
5235
|
size += FfiConverterString.allocationSize(inner.repository);
|
|
@@ -5246,14 +5246,14 @@ const FfiConverterTypeRecoveryIssue = (() => {
|
|
|
5246
5246
|
size += FfiConverterString.allocationSize(inner.message);
|
|
5247
5247
|
return size;
|
|
5248
5248
|
}
|
|
5249
|
-
case "
|
|
5249
|
+
case "ContentFormUnsupported": {
|
|
5250
5250
|
const inner = value.inner;
|
|
5251
5251
|
let size = 4;
|
|
5252
5252
|
size += FfiConverterString.allocationSize(inner.repository);
|
|
5253
5253
|
size += FfiConverterString.allocationSize(inner.message);
|
|
5254
5254
|
return size;
|
|
5255
5255
|
}
|
|
5256
|
-
case "
|
|
5256
|
+
case "ContentQueryFailed": {
|
|
5257
5257
|
const inner = value.inner;
|
|
5258
5258
|
let size = 4;
|
|
5259
5259
|
size += FfiConverterString.allocationSize(inner.repository);
|
|
@@ -5261,7 +5261,7 @@ const FfiConverterTypeRecoveryIssue = (() => {
|
|
|
5261
5261
|
size += FfiConverterString.allocationSize(inner.message);
|
|
5262
5262
|
return size;
|
|
5263
5263
|
}
|
|
5264
|
-
case "
|
|
5264
|
+
case "CapabilitiesUnavailable": {
|
|
5265
5265
|
const inner = value.inner;
|
|
5266
5266
|
let size = 4;
|
|
5267
5267
|
size += FfiConverterString.allocationSize(inner.repository);
|
|
@@ -5274,7 +5274,7 @@ const FfiConverterTypeRecoveryIssue = (() => {
|
|
|
5274
5274
|
size += FfiConverterUInt64.allocationSize(inner.capBytes);
|
|
5275
5275
|
return size;
|
|
5276
5276
|
}
|
|
5277
|
-
case "
|
|
5277
|
+
case "CandidateFetchFailed": {
|
|
5278
5278
|
const inner = value.inner;
|
|
5279
5279
|
let size = 4;
|
|
5280
5280
|
size += FfiConverterString.allocationSize(inner.repository);
|
|
@@ -5282,7 +5282,7 @@ const FfiConverterTypeRecoveryIssue = (() => {
|
|
|
5282
5282
|
size += FfiConverterString.allocationSize(inner.message);
|
|
5283
5283
|
return size;
|
|
5284
5284
|
}
|
|
5285
|
-
case "
|
|
5285
|
+
case "CandidateInvalid": {
|
|
5286
5286
|
const inner = value.inner;
|
|
5287
5287
|
let size = 4;
|
|
5288
5288
|
size += FfiConverterString.allocationSize(inner.manifestId);
|
|
@@ -5297,7 +5297,7 @@ const FfiConverterTypeRecoveryIssue = (() => {
|
|
|
5297
5297
|
size += FfiConverterString.allocationSize(inner.endpoint);
|
|
5298
5298
|
return size;
|
|
5299
5299
|
}
|
|
5300
|
-
case "
|
|
5300
|
+
case "ResourceLimitReached": {
|
|
5301
5301
|
const inner = value.inner;
|
|
5302
5302
|
let size = 4;
|
|
5303
5303
|
size += FfiConverterString.allocationSize(inner.message);
|
|
@@ -5358,7 +5358,7 @@ let GoldenComparison_Tags = /* @__PURE__ */ function(GoldenComparison_Tags) {
|
|
|
5358
5358
|
*/
|
|
5359
5359
|
const GoldenComparison = (() => {
|
|
5360
5360
|
/**
|
|
5361
|
-
* `recovery.when` is `
|
|
5361
|
+
* `recovery.when` is `manifestMissing`, so nothing was recovered beside a valid manifest.
|
|
5362
5362
|
*/
|
|
5363
5363
|
class NotRequested_ extends UniffiEnum {
|
|
5364
5364
|
/**
|
|
@@ -5940,20 +5940,20 @@ const FfiConverterTypeAssetVerification = (() => {
|
|
|
5940
5940
|
class FFIConverter extends AbstractFfiConverterByteArray {
|
|
5941
5941
|
readFromCursor(c) {
|
|
5942
5942
|
return {
|
|
5943
|
-
credentials:
|
|
5943
|
+
credentials: FfiConverterSequenceTypeCredential.readFromCursor(c),
|
|
5944
5944
|
recovery: FfiConverterTypeRecoverySummary.readFromCursor(c),
|
|
5945
5945
|
goldenComparison: FfiConverterTypeGoldenComparison.readFromCursor(c),
|
|
5946
5946
|
verdict: FfiConverterTypeVerdict.readFromCursor(c)
|
|
5947
5947
|
};
|
|
5948
5948
|
}
|
|
5949
5949
|
writeIntoCursor(value, c) {
|
|
5950
|
-
|
|
5950
|
+
FfiConverterSequenceTypeCredential.writeIntoCursor(value.credentials, c);
|
|
5951
5951
|
FfiConverterTypeRecoverySummary.writeIntoCursor(value.recovery, c);
|
|
5952
5952
|
FfiConverterTypeGoldenComparison.writeIntoCursor(value.goldenComparison, c);
|
|
5953
5953
|
FfiConverterTypeVerdict.writeIntoCursor(value.verdict, c);
|
|
5954
5954
|
}
|
|
5955
5955
|
allocationSize(value) {
|
|
5956
|
-
return
|
|
5956
|
+
return FfiConverterSequenceTypeCredential.allocationSize(value.credentials) + FfiConverterTypeRecoverySummary.allocationSize(value.recovery) + FfiConverterTypeGoldenComparison.allocationSize(value.goldenComparison) + FfiConverterTypeVerdict.allocationSize(value.verdict);
|
|
5957
5957
|
}
|
|
5958
5958
|
}
|
|
5959
5959
|
return new FFIConverter();
|
|
@@ -6199,7 +6199,8 @@ const FfiConverterTypeByReference = (() => {
|
|
|
6199
6199
|
after: FfiConverterTypeContentTrigger.readFromCursor(c),
|
|
6200
6200
|
url: FfiConverterString.readFromCursor(c),
|
|
6201
6201
|
length: FfiConverterUInt64.readFromCursor(c),
|
|
6202
|
-
mediaType: FfiConverterOptionalString.readFromCursor(c)
|
|
6202
|
+
mediaType: FfiConverterOptionalString.readFromCursor(c),
|
|
6203
|
+
region: FfiConverterSequenceTypeRange.readFromCursor(c)
|
|
6203
6204
|
};
|
|
6204
6205
|
}
|
|
6205
6206
|
writeIntoCursor(value, c) {
|
|
@@ -6207,9 +6208,10 @@ const FfiConverterTypeByReference = (() => {
|
|
|
6207
6208
|
FfiConverterString.writeIntoCursor(value.url, c);
|
|
6208
6209
|
FfiConverterUInt64.writeIntoCursor(value.length, c);
|
|
6209
6210
|
FfiConverterOptionalString.writeIntoCursor(value.mediaType, c);
|
|
6211
|
+
FfiConverterSequenceTypeRange.writeIntoCursor(value.region, c);
|
|
6210
6212
|
}
|
|
6211
6213
|
allocationSize(value) {
|
|
6212
|
-
return FfiConverterTypeContentTrigger.allocationSize(value.after) + FfiConverterString.allocationSize(value.url) + FfiConverterUInt64.allocationSize(value.length) + FfiConverterOptionalString.allocationSize(value.mediaType);
|
|
6214
|
+
return FfiConverterTypeContentTrigger.allocationSize(value.after) + FfiConverterString.allocationSize(value.url) + FfiConverterUInt64.allocationSize(value.length) + FfiConverterOptionalString.allocationSize(value.mediaType) + FfiConverterSequenceTypeRange.allocationSize(value.region);
|
|
6213
6215
|
}
|
|
6214
6216
|
}
|
|
6215
6217
|
return new FFIConverter();
|
|
@@ -6584,13 +6586,13 @@ const FfiConverterTypeMediaValidation = (() => {
|
|
|
6584
6586
|
/**
|
|
6585
6587
|
* When [`AssetVerifier::verify_asset`] queries the repository.
|
|
6586
6588
|
*/
|
|
6587
|
-
let
|
|
6589
|
+
let RecoveryTrigger = /* @__PURE__ */ function(RecoveryTrigger) {
|
|
6588
6590
|
/**
|
|
6589
6591
|
* When the asset has no embedded manifest or its active manifest is invalid. This includes
|
|
6590
6592
|
* stripped assets and invalid manifests, for which C2PA 2.4 permits soft-binding discovery.
|
|
6591
6593
|
* A valid embedded manifest costs no repository round trip.
|
|
6592
6594
|
*/
|
|
6593
|
-
|
|
6595
|
+
RecoveryTrigger[RecoveryTrigger["ManifestMissing"] = 0] = "ManifestMissing";
|
|
6594
6596
|
/**
|
|
6595
6597
|
* On every verify, alongside the embedded manifest, so the two can be compared.
|
|
6596
6598
|
*
|
|
@@ -6605,10 +6607,10 @@ let RecoveryPolicy = /* @__PURE__ */ function(RecoveryPolicy) {
|
|
|
6605
6607
|
* reason as a [`RecoveryIssue`], and [`GoldenComparison::RecoveryIncomplete`]. A caller for whom a
|
|
6606
6608
|
* cross-check that never ran must not pass for agreement branches on that status.
|
|
6607
6609
|
*/
|
|
6608
|
-
|
|
6609
|
-
return
|
|
6610
|
+
RecoveryTrigger[RecoveryTrigger["Always"] = 1] = "Always";
|
|
6611
|
+
return RecoveryTrigger;
|
|
6610
6612
|
}({});
|
|
6611
|
-
const
|
|
6613
|
+
const FfiConverterTypeRecoveryTrigger = (() => {
|
|
6612
6614
|
class FFIConverter extends AbstractFfiConverterByteArray {
|
|
6613
6615
|
readFromCursor(c) {
|
|
6614
6616
|
switch (c.readI32()) {
|
|
@@ -6632,8 +6634,9 @@ const FfiConverterTypeRecoveryPolicy = (() => {
|
|
|
6632
6634
|
/**
|
|
6633
6635
|
* A canonical gRPC/Connect status code: the coarse, closed failure class.
|
|
6634
6636
|
*
|
|
6635
|
-
* The wasm lane projects this as
|
|
6636
|
-
* narrows on `err.code === "
|
|
6637
|
+
* The wasm lane projects this as a camelCase string like every other tagged value
|
|
6638
|
+
* there, so a consumer narrows on `err.code === "resourceExhausted"`; the native lane
|
|
6639
|
+
* projects an enum.
|
|
6637
6640
|
*/
|
|
6638
6641
|
let Code = /* @__PURE__ */ function(Code) {
|
|
6639
6642
|
Code[Code["Canceled"] = 0] = "Canceled";
|
|
@@ -7198,20 +7201,20 @@ const FfiConverterTypeRecovery = (() => {
|
|
|
7198
7201
|
class FFIConverter extends AbstractFfiConverterByteArray {
|
|
7199
7202
|
readFromCursor(c) {
|
|
7200
7203
|
return {
|
|
7201
|
-
when:
|
|
7204
|
+
when: FfiConverterTypeRecoveryTrigger.readFromCursor(c),
|
|
7202
7205
|
binders: FfiConverterSequenceTypeBinder.readFromCursor(c),
|
|
7203
7206
|
byContent: FfiConverterOptionalTypeByContent.readFromCursor(c),
|
|
7204
7207
|
byReference: FfiConverterOptionalTypeByReference.readFromCursor(c)
|
|
7205
7208
|
};
|
|
7206
7209
|
}
|
|
7207
7210
|
writeIntoCursor(value, c) {
|
|
7208
|
-
|
|
7211
|
+
FfiConverterTypeRecoveryTrigger.writeIntoCursor(value.when, c);
|
|
7209
7212
|
FfiConverterSequenceTypeBinder.writeIntoCursor(value.binders, c);
|
|
7210
7213
|
FfiConverterOptionalTypeByContent.writeIntoCursor(value.byContent, c);
|
|
7211
7214
|
FfiConverterOptionalTypeByReference.writeIntoCursor(value.byReference, c);
|
|
7212
7215
|
}
|
|
7213
7216
|
allocationSize(value) {
|
|
7214
|
-
return
|
|
7217
|
+
return FfiConverterTypeRecoveryTrigger.allocationSize(value.when) + FfiConverterSequenceTypeBinder.allocationSize(value.binders) + FfiConverterOptionalTypeByContent.allocationSize(value.byContent) + FfiConverterOptionalTypeByReference.allocationSize(value.byReference);
|
|
7215
7218
|
}
|
|
7216
7219
|
}
|
|
7217
7220
|
return new FFIConverter();
|
|
@@ -7293,7 +7296,7 @@ let SegmentValidation_Tags = /* @__PURE__ */ function(SegmentValidation_Tags) {
|
|
|
7293
7296
|
return SegmentValidation_Tags;
|
|
7294
7297
|
}({});
|
|
7295
7298
|
/**
|
|
7296
|
-
* Result of `
|
|
7299
|
+
* Result of `StreamSession.validate`.
|
|
7297
7300
|
*/
|
|
7298
7301
|
const SegmentValidation = (() => {
|
|
7299
7302
|
class Init_ extends UniffiEnum {
|
|
@@ -7412,11 +7415,11 @@ const FfiConverterTypeSegmentValidation = (() => {
|
|
|
7412
7415
|
}
|
|
7413
7416
|
return new FFIConverter();
|
|
7414
7417
|
})();
|
|
7415
|
-
const
|
|
7418
|
+
const uniffiCallbackInterfacePluginReader = {
|
|
7416
7419
|
vtable: {
|
|
7417
7420
|
media_types: (uniffiHandle) => {
|
|
7418
7421
|
const uniffiMakeCall = () => {
|
|
7419
|
-
return
|
|
7422
|
+
return FfiConverterTypePluginReader.lift(uniffiHandle).mediaTypes();
|
|
7420
7423
|
};
|
|
7421
7424
|
const uniffiResult = UniffiResult.ready();
|
|
7422
7425
|
const uniffiHandleSuccess = (obj) => {
|
|
@@ -7430,7 +7433,7 @@ const uniffiCallbackInterfacePluginRead = {
|
|
|
7430
7433
|
},
|
|
7431
7434
|
sniff: (uniffiHandle, src, uniffiFutureCallback, uniffiCallbackData) => {
|
|
7432
7435
|
const uniffiMakeCall = async (signal) => {
|
|
7433
|
-
return await
|
|
7436
|
+
return await FfiConverterTypePluginReader.lift(uniffiHandle).sniff(FfiConverterTypeRangeSource.lift(src), { signal });
|
|
7434
7437
|
};
|
|
7435
7438
|
const uniffiHandleSuccess = (returnValue) => {
|
|
7436
7439
|
uniffiFutureCallback.call(uniffiFutureCallback, uniffiCallbackData, {
|
|
@@ -7448,7 +7451,7 @@ const uniffiCallbackInterfacePluginRead = {
|
|
|
7448
7451
|
},
|
|
7449
7452
|
locate: (uniffiHandle, src, uniffiFutureCallback, uniffiCallbackData) => {
|
|
7450
7453
|
const uniffiMakeCall = async (signal) => {
|
|
7451
|
-
return await
|
|
7454
|
+
return await FfiConverterTypePluginReader.lift(uniffiHandle).locate(FfiConverterTypeRangeSource.lift(src), { signal });
|
|
7452
7455
|
};
|
|
7453
7456
|
const uniffiHandleSuccess = (returnValue) => {
|
|
7454
7457
|
uniffiFutureCallback.call(uniffiFutureCallback, uniffiCallbackData, {
|
|
@@ -7465,17 +7468,17 @@ const uniffiCallbackInterfacePluginRead = {
|
|
|
7465
7468
|
return uniffiTraitInterfaceCallAsyncWithError(uniffiMakeCall, uniffiHandleSuccess, uniffiHandleError, SdkError.instanceOf, FfiConverterTypeSdkError.lower.bind(FfiConverterTypeSdkError), FfiConverterString.lower.bind(FfiConverterString), getter().rustbuffer_alloc);
|
|
7466
7469
|
},
|
|
7467
7470
|
uniffi_free: (uniffiHandle) => {
|
|
7468
|
-
|
|
7471
|
+
FfiConverterTypePluginReader.drop(uniffiHandle);
|
|
7469
7472
|
},
|
|
7470
7473
|
uniffi_clone: (uniffiHandle) => {
|
|
7471
|
-
return
|
|
7474
|
+
return FfiConverterTypePluginReader.clone(uniffiHandle);
|
|
7472
7475
|
}
|
|
7473
7476
|
},
|
|
7474
7477
|
register: () => {
|
|
7475
|
-
getter().
|
|
7478
|
+
getter().uniffi_trylimbo_sdk_verifier_fn_init_callback_vtable_pluginreader(uniffiCallbackInterfacePluginReader.vtable);
|
|
7476
7479
|
}
|
|
7477
7480
|
};
|
|
7478
|
-
const
|
|
7481
|
+
const FfiConverterTypePluginReader = new FfiConverterCallback();
|
|
7479
7482
|
/**
|
|
7480
7483
|
* A C2PA asset verifier bound to a trust configuration. Construct once, verify many.
|
|
7481
7484
|
*/
|
|
@@ -7518,7 +7521,7 @@ var AssetVerifier = class extends UniffiAbstractObject {
|
|
|
7518
7521
|
const __stack = uniffiIsDebug ? (/* @__PURE__ */ new Error()).stack : void 0;
|
|
7519
7522
|
try {
|
|
7520
7523
|
return await uniffiRustCallAsync(uniffiCaller, () => {
|
|
7521
|
-
return getter().uniffi_trylimbo_sdk_verifier_fn_method_assetverifier_verify(uniffiTypeAssetVerifierObjectFactory.clonePointer(this), FfiConverterTypeRangeSource.lower(source, getter().rustbuffer_alloc), FfiConverterOptionalTypeRecovery.lower(recovery, getter().rustbuffer_alloc),
|
|
7524
|
+
return getter().uniffi_trylimbo_sdk_verifier_fn_method_assetverifier_verify(uniffiTypeAssetVerifierObjectFactory.clonePointer(this), FfiConverterTypeRangeSource.lower(source, getter().rustbuffer_alloc), FfiConverterOptionalTypeRecovery.lower(recovery, getter().rustbuffer_alloc), FfiConverterSequenceTypePluginReader.lower(plugins, getter().rustbuffer_alloc));
|
|
7522
7525
|
}, getter().ffi_trylimbo_sdk_verifier_rust_future_poll_rust_buffer, getter().ffi_trylimbo_sdk_verifier_rust_future_cancel_rust_buffer, getter().ffi_trylimbo_sdk_verifier_rust_future_complete_rust_buffer, getter().ffi_trylimbo_sdk_verifier_rust_future_free_rust_buffer, (__rb) => {
|
|
7523
7526
|
try {
|
|
7524
7527
|
return FfiConverterTypeAssetVerification.lift(__rb);
|
|
@@ -7998,14 +8001,14 @@ const FfiConverterTypeMemorySource = new FfiConverterObject(uniffiTypeMemorySour
|
|
|
7998
8001
|
* One stream being validated. It owns the session keys and manifest ids its init segments
|
|
7999
8002
|
* advertised, so releasing the stream is dropping this object.
|
|
8000
8003
|
*/
|
|
8001
|
-
var
|
|
8002
|
-
[uniffiTypeNameSymbol] = "
|
|
8004
|
+
var StreamSession = class extends UniffiAbstractObject {
|
|
8005
|
+
[uniffiTypeNameSymbol] = "StreamSession";
|
|
8003
8006
|
[destructorGuardSymbol];
|
|
8004
8007
|
[pointerLiteralSymbol];
|
|
8005
8008
|
constructor(pointer) {
|
|
8006
8009
|
super();
|
|
8007
8010
|
this[pointerLiteralSymbol] = pointer;
|
|
8008
|
-
this[destructorGuardSymbol] =
|
|
8011
|
+
this[destructorGuardSymbol] = uniffiTypeStreamSessionObjectFactory.bless(pointer);
|
|
8009
8012
|
}
|
|
8010
8013
|
/**
|
|
8011
8014
|
* Everything this stream's init segments have registered, as CBOR for another node to
|
|
@@ -8022,7 +8025,7 @@ var StreamValidation = class extends UniffiAbstractObject {
|
|
|
8022
8025
|
*/
|
|
8023
8026
|
export_() {
|
|
8024
8027
|
const __rb = uniffiCaller.rustCallWithError(FfiConverterTypeSdkError.lift.bind(FfiConverterTypeSdkError), (callStatus) => {
|
|
8025
|
-
return getter().
|
|
8028
|
+
return getter().uniffi_trylimbo_sdk_verifier_fn_method_streamsession_export(uniffiTypeStreamSessionObjectFactory.clonePointer(this), callStatus);
|
|
8026
8029
|
}, FfiConverterString.lift.bind(FfiConverterString));
|
|
8027
8030
|
try {
|
|
8028
8031
|
return FfiConverterArrayBuffer.lift(__rb);
|
|
@@ -8036,7 +8039,7 @@ var StreamValidation = class extends UniffiAbstractObject {
|
|
|
8036
8039
|
*
|
|
8037
8040
|
* # Errors
|
|
8038
8041
|
*
|
|
8039
|
-
* A `
|
|
8042
|
+
* A `STREAM_INVALID` fault when an init segment is malformed or carries no valid
|
|
8040
8043
|
* manifest, or when a media segment arrives before any init was processed for the
|
|
8041
8044
|
* stream.
|
|
8042
8045
|
*/
|
|
@@ -8044,7 +8047,7 @@ var StreamValidation = class extends UniffiAbstractObject {
|
|
|
8044
8047
|
const __stack = uniffiIsDebug ? (/* @__PURE__ */ new Error()).stack : void 0;
|
|
8045
8048
|
try {
|
|
8046
8049
|
return await uniffiRustCallAsync(uniffiCaller, () => {
|
|
8047
|
-
return getter().
|
|
8050
|
+
return getter().uniffi_trylimbo_sdk_verifier_fn_method_streamsession_validate(uniffiTypeStreamSessionObjectFactory.clonePointer(this), FfiConverterTypeRangeSource.lower(data, getter().rustbuffer_alloc));
|
|
8048
8051
|
}, getter().ffi_trylimbo_sdk_verifier_rust_future_poll_rust_buffer, getter().ffi_trylimbo_sdk_verifier_rust_future_cancel_rust_buffer, getter().ffi_trylimbo_sdk_verifier_rust_future_complete_rust_buffer, getter().ffi_trylimbo_sdk_verifier_rust_future_free_rust_buffer, (__rb) => {
|
|
8049
8052
|
try {
|
|
8050
8053
|
return FfiConverterTypeSegmentValidation.lift(__rb);
|
|
@@ -8060,26 +8063,26 @@ var StreamValidation = class extends UniffiAbstractObject {
|
|
|
8060
8063
|
uniffiDestroy() {
|
|
8061
8064
|
const ptr = this[destructorGuardSymbol];
|
|
8062
8065
|
if (ptr !== void 0) {
|
|
8063
|
-
const pointer =
|
|
8064
|
-
|
|
8065
|
-
|
|
8066
|
+
const pointer = uniffiTypeStreamSessionObjectFactory.pointer(this);
|
|
8067
|
+
uniffiTypeStreamSessionObjectFactory.freePointer(pointer);
|
|
8068
|
+
uniffiTypeStreamSessionObjectFactory.unbless(ptr);
|
|
8066
8069
|
delete this[destructorGuardSymbol];
|
|
8067
8070
|
}
|
|
8068
8071
|
}
|
|
8069
8072
|
static instanceOf(obj_) {
|
|
8070
|
-
return
|
|
8073
|
+
return uniffiTypeStreamSessionObjectFactory.isConcreteType(obj_);
|
|
8071
8074
|
}
|
|
8072
8075
|
};
|
|
8073
|
-
const
|
|
8076
|
+
const uniffiTypeStreamSessionObjectFactory = (() => {
|
|
8074
8077
|
const registry = typeof FinalizationRegistry !== "undefined" ? new FinalizationRegistry((heldValue) => {
|
|
8075
|
-
|
|
8078
|
+
uniffiTypeStreamSessionObjectFactory.freePointer(heldValue);
|
|
8076
8079
|
}) : null;
|
|
8077
8080
|
return {
|
|
8078
8081
|
create(pointer) {
|
|
8079
|
-
const instance = Object.create(
|
|
8082
|
+
const instance = Object.create(StreamSession.prototype);
|
|
8080
8083
|
instance[pointerLiteralSymbol] = pointer;
|
|
8081
8084
|
instance[destructorGuardSymbol] = this.bless(pointer);
|
|
8082
|
-
instance[uniffiTypeNameSymbol] = "
|
|
8085
|
+
instance[uniffiTypeNameSymbol] = "StreamSession";
|
|
8083
8086
|
return instance;
|
|
8084
8087
|
},
|
|
8085
8088
|
bless(p) {
|
|
@@ -8099,17 +8102,17 @@ const uniffiTypeStreamValidationObjectFactory = (() => {
|
|
|
8099
8102
|
},
|
|
8100
8103
|
clonePointer(obj_) {
|
|
8101
8104
|
const pointer = this.pointer(obj_);
|
|
8102
|
-
return uniffiCaller.rustCall((callStatus) => getter().
|
|
8105
|
+
return uniffiCaller.rustCall((callStatus) => getter().uniffi_trylimbo_sdk_verifier_fn_clone_streamsession(pointer, callStatus), FfiConverterString.lift);
|
|
8103
8106
|
},
|
|
8104
8107
|
freePointer(pointer) {
|
|
8105
|
-
uniffiCaller.rustCall((callStatus) => getter().
|
|
8108
|
+
uniffiCaller.rustCall((callStatus) => getter().uniffi_trylimbo_sdk_verifier_fn_free_streamsession(pointer, callStatus), FfiConverterString.lift);
|
|
8106
8109
|
},
|
|
8107
8110
|
isConcreteType(obj_) {
|
|
8108
|
-
return obj_[destructorGuardSymbol] && obj_[uniffiTypeNameSymbol] === "
|
|
8111
|
+
return obj_[destructorGuardSymbol] && obj_[uniffiTypeNameSymbol] === "StreamSession";
|
|
8109
8112
|
}
|
|
8110
8113
|
};
|
|
8111
8114
|
})();
|
|
8112
|
-
const
|
|
8115
|
+
const FfiConverterTypeStreamSession = new FfiConverterObject(uniffiTypeStreamSessionObjectFactory);
|
|
8113
8116
|
/**
|
|
8114
8117
|
* A live-stream verifier bound to a trust configuration. Construct once with
|
|
8115
8118
|
* [`create`](Self::create), then [`open`](Self::open) a stream to feed segments to.
|
|
@@ -8136,7 +8139,7 @@ var StreamVerifier = class extends UniffiAbstractObject {
|
|
|
8136
8139
|
}, FfiConverterString.lift.bind(FfiConverterString)));
|
|
8137
8140
|
}
|
|
8138
8141
|
/**
|
|
8139
|
-
* Open `stream_id` for validation, handing back a [`
|
|
8142
|
+
* Open `stream_id` for validation, handing back a [`StreamSession`] to feed
|
|
8140
8143
|
* segments to.
|
|
8141
8144
|
*
|
|
8142
8145
|
* No I/O: the handle carries the id so it cannot be mistyped or confused with another
|
|
@@ -8145,7 +8148,7 @@ var StreamVerifier = class extends UniffiAbstractObject {
|
|
|
8145
8148
|
* handle accumulated.
|
|
8146
8149
|
*/
|
|
8147
8150
|
open(streamId) {
|
|
8148
|
-
return
|
|
8151
|
+
return FfiConverterTypeStreamSession.lift(uniffiCaller.rustCall((callStatus) => {
|
|
8149
8152
|
return getter().uniffi_trylimbo_sdk_verifier_fn_method_streamverifier_open(uniffiTypeStreamVerifierObjectFactory.clonePointer(this), FfiConverterString.lower(streamId, getter().rustbuffer_alloc), callStatus);
|
|
8150
8153
|
}, FfiConverterString.lift.bind(FfiConverterString)));
|
|
8151
8154
|
}
|
|
@@ -8155,11 +8158,11 @@ var StreamVerifier = class extends UniffiAbstractObject {
|
|
|
8155
8158
|
*
|
|
8156
8159
|
* # Errors
|
|
8157
8160
|
*
|
|
8158
|
-
* `STREAM_INVALID` when `state` is not a value [`
|
|
8161
|
+
* `STREAM_INVALID` when `state` is not a value [`StreamSession::export`] produced,
|
|
8159
8162
|
* or carries a version this SDK no longer reads.
|
|
8160
8163
|
*/
|
|
8161
8164
|
resume(streamId, state) {
|
|
8162
|
-
return
|
|
8165
|
+
return FfiConverterTypeStreamSession.lift(uniffiCaller.rustCallWithError(FfiConverterTypeSdkError.lift.bind(FfiConverterTypeSdkError), (callStatus) => {
|
|
8163
8166
|
return getter().uniffi_trylimbo_sdk_verifier_fn_method_streamverifier_resume(uniffiTypeStreamVerifierObjectFactory.clonePointer(this), FfiConverterString.lower(streamId, getter().rustbuffer_alloc), FfiConverterArrayBuffer.lower(state, getter().rustbuffer_alloc), callStatus);
|
|
8164
8167
|
}, FfiConverterString.lift.bind(FfiConverterString)));
|
|
8165
8168
|
}
|
|
@@ -8223,7 +8226,7 @@ const FfiConverterOptionalTypeDataSource = new FfiConverterOptional(FfiConverter
|
|
|
8223
8226
|
const FfiConverterMapStringString = new FfiConverterMap(FfiConverterString, FfiConverterString);
|
|
8224
8227
|
const FfiConverterOptionalSequenceMapStringMapStringString = new FfiConverterOptional(new FfiConverterArray(new FfiConverterMap(FfiConverterString, FfiConverterMapStringString)));
|
|
8225
8228
|
const FfiConverterOptionalTypeHashedUri = new FfiConverterOptional(FfiConverterTypeHashedUri);
|
|
8226
|
-
const
|
|
8229
|
+
const FfiConverterOptionalTypeJsonValue = new FfiConverterOptional(FfiConverterTypeJsonValue);
|
|
8227
8230
|
const FfiConverterOptionalInt32 = new FfiConverterOptional(FfiConverterInt32);
|
|
8228
8231
|
const FfiConverterOptionalTypeFrame = new FfiConverterOptional(FfiConverterTypeFrame);
|
|
8229
8232
|
const FfiConverterOptionalTypeItem = new FfiConverterOptional(FfiConverterTypeItem);
|
|
@@ -8251,7 +8254,7 @@ const FfiConverterOptionalSequenceTypeAssetType = new FfiConverterOptional(new F
|
|
|
8251
8254
|
const FfiConverterOptionalTypeUriOrResource = new FfiConverterOptional(FfiConverterTypeUriOrResource);
|
|
8252
8255
|
const FfiConverterOptionalSequenceTypeClaimGeneratorInfo = new FfiConverterOptional(new FfiConverterArray(FfiConverterTypeClaimGeneratorInfo));
|
|
8253
8256
|
const FfiConverterOptionalUInt8 = new FfiConverterOptional(FfiConverterUInt8);
|
|
8254
|
-
const
|
|
8257
|
+
const FfiConverterOptionalSequenceTypeJsonValue = new FfiConverterOptional(new FfiConverterArray(FfiConverterTypeJsonValue));
|
|
8255
8258
|
const FfiConverterOptionalTypeResourceRef = new FfiConverterOptional(FfiConverterTypeResourceRef);
|
|
8256
8259
|
const FfiConverterOptionalTypeAssertionMetadata = new FfiConverterOptional(FfiConverterTypeAssertionMetadata);
|
|
8257
8260
|
const FfiConverterOptionalSequenceTypeResourceRef = new FfiConverterOptional(new FfiConverterArray(FfiConverterTypeResourceRef));
|
|
@@ -8268,7 +8271,7 @@ const FfiConverterOptionalTypeSigningAlgSchema = new FfiConverterOptional(FfiCon
|
|
|
8268
8271
|
const FfiConverterOptionalTypeSignatureInfo = new FfiConverterOptional(FfiConverterTypeSignatureInfo);
|
|
8269
8272
|
const FfiConverterMapStringTypeManifest = new FfiConverterMap(FfiConverterString, FfiConverterTypeManifest);
|
|
8270
8273
|
const FfiConverterOptionalTypeValidationState = new FfiConverterOptional(FfiConverterTypeValidationState);
|
|
8271
|
-
const
|
|
8274
|
+
const FfiConverterSequenceTypeCredential = new FfiConverterArray(FfiConverterTypeCredential);
|
|
8272
8275
|
const FfiConverterSequenceTypeRecoveryIssue = new FfiConverterArray(FfiConverterTypeRecoveryIssue);
|
|
8273
8276
|
const FfiConverterSequenceUInt32 = new FfiConverterArray(FfiConverterUInt32);
|
|
8274
8277
|
const FfiConverterSequenceTypeRepository = new FfiConverterArray(FfiConverterTypeRepository);
|
|
@@ -8280,7 +8283,7 @@ const FfiConverterOptionalTypeByContent = new FfiConverterOptional(FfiConverterT
|
|
|
8280
8283
|
const FfiConverterOptionalTypeByReference = new FfiConverterOptional(FfiConverterTypeByReference);
|
|
8281
8284
|
const FfiConverterOptionalTypeRecovery = new FfiConverterOptional(FfiConverterTypeRecovery);
|
|
8282
8285
|
const FfiConverterSequenceTypeRegion = new FfiConverterArray(FfiConverterTypeRegion);
|
|
8283
|
-
const
|
|
8286
|
+
const FfiConverterSequenceTypePluginReader = new FfiConverterArray(FfiConverterTypePluginReader);
|
|
8284
8287
|
const FfiConverterOptionalBytes = new FfiConverterOptional(FfiConverterArrayBuffer);
|
|
8285
8288
|
/**
|
|
8286
8289
|
* This should be called before anything else.
|
|
@@ -8303,7 +8306,7 @@ function uniffiEnsureInitialized() {
|
|
|
8303
8306
|
if (getter().uniffi_trylimbo_sdk_verifier_checksum_func_resource() !== 40984) throw new UniffiInternalError.ApiChecksumMismatch("uniffi_trylimbo_sdk_verifier_checksum_func_resource");
|
|
8304
8307
|
if (getter().uniffi_trylimbo_sdk_verifier_checksum_func_thumbnails() !== 52018) throw new UniffiInternalError.ApiChecksumMismatch("uniffi_trylimbo_sdk_verifier_checksum_func_thumbnails");
|
|
8305
8308
|
if (getter().uniffi_trylimbo_sdk_verifier_checksum_constructor_assetverifier_create() !== 14882) throw new UniffiInternalError.ApiChecksumMismatch("uniffi_trylimbo_sdk_verifier_checksum_constructor_assetverifier_create");
|
|
8306
|
-
if (getter().uniffi_trylimbo_sdk_verifier_checksum_method_assetverifier_verify() !==
|
|
8309
|
+
if (getter().uniffi_trylimbo_sdk_verifier_checksum_method_assetverifier_verify() !== 32692) throw new UniffiInternalError.ApiChecksumMismatch("uniffi_trylimbo_sdk_verifier_checksum_method_assetverifier_verify");
|
|
8307
8310
|
if (getter().uniffi_trylimbo_sdk_verifier_checksum_method_binder_derive() !== 7656) throw new UniffiInternalError.ApiChecksumMismatch("uniffi_trylimbo_sdk_verifier_checksum_method_binder_derive");
|
|
8308
8311
|
if (getter().uniffi_trylimbo_sdk_verifier_checksum_constructor_filesource_open() !== 62027) throw new UniffiInternalError.ApiChecksumMismatch("uniffi_trylimbo_sdk_verifier_checksum_constructor_filesource_open");
|
|
8309
8312
|
if (getter().uniffi_trylimbo_sdk_verifier_checksum_method_filesource_length() !== 36158) throw new UniffiInternalError.ApiChecksumMismatch("uniffi_trylimbo_sdk_verifier_checksum_method_filesource_length");
|
|
@@ -8317,14 +8320,14 @@ function uniffiEnsureInitialized() {
|
|
|
8317
8320
|
if (getter().uniffi_trylimbo_sdk_verifier_checksum_method_memorysource_read_at() !== 27863) throw new UniffiInternalError.ApiChecksumMismatch("uniffi_trylimbo_sdk_verifier_checksum_method_memorysource_read_at");
|
|
8318
8321
|
if (getter().uniffi_trylimbo_sdk_verifier_checksum_method_rangesource_length() !== 39128) throw new UniffiInternalError.ApiChecksumMismatch("uniffi_trylimbo_sdk_verifier_checksum_method_rangesource_length");
|
|
8319
8322
|
if (getter().uniffi_trylimbo_sdk_verifier_checksum_method_rangesource_read_at() !== 58429) throw new UniffiInternalError.ApiChecksumMismatch("uniffi_trylimbo_sdk_verifier_checksum_method_rangesource_read_at");
|
|
8320
|
-
if (getter().
|
|
8321
|
-
if (getter().
|
|
8323
|
+
if (getter().uniffi_trylimbo_sdk_verifier_checksum_method_streamsession_export() !== 9857) throw new UniffiInternalError.ApiChecksumMismatch("uniffi_trylimbo_sdk_verifier_checksum_method_streamsession_export");
|
|
8324
|
+
if (getter().uniffi_trylimbo_sdk_verifier_checksum_method_streamsession_validate() !== 142) throw new UniffiInternalError.ApiChecksumMismatch("uniffi_trylimbo_sdk_verifier_checksum_method_streamsession_validate");
|
|
8322
8325
|
if (getter().uniffi_trylimbo_sdk_verifier_checksum_constructor_streamverifier_create() !== 14621) throw new UniffiInternalError.ApiChecksumMismatch("uniffi_trylimbo_sdk_verifier_checksum_constructor_streamverifier_create");
|
|
8323
|
-
if (getter().uniffi_trylimbo_sdk_verifier_checksum_method_streamverifier_open() !==
|
|
8324
|
-
if (getter().uniffi_trylimbo_sdk_verifier_checksum_method_streamverifier_resume() !==
|
|
8326
|
+
if (getter().uniffi_trylimbo_sdk_verifier_checksum_method_streamverifier_open() !== 17694) throw new UniffiInternalError.ApiChecksumMismatch("uniffi_trylimbo_sdk_verifier_checksum_method_streamverifier_open");
|
|
8327
|
+
if (getter().uniffi_trylimbo_sdk_verifier_checksum_method_streamverifier_resume() !== 32212) throw new UniffiInternalError.ApiChecksumMismatch("uniffi_trylimbo_sdk_verifier_checksum_method_streamverifier_resume");
|
|
8325
8328
|
uniffiCallbackInterfaceRangeSource.register();
|
|
8326
8329
|
uniffiCallbackInterfaceBinder.register();
|
|
8327
|
-
|
|
8330
|
+
uniffiCallbackInterfacePluginReader.register();
|
|
8328
8331
|
}
|
|
8329
8332
|
var trylimbo_verifier_default = Object.freeze({
|
|
8330
8333
|
initialize: uniffiEnsureInitialized,
|
|
@@ -8344,6 +8347,7 @@ var trylimbo_verifier_default = Object.freeze({
|
|
|
8344
8347
|
FfiConverterTypeContentBindingClass,
|
|
8345
8348
|
FfiConverterTypeContentTrigger,
|
|
8346
8349
|
FfiConverterTypeCoordinate,
|
|
8350
|
+
FfiConverterTypeCredential,
|
|
8347
8351
|
FfiConverterTypeCredentialOrigin,
|
|
8348
8352
|
FfiConverterTypeDataSource,
|
|
8349
8353
|
FfiConverterTypeDeriveOptions,
|
|
@@ -8351,7 +8355,6 @@ var trylimbo_verifier_default = Object.freeze({
|
|
|
8351
8355
|
FfiConverterTypeFieldViolation,
|
|
8352
8356
|
FfiConverterTypeFileSource,
|
|
8353
8357
|
FfiConverterTypeFingerprintCheck,
|
|
8354
|
-
FfiConverterTypeFoundCredential,
|
|
8355
8358
|
FfiConverterTypeFrame,
|
|
8356
8359
|
FfiConverterTypeGoldenComparison,
|
|
8357
8360
|
FfiConverterTypeHardBinding,
|
|
@@ -8362,6 +8365,7 @@ var trylimbo_verifier_default = Object.freeze({
|
|
|
8362
8365
|
FfiConverterTypeInitValidation,
|
|
8363
8366
|
FfiConverterTypeIsccBinder,
|
|
8364
8367
|
FfiConverterTypeItem,
|
|
8368
|
+
FfiConverterTypeJsonValue,
|
|
8365
8369
|
FfiConverterTypeLineage,
|
|
8366
8370
|
FfiConverterTypeManifest,
|
|
8367
8371
|
FfiConverterTypeManifestAssertion,
|
|
@@ -8375,9 +8379,9 @@ var trylimbo_verifier_default = Object.freeze({
|
|
|
8375
8379
|
FfiConverterTypeRecovery,
|
|
8376
8380
|
FfiConverterTypeRecoveryDiscovery,
|
|
8377
8381
|
FfiConverterTypeRecoveryIssue,
|
|
8378
|
-
FfiConverterTypeRecoveryPolicy,
|
|
8379
8382
|
FfiConverterTypeRecoveryStatus,
|
|
8380
8383
|
FfiConverterTypeRecoverySummary,
|
|
8384
|
+
FfiConverterTypeRecoveryTrigger,
|
|
8381
8385
|
FfiConverterTypeRegion,
|
|
8382
8386
|
FfiConverterTypeRegionOfInterest,
|
|
8383
8387
|
FfiConverterTypeRelationship,
|
|
@@ -8396,7 +8400,7 @@ var trylimbo_verifier_default = Object.freeze({
|
|
|
8396
8400
|
FfiConverterTypeSimilarityScore,
|
|
8397
8401
|
FfiConverterTypeSoftBinding,
|
|
8398
8402
|
FfiConverterTypeStatusCodes,
|
|
8399
|
-
|
|
8403
|
+
FfiConverterTypeStreamSession,
|
|
8400
8404
|
FfiConverterTypeStreamVerifier,
|
|
8401
8405
|
FfiConverterTypeStreamVerifierOptions,
|
|
8402
8406
|
FfiConverterTypeText,
|
|
@@ -8411,7 +8415,6 @@ var trylimbo_verifier_default = Object.freeze({
|
|
|
8411
8415
|
FfiConverterTypeValidationResults,
|
|
8412
8416
|
FfiConverterTypeValidationState,
|
|
8413
8417
|
FfiConverterTypeValidationStatus,
|
|
8414
|
-
FfiConverterTypeValue,
|
|
8415
8418
|
FfiConverterTypeVerdict,
|
|
8416
8419
|
FfiConverterTypeVerdictRule
|
|
8417
8420
|
}
|
|
@@ -8426,4 +8429,4 @@ if (!initialized) {
|
|
|
8426
8429
|
async function uniffiInitAsync() {}
|
|
8427
8430
|
var ffi_trylimbo_sdk_verifier_default = { trylimbo_verifier: trylimbo_verifier_exports };
|
|
8428
8431
|
//#endregion
|
|
8429
|
-
export { Actor, AssertionMetadata, AssetFormat, AssetFormat_Tags, AssetType, AssetVerification, AssetVerifier, AssetVerifierOptions, BinderImpl, ByContent, ByReference, ClaimGeneratorInfo, Code, ContentBindingClass, ContentTrigger, Coordinate, CredentialOrigin, CredentialOrigin_Tags, DataSource, DeriveOptions, EndInclusivity, FieldViolation, FileSource, FingerprintCheck, FingerprintCheck_Tags,
|
|
8432
|
+
export { Actor, AssertionMetadata, AssetFormat, AssetFormat_Tags, AssetType, AssetVerification, AssetVerifier, AssetVerifierOptions, BinderImpl, ByContent, ByReference, ClaimGeneratorInfo, Code, ContentBindingClass, ContentTrigger, Coordinate, Credential, CredentialOrigin, CredentialOrigin_Tags, DataSource, DeriveOptions, EndInclusivity, FieldViolation, FileSource, FingerprintCheck, FingerprintCheck_Tags, Frame, GoldenComparison, GoldenComparison_Tags, HardBinding, HashedUri, HeldBinder, Ingredient, IngredientDeltaValidationResult, InitValidation, IsccBinder, Item, Lineage, Manifest, ManifestAssertion, ManifestAssertionKind, ManifestStore, MediaValidation, MemorySource, Range, RangeSourceImpl, RangeType, Recovery, RecoveryDiscovery, RecoveryDiscovery_Tags, RecoveryIssue, RecoveryIssue_Tags, RecoveryStatus, RecoverySummary, RecoveryTrigger, Region, RegionOfInterest, Relationship, Repository, Repository_Tags, ResourceRef, ReviewRating, Role, SdkError, SdkError_Tags, SegmentTiming, SegmentValidation, SegmentValidation_Tags, SessionKeySummary, Shape, ShapeType, SignatureInfo, SigningAlgSchema, SoftBinding, StatusCodes, StreamSession, StreamVerifier, StreamVerifierOptions, Text, TextSelector, TextSelectorRange, Time, TimeType, UnitType, UriOrResource, UriOrResource_Tags, ValidationCode, ValidationCodeKind, ValidationResults, ValidationState, ValidationStatus, Verdict, VerdictRule, Verdict_Tags, c2paTrustList, c2paTsaTrustList, ffi_trylimbo_sdk_verifier_default as default, devCa, parse, resource, thumbnails, uniffiInitAsync };
|