@unispechq/unispec-core 0.2.13 → 0.2.14
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/dist/cjs/converters/index.js +1 -0
- package/dist/cjs/validator/generated-schemas.js +4 -0
- package/dist/converters/index.js +1 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/validator/generated-schemas.d.ts +4 -0
- package/dist/validator/generated-schemas.js +4 -0
- package/package.json +2 -2
|
@@ -758,6 +758,10 @@ exports.GENERATED_SCHEMAS = {
|
|
|
758
758
|
"description": {
|
|
759
759
|
"$ref": "./common.schema.json#/$defs/Description"
|
|
760
760
|
},
|
|
761
|
+
"namespace": {
|
|
762
|
+
"type": "string",
|
|
763
|
+
"description": "Optional namespace for the channel (e.g. 'chat', 'notifications'). Used to group related channels and avoid name collisions."
|
|
764
|
+
},
|
|
761
765
|
"direction": {
|
|
762
766
|
"type": "string",
|
|
763
767
|
"description": "Direction of message flow on this channel.",
|
package/dist/converters/index.js
CHANGED
package/dist/types/index.d.ts
CHANGED
|
@@ -21,6 +21,7 @@ export interface UniSpecWebSocketMessage {
|
|
|
21
21
|
export interface UniSpecWebSocketChannel {
|
|
22
22
|
name: string;
|
|
23
23
|
description?: string;
|
|
24
|
+
namespace?: string;
|
|
24
25
|
direction?: "publish" | "subscribe" | "both";
|
|
25
26
|
messages?: UniSpecWebSocketMessage[];
|
|
26
27
|
security?: UniSpecSecurityRequirement[];
|
|
@@ -755,6 +755,10 @@ export const GENERATED_SCHEMAS = {
|
|
|
755
755
|
"description": {
|
|
756
756
|
"$ref": "./common.schema.json#/$defs/Description"
|
|
757
757
|
},
|
|
758
|
+
"namespace": {
|
|
759
|
+
"type": "string",
|
|
760
|
+
"description": "Optional namespace for the channel (e.g. 'chat', 'notifications'). Used to group related channels and avoid name collisions."
|
|
761
|
+
},
|
|
758
762
|
"direction": {
|
|
759
763
|
"type": "string",
|
|
760
764
|
"description": "Direction of message flow on this channel.",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@unispechq/unispec-core",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.14",
|
|
4
4
|
"description": "Central UniSpec Core Engine providing parsing, validation, normalization, diffing, and conversion of UniSpec specs.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
"release:major": "node scripts/release.js major"
|
|
50
50
|
},
|
|
51
51
|
"dependencies": {
|
|
52
|
-
"@unispechq/unispec-schema": "^0.3.
|
|
52
|
+
"@unispechq/unispec-schema": "^0.3.7",
|
|
53
53
|
"ajv": "^8.12.0"
|
|
54
54
|
},
|
|
55
55
|
"optionalDependencies": {
|