@kumwe/studio-protocol 0.1.0-alpha.10

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 (77) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +77 -0
  3. package/THIRD_PARTY_NOTICES.md +9 -0
  4. package/dist/generated/schema-models.d.ts +1968 -0
  5. package/dist/generated/schema-models.d.ts.map +1 -0
  6. package/dist/generated/schema-models.js +76 -0
  7. package/dist/generated/schema-models.js.map +1 -0
  8. package/dist/guards.d.ts +7 -0
  9. package/dist/guards.d.ts.map +1 -0
  10. package/dist/guards.js +374 -0
  11. package/dist/guards.js.map +1 -0
  12. package/dist/host-failure.d.ts +16 -0
  13. package/dist/host-failure.d.ts.map +1 -0
  14. package/dist/host-failure.js +27 -0
  15. package/dist/host-failure.js.map +1 -0
  16. package/dist/index.d.ts +7 -0
  17. package/dist/index.d.ts.map +1 -0
  18. package/dist/index.js +6 -0
  19. package/dist/index.js.map +1 -0
  20. package/dist/schemas.d.ts +50 -0
  21. package/dist/schemas.d.ts.map +1 -0
  22. package/dist/schemas.js +144 -0
  23. package/dist/schemas.js.map +1 -0
  24. package/dist/types.d.ts +1256 -0
  25. package/dist/types.d.ts.map +1 -0
  26. package/dist/types.js +8 -0
  27. package/dist/types.js.map +1 -0
  28. package/package.json +42 -0
  29. package/schemas/authoring-message-catalog.schema.json +45 -0
  30. package/schemas/authoring-web-vector.schema.json +236 -0
  31. package/schemas/binding-projection-vector.schema.json +127 -0
  32. package/schemas/block-definition.schema.json +227 -0
  33. package/schemas/blueprint.schema.json +273 -0
  34. package/schemas/canonical-vector.schema.json +65 -0
  35. package/schemas/command-vector.schema.json +68 -0
  36. package/schemas/command.schema.json +410 -0
  37. package/schemas/common.schema.json +222 -0
  38. package/schemas/content-model.schema.json +216 -0
  39. package/schemas/corpus-manifest.schema.json +48 -0
  40. package/schemas/design-vocabulary.schema.json +91 -0
  41. package/schemas/entry.schema.json +32 -0
  42. package/schemas/field-adapter.schema.json +51 -0
  43. package/schemas/host-capabilities.schema.json +65 -0
  44. package/schemas/host-error.schema.json +42 -0
  45. package/schemas/host-operations.schema.json +162 -0
  46. package/schemas/host-request.schema.json +71 -0
  47. package/schemas/host-result.schema.json +19 -0
  48. package/schemas/host-sequence-vector.schema.json +342 -0
  49. package/schemas/host-vector.schema.json +199 -0
  50. package/schemas/inspector.schema.json +44 -0
  51. package/schemas/manifest.json +246 -0
  52. package/schemas/media-asset.schema.json +83 -0
  53. package/schemas/media-reference.schema.json +112 -0
  54. package/schemas/media-upload-grant.schema.json +48 -0
  55. package/schemas/media-upload-session.schema.json +109 -0
  56. package/schemas/media-vector.schema.json +123 -0
  57. package/schemas/migration.schema.json +41 -0
  58. package/schemas/pattern.schema.json +50 -0
  59. package/schemas/plugin-manifest.schema.json +126 -0
  60. package/schemas/preview-message.schema.json +583 -0
  61. package/schemas/preview-vector.schema.json +52 -0
  62. package/schemas/provenance.schema.json +57 -0
  63. package/schemas/renderer-web-vector.schema.json +160 -0
  64. package/schemas/rich-text-projection.schema.json +79 -0
  65. package/schemas/rich-text.schema.json +323 -0
  66. package/schemas/schema-profile-vector.schema.json +133 -0
  67. package/schemas/schema-profile.schema.json +201 -0
  68. package/schemas/studio-chart.schema.json +35 -0
  69. package/schemas/studio-config.schema.json +244 -0
  70. package/schemas/studio-drawing.schema.json +44 -0
  71. package/schemas/studio-money.schema.json +16 -0
  72. package/schemas/studio-presentation.schema.json +31 -0
  73. package/schemas/studio-release.schema.json +81 -0
  74. package/schemas/studio-table.schema.json +27 -0
  75. package/schemas/theme.schema.json +164 -0
  76. package/schemas/unresolved-contribution.schema.json +50 -0
  77. package/studio-release.json +18 -0
@@ -0,0 +1,27 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://schemas.kumwe.org/studio/v1/studio-table.schema.json",
4
+ "title": "Studio table document",
5
+ "type": "object",
6
+ "additionalProperties": false,
7
+ "required": ["columns", "rows"],
8
+ "properties": {
9
+ "caption": { "type": "string", "maxLength": 500 },
10
+ "columns": {
11
+ "type": "array",
12
+ "minItems": 1,
13
+ "maxItems": 50,
14
+ "items": { "type": "string", "maxLength": 500 }
15
+ },
16
+ "rows": {
17
+ "type": "array",
18
+ "maxItems": 1000,
19
+ "items": {
20
+ "type": "array",
21
+ "minItems": 1,
22
+ "maxItems": 50,
23
+ "items": { "type": "string", "maxLength": 5000 }
24
+ }
25
+ }
26
+ }
27
+ }
@@ -0,0 +1,164 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://schemas.kumwe.org/studio/v1/theme.schema.json",
4
+ "title": "Studio theme design profile",
5
+ "type": "object",
6
+ "additionalProperties": false,
7
+ "required": [
8
+ "contractVersion",
9
+ "kind",
10
+ "id",
11
+ "version",
12
+ "revision",
13
+ "owner",
14
+ "label",
15
+ "viewports",
16
+ "designControls",
17
+ "recipes",
18
+ "renderers",
19
+ "blockSupport"
20
+ ],
21
+ "properties": {
22
+ "contractVersion": { "$ref": "common.schema.json#/$defs/contractVersion" },
23
+ "kind": { "const": "theme" },
24
+ "id": { "$ref": "common.schema.json#/$defs/stableId" },
25
+ "version": { "$ref": "common.schema.json#/$defs/semanticVersion" },
26
+ "revision": { "$ref": "common.schema.json#/$defs/revision" },
27
+ "owner": { "$ref": "common.schema.json#/$defs/ownerReference" },
28
+ "label": { "$ref": "common.schema.json#/$defs/messageReference" },
29
+ "description": { "$ref": "common.schema.json#/$defs/messageReference" },
30
+ "viewports": {
31
+ "type": "array",
32
+ "minItems": 1,
33
+ "maxItems": 20,
34
+ "items": {
35
+ "type": "object",
36
+ "additionalProperties": false,
37
+ "required": ["id", "label", "order", "base", "previewWidth"],
38
+ "properties": {
39
+ "id": { "$ref": "common.schema.json#/$defs/localName" },
40
+ "label": { "$ref": "common.schema.json#/$defs/messageReference" },
41
+ "order": { "type": "integer", "minimum": 0, "maximum": 1000 },
42
+ "base": { "type": "boolean" },
43
+ "previewWidth": { "type": "integer", "minimum": 240, "maximum": 10000 }
44
+ }
45
+ }
46
+ },
47
+ "designControls": {
48
+ "type": "array",
49
+ "maxItems": 1000,
50
+ "items": {
51
+ "type": "object",
52
+ "additionalProperties": false,
53
+ "required": ["id", "kind", "label", "choices"],
54
+ "properties": {
55
+ "id": { "$ref": "common.schema.json#/$defs/localName" },
56
+ "kind": {
57
+ "enum": [
58
+ "color-role",
59
+ "typography-role",
60
+ "spacing-role",
61
+ "size-role",
62
+ "radius-role",
63
+ "shadow-role",
64
+ "motion-role",
65
+ "layer-role",
66
+ "enum",
67
+ "boolean",
68
+ "integer"
69
+ ]
70
+ },
71
+ "label": { "$ref": "common.schema.json#/$defs/messageReference" },
72
+ "description": { "$ref": "common.schema.json#/$defs/messageReference" },
73
+ "choices": {
74
+ "type": "array",
75
+ "minItems": 1,
76
+ "maxItems": 500,
77
+ "items": {
78
+ "type": "object",
79
+ "additionalProperties": false,
80
+ "required": ["id", "label"],
81
+ "properties": {
82
+ "id": { "$ref": "common.schema.json#/$defs/localName" },
83
+ "label": { "$ref": "common.schema.json#/$defs/messageReference" },
84
+ "deprecated": { "type": "boolean" }
85
+ }
86
+ }
87
+ }
88
+ }
89
+ }
90
+ },
91
+ "recipes": {
92
+ "type": "array",
93
+ "maxItems": 1000,
94
+ "items": {
95
+ "type": "object",
96
+ "additionalProperties": false,
97
+ "required": ["id", "blockType", "label", "designValues"],
98
+ "properties": {
99
+ "id": { "$ref": "common.schema.json#/$defs/localName" },
100
+ "blockType": { "$ref": "common.schema.json#/$defs/qualifiedName" },
101
+ "label": { "$ref": "common.schema.json#/$defs/messageReference" },
102
+ "designValues": {
103
+ "type": "object",
104
+ "maxProperties": 100,
105
+ "propertyNames": { "$ref": "common.schema.json#/$defs/localName" },
106
+ "additionalProperties": { "$ref": "common.schema.json#/$defs/jsonValue" }
107
+ }
108
+ }
109
+ }
110
+ },
111
+ "renderers": {
112
+ "type": "array",
113
+ "minItems": 1,
114
+ "maxItems": 100,
115
+ "items": {
116
+ "type": "object",
117
+ "additionalProperties": false,
118
+ "required": ["id", "version", "surfaces", "exactPreview"],
119
+ "properties": {
120
+ "id": { "$ref": "common.schema.json#/$defs/qualifiedName" },
121
+ "version": { "$ref": "common.schema.json#/$defs/semanticVersion" },
122
+ "surfaces": {
123
+ "type": "array",
124
+ "minItems": 1,
125
+ "maxItems": 20,
126
+ "uniqueItems": true,
127
+ "items": { "enum": ["web", "email", "document", "native", "preview"] }
128
+ },
129
+ "exactPreview": { "type": "boolean" }
130
+ }
131
+ }
132
+ },
133
+ "blockSupport": {
134
+ "type": "array",
135
+ "maxItems": 5000,
136
+ "items": {
137
+ "type": "object",
138
+ "additionalProperties": false,
139
+ "required": ["type", "versions", "renderer"],
140
+ "properties": {
141
+ "type": { "$ref": "common.schema.json#/$defs/qualifiedName" },
142
+ "versions": { "$ref": "common.schema.json#/$defs/versionRange" },
143
+ "renderer": { "$ref": "common.schema.json#/$defs/qualifiedName" }
144
+ }
145
+ }
146
+ },
147
+ "aliases": {
148
+ "type": "array",
149
+ "maxItems": 1000,
150
+ "items": {
151
+ "type": "object",
152
+ "additionalProperties": false,
153
+ "required": ["kind", "from", "to", "equivalentMeaning"],
154
+ "properties": {
155
+ "kind": { "enum": ["viewport", "design-control", "choice", "recipe"] },
156
+ "from": { "$ref": "common.schema.json#/$defs/localName" },
157
+ "to": { "$ref": "common.schema.json#/$defs/localName" },
158
+ "equivalentMeaning": { "type": "boolean", "const": true }
159
+ }
160
+ }
161
+ },
162
+ "extensions": { "$ref": "common.schema.json#/$defs/extensions" }
163
+ }
164
+ }
@@ -0,0 +1,50 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://schemas.kumwe.org/studio/v1/unresolved-contribution.schema.json",
4
+ "title": "Studio unresolved contribution",
5
+ "type": "object",
6
+ "additionalProperties": false,
7
+ "required": ["contractVersion", "kind", "reference", "reason"],
8
+ "properties": {
9
+ "contractVersion": { "$ref": "common.schema.json#/$defs/contractVersion" },
10
+ "kind": { "const": "unresolved-contribution" },
11
+ "reference": {
12
+ "type": "object",
13
+ "additionalProperties": false,
14
+ "required": ["contribution", "id", "version"],
15
+ "properties": {
16
+ "contribution": {
17
+ "enum": [
18
+ "block",
19
+ "command",
20
+ "design-vocabulary",
21
+ "field-adapter",
22
+ "inspector",
23
+ "locale",
24
+ "migration",
25
+ "panel",
26
+ "pattern",
27
+ "renderer-capability",
28
+ "transform"
29
+ ]
30
+ },
31
+ "id": { "$ref": "common.schema.json#/$defs/qualifiedName" },
32
+ "version": { "$ref": "common.schema.json#/$defs/semanticVersion" }
33
+ }
34
+ },
35
+ "reason": {
36
+ "enum": ["incompatible", "not-installed", "owner-disabled", "owner-revoked"]
37
+ },
38
+ "owner": { "$ref": "common.schema.json#/$defs/ownerReference" },
39
+ "affectedNodes": {
40
+ "type": "array",
41
+ "maxItems": 10000,
42
+ "items": { "$ref": "common.schema.json#/$defs/stableId" }
43
+ },
44
+ "diagnostics": {
45
+ "type": "array",
46
+ "maxItems": 1000,
47
+ "items": { "$ref": "common.schema.json#/$defs/diagnostic" }
48
+ }
49
+ }
50
+ }
@@ -0,0 +1,18 @@
1
+ {
2
+ "contractVersion": "0.1-draft",
3
+ "kind": "studio-release",
4
+ "release": "0.1.0-alpha.10",
5
+ "packages": {
6
+ "@kumwe/studio-core": "0.1.0-alpha.10",
7
+ "@kumwe/studio-media": "0.1.0-alpha.10",
8
+ "@kumwe/studio-preview": "0.1.0-alpha.10",
9
+ "@kumwe/studio-protocol": "0.1.0-alpha.10",
10
+ "@kumwe/studio-renderer-web": "0.1.0-alpha.10",
11
+ "@kumwe/studio-rich-text": "0.1.0-alpha.10",
12
+ "@kumwe/studio": "0.1.0-alpha.10",
13
+ "@kumwe/studio-testkit": "0.1.0-alpha.10"
14
+ },
15
+ "protocolVersion": "0.1.0-draft.2",
16
+ "corpusManifestDigest": "sha256-4/ChS3pCA32CoZ+BjvL2tj2RGOFJNdqXwuqO8gWDxTs=",
17
+ "claimedProfiles": []
18
+ }