@vixor/contracts 0.0.0-stage → 0.2.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.
Files changed (2) hide show
  1. package/README.md +37 -3
  2. package/package.json +42 -6
package/README.md CHANGED
@@ -1,3 +1,37 @@
1
- # Temporary Holding Version
2
-
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
1
+ # @vixor/contracts
2
+
3
+ Zero-runtime-dependency TypeScript contracts for VIXOR integration boundaries.
4
+
5
+ ## Install
6
+
7
+ ```sh
8
+ npm install @vixor/contracts
9
+ ```
10
+
11
+ ## Runtime
12
+
13
+ Node.js 20 or newer is supported. The published package contains compiled
14
+ ES modules and TypeScript declaration files under `dist/`; consumers do not
15
+ need a TypeScript runtime loader.
16
+
17
+ ## Example
18
+
19
+ ```ts
20
+ import { validateEnvelope, validateOpportunityPayload, fixtureEnvelope } from "@vixor/contracts";
21
+
22
+ const result = validateEnvelope(fixtureEnvelope(), validateOpportunityPayload);
23
+ if (!result.ok) throw new Error(result.errors.join("; "));
24
+ ```
25
+
26
+ Package SemVer (currently 0.2.0) is independent of the wire `SCHEMA_VERSION`
27
+ (currently `0.1`). Consumers must validate the wire schema version independently.
28
+
29
+ This package validates VIXOR event envelopes, opportunity payloads, Shield risk
30
+ assessments, and publication candidates. It does not authenticate requests,
31
+ verify HMAC signatures, authorize channels, or replace persistence/idempotency.
32
+
33
+ ## License
34
+
35
+ The package is published with `UNLICENSED` metadata. Public npm visibility makes
36
+ the artifact downloadable; it does not grant third-party rights to reuse or
37
+ redistribute the code. Obtain separate written permission before external reuse.
package/package.json CHANGED
@@ -1,6 +1,42 @@
1
- {
2
- "name": "@vixor/contracts",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
6
- }
1
+ {
2
+ "name": "@vixor/contracts",
3
+ "version": "0.2.0",
4
+ "description": "Zero-dependency runtime contracts and validators for VIXOR crypto-intelligence integrations.",
5
+ "license": "UNLICENSED",
6
+ "type": "module",
7
+ "main": "./dist/index.js",
8
+ "types": "./dist/index.d.ts",
9
+ "exports": {
10
+ ".": {
11
+ "types": "./dist/index.d.ts",
12
+ "import": "./dist/index.js",
13
+ "default": "./dist/index.js"
14
+ }
15
+ },
16
+ "files": [
17
+ "dist",
18
+ "README.md"
19
+ ],
20
+ "sideEffects": false,
21
+ "engines": {
22
+ "node": ">=20"
23
+ },
24
+ "publishConfig": {
25
+ "access": "public"
26
+ },
27
+ "scripts": {
28
+ "build": "tsc -p tsconfig.build.json",
29
+ "typecheck": "tsc --noEmit",
30
+ "test": "node --experimental-strip-types --test test/contracts.test.ts",
31
+ "pack:check": "node scripts/verify-pack.mjs"
32
+ },
33
+ "devDependencies": {
34
+ "@types/node": "^22.16.5",
35
+ "typescript": "^5.8.3"
36
+ },
37
+ "repository": {
38
+ "type": "git",
39
+ "url": "https://github.com/kam65624-cmd/vixor-packages.git",
40
+ "directory": "packages/vixor-contracts"
41
+ }
42
+ }