@contentauth/c2pa-web 0.14.6 → 0.15.1

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/dist/common.d.ts CHANGED
@@ -6,9 +6,9 @@
6
6
  * accordance with the terms of the Adobe license agreement accompanying
7
7
  * it.
8
8
  */
9
- export type * from './lib/c2pa.js';
10
- export type { Reader, ReaderFactory } from './lib/reader.js';
11
- export type { Builder, BuilderFactory, ManifestAndAssetBytes } from './lib/builder.js';
12
- export type { Signer, SigningAlg } from './lib/signer.js';
9
+ export type { Config, C2pa } from './lib/c2pa.js';
10
+ export type { ManifestAndAssetBytes, BuilderFactory } from './lib/builder.js';
11
+ export type { ReaderFactory } from './lib/reader.js';
12
+ export type { Signer, SigningAlg, HashedUri, SignerPayload, CredentialHolder, IdentityAssertion, SignOptions } from './lib/signer.js';
13
13
  export type * from '@contentauth/c2pa-types';
14
14
  //# sourceMappingURL=common.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../src/common.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,mBAAmB,eAAe,CAAC;AAEnC,YAAY,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAE7D,YAAY,EACV,OAAO,EACP,cAAc,EACd,qBAAqB,EACtB,MAAM,kBAAkB,CAAC;AAE1B,YAAY,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAG1D,mBAAmB,yBAAyB,CAAC"}
1
+ {"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../src/common.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,YAAY,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAElD,YAAY,EAAE,qBAAqB,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAE9E,YAAY,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAErD,YAAY,EACV,MAAM,EACN,UAAU,EACV,SAAS,EACT,aAAa,EACb,gBAAgB,EAChB,iBAAiB,EACjB,WAAW,EACZ,MAAM,iBAAiB,CAAC;AAGzB,mBAAmB,yBAAyB,CAAC"}
package/dist/index.d.ts CHANGED
@@ -7,6 +7,8 @@
7
7
  * it.
8
8
  */
9
9
  export { createC2pa } from './lib/c2pa.js';
10
+ export { Reader } from './lib/reader.js';
11
+ export { Builder } from './lib/builder.js';
10
12
  export * from './common.js';
11
13
  export * from '@contentauth/c2pa-utilities';
12
14
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAGH,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,cAAc,aAAa,CAAC;AAC5B,cAAc,6BAA6B,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAGH,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AACzC,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAC3C,cAAc,aAAa,CAAC;AAC5B,cAAc,6BAA6B,CAAC"}
package/dist/index.js CHANGED
@@ -1,24 +1,29 @@
1
- import { A as a, D as t, a as r, b as _, c as E, d as T, e as A, f as S, g as i, h as R, i as g, j as o, k as n, l as L, m as D, n as l, r as F, o as M, s as c, p as f, v as I } from "./c2pa-BK_gbEns.js";
1
+ import { A as e, B as t, C as r, D as E, a as T, b as _, c as S, d as A, e as i, f as R, R as g, g as n, h as o, i as D, j as L, k as l, l as F, m as f, n as I, o as M, r as U, p as c, s as u, q as Y, v as d, w as h } from "./c2pa-DIv7lJlp.js";
2
2
  export {
3
- a as AssetTooLargeError,
4
- t as DEFAULT_INITIAL_RETRY_DELAY_MS,
5
- r as DEFAULT_MAX_RESPONSE_BYTES,
3
+ e as AssetTooLargeError,
4
+ t as Builder,
5
+ r as Context,
6
+ E as DEFAULT_INITIAL_RETRY_DELAY_MS,
7
+ T as DEFAULT_MAX_RESPONSE_BYTES,
6
8
  _ as DEFAULT_MAX_RETRIES,
7
- E as DEFAULT_MAX_RETRY_AFTER_MS,
8
- T as DEFAULT_MAX_RETRY_DELAY_MS,
9
- A as DEFAULT_MAX_SIZE_IN_BYTES,
10
- S as createC2pa,
11
- i as createCawgTrustSettings,
12
- R as createTrustSettings,
13
- g as createVerifySettings,
14
- o as defaultIsRetryableStatus,
15
- n as fetchWithRetry,
16
- L as fetchWithRetryRaw,
17
- D as loadSettingsFromUrl,
18
- l as mergeSettings,
19
- F as resolveSettings,
20
- M as resolveTrustSettings,
21
- c as settingsToJson,
22
- f as snakeCaseify,
23
- I as validateAssetSize
9
+ S as DEFAULT_MAX_RETRY_AFTER_MS,
10
+ A as DEFAULT_MAX_RETRY_DELAY_MS,
11
+ i as DEFAULT_MAX_SIZE_IN_BYTES,
12
+ R as DEFAULT_SETTINGS,
13
+ g as Reader,
14
+ n as createC2pa,
15
+ o as createCawgTrustSettings,
16
+ D as createTrustSettings,
17
+ L as createVerifySettings,
18
+ l as defaultIsRetryableStatus,
19
+ F as fetchWithRetry,
20
+ f as fetchWithRetryRaw,
21
+ I as loadSettingsFromUrl,
22
+ M as mergeSettings,
23
+ U as resolveSettings,
24
+ c as resolveTrustSettings,
25
+ u as settingsToJson,
26
+ Y as snakeCaseify,
27
+ d as validateAssetSize,
28
+ h as withDefaultSettings
24
29
  };
package/dist/inline.d.ts CHANGED
@@ -6,15 +6,17 @@ export type InlineConfig = Omit<Config, 'wasmSrc'>;
6
6
  * This is the "inline" version which compiles the WASM binary from an inlined, base64-encoded string.
7
7
  *
8
8
  * @param config - SDK configuration object.
9
- * @returns An object providing access to factory methods for creating new reader objects.
9
+ * @returns A handle to the running worker, to be passed to `Reader`/`Builder`'s static methods.
10
10
  *
11
11
  * @example Creating a new SDK instance and reader:
12
12
  * ```
13
13
  * const c2pa = await createC2pa();
14
14
  *
15
- * const reader = await c2pa.reader.fromBlob(imageBlob.type, imageBlob);
15
+ * const reader = await Reader.fromBlob(c2pa, imageBlob.type, imageBlob);
16
16
  * ```
17
17
  */
18
- export declare function createC2pa(config?: InlineConfig): Promise<import('./common.js').C2paSdk>;
18
+ export declare function createC2pa(config?: InlineConfig): Promise<import('./common.js').C2pa>;
19
+ export { Reader } from './lib/reader.js';
20
+ export { Builder } from './lib/builder.js';
19
21
  export * from './common.js';
20
22
  //# sourceMappingURL=inline.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"inline.d.ts","sourceRoot":"","sources":["../src/inline.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAgC,MAAM,EAAE,MAAM,eAAe,CAAC;AAGrE,MAAM,MAAM,YAAY,GAAG,IAAI,CAAC,MAAM,EAAE,SAAS,CAAC,CAAC;AAEnD;;;;;;;;;;;;;;GAcG;AACH,wBAAsB,UAAU,CAAC,MAAM,CAAC,EAAE,YAAY,0CAOrD;AAED,cAAc,aAAa,CAAC"}
1
+ {"version":3,"file":"inline.d.ts","sourceRoot":"","sources":["../src/inline.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAgC,MAAM,EAAE,MAAM,eAAe,CAAC;AAGrE,MAAM,MAAM,YAAY,GAAG,IAAI,CAAC,MAAM,EAAE,SAAS,CAAC,CAAC;AAEnD;;;;;;;;;;;;;;GAcG;AACH,wBAAsB,UAAU,CAAC,MAAM,CAAC,EAAE,YAAY,uCAOrD;AAED,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AACzC,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAC3C,cAAc,aAAa,CAAC"}