@cueframe/api-contract 1.0.0 → 1.1.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/README.md CHANGED
@@ -74,14 +74,14 @@ local copy) can tell a bumped pin from a regenerated tree.
74
74
  renamed, a type narrowed, a required field added, or the scene schema changed
75
75
  incompatibly. The reviewed inventory (`public-surface.json`) is the
76
76
  checklist: an operation added or removed there is at least a minor.
77
- - **A manifest-only resync is still a change.** `contract-manifest.json` is one
78
- of the five files and carries `privateCommit`, so a sync run from a new
79
- private commit whose three content files are byte-identical still rewrites
80
- the manifest and, under the rule above, still needs a bump (a patch). The
81
- private sync is therefore expected to leave the manifest untouched when the
82
- three content hashes equal the committed ones, so that only a contract change
83
- moves the version; until it does, accept the patch bump rather than weaken
84
- the rule.
77
+ - **A resync with unchanged content does not move the version.**
78
+ `contract-manifest.json` carries `privateCommit`, but the private sync
79
+ compares the three content files, their hashes, `kernelVersion` and
80
+ `contractVersion` against the committed target and writes nothing when they
81
+ are equal, so a sync run from a new private commit with identical content
82
+ leaves the manifest (and its `privateCommit`) untouched. Only a contract
83
+ change moves the version; when it does, the sync rewrites the manifest with
84
+ the new stamp and the rule above applies.
85
85
  - **The private sync may stamp the version.** When
86
86
  `api/contract-manifest.json` carries `contractVersion`, it names the package
87
87
  version the sync was run against; the check and the build both fail when it
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "schemaVersion": 1,
3
3
  "kernelVersion": "0.2.64",
4
- "privateCommit": "936acea017b2dcb15a300cade29280956521ce7f",
4
+ "privateCommit": "3cc1faae57b499bfaad1eee6e5be14a1d3287172",
5
5
  "files": {
6
- "openapi.json": "e9b2ced4d88c1c1476fa26ec3852bb982ac6ccd7873e04e545d0c24b255c3076",
6
+ "openapi.json": "78eef676992325b1ef2235f0d24a25c89dcac7ad814426cb5d13eccdc54fcc3e",
7
7
  "scene-schema.json": "dbed283643cb2a60968f7d4f5372d5b4cb9d2204ae88054e83c87366b1f8aa7c",
8
8
  "scene-examples.json": "6eca2929e8567fb804e599619363e4f3f61e4ee1d53b170266d2261ae22cd5a2"
9
9
  },
10
- "contractVersion": "1.0.0"
10
+ "contractVersion": "1.1.0"
11
11
  }
package/dist/index.d.ts CHANGED
@@ -1,12 +1,12 @@
1
- export declare const contractVersion: "1.0.0";
2
- export declare const openApiSha256: "07deb2226172505f0dbe10ae1480a478fd0fe42c9505d3632879e6e829cd9694";
1
+ export declare const contractVersion: "1.1.0";
2
+ export declare const openApiSha256: "f42641139c28745d64b1008df21a928f61dffcdf32c60a2f8ac69ae3f984f70f";
3
3
  export declare const operationCount: 135;
4
4
  export declare const pathCount: 108;
5
5
  export declare const componentCount: 208;
6
6
  export declare const kernelVersion: "0.2.64";
7
- export declare const privateCommit: "936acea017b2dcb15a300cade29280956521ce7f";
7
+ export declare const privateCommit: "3cc1faae57b499bfaad1eee6e5be14a1d3287172";
8
8
  export declare const syncedFiles: {
9
- "openapi.json": "e9b2ced4d88c1c1476fa26ec3852bb982ac6ccd7873e04e545d0c24b255c3076",
9
+ "openapi.json": "78eef676992325b1ef2235f0d24a25c89dcac7ad814426cb5d13eccdc54fcc3e",
10
10
  "scene-schema.json": "dbed283643cb2a60968f7d4f5372d5b4cb9d2204ae88054e83c87366b1f8aa7c",
11
11
  "scene-examples.json": "6eca2929e8567fb804e599619363e4f3f61e4ee1d53b170266d2261ae22cd5a2"
12
12
  };
package/dist/index.js CHANGED
@@ -1,12 +1,12 @@
1
- export const contractVersion = "1.0.0";
2
- export const openApiSha256 = "07deb2226172505f0dbe10ae1480a478fd0fe42c9505d3632879e6e829cd9694";
1
+ export const contractVersion = "1.1.0";
2
+ export const openApiSha256 = "f42641139c28745d64b1008df21a928f61dffcdf32c60a2f8ac69ae3f984f70f";
3
3
  export const operationCount = 135;
4
4
  export const pathCount = 108;
5
5
  export const componentCount = 208;
6
6
  export const kernelVersion = "0.2.64";
7
- export const privateCommit = "936acea017b2dcb15a300cade29280956521ce7f";
7
+ export const privateCommit = "3cc1faae57b499bfaad1eee6e5be14a1d3287172";
8
8
  export const syncedFiles = {
9
- "openapi.json": "e9b2ced4d88c1c1476fa26ec3852bb982ac6ccd7873e04e545d0c24b255c3076",
9
+ "openapi.json": "78eef676992325b1ef2235f0d24a25c89dcac7ad814426cb5d13eccdc54fcc3e",
10
10
  "scene-schema.json": "dbed283643cb2a60968f7d4f5372d5b4cb9d2204ae88054e83c87366b1f8aa7c",
11
11
  "scene-examples.json": "6eca2929e8567fb804e599619363e4f3f61e4ee1d53b170266d2261ae22cd5a2"
12
12
  };
@@ -1,14 +1,14 @@
1
1
  {
2
2
  "schemaVersion": 1,
3
- "contractVersion": "1.0.0",
4
- "sha256": "07deb2226172505f0dbe10ae1480a478fd0fe42c9505d3632879e6e829cd9694",
3
+ "contractVersion": "1.1.0",
4
+ "sha256": "f42641139c28745d64b1008df21a928f61dffcdf32c60a2f8ac69ae3f984f70f",
5
5
  "operationCount": 135,
6
6
  "pathCount": 108,
7
7
  "componentCount": 208,
8
8
  "kernelVersion": "0.2.64",
9
- "privateCommit": "936acea017b2dcb15a300cade29280956521ce7f",
9
+ "privateCommit": "3cc1faae57b499bfaad1eee6e5be14a1d3287172",
10
10
  "syncedFiles": {
11
- "openapi.json": "e9b2ced4d88c1c1476fa26ec3852bb982ac6ccd7873e04e545d0c24b255c3076",
11
+ "openapi.json": "78eef676992325b1ef2235f0d24a25c89dcac7ad814426cb5d13eccdc54fcc3e",
12
12
  "scene-schema.json": "dbed283643cb2a60968f7d4f5372d5b4cb9d2204ae88054e83c87366b1f8aa7c",
13
13
  "scene-examples.json": "6eca2929e8567fb804e599619363e4f3f61e4ee1d53b170266d2261ae22cd5a2"
14
14
  }
package/dist/openapi.json CHANGED
@@ -155,6 +155,10 @@
155
155
  "type": "string",
156
156
  "description": "Contract version that produced this verdict. If it differs between two calls, the rules changed underneath you, not your request."
157
157
  },
158
+ "contractVersion": {
159
+ "type": "string",
160
+ "description": "Version of the published `@cueframe/api-contract` this server implements. Compare it with the `contractVersion` of the package your client was generated from: a higher value here means the server has moved ahead of your document."
161
+ },
158
162
  "details": {
159
163
  "description": "Optional context (currentEtag, projectIds, retryAfter, …).",
160
164
  "type": "object",
@@ -167,7 +171,8 @@
167
171
  "required": [
168
172
  "code",
169
173
  "message",
170
- "contract"
174
+ "contract",
175
+ "contractVersion"
171
176
  ],
172
177
  "description": "Standard API error envelope."
173
178
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cueframe/api-contract",
3
- "version": "1.0.0",
3
+ "version": "1.1.0",
4
4
  "description": "Sanitized, versioned OpenAPI contract for the public CueFrame API.",
5
5
  "type": "module",
6
6
  "license": "Apache-2.0",