@omnixhq/ucp-js-sdk 1.1.0 → 2.0.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 +5 -6
- package/dist/index.cjs +1711 -390
- package/dist/index.d.cts +11484 -5382
- package/dist/index.d.mts +11484 -5382
- package/dist/index.mjs +1675 -388
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -30,12 +30,12 @@
|
|
|
30
30
|
## Overview
|
|
31
31
|
|
|
32
32
|
The JavaScript SDK for the [Universal Commerce Protocol (UCP)](https://ucp.dev).
|
|
33
|
-
Auto-generated from the UCP spec with full coverage —
|
|
34
|
-
checkout, orders, payments, fulfillment, discovery profiles, and all inline enums.
|
|
33
|
+
Auto-generated from the UCP spec with full coverage — 134 schemas including
|
|
34
|
+
checkout, cart, catalog, orders, payments, fulfillment, discovery profiles, and all inline enums.
|
|
35
35
|
|
|
36
36
|
**Key features:**
|
|
37
37
|
|
|
38
|
-
- 100% spec coverage — every schema, `$def`, request variant, and enum
|
|
38
|
+
- 100% spec coverage — every schema, `$def`, request variant, and enum (134 exports)
|
|
39
39
|
- Fully generated from the UCP JSON Schema spec — consumer aliases in `extensions.ts`
|
|
40
40
|
- Runtime validation with [Zod](https://zod.dev/) — `.parse()` and `.safeParse()`
|
|
41
41
|
- Extension-safe — `additionalProperties: true` schemas use `.passthrough()` to preserve extension data
|
|
@@ -50,8 +50,7 @@ npm install @omnixhq/ucp-js-sdk
|
|
|
50
50
|
|
|
51
51
|
### Draft builds
|
|
52
52
|
|
|
53
|
-
To build against upcoming UCP spec changes
|
|
54
|
-
install the `next` tag:
|
|
53
|
+
To build against upcoming UCP spec changes, install the `next` tag:
|
|
55
54
|
|
|
56
55
|
```bash
|
|
57
56
|
# Draft (latest UCP spec main branch)
|
|
@@ -146,7 +145,7 @@ Node.js 22+ and npm.
|
|
|
146
145
|
`src/spec_generated.ts` is auto-generated from the UCP spec:
|
|
147
146
|
|
|
148
147
|
```bash
|
|
149
|
-
npm run generate # default release (v2026-
|
|
148
|
+
npm run generate # default release (v2026-04-08)
|
|
150
149
|
npm run generate -- --release v2026-01-24 # specific release tag
|
|
151
150
|
npm run generate -- --branch main # latest commit on a branch
|
|
152
151
|
npm run generate -- --commit abc1234 # exact commit SHA
|