@rentnerproxy/app-contracts 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 +7 -0
- package/contracts.schema.json +1 -1
- package/dist/primitives.d.ts +1 -1
- package/dist/primitives.js +1 -1
- package/dist/public-schemas.d.ts +4 -0
- package/dist/public-schemas.js +6 -0
- package/openapi.json +1 -1
- package/package.json +5 -1
package/README.md
CHANGED
|
@@ -14,6 +14,13 @@ import schema from '@rentnerproxy/app-contracts/contracts.schema.json' with { ty
|
|
|
14
14
|
const manifest = parseAppManifest(JSON.parse(source))
|
|
15
15
|
```
|
|
16
16
|
|
|
17
|
+
The Zod schemas behind the validators are available from `@rentnerproxy/app-contracts/schemas`, for consumers that
|
|
18
|
+
build their own validation on top of the contract:
|
|
19
|
+
|
|
20
|
+
```ts
|
|
21
|
+
import { appManifest, commit } from '@rentnerproxy/app-contracts/schemas'
|
|
22
|
+
```
|
|
23
|
+
|
|
17
24
|
Besides the validators, the package ships the generated JSON documents and the shared fixtures, so an app can test
|
|
18
25
|
against exactly the cases the platform checks:
|
|
19
26
|
|
package/contracts.schema.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
-
"$id": "urn:rentnerproxy:app-contracts:1.
|
|
3
|
+
"$id": "urn:rentnerproxy:app-contracts:1.1.0",
|
|
4
4
|
"title": "RentnerProxy App Contracts",
|
|
5
5
|
"description": "Enable JSON Schema format assertions when validating these documents. The SDK validates formats including IP addresses and timestamps.",
|
|
6
6
|
"$ref": "#/$defs/Catalog",
|
package/dist/primitives.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
export declare const contractVersion = "1.
|
|
2
|
+
export declare const contractVersion = "1.1.0";
|
|
3
3
|
export declare const protocolVersion: z.ZodLiteral<"1.0.0">;
|
|
4
4
|
export declare const runtimeProfile: z.ZodLiteral<"rentnerproxy-linux-v1">;
|
|
5
5
|
export declare const formatVersion: z.ZodLiteral<1>;
|
package/dist/primitives.js
CHANGED
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export { appId, appVersion, commit, githubId, sha256, target, timestamp, } from './primitives.ts';
|
|
2
|
+
export { appManifest, capabilityRequest, providerProfile } from './manifest.ts';
|
|
3
|
+
export { catalog, catalogRelease, packageArtifact, revocation, } from './catalog.ts';
|
|
4
|
+
export { approval, candidate, publication } from './publication.ts';
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
// The Zod schemas behind the validators, for consumers that build their own validation on top of
|
|
2
|
+
// the contract. Everything exported here is public API and follows the package version.
|
|
3
|
+
export { appId, appVersion, commit, githubId, sha256, target, timestamp, } from './primitives.js';
|
|
4
|
+
export { appManifest, capabilityRequest, providerProfile } from './manifest.js';
|
|
5
|
+
export { catalog, catalogRelease, packageArtifact, revocation, } from './catalog.js';
|
|
6
|
+
export { approval, candidate, publication } from './publication.js';
|
package/openapi.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"openapi": "3.1.2",
|
|
3
3
|
"info": {
|
|
4
4
|
"title": "RentnerProxy App Protocol",
|
|
5
|
-
"version": "1.
|
|
5
|
+
"version": "1.1.0",
|
|
6
6
|
"description": "Stable version 1 contract for native apps. HTTP uses the declared private Unix socket for each operation. The matching SDK verifies cross-record invariants. Platform authorization is required at the runtime boundary."
|
|
7
7
|
},
|
|
8
8
|
"paths": {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rentnerproxy/app-contracts",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.1.0",
|
|
4
4
|
"description": "Versioned RentnerProxy app contract types and validators",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -26,6 +26,10 @@
|
|
|
26
26
|
"types": "./dist/index.d.ts",
|
|
27
27
|
"import": "./dist/index.js"
|
|
28
28
|
},
|
|
29
|
+
"./schemas": {
|
|
30
|
+
"types": "./dist/public-schemas.d.ts",
|
|
31
|
+
"import": "./dist/public-schemas.js"
|
|
32
|
+
},
|
|
29
33
|
"./contracts.schema.json": "./contracts.schema.json",
|
|
30
34
|
"./openapi.json": "./openapi.json",
|
|
31
35
|
"./fixtures.json": "./fixtures.json",
|