@oim-media/spec 1.29.1 → 1.30.0

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/BINARY_SPEC.md CHANGED
@@ -48,6 +48,20 @@ OIM metadata is preferably stored in an ancillary text chunk:
48
48
  - **BEFORE** or **AFTER** the image `IDAT` chunks.
49
49
  - **ALWAYS BEFORE** the closing `IEND` chunk.
50
50
 
51
+ Writers since 1.30.0 put it **after** the last `IDAT`, so the image arrives first.
52
+
53
+ ### 2.3. Poster seal (`OIM_Seal`, since 1.30.0)
54
+
55
+ A `tEXt` chunk with keyword `OIM_Seal`, written after the last `IDAT` and before the metadata chunk. Its value is JSON:
56
+
57
+ ```json
58
+ {"v":1,"alg":"sha256-idat","image_hash":"<hex SHA-256 of the concatenated IDAT payloads>","key_version":"v2","signature":"<base64 raw P-256 r||s>"}
59
+ ```
60
+
61
+ - **Signed bytes:** `JSON.stringify` of `{alg, image_hash, key_version, v}` with keys in that (sorted) order; ECDSA P-256 / SHA-256 with the key named by `key_version`. Its signed fields differ from the metadata's, so neither signature passes as the other.
62
+ - **Use:** a reader may stop after this chunk, verify `image_hash` against the `IDAT` it read and the signature, and show the image as a poster without reading the metadata. The same key-expiry rules apply.
63
+ - **Optional:** readers that do not know it ignore it; a file without it is read whole, as before.
64
+
51
65
  > **Critical note on injection:** The metadata chunk must be inserted **surgically at byte level** into the PNG binary stream, without re-rendering or re-encoding the `IDAT` blocks, preserving the exact cryptographic hash of the canvas.
52
66
 
53
67
  ---
package/CANONICAL_SPEC.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # OIM (Object Interactive Media) Canonical Metadata Specification
2
2
 
3
- **Contract version:** 1.29.1
3
+ **Contract version:** 1.30.0
4
4
  **Date:** 2026-11-02 (reviewed against `packages/core/src/schema.ts`; the source of truth is the schema, this document summarises it)
5
5
  **Status:** Normative / In force
6
6
  **License:** Apache-2.0
@@ -333,7 +333,7 @@ Top-level structure carried in the `OIM_Data` payload:
333
333
 
334
334
  | Key | Type | Description |
335
335
  |---|---|---|
336
- | `oim` | `string` | Format version of the document (e.g. `"1.29.1"`), the contract version the backend signs against. |
336
+ | `oim` | `string` | Format version of the document (e.g. `"1.30.0"`), the contract version the backend signs against. |
337
337
  | `min_player` | `string` | Minimum player version required to rebuild the document (`minVersionFor`). |
338
338
  | `oim_id` | `string` | Unique document identifier for re-editing and registry checks (max 128 chars). |
339
339
  | `media_type` | `"image" \| "video"` | Media type of the OIM document. |
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oim-media/spec",
3
- "version": "1.29.1",
3
+ "version": "1.30.0",
4
4
  "description": "OIM format contract: JSON Schema, normative specification and conformance vectors that every OIM player must pass.",
5
5
  "keywords": [
6
6
  "oim",
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
- "$id": "https://oim.media/spec/1.29.1/oim.schema.json",
3
+ "$id": "https://oim.media/spec/1.30.0/oim.schema.json",
4
4
  "title": "OIM document metadata",
5
- "specVersion": "1.29.1",
5
+ "specVersion": "1.30.0",
6
6
  "type": "object",
7
7
  "properties": {
8
8
  "description": {
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
- "$id": "https://oim.media/spec/1.29.1/ovm.schema.json",
3
+ "$id": "https://oim.media/spec/1.30.0/ovm.schema.json",
4
4
  "title": "OVM document metadata",
5
- "specVersion": "1.29.1",
5
+ "specVersion": "1.30.0",
6
6
  "type": "object",
7
7
  "properties": {
8
8
  "ovm_version": {