@limboai/verifox-sdk-issuer 0.0.2 → 0.0.4
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/grpc/verifox/signer/v1/signer_pb.d.ts +5 -0
- package/gen/grpc/verifox/signer/v1/signer_pb.js +1 -1
- package/gen/napi/index.d.ts +96 -89
- package/gen/napi/index.js +52 -52
- package/gen/wasm/verifox_sdk_issuer_bg.js +13 -13
- package/gen/wasm/verifox_sdk_issuer_bg.wasm +0 -0
- package/package.json +5 -5
- package/types/asset.d.ts +8 -0
|
@@ -154,6 +154,11 @@ export declare type BeginSignRequest_Ingredient = Message<"verifox.signer.v1.Beg
|
|
|
154
154
|
* @generated from field: bytes descriptor = 2;
|
|
155
155
|
*/
|
|
156
156
|
descriptor: Uint8Array;
|
|
157
|
+
|
|
158
|
+
/**
|
|
159
|
+
* @generated from field: optional verifox.signer.v1.BeginSignRequest.Thumbnail thumbnail = 3;
|
|
160
|
+
*/
|
|
161
|
+
thumbnail?: BeginSignRequest_Thumbnail | undefined;
|
|
157
162
|
};
|
|
158
163
|
|
|
159
164
|
/**
|
|
@@ -8,7 +8,7 @@ import { enumDesc, fileDesc, messageDesc, serviceDesc, tsEnum } from "@bufbuild/
|
|
|
8
8
|
* Describes the file verifox/signer/v1/signer.proto.
|
|
9
9
|
*/
|
|
10
10
|
export const file_verifox_signer_v1_signer = /*@__PURE__*/
|
|
11
|
-
fileDesc("
|
|
11
|
+
fileDesc("Ch52ZXJpZm94L3NpZ25lci92MS9zaWduZXIucHJvdG8SEXZlcmlmb3guc2lnbmVyLnYxIg0KC0luZm9SZXF1ZXN0IlEKDEluZm9SZXNwb25zZRILCgNhbGcYASABKAkSDwoHdHNhX3VybBgCIAEoCRIUCgxyZXNlcnZlX3NpemUYAyABKA0SDQoFY2VydHMYBCADKAwi/wUKEEJlZ2luU2lnblJlcXVlc3QSDgoGZm9ybWF0GAEgASgJEjwKB3N0b3JhZ2UYAiABKA4yKy52ZXJpZm94LnNpZ25lci52MS5CZWdpblNpZ25SZXF1ZXN0LlN0b3JhZ2USPgoIaWRlbnRpdHkYAyABKAsyLC52ZXJpZm94LnNpZ25lci52MS5CZWdpblNpZ25SZXF1ZXN0LklkZW50aXR5EhIKBXRpdGxlGAQgASgJSACIAQESRQoJdGh1bWJuYWlsGAUgASgLMi0udmVyaWZveC5zaWduZXIudjEuQmVnaW5TaWduUmVxdWVzdC5UaHVtYm5haWxIAYgBARJBCgphc3NlcnRpb25zGAYgAygLMi0udmVyaWZveC5zaWduZXIudjEuQmVnaW5TaWduUmVxdWVzdC5Bc3NlcnRpb24SQwoLaW5ncmVkaWVudHMYByADKAsyLi52ZXJpZm94LnNpZ25lci52MS5CZWdpblNpZ25SZXF1ZXN0LkluZ3JlZGllbnQaJwoISWRlbnRpdHkSDAoEY2JvchgBIAEoDBINCgVyb2xlcxgCIAMoCRooCglBc3NlcnRpb24SDAoEY2JvchgBIAEoDBINCgVsYWJlbBgCIAEoCRqDAQoKSW5ncmVkaWVudBIMCgRkYXRhGAEgASgMEhIKCmRlc2NyaXB0b3IYAiABKAwSRQoJdGh1bWJuYWlsGAMgASgLMi0udmVyaWZveC5zaWduZXIudjEuQmVnaW5TaWduUmVxdWVzdC5UaHVtYm5haWxIAIgBAUIMCgpfdGh1bWJuYWlsGikKCVRodW1ibmFpbBIMCgRkYXRhGAEgASgMEg4KBmZvcm1hdBgCIAEoCSJeCgdTdG9yYWdlEhcKE1NUT1JBR0VfVU5TUEVDSUZJRUQQABIUChBTVE9SQUdFX0VNQkVEREVEEAESEgoOU1RPUkFHRV9SRU1PVEUQAhIQCgxTVE9SQUdFX0JPVEgQA0IICgZfdGl0bGVCDAoKX3RodW1ibmFpbCL5AgoRQmVnaW5TaWduUmVzcG9uc2USFAoMY29udGludWF0aW9uGAEgASgMEkkKC2luc3RydWN0aW9uGAIgASgLMjQudmVyaWZveC5zaWduZXIudjEuQmVnaW5TaWduUmVzcG9uc2UuSGFzaEluc3RydWN0aW9uGoICCg9IYXNoSW5zdHJ1Y3Rpb24STQoEYm1mZhgBIAEoCzI9LnZlcmlmb3guc2lnbmVyLnYxLkJlZ2luU2lnblJlc3BvbnNlLkhhc2hJbnN0cnVjdGlvbi5CbWZmSGFzaEgAEk0KBGRhdGEYAiABKAsyPS52ZXJpZm94LnNpZ25lci52MS5CZWdpblNpZ25SZXNwb25zZS5IYXNoSW5zdHJ1Y3Rpb24uRGF0YUhhc2hIABofCghEYXRhSGFzaBITCgtwbGFjZWhvbGRlchgBIAEoDBokCghCbWZmSGFzaBIYChBwbGFjZWhvbGRlcl9zaXplGAEgASgNQgoKCHN0cmF0ZWd5IvcCChFTdWJtaXRIYXNoUmVxdWVzdBIUCgxjb250aW51YXRpb24YASABKAwSQgoKYXNzZXRfaGFzaBgCIAEoCzIuLnZlcmlmb3guc2lnbmVyLnYxLlN1Ym1pdEhhc2hSZXF1ZXN0LkFzc2V0SGFzaBJGCgxzb2Z0X2JpbmRpbmcYAyABKAsyMC52ZXJpZm94LnNpZ25lci52MS5TdWJtaXRIYXNoUmVxdWVzdC5Tb2Z0QmluZGluZxqUAQoJQXNzZXRIYXNoEg0KBXZhbHVlGAEgASgMEkwKCmV4Y2x1c2lvbnMYAiADKAsyOC52ZXJpZm94LnNpZ25lci52MS5TdWJtaXRIYXNoUmVxdWVzdC5Bc3NldEhhc2guRXhjbHVzaW9uGioKCUV4Y2x1c2lvbhINCgVzdGFydBgBIAEoBBIOCgZsZW5ndGgYAiABKAQaKQoLU29mdEJpbmRpbmcSCwoDYWxnGAEgASgJEg0KBXZhbHVlGAIgASgMIpMBChJTdWJtaXRIYXNoUmVzcG9uc2USRAoGc2lnbmVkGAEgASgLMjQudmVyaWZveC5zaWduZXIudjEuU3VibWl0SGFzaFJlc3BvbnNlLlNpZ25lZE1hbmlmZXN0GjcKDlNpZ25lZE1hbmlmZXN0EhAKCG1hbmlmZXN0GAEgASgMEhMKC21hbmlmZXN0X2lkGAIgASgJMosCCg1TaWduZXJTZXJ2aWNlEkcKBEluZm8SHi52ZXJpZm94LnNpZ25lci52MS5JbmZvUmVxdWVzdBofLnZlcmlmb3guc2lnbmVyLnYxLkluZm9SZXNwb25zZRJWCglCZWdpblNpZ24SIy52ZXJpZm94LnNpZ25lci52MS5CZWdpblNpZ25SZXF1ZXN0GiQudmVyaWZveC5zaWduZXIudjEuQmVnaW5TaWduUmVzcG9uc2USWQoKU3VibWl0SGFzaBIkLnZlcmlmb3guc2lnbmVyLnYxLlN1Ym1pdEhhc2hSZXF1ZXN0GiUudmVyaWZveC5zaWduZXIudjEuU3VibWl0SGFzaFJlc3BvbnNlYgZwcm90bzM");
|
|
12
12
|
|
|
13
13
|
/**
|
|
14
14
|
* Describes the message verifox.signer.v1.InfoRequest.
|
package/gen/napi/index.d.ts
CHANGED
|
@@ -21,13 +21,13 @@ export declare class StreamSdk {
|
|
|
21
21
|
export type StreamSdkJs = StreamSdk
|
|
22
22
|
|
|
23
23
|
/**
|
|
24
|
-
* `data` is JSON; converted to CBOR before crossing the wire.
|
|
25
|
-
*
|
|
26
|
-
* The TS surface delegates to `@contentauth/c2pa-types`'s `ManifestAssertion`
|
|
27
|
-
* (auto-generated from c2pa-rs JSON schemas) so consumers get the same shape
|
|
28
|
-
* the c2pa stack uses everywhere else. Extra fields on `ManifestAssertion`
|
|
29
|
-
* (`instance`, `kind`, `created`) are c2pa store-level metadata; if a caller
|
|
30
|
-
* passes them they're harmlessly dropped at the napi boundary.
|
|
24
|
+
* r" `data` is JSON; converted to CBOR before crossing the wire.
|
|
25
|
+
* r"
|
|
26
|
+
* r" The TS surface delegates to `@contentauth/c2pa-types`'s `ManifestAssertion`
|
|
27
|
+
* r" (auto-generated from c2pa-rs JSON schemas) so consumers get the same shape
|
|
28
|
+
* r" the c2pa stack uses everywhere else. Extra fields on `ManifestAssertion`
|
|
29
|
+
* r" (`instance`, `kind`, `created`) are c2pa store-level metadata; if a caller
|
|
30
|
+
* r" passes them they're harmlessly dropped at the napi boundary.
|
|
31
31
|
*/
|
|
32
32
|
export interface Assertion {
|
|
33
33
|
label: import('@contentauth/c2pa-types').ManifestAssertion['label']
|
|
@@ -37,18 +37,18 @@ export interface Assertion {
|
|
|
37
37
|
export declare function classifySegment(data: Bytes): SegmentKind
|
|
38
38
|
|
|
39
39
|
/**
|
|
40
|
-
* Transport tunables and per-request metadata for the gRPC channel.
|
|
41
|
-
*
|
|
42
|
-
* `connect_timeout_ms` bounds the initial TCP+TLS+HTTP/2 handshake so an
|
|
43
|
-
* unreachable signer fails fast as a transport error instead of waiting for
|
|
44
|
-
* the OS-level SYN timeout. `rpc_timeout_ms` is a channel-wide ceiling for
|
|
45
|
-
* any single RPC; a wedged signer can't block the caller indefinitely.
|
|
46
|
-
* `None` means no SDK-level timeout — tonic defaults apply.
|
|
47
|
-
*
|
|
48
|
-
* `headers` are attached to every RPC the resulting client issues —
|
|
49
|
-
* typical use is `Authorization: Bearer …` for caller authentication
|
|
50
|
-
* or routing/tenant metadata the Signer deployment expects. Names are
|
|
51
|
-
* lowercased before going on the wire (HTTP/2 requirement).
|
|
40
|
+
* r" Transport tunables and per-request metadata for the gRPC channel.
|
|
41
|
+
* r"
|
|
42
|
+
* r" `connect_timeout_ms` bounds the initial TCP+TLS+HTTP/2 handshake so an
|
|
43
|
+
* r" unreachable signer fails fast as a transport error instead of waiting for
|
|
44
|
+
* r" the OS-level SYN timeout. `rpc_timeout_ms` is a channel-wide ceiling for
|
|
45
|
+
* r" any single RPC; a wedged signer can't block the caller indefinitely.
|
|
46
|
+
* r" `None` means no SDK-level timeout — tonic defaults apply.
|
|
47
|
+
* r"
|
|
48
|
+
* r" `headers` are attached to every RPC the resulting client issues —
|
|
49
|
+
* r" typical use is `Authorization: Bearer …` for caller authentication
|
|
50
|
+
* r" or routing/tenant metadata the Signer deployment expects. Names are
|
|
51
|
+
* r" lowercased before going on the wire (HTTP/2 requirement).
|
|
52
52
|
*/
|
|
53
53
|
export interface ConnectOptions {
|
|
54
54
|
headers: Record<string, string>
|
|
@@ -65,8 +65,8 @@ export interface ConnectOptions {
|
|
|
65
65
|
export declare function embed(input: Bytes | string, format: string, sidecar: Bytes): Bytes | null
|
|
66
66
|
|
|
67
67
|
/**
|
|
68
|
-
* Pass `None` to skip the CAWG identity signing path entirely. `identities`
|
|
69
|
-
* is a JSON array of CAWG `VerifiedIdentity` objects.
|
|
68
|
+
* r" Pass `None` to skip the CAWG identity signing path entirely. `identities`
|
|
69
|
+
* r" is a JSON array of CAWG `VerifiedIdentity` objects.
|
|
70
70
|
*/
|
|
71
71
|
export interface IdentityOptions {
|
|
72
72
|
roles: Array<string>
|
|
@@ -74,27 +74,34 @@ export interface IdentityOptions {
|
|
|
74
74
|
}
|
|
75
75
|
|
|
76
76
|
/**
|
|
77
|
-
* An ingredient to include in a C2PA manifest. Identity (`instance_id`),
|
|
78
|
-
* title, and format are derived by c2pa from the asset itself; action wiring
|
|
79
|
-
* (e.g. `c2pa.opened` → ParentOf) is handled by the signer.
|
|
77
|
+
* r" An ingredient to include in a C2PA manifest. Identity (`instance_id`),
|
|
78
|
+
* r" title, and format are derived by c2pa from the asset itself; action wiring
|
|
79
|
+
* r" (e.g. `c2pa.opened` → ParentOf) is handled by the signer.
|
|
80
80
|
*/
|
|
81
81
|
export interface Ingredient {
|
|
82
82
|
data: Buffer
|
|
83
|
-
relationship?: Relationship
|
|
84
83
|
/**
|
|
85
|
-
* Explicit container MIME for assets `infer` can't sniff (e.g.
|
|
86
|
-
* `application/mxf`). When `None`, the format is inferred from `data`.
|
|
84
|
+
* r" Explicit container MIME for assets `infer` can't sniff (e.g.
|
|
85
|
+
* r" `application/mxf`). When `None`, the format is inferred from `data`.
|
|
87
86
|
*/
|
|
88
87
|
format?: string
|
|
88
|
+
/**
|
|
89
|
+
* r" Pre-rendered thumbnail of this ingredient, attached as the ingredient's
|
|
90
|
+
* r" `c2pa.thumbnail.ingredient` resource. Like the claim thumbnail, the
|
|
91
|
+
* r" split-signer has no asset bytes to render one server-side, so studios
|
|
92
|
+
* r" supply their own; verifiers show it as the ingredient's preview tile.
|
|
93
|
+
*/
|
|
94
|
+
thumbnail?: Thumbnail
|
|
95
|
+
relationship?: Relationship
|
|
89
96
|
}
|
|
90
97
|
|
|
91
98
|
/**
|
|
92
|
-
* `title` defaults to the session's `claim_authority` when omitted.
|
|
93
|
-
*
|
|
94
|
-
* `rotation_policy` controls how long the session key is valid and
|
|
95
|
-
* when `sign` flags `rotation_due`; tuning it per stream lets a
|
|
96
|
-
* consumer use, e.g., short keys for low-latency live and longer
|
|
97
|
-
* ones for archive re-encodes.
|
|
99
|
+
* r" `title` defaults to the session's `claim_authority` when omitted.
|
|
100
|
+
* r"
|
|
101
|
+
* r" `rotation_policy` controls how long the session key is valid and
|
|
102
|
+
* r" when `sign` flags `rotation_due`; tuning it per stream lets a
|
|
103
|
+
* r" consumer use, e.g., short keys for low-latency live and longer
|
|
104
|
+
* r" ones for archive re-encodes.
|
|
98
105
|
*/
|
|
99
106
|
export interface InitOptions {
|
|
100
107
|
title?: string
|
|
@@ -106,8 +113,8 @@ export interface InitOptions {
|
|
|
106
113
|
}
|
|
107
114
|
|
|
108
115
|
/**
|
|
109
|
-
* `valid_until_epoch_secs` is the UNIX-epoch second at which the
|
|
110
|
-
* session key's validity elapses.
|
|
116
|
+
* r" `valid_until_epoch_secs` is the UNIX-epoch second at which the
|
|
117
|
+
* r" session key's validity elapses.
|
|
111
118
|
*/
|
|
112
119
|
export interface InitOutcome {
|
|
113
120
|
signedInitBytes: Buffer
|
|
@@ -124,9 +131,9 @@ export interface LedgerHandle {
|
|
|
124
131
|
}
|
|
125
132
|
|
|
126
133
|
/**
|
|
127
|
-
* Consumer-facing manifest spec. Everything not exposed here (instance_id,
|
|
128
|
-
* format, vendor, claim_generator_info, hash_alg, …) is managed by the SDK
|
|
129
|
-
* and signer.
|
|
134
|
+
* r" Consumer-facing manifest spec. Everything not exposed here (instance_id,
|
|
135
|
+
* r" format, vendor, claim_generator_info, hash_alg, …) is managed by the SDK
|
|
136
|
+
* r" and signer.
|
|
130
137
|
*/
|
|
131
138
|
export interface ManifestSpec {
|
|
132
139
|
title?: string
|
|
@@ -134,7 +141,7 @@ export interface ManifestSpec {
|
|
|
134
141
|
identity?: IdentityOptions
|
|
135
142
|
assertions: Array<Assertion>
|
|
136
143
|
ingredients: Array<Ingredient>
|
|
137
|
-
/** Optional pre-rendered thumbnail of the asset (small JPEG/PNG). */
|
|
144
|
+
/** r" Optional pre-rendered thumbnail of the asset (small JPEG/PNG). */
|
|
138
145
|
thumbnail?: Thumbnail
|
|
139
146
|
}
|
|
140
147
|
|
|
@@ -171,19 +178,19 @@ export declare const enum Relationship {
|
|
|
171
178
|
}
|
|
172
179
|
|
|
173
180
|
/**
|
|
174
|
-
* `validity_period_secs` — how long the session key is valid for
|
|
175
|
-
* after `created_at`, in seconds. Embedded in the C2PA session-keys
|
|
176
|
-
* assertion; the verifier rejects segments signed past this window
|
|
177
|
-
* (plus its skew tolerance).
|
|
178
|
-
*
|
|
179
|
-
* `refresh_percent` — 0..=100 percentage of `validity_period_secs`
|
|
180
|
-
* after which `sign` returns `rotation_due: true`. The consumer's
|
|
181
|
-
* response is to `stop` the stream and `init` a fresh one before the
|
|
182
|
-
* verifier-side expiry kicks in. Integer math: no `u64 → f64 → u64`
|
|
183
|
-
* round-trip in the per-segment path.
|
|
184
|
-
*
|
|
185
|
-
* Stored in `SessionRecord` so different streams can run different
|
|
186
|
-
* policies in the same process.
|
|
181
|
+
* r" `validity_period_secs` — how long the session key is valid for
|
|
182
|
+
* r" after `created_at`, in seconds. Embedded in the C2PA session-keys
|
|
183
|
+
* r" assertion; the verifier rejects segments signed past this window
|
|
184
|
+
* r" (plus its skew tolerance).
|
|
185
|
+
* r"
|
|
186
|
+
* r" `refresh_percent` — 0..=100 percentage of `validity_period_secs`
|
|
187
|
+
* r" after which `sign` returns `rotation_due: true`. The consumer's
|
|
188
|
+
* r" response is to `stop` the stream and `init` a fresh one before the
|
|
189
|
+
* r" verifier-side expiry kicks in. Integer math: no `u64 → f64 → u64`
|
|
190
|
+
* r" round-trip in the per-segment path.
|
|
191
|
+
* r"
|
|
192
|
+
* r" Stored in `SessionRecord` so different streams can run different
|
|
193
|
+
* r" policies in the same process.
|
|
187
194
|
*/
|
|
188
195
|
export interface RotationPolicy {
|
|
189
196
|
validityPeriodSecs: number
|
|
@@ -201,11 +208,11 @@ export declare const enum SegmentKind {
|
|
|
201
208
|
}
|
|
202
209
|
|
|
203
210
|
/**
|
|
204
|
-
* `rotation_due` flips on once `policy.refresh_percent`% of the
|
|
205
|
-
* session key's validity has elapsed. `valid_until_epoch_secs` is
|
|
206
|
-
* repeated on every segment so callers can schedule the next
|
|
207
|
-
* rotation precisely (a few segments out, on a clock-aligned
|
|
208
|
-
* boundary, …) instead of reacting only to the binary signal.
|
|
211
|
+
* r" `rotation_due` flips on once `policy.refresh_percent`% of the
|
|
212
|
+
* r" session key's validity has elapsed. `valid_until_epoch_secs` is
|
|
213
|
+
* r" repeated on every segment so callers can schedule the next
|
|
214
|
+
* r" rotation precisely (a few segments out, on a clock-aligned
|
|
215
|
+
* r" boundary, …) instead of reacting only to the binary signal.
|
|
209
216
|
*/
|
|
210
217
|
export interface SignedSegmentOutcome {
|
|
211
218
|
bytes: Buffer
|
|
@@ -215,35 +222,35 @@ export interface SignedSegmentOutcome {
|
|
|
215
222
|
}
|
|
216
223
|
|
|
217
224
|
/**
|
|
218
|
-
* A perceptual soft binding computed client-side (C2PA soft-binding
|
|
219
|
-
* algorithm list, e.g. `io.iscc.v0`). The signer embeds it in the manifest
|
|
220
|
-
* as a `c2pa.soft-binding` assertion and indexes it so transcoded copies —
|
|
221
|
-
* whose content hash no longer matches — can still recover the manifest
|
|
222
|
-
* from the registry.
|
|
225
|
+
* r" A perceptual soft binding computed client-side (C2PA soft-binding
|
|
226
|
+
* r" algorithm list, e.g. `io.iscc.v0`). The signer embeds it in the manifest
|
|
227
|
+
* r" as a `c2pa.soft-binding` assertion and indexes it so transcoded copies —
|
|
228
|
+
* r" whose content hash no longer matches — can still recover the manifest
|
|
229
|
+
* r" from the registry.
|
|
223
230
|
*/
|
|
224
231
|
export interface SoftBinding {
|
|
225
|
-
/** C2PA soft-binding algorithm id, e.g. `io.iscc.v0`. */
|
|
232
|
+
/** r" C2PA soft-binding algorithm id, e.g. `io.iscc.v0`. */
|
|
226
233
|
alg: string
|
|
227
234
|
/**
|
|
228
|
-
* Algorithm-specific binding value (for ISCC: the canonical
|
|
229
|
-
* `ISCC:…` code string as UTF-8 bytes).
|
|
235
|
+
* r" Algorithm-specific binding value (for ISCC: the canonical
|
|
236
|
+
* r" `ISCC:…` code string as UTF-8 bytes).
|
|
230
237
|
*/
|
|
231
238
|
value: Buffer
|
|
232
239
|
}
|
|
233
240
|
|
|
234
241
|
/**
|
|
235
|
-
* A pre-rendered thumbnail of the asset, attached to the manifest as a
|
|
236
|
-
* `c2pa.thumbnail.claim.{jpeg|png}` assertion. The split-signer can't
|
|
237
|
-
* generate one server-side (no asset bytes), so studios render their own
|
|
238
|
-
* small JPEG/PNG client-side and pass it here; external verifiers
|
|
239
|
-
* (Adobe inspect) use it as the manifest preview tile.
|
|
242
|
+
* r" A pre-rendered thumbnail of the asset, attached to the manifest as a
|
|
243
|
+
* r" `c2pa.thumbnail.claim.{jpeg|png}` assertion. The split-signer can't
|
|
244
|
+
* r" generate one server-side (no asset bytes), so studios render their own
|
|
245
|
+
* r" small JPEG/PNG client-side and pass it here; external verifiers
|
|
246
|
+
* r" (Adobe inspect) use it as the manifest preview tile.
|
|
240
247
|
*/
|
|
241
248
|
export interface Thumbnail {
|
|
242
249
|
data: Buffer
|
|
243
250
|
/**
|
|
244
|
-
* MIME type. C2PA defines `c2pa.thumbnail.claim.{jpeg,png,svg}`;
|
|
245
|
-
* `image/jpeg` and `image/png` are the interop-safe choices (consumer
|
|
246
|
-
* verifiers like Adobe inspect may not render SVG previews).
|
|
251
|
+
* r" MIME type. C2PA defines `c2pa.thumbnail.claim.{jpeg,png,svg}`;
|
|
252
|
+
* r" `image/jpeg` and `image/png` are the interop-safe choices (consumer
|
|
253
|
+
* r" verifiers like Adobe inspect may not render SVG previews).
|
|
247
254
|
*/
|
|
248
255
|
format: string
|
|
249
256
|
}
|
|
@@ -255,9 +262,9 @@ export interface VaultHandle {
|
|
|
255
262
|
}
|
|
256
263
|
|
|
257
264
|
/**
|
|
258
|
-
* `kid` is the vault-derived handle (typically SHA-256 of SEC1 public).
|
|
259
|
-
* `public_key_sec1` is uncompressed SEC1 (65 bytes starting with `0x04`
|
|
260
|
-
* for ES256); the SDK rewraps as COSE_Key for §19.4.4.
|
|
265
|
+
* r" `kid` is the vault-derived handle (typically SHA-256 of SEC1 public).
|
|
266
|
+
* r" `public_key_sec1` is uncompressed SEC1 (65 bytes starting with `0x04`
|
|
267
|
+
* r" for ES256); the SDK rewraps as COSE_Key for §19.4.4.
|
|
261
268
|
*/
|
|
262
269
|
export interface VaultPublicKey {
|
|
263
270
|
kid: Buffer
|
|
@@ -265,32 +272,32 @@ export interface VaultPublicKey {
|
|
|
265
272
|
}
|
|
266
273
|
|
|
267
274
|
/**
|
|
268
|
-
* Options for [`Sdk::watermark`](crate::asset::Sdk) — all optional. The asset
|
|
269
|
-
* passed in must already be a signed C2PA image; the watermark service applies
|
|
270
|
-
* the watermark, then re-signs a fresh manifest over the watermarked bytes.
|
|
275
|
+
* r" Options for [`Sdk::watermark`](crate::asset::Sdk) — all optional. The asset
|
|
276
|
+
* r" passed in must already be a signed C2PA image; the watermark service applies
|
|
277
|
+
* r" the watermark, then re-signs a fresh manifest over the watermarked bytes.
|
|
271
278
|
*/
|
|
272
279
|
export interface WatermarkOptions {
|
|
273
|
-
/** Filename recorded with the recovery entry (and the multipart part name). */
|
|
280
|
+
/** r" Filename recorded with the recovery entry (and the multipart part name). */
|
|
274
281
|
fileName?: string
|
|
275
|
-
/** Final asset URL stored alongside the recovery record. */
|
|
282
|
+
/** r" Final asset URL stored alongside the recovery record. */
|
|
276
283
|
assetUrl?: string
|
|
277
|
-
/** Skip the optional second watermark layer (the recovery signpost). */
|
|
284
|
+
/** r" Skip the optional second watermark layer (the recovery signpost). */
|
|
278
285
|
skipSignpost?: boolean
|
|
279
286
|
}
|
|
280
287
|
|
|
281
288
|
/**
|
|
282
|
-
* Result of [`Sdk::watermark`](crate::asset::Sdk): the watermarked, re-signed
|
|
283
|
-
* bytes plus the recovery handle so a stripped copy can be matched back to its
|
|
284
|
-
* manifest.
|
|
289
|
+
* r" Result of [`Sdk::watermark`](crate::asset::Sdk): the watermarked, re-signed
|
|
290
|
+
* r" bytes plus the recovery handle so a stripped copy can be matched back to its
|
|
291
|
+
* r" manifest.
|
|
285
292
|
*/
|
|
286
293
|
export interface WatermarkOutcome {
|
|
287
|
-
/** The watermarked and re-signed asset bytes. */
|
|
294
|
+
/** r" The watermarked and re-signed asset bytes. */
|
|
288
295
|
bytes: Buffer
|
|
289
|
-
/** Recovery manifest id — the key recovery resolves. */
|
|
296
|
+
/** r" Recovery manifest id — the key recovery resolves. */
|
|
290
297
|
manifestId: string
|
|
291
|
-
/** Media path the watermark recovers to. */
|
|
298
|
+
/** r" Media path the watermark recovers to. */
|
|
292
299
|
recoveryPath: string
|
|
293
|
-
/** Whether the optional recovery signpost layer was applied. */
|
|
300
|
+
/** r" Whether the optional recovery signpost layer was applied. */
|
|
294
301
|
signpostApplied: boolean
|
|
295
302
|
fileName: string
|
|
296
303
|
mimeType: string
|
package/gen/napi/index.js
CHANGED
|
@@ -81,8 +81,8 @@ function requireNative() {
|
|
|
81
81
|
try {
|
|
82
82
|
const binding = require('@limboai/verifox-sdk-issuer-android-arm64')
|
|
83
83
|
const bindingPackageVersion = require('@limboai/verifox-sdk-issuer-android-arm64/package.json').version
|
|
84
|
-
if (bindingPackageVersion !== '0.0.
|
|
85
|
-
throw new Error(`Native binding package version mismatch, expected 0.0.
|
|
84
|
+
if (bindingPackageVersion !== '0.0.4' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
85
|
+
throw new Error(`Native binding package version mismatch, expected 0.0.4 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
86
86
|
}
|
|
87
87
|
return binding
|
|
88
88
|
} catch (e) {
|
|
@@ -97,8 +97,8 @@ function requireNative() {
|
|
|
97
97
|
try {
|
|
98
98
|
const binding = require('@limboai/verifox-sdk-issuer-android-arm-eabi')
|
|
99
99
|
const bindingPackageVersion = require('@limboai/verifox-sdk-issuer-android-arm-eabi/package.json').version
|
|
100
|
-
if (bindingPackageVersion !== '0.0.
|
|
101
|
-
throw new Error(`Native binding package version mismatch, expected 0.0.
|
|
100
|
+
if (bindingPackageVersion !== '0.0.4' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
101
|
+
throw new Error(`Native binding package version mismatch, expected 0.0.4 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
102
102
|
}
|
|
103
103
|
return binding
|
|
104
104
|
} catch (e) {
|
|
@@ -118,8 +118,8 @@ function requireNative() {
|
|
|
118
118
|
try {
|
|
119
119
|
const binding = require('@limboai/verifox-sdk-issuer-win32-x64-gnu')
|
|
120
120
|
const bindingPackageVersion = require('@limboai/verifox-sdk-issuer-win32-x64-gnu/package.json').version
|
|
121
|
-
if (bindingPackageVersion !== '0.0.
|
|
122
|
-
throw new Error(`Native binding package version mismatch, expected 0.0.
|
|
121
|
+
if (bindingPackageVersion !== '0.0.4' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
122
|
+
throw new Error(`Native binding package version mismatch, expected 0.0.4 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
123
123
|
}
|
|
124
124
|
return binding
|
|
125
125
|
} catch (e) {
|
|
@@ -134,8 +134,8 @@ function requireNative() {
|
|
|
134
134
|
try {
|
|
135
135
|
const binding = require('@limboai/verifox-sdk-issuer-win32-x64-msvc')
|
|
136
136
|
const bindingPackageVersion = require('@limboai/verifox-sdk-issuer-win32-x64-msvc/package.json').version
|
|
137
|
-
if (bindingPackageVersion !== '0.0.
|
|
138
|
-
throw new Error(`Native binding package version mismatch, expected 0.0.
|
|
137
|
+
if (bindingPackageVersion !== '0.0.4' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
138
|
+
throw new Error(`Native binding package version mismatch, expected 0.0.4 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
139
139
|
}
|
|
140
140
|
return binding
|
|
141
141
|
} catch (e) {
|
|
@@ -151,8 +151,8 @@ function requireNative() {
|
|
|
151
151
|
try {
|
|
152
152
|
const binding = require('@limboai/verifox-sdk-issuer-win32-ia32-msvc')
|
|
153
153
|
const bindingPackageVersion = require('@limboai/verifox-sdk-issuer-win32-ia32-msvc/package.json').version
|
|
154
|
-
if (bindingPackageVersion !== '0.0.
|
|
155
|
-
throw new Error(`Native binding package version mismatch, expected 0.0.
|
|
154
|
+
if (bindingPackageVersion !== '0.0.4' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
155
|
+
throw new Error(`Native binding package version mismatch, expected 0.0.4 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
156
156
|
}
|
|
157
157
|
return binding
|
|
158
158
|
} catch (e) {
|
|
@@ -167,8 +167,8 @@ function requireNative() {
|
|
|
167
167
|
try {
|
|
168
168
|
const binding = require('@limboai/verifox-sdk-issuer-win32-arm64-msvc')
|
|
169
169
|
const bindingPackageVersion = require('@limboai/verifox-sdk-issuer-win32-arm64-msvc/package.json').version
|
|
170
|
-
if (bindingPackageVersion !== '0.0.
|
|
171
|
-
throw new Error(`Native binding package version mismatch, expected 0.0.
|
|
170
|
+
if (bindingPackageVersion !== '0.0.4' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
171
|
+
throw new Error(`Native binding package version mismatch, expected 0.0.4 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
172
172
|
}
|
|
173
173
|
return binding
|
|
174
174
|
} catch (e) {
|
|
@@ -186,8 +186,8 @@ function requireNative() {
|
|
|
186
186
|
try {
|
|
187
187
|
const binding = require('@limboai/verifox-sdk-issuer-darwin-universal')
|
|
188
188
|
const bindingPackageVersion = require('@limboai/verifox-sdk-issuer-darwin-universal/package.json').version
|
|
189
|
-
if (bindingPackageVersion !== '0.0.
|
|
190
|
-
throw new Error(`Native binding package version mismatch, expected 0.0.
|
|
189
|
+
if (bindingPackageVersion !== '0.0.4' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
190
|
+
throw new Error(`Native binding package version mismatch, expected 0.0.4 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
191
191
|
}
|
|
192
192
|
return binding
|
|
193
193
|
} catch (e) {
|
|
@@ -202,8 +202,8 @@ function requireNative() {
|
|
|
202
202
|
try {
|
|
203
203
|
const binding = require('@limboai/verifox-sdk-issuer-darwin-x64')
|
|
204
204
|
const bindingPackageVersion = require('@limboai/verifox-sdk-issuer-darwin-x64/package.json').version
|
|
205
|
-
if (bindingPackageVersion !== '0.0.
|
|
206
|
-
throw new Error(`Native binding package version mismatch, expected 0.0.
|
|
205
|
+
if (bindingPackageVersion !== '0.0.4' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
206
|
+
throw new Error(`Native binding package version mismatch, expected 0.0.4 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
207
207
|
}
|
|
208
208
|
return binding
|
|
209
209
|
} catch (e) {
|
|
@@ -218,8 +218,8 @@ function requireNative() {
|
|
|
218
218
|
try {
|
|
219
219
|
const binding = require('@limboai/verifox-sdk-issuer-darwin-arm64')
|
|
220
220
|
const bindingPackageVersion = require('@limboai/verifox-sdk-issuer-darwin-arm64/package.json').version
|
|
221
|
-
if (bindingPackageVersion !== '0.0.
|
|
222
|
-
throw new Error(`Native binding package version mismatch, expected 0.0.
|
|
221
|
+
if (bindingPackageVersion !== '0.0.4' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
222
|
+
throw new Error(`Native binding package version mismatch, expected 0.0.4 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
223
223
|
}
|
|
224
224
|
return binding
|
|
225
225
|
} catch (e) {
|
|
@@ -238,8 +238,8 @@ function requireNative() {
|
|
|
238
238
|
try {
|
|
239
239
|
const binding = require('@limboai/verifox-sdk-issuer-freebsd-x64')
|
|
240
240
|
const bindingPackageVersion = require('@limboai/verifox-sdk-issuer-freebsd-x64/package.json').version
|
|
241
|
-
if (bindingPackageVersion !== '0.0.
|
|
242
|
-
throw new Error(`Native binding package version mismatch, expected 0.0.
|
|
241
|
+
if (bindingPackageVersion !== '0.0.4' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
242
|
+
throw new Error(`Native binding package version mismatch, expected 0.0.4 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
243
243
|
}
|
|
244
244
|
return binding
|
|
245
245
|
} catch (e) {
|
|
@@ -254,8 +254,8 @@ function requireNative() {
|
|
|
254
254
|
try {
|
|
255
255
|
const binding = require('@limboai/verifox-sdk-issuer-freebsd-arm64')
|
|
256
256
|
const bindingPackageVersion = require('@limboai/verifox-sdk-issuer-freebsd-arm64/package.json').version
|
|
257
|
-
if (bindingPackageVersion !== '0.0.
|
|
258
|
-
throw new Error(`Native binding package version mismatch, expected 0.0.
|
|
257
|
+
if (bindingPackageVersion !== '0.0.4' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
258
|
+
throw new Error(`Native binding package version mismatch, expected 0.0.4 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
259
259
|
}
|
|
260
260
|
return binding
|
|
261
261
|
} catch (e) {
|
|
@@ -275,8 +275,8 @@ function requireNative() {
|
|
|
275
275
|
try {
|
|
276
276
|
const binding = require('@limboai/verifox-sdk-issuer-linux-x64-musl')
|
|
277
277
|
const bindingPackageVersion = require('@limboai/verifox-sdk-issuer-linux-x64-musl/package.json').version
|
|
278
|
-
if (bindingPackageVersion !== '0.0.
|
|
279
|
-
throw new Error(`Native binding package version mismatch, expected 0.0.
|
|
278
|
+
if (bindingPackageVersion !== '0.0.4' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
279
|
+
throw new Error(`Native binding package version mismatch, expected 0.0.4 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
280
280
|
}
|
|
281
281
|
return binding
|
|
282
282
|
} catch (e) {
|
|
@@ -291,8 +291,8 @@ function requireNative() {
|
|
|
291
291
|
try {
|
|
292
292
|
const binding = require('@limboai/verifox-sdk-issuer-linux-x64-gnu')
|
|
293
293
|
const bindingPackageVersion = require('@limboai/verifox-sdk-issuer-linux-x64-gnu/package.json').version
|
|
294
|
-
if (bindingPackageVersion !== '0.0.
|
|
295
|
-
throw new Error(`Native binding package version mismatch, expected 0.0.
|
|
294
|
+
if (bindingPackageVersion !== '0.0.4' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
295
|
+
throw new Error(`Native binding package version mismatch, expected 0.0.4 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
296
296
|
}
|
|
297
297
|
return binding
|
|
298
298
|
} catch (e) {
|
|
@@ -309,8 +309,8 @@ function requireNative() {
|
|
|
309
309
|
try {
|
|
310
310
|
const binding = require('@limboai/verifox-sdk-issuer-linux-arm64-musl')
|
|
311
311
|
const bindingPackageVersion = require('@limboai/verifox-sdk-issuer-linux-arm64-musl/package.json').version
|
|
312
|
-
if (bindingPackageVersion !== '0.0.
|
|
313
|
-
throw new Error(`Native binding package version mismatch, expected 0.0.
|
|
312
|
+
if (bindingPackageVersion !== '0.0.4' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
313
|
+
throw new Error(`Native binding package version mismatch, expected 0.0.4 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
314
314
|
}
|
|
315
315
|
return binding
|
|
316
316
|
} catch (e) {
|
|
@@ -325,8 +325,8 @@ function requireNative() {
|
|
|
325
325
|
try {
|
|
326
326
|
const binding = require('@limboai/verifox-sdk-issuer-linux-arm64-gnu')
|
|
327
327
|
const bindingPackageVersion = require('@limboai/verifox-sdk-issuer-linux-arm64-gnu/package.json').version
|
|
328
|
-
if (bindingPackageVersion !== '0.0.
|
|
329
|
-
throw new Error(`Native binding package version mismatch, expected 0.0.
|
|
328
|
+
if (bindingPackageVersion !== '0.0.4' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
329
|
+
throw new Error(`Native binding package version mismatch, expected 0.0.4 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
330
330
|
}
|
|
331
331
|
return binding
|
|
332
332
|
} catch (e) {
|
|
@@ -343,8 +343,8 @@ function requireNative() {
|
|
|
343
343
|
try {
|
|
344
344
|
const binding = require('@limboai/verifox-sdk-issuer-linux-arm-musleabihf')
|
|
345
345
|
const bindingPackageVersion = require('@limboai/verifox-sdk-issuer-linux-arm-musleabihf/package.json').version
|
|
346
|
-
if (bindingPackageVersion !== '0.0.
|
|
347
|
-
throw new Error(`Native binding package version mismatch, expected 0.0.
|
|
346
|
+
if (bindingPackageVersion !== '0.0.4' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
347
|
+
throw new Error(`Native binding package version mismatch, expected 0.0.4 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
348
348
|
}
|
|
349
349
|
return binding
|
|
350
350
|
} catch (e) {
|
|
@@ -359,8 +359,8 @@ function requireNative() {
|
|
|
359
359
|
try {
|
|
360
360
|
const binding = require('@limboai/verifox-sdk-issuer-linux-arm-gnueabihf')
|
|
361
361
|
const bindingPackageVersion = require('@limboai/verifox-sdk-issuer-linux-arm-gnueabihf/package.json').version
|
|
362
|
-
if (bindingPackageVersion !== '0.0.
|
|
363
|
-
throw new Error(`Native binding package version mismatch, expected 0.0.
|
|
362
|
+
if (bindingPackageVersion !== '0.0.4' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
363
|
+
throw new Error(`Native binding package version mismatch, expected 0.0.4 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
364
364
|
}
|
|
365
365
|
return binding
|
|
366
366
|
} catch (e) {
|
|
@@ -377,8 +377,8 @@ function requireNative() {
|
|
|
377
377
|
try {
|
|
378
378
|
const binding = require('@limboai/verifox-sdk-issuer-linux-loong64-musl')
|
|
379
379
|
const bindingPackageVersion = require('@limboai/verifox-sdk-issuer-linux-loong64-musl/package.json').version
|
|
380
|
-
if (bindingPackageVersion !== '0.0.
|
|
381
|
-
throw new Error(`Native binding package version mismatch, expected 0.0.
|
|
380
|
+
if (bindingPackageVersion !== '0.0.4' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
381
|
+
throw new Error(`Native binding package version mismatch, expected 0.0.4 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
382
382
|
}
|
|
383
383
|
return binding
|
|
384
384
|
} catch (e) {
|
|
@@ -393,8 +393,8 @@ function requireNative() {
|
|
|
393
393
|
try {
|
|
394
394
|
const binding = require('@limboai/verifox-sdk-issuer-linux-loong64-gnu')
|
|
395
395
|
const bindingPackageVersion = require('@limboai/verifox-sdk-issuer-linux-loong64-gnu/package.json').version
|
|
396
|
-
if (bindingPackageVersion !== '0.0.
|
|
397
|
-
throw new Error(`Native binding package version mismatch, expected 0.0.
|
|
396
|
+
if (bindingPackageVersion !== '0.0.4' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
397
|
+
throw new Error(`Native binding package version mismatch, expected 0.0.4 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
398
398
|
}
|
|
399
399
|
return binding
|
|
400
400
|
} catch (e) {
|
|
@@ -411,8 +411,8 @@ function requireNative() {
|
|
|
411
411
|
try {
|
|
412
412
|
const binding = require('@limboai/verifox-sdk-issuer-linux-riscv64-musl')
|
|
413
413
|
const bindingPackageVersion = require('@limboai/verifox-sdk-issuer-linux-riscv64-musl/package.json').version
|
|
414
|
-
if (bindingPackageVersion !== '0.0.
|
|
415
|
-
throw new Error(`Native binding package version mismatch, expected 0.0.
|
|
414
|
+
if (bindingPackageVersion !== '0.0.4' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
415
|
+
throw new Error(`Native binding package version mismatch, expected 0.0.4 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
416
416
|
}
|
|
417
417
|
return binding
|
|
418
418
|
} catch (e) {
|
|
@@ -427,8 +427,8 @@ function requireNative() {
|
|
|
427
427
|
try {
|
|
428
428
|
const binding = require('@limboai/verifox-sdk-issuer-linux-riscv64-gnu')
|
|
429
429
|
const bindingPackageVersion = require('@limboai/verifox-sdk-issuer-linux-riscv64-gnu/package.json').version
|
|
430
|
-
if (bindingPackageVersion !== '0.0.
|
|
431
|
-
throw new Error(`Native binding package version mismatch, expected 0.0.
|
|
430
|
+
if (bindingPackageVersion !== '0.0.4' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
431
|
+
throw new Error(`Native binding package version mismatch, expected 0.0.4 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
432
432
|
}
|
|
433
433
|
return binding
|
|
434
434
|
} catch (e) {
|
|
@@ -444,8 +444,8 @@ function requireNative() {
|
|
|
444
444
|
try {
|
|
445
445
|
const binding = require('@limboai/verifox-sdk-issuer-linux-ppc64-gnu')
|
|
446
446
|
const bindingPackageVersion = require('@limboai/verifox-sdk-issuer-linux-ppc64-gnu/package.json').version
|
|
447
|
-
if (bindingPackageVersion !== '0.0.
|
|
448
|
-
throw new Error(`Native binding package version mismatch, expected 0.0.
|
|
447
|
+
if (bindingPackageVersion !== '0.0.4' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
448
|
+
throw new Error(`Native binding package version mismatch, expected 0.0.4 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
449
449
|
}
|
|
450
450
|
return binding
|
|
451
451
|
} catch (e) {
|
|
@@ -460,8 +460,8 @@ function requireNative() {
|
|
|
460
460
|
try {
|
|
461
461
|
const binding = require('@limboai/verifox-sdk-issuer-linux-s390x-gnu')
|
|
462
462
|
const bindingPackageVersion = require('@limboai/verifox-sdk-issuer-linux-s390x-gnu/package.json').version
|
|
463
|
-
if (bindingPackageVersion !== '0.0.
|
|
464
|
-
throw new Error(`Native binding package version mismatch, expected 0.0.
|
|
463
|
+
if (bindingPackageVersion !== '0.0.4' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
464
|
+
throw new Error(`Native binding package version mismatch, expected 0.0.4 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
465
465
|
}
|
|
466
466
|
return binding
|
|
467
467
|
} catch (e) {
|
|
@@ -480,8 +480,8 @@ function requireNative() {
|
|
|
480
480
|
try {
|
|
481
481
|
const binding = require('@limboai/verifox-sdk-issuer-openharmony-arm64')
|
|
482
482
|
const bindingPackageVersion = require('@limboai/verifox-sdk-issuer-openharmony-arm64/package.json').version
|
|
483
|
-
if (bindingPackageVersion !== '0.0.
|
|
484
|
-
throw new Error(`Native binding package version mismatch, expected 0.0.
|
|
483
|
+
if (bindingPackageVersion !== '0.0.4' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
484
|
+
throw new Error(`Native binding package version mismatch, expected 0.0.4 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
485
485
|
}
|
|
486
486
|
return binding
|
|
487
487
|
} catch (e) {
|
|
@@ -496,8 +496,8 @@ function requireNative() {
|
|
|
496
496
|
try {
|
|
497
497
|
const binding = require('@limboai/verifox-sdk-issuer-openharmony-x64')
|
|
498
498
|
const bindingPackageVersion = require('@limboai/verifox-sdk-issuer-openharmony-x64/package.json').version
|
|
499
|
-
if (bindingPackageVersion !== '0.0.
|
|
500
|
-
throw new Error(`Native binding package version mismatch, expected 0.0.
|
|
499
|
+
if (bindingPackageVersion !== '0.0.4' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
500
|
+
throw new Error(`Native binding package version mismatch, expected 0.0.4 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
501
501
|
}
|
|
502
502
|
return binding
|
|
503
503
|
} catch (e) {
|
|
@@ -512,8 +512,8 @@ function requireNative() {
|
|
|
512
512
|
try {
|
|
513
513
|
const binding = require('@limboai/verifox-sdk-issuer-openharmony-arm')
|
|
514
514
|
const bindingPackageVersion = require('@limboai/verifox-sdk-issuer-openharmony-arm/package.json').version
|
|
515
|
-
if (bindingPackageVersion !== '0.0.
|
|
516
|
-
throw new Error(`Native binding package version mismatch, expected 0.0.
|
|
515
|
+
if (bindingPackageVersion !== '0.0.4' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
516
|
+
throw new Error(`Native binding package version mismatch, expected 0.0.4 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
517
517
|
}
|
|
518
518
|
return binding
|
|
519
519
|
} catch (e) {
|
|
@@ -538,13 +538,13 @@ export function __wbg_fetch_c6486a0142348bc8(arg0) {
|
|
|
538
538
|
const ret = fetch(arg0);
|
|
539
539
|
return ret;
|
|
540
540
|
}
|
|
541
|
-
export function
|
|
541
|
+
export function __wbg_forget_44c1e5c657cf66fd() { return handleError(function (arg0, arg1, arg2) {
|
|
542
542
|
var v0 = getArrayU8FromWasm0(arg1, arg2).slice();
|
|
543
543
|
wasm.__wbindgen_free(arg1, arg2 * 1, 1);
|
|
544
544
|
const ret = arg0.forget(v0);
|
|
545
545
|
return ret;
|
|
546
546
|
}, arguments); }
|
|
547
|
-
export function
|
|
547
|
+
export function __wbg_forget_fb7c8e5cfe2da74c() { return handleError(function (arg0, arg1, arg2) {
|
|
548
548
|
const ret = arg0.forget(getStringFromWasm0(arg1, arg2));
|
|
549
549
|
return ret;
|
|
550
550
|
}, arguments); }
|
|
@@ -568,14 +568,14 @@ export function __wbg_get_52a8a619f7b88df6() { return handleError(function (arg0
|
|
|
568
568
|
const ret = Reflect.get(arg0, arg1);
|
|
569
569
|
return ret;
|
|
570
570
|
}, arguments); }
|
|
571
|
+
export function __wbg_get_cdb985c758c43a84() { return handleError(function (arg0, arg1, arg2) {
|
|
572
|
+
const ret = arg0.get(getStringFromWasm0(arg1, arg2));
|
|
573
|
+
return ret;
|
|
574
|
+
}, arguments); }
|
|
571
575
|
export function __wbg_get_done_c21b9933fc9a9e9c(arg0) {
|
|
572
576
|
const ret = arg0.done;
|
|
573
577
|
return isLikeNone(ret) ? 0xFFFFFF : ret ? 1 : 0;
|
|
574
578
|
}
|
|
575
|
-
export function __wbg_get_e7e82191b34bcb39() { return handleError(function (arg0, arg1, arg2) {
|
|
576
|
-
const ret = arg0.get(getStringFromWasm0(arg1, arg2));
|
|
577
|
-
return ret;
|
|
578
|
-
}, arguments); }
|
|
579
579
|
export function __wbg_get_unchecked_46e778e3cec74b5e(arg0, arg1) {
|
|
580
580
|
const ret = arg0[arg1 >>> 0];
|
|
581
581
|
return ret;
|
|
@@ -656,7 +656,7 @@ export function __wbg_length_fb04d16d7bdf6d4c(arg0) {
|
|
|
656
656
|
const ret = arg0.length;
|
|
657
657
|
return ret;
|
|
658
658
|
}
|
|
659
|
-
export function
|
|
659
|
+
export function __wbg_mint_8e1152a20b857eac() { return handleError(function (arg0) {
|
|
660
660
|
const ret = arg0.mint();
|
|
661
661
|
return ret;
|
|
662
662
|
}, arguments); }
|
|
@@ -741,7 +741,7 @@ export function __wbg_push_ceb8ef046afb2041(arg0, arg1) {
|
|
|
741
741
|
const ret = arg0.push(arg1);
|
|
742
742
|
return ret;
|
|
743
743
|
}
|
|
744
|
-
export function
|
|
744
|
+
export function __wbg_put_fb609bcc28e76ffc() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
745
745
|
var v0 = getArrayU8FromWasm0(arg3, arg4).slice();
|
|
746
746
|
wasm.__wbindgen_free(arg3, arg4 * 1, 1);
|
|
747
747
|
const ret = arg0.put(getStringFromWasm0(arg1, arg2), v0);
|
|
@@ -821,7 +821,7 @@ export function __wbg_set_signal_9022b5aa06a6ce5b(arg0, arg1) {
|
|
|
821
821
|
export function __wbg_set_type_38a356c417e6662e(arg0, arg1, arg2) {
|
|
822
822
|
arg0.type = getStringFromWasm0(arg1, arg2);
|
|
823
823
|
}
|
|
824
|
-
export function
|
|
824
|
+
export function __wbg_sign_22241f4218bf570f() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
825
825
|
var v0 = getArrayU8FromWasm0(arg1, arg2).slice();
|
|
826
826
|
wasm.__wbindgen_free(arg1, arg2 * 1, 1);
|
|
827
827
|
var v1 = getArrayU8FromWasm0(arg3, arg4).slice();
|
|
@@ -896,22 +896,22 @@ export function __wbg_view_15fa5865c6b336e3(arg0) {
|
|
|
896
896
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
897
897
|
}
|
|
898
898
|
export function __wbindgen_cast_0000000000000001(arg0, arg1) {
|
|
899
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx:
|
|
899
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 1808, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
|
|
900
900
|
const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h943eb40e888f3817);
|
|
901
901
|
return ret;
|
|
902
902
|
}
|
|
903
903
|
export function __wbindgen_cast_0000000000000002(arg0, arg1) {
|
|
904
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx:
|
|
904
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 521, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
905
905
|
const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h7054f5716afd86e4);
|
|
906
906
|
return ret;
|
|
907
907
|
}
|
|
908
908
|
export function __wbindgen_cast_0000000000000003(arg0, arg1) {
|
|
909
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx:
|
|
909
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx: 508, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
910
910
|
const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h05be101785b70b99);
|
|
911
911
|
return ret;
|
|
912
912
|
}
|
|
913
913
|
export function __wbindgen_cast_0000000000000004(arg0, arg1) {
|
|
914
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx:
|
|
914
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx: 567, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
915
915
|
const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h063e3cf551c2e635);
|
|
916
916
|
return ret;
|
|
917
917
|
}
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@limboai/verifox-sdk-issuer",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.4",
|
|
4
4
|
"license": "UNLICENSED",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -67,9 +67,9 @@
|
|
|
67
67
|
"typescript": "^5.9.3"
|
|
68
68
|
},
|
|
69
69
|
"optionalDependencies": {
|
|
70
|
-
"@limboai/verifox-sdk-issuer-darwin-arm64": "0.0.
|
|
71
|
-
"@limboai/verifox-sdk-issuer-darwin-x64": "0.0.
|
|
72
|
-
"@limboai/verifox-sdk-issuer-linux-x64-gnu": "0.0.
|
|
73
|
-
"@limboai/verifox-sdk-issuer-linux-arm64-gnu": "0.0.
|
|
70
|
+
"@limboai/verifox-sdk-issuer-darwin-arm64": "0.0.4",
|
|
71
|
+
"@limboai/verifox-sdk-issuer-darwin-x64": "0.0.4",
|
|
72
|
+
"@limboai/verifox-sdk-issuer-linux-x64-gnu": "0.0.4",
|
|
73
|
+
"@limboai/verifox-sdk-issuer-linux-arm64-gnu": "0.0.4"
|
|
74
74
|
}
|
|
75
75
|
}
|
package/types/asset.d.ts
CHANGED
|
@@ -11,6 +11,14 @@ export interface Ingredient {
|
|
|
11
11
|
data: Uint8Array;
|
|
12
12
|
format?: string;
|
|
13
13
|
relationship?: Relationship;
|
|
14
|
+
/**
|
|
15
|
+
* Pre-rendered thumbnail of this ingredient, attached as its
|
|
16
|
+
* `c2pa.thumbnail.ingredient` resource. As with the manifest
|
|
17
|
+
* {@link Thumbnail}, the split-signer has no asset bytes to render one
|
|
18
|
+
* server-side, so supply your own; verifiers show it as the ingredient's
|
|
19
|
+
* preview tile.
|
|
20
|
+
*/
|
|
21
|
+
thumbnail?: Thumbnail;
|
|
14
22
|
}
|
|
15
23
|
|
|
16
24
|
export interface Assertion {
|