@panneau/protocol 5.0.0-alpha.5 → 5.0.0-alpha.7
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/constants.d.ts +6 -2
- package/dist/constants.d.ts.map +1 -1
- package/dist/constants.js +24 -2
- package/dist/constants.js.map +1 -1
- package/dist/index.js +4 -4
- package/dist/mock/index.d.ts +6 -1
- package/dist/mock/index.d.ts.map +1 -1
- package/dist/mock/index.js +45 -0
- package/dist/mock/index.js.map +1 -1
- package/dist/openapi.d.ts.map +1 -1
- package/dist/openapi.js +11 -0
- package/dist/openapi.js.map +1 -1
- package/dist/rules.d.ts.map +1 -1
- package/dist/rules.js +9 -1
- package/dist/rules.js.map +1 -1
- package/dist/runtime/index.js +2 -2
- package/dist/schemas/action.d.ts +1 -0
- package/dist/schemas/action.d.ts.map +1 -1
- package/dist/schemas/api.d.ts +54 -0
- package/dist/schemas/api.d.ts.map +1 -1
- package/dist/schemas/api.js +27 -1
- package/dist/schemas/api.js.map +1 -1
- package/dist/schemas/definition.d.ts +2 -0
- package/dist/schemas/definition.d.ts.map +1 -1
- package/dist/schemas/field.d.ts +56 -0
- package/dist/schemas/field.d.ts.map +1 -1
- package/dist/schemas/field.js +27 -3
- package/dist/schemas/field.js.map +1 -1
- package/dist/schemas/index.d.ts +103 -0
- package/dist/schemas/index.d.ts.map +1 -1
- package/dist/schemas/index.js +9 -4
- package/dist/schemas/index.js.map +1 -1
- package/dist/schemas/resource.d.ts +2 -0
- package/dist/schemas/resource.d.ts.map +1 -1
- package/dist/validate.d.ts +2 -1
- package/dist/validate.d.ts.map +1 -1
- package/dist/validate.js +22 -2
- package/dist/validate.js.map +1 -1
- package/package.json +1 -1
- package/schema/boot.schema.json +2 -1
- package/schema/definition.schema.json +2 -1
- package/schema/openapi.json +248 -1
package/schema/openapi.json
CHANGED
|
@@ -1574,6 +1574,64 @@
|
|
|
1574
1574
|
}
|
|
1575
1575
|
}
|
|
1576
1576
|
},
|
|
1577
|
+
"/embeds": {
|
|
1578
|
+
"get": {
|
|
1579
|
+
"operationId": "resolveEmbed",
|
|
1580
|
+
"parameters": [
|
|
1581
|
+
{
|
|
1582
|
+
"name": "url",
|
|
1583
|
+
"in": "query",
|
|
1584
|
+
"required": true,
|
|
1585
|
+
"description": "The URL to embed.",
|
|
1586
|
+
"schema": {
|
|
1587
|
+
"type": "string"
|
|
1588
|
+
}
|
|
1589
|
+
}
|
|
1590
|
+
],
|
|
1591
|
+
"responses": {
|
|
1592
|
+
"200": {
|
|
1593
|
+
"description": "The value of an `embed` field for the URL, from its provider's oEmbed.",
|
|
1594
|
+
"content": {
|
|
1595
|
+
"application/json": {
|
|
1596
|
+
"schema": {
|
|
1597
|
+
"$ref": "#/components/schemas/EmbedResponse"
|
|
1598
|
+
}
|
|
1599
|
+
}
|
|
1600
|
+
}
|
|
1601
|
+
},
|
|
1602
|
+
"401": {
|
|
1603
|
+
"description": "Not authenticated.",
|
|
1604
|
+
"content": {
|
|
1605
|
+
"application/problem+json": {
|
|
1606
|
+
"schema": {
|
|
1607
|
+
"$ref": "#/components/schemas/Problem"
|
|
1608
|
+
}
|
|
1609
|
+
}
|
|
1610
|
+
}
|
|
1611
|
+
},
|
|
1612
|
+
"422": {
|
|
1613
|
+
"description": "Invalid values: messages are in `errors`, keyed by dot path.",
|
|
1614
|
+
"content": {
|
|
1615
|
+
"application/problem+json": {
|
|
1616
|
+
"schema": {
|
|
1617
|
+
"$ref": "#/components/schemas/Problem"
|
|
1618
|
+
}
|
|
1619
|
+
}
|
|
1620
|
+
}
|
|
1621
|
+
},
|
|
1622
|
+
"429": {
|
|
1623
|
+
"description": "Too many requests: `Retry-After` gives the seconds to wait.",
|
|
1624
|
+
"content": {
|
|
1625
|
+
"application/problem+json": {
|
|
1626
|
+
"schema": {
|
|
1627
|
+
"$ref": "#/components/schemas/Problem"
|
|
1628
|
+
}
|
|
1629
|
+
}
|
|
1630
|
+
}
|
|
1631
|
+
}
|
|
1632
|
+
}
|
|
1633
|
+
}
|
|
1634
|
+
},
|
|
1577
1635
|
"/dashboard/widgets/{widget}": {
|
|
1578
1636
|
"parameters": [
|
|
1579
1637
|
{
|
|
@@ -1813,7 +1871,8 @@
|
|
|
1813
1871
|
"type": "string",
|
|
1814
1872
|
"enum": [
|
|
1815
1873
|
"email",
|
|
1816
|
-
"url"
|
|
1874
|
+
"url",
|
|
1875
|
+
"json"
|
|
1817
1876
|
]
|
|
1818
1877
|
},
|
|
1819
1878
|
"message": {
|
|
@@ -2175,6 +2234,89 @@
|
|
|
2175
2234
|
"additionalProperties": {},
|
|
2176
2235
|
"description": "A field of a form."
|
|
2177
2236
|
},
|
|
2237
|
+
"RichTextStyle": {
|
|
2238
|
+
"type": "object",
|
|
2239
|
+
"properties": {
|
|
2240
|
+
"label": {
|
|
2241
|
+
"type": "string",
|
|
2242
|
+
"description": "The name of the style in the toolbar."
|
|
2243
|
+
},
|
|
2244
|
+
"class": {
|
|
2245
|
+
"type": "string",
|
|
2246
|
+
"minLength": 1,
|
|
2247
|
+
"description": "The class the style puts on the element: `big`. Several classes are separated by spaces."
|
|
2248
|
+
},
|
|
2249
|
+
"element": {
|
|
2250
|
+
"description": "The element the style applies to: `p` (the default), `h1` to `h6`, `blockquote`, `ul`, `ol` or `li`.",
|
|
2251
|
+
"type": "string",
|
|
2252
|
+
"enum": [
|
|
2253
|
+
"p",
|
|
2254
|
+
"h1",
|
|
2255
|
+
"h2",
|
|
2256
|
+
"h3",
|
|
2257
|
+
"h4",
|
|
2258
|
+
"h5",
|
|
2259
|
+
"h6",
|
|
2260
|
+
"blockquote",
|
|
2261
|
+
"ul",
|
|
2262
|
+
"ol",
|
|
2263
|
+
"li"
|
|
2264
|
+
]
|
|
2265
|
+
}
|
|
2266
|
+
},
|
|
2267
|
+
"required": [
|
|
2268
|
+
"label",
|
|
2269
|
+
"class"
|
|
2270
|
+
],
|
|
2271
|
+
"additionalProperties": {},
|
|
2272
|
+
"description": "A block style of a `richtext` field: a named class on a paragraph, a heading, a quote or a list (`<p class=\"big\">`)."
|
|
2273
|
+
},
|
|
2274
|
+
"RichTextSettings": {
|
|
2275
|
+
"type": "object",
|
|
2276
|
+
"properties": {
|
|
2277
|
+
"toolbar": {
|
|
2278
|
+
"description": "The toolbar, in order: `heading`, `style`, `bold`, `italic`, `underline`, `strike`, `superscript`, `subscript`, `code`, `link`, `bulletList`, `orderedList`, `blockquote`, `horizontalRule`, `clear`, `undo`, `redo`, `|` between groups, and the buttons of plugins. Clients skip the names they don't know.",
|
|
2279
|
+
"type": "array",
|
|
2280
|
+
"items": {
|
|
2281
|
+
"type": "string",
|
|
2282
|
+
"minLength": 1
|
|
2283
|
+
}
|
|
2284
|
+
},
|
|
2285
|
+
"headings": {
|
|
2286
|
+
"description": "The heading levels the toolbar offers. Defaults to 2, 3 and 4.",
|
|
2287
|
+
"type": "array",
|
|
2288
|
+
"items": {
|
|
2289
|
+
"type": "integer",
|
|
2290
|
+
"minimum": 1,
|
|
2291
|
+
"maximum": 6
|
|
2292
|
+
}
|
|
2293
|
+
},
|
|
2294
|
+
"styles": {
|
|
2295
|
+
"description": "The block styles.",
|
|
2296
|
+
"type": "array",
|
|
2297
|
+
"items": {
|
|
2298
|
+
"$ref": "#/components/schemas/RichTextStyle"
|
|
2299
|
+
}
|
|
2300
|
+
},
|
|
2301
|
+
"links": {
|
|
2302
|
+
"type": "object",
|
|
2303
|
+
"properties": {
|
|
2304
|
+
"newTab": {
|
|
2305
|
+
"description": "Which links open in a new tab (`target=\"_blank\" rel=\"noopener noreferrer\"`): as the user chooses (the default), every link to another site, or none.",
|
|
2306
|
+
"type": "string",
|
|
2307
|
+
"enum": [
|
|
2308
|
+
"choose",
|
|
2309
|
+
"external",
|
|
2310
|
+
"never"
|
|
2311
|
+
]
|
|
2312
|
+
}
|
|
2313
|
+
},
|
|
2314
|
+
"additionalProperties": {}
|
|
2315
|
+
}
|
|
2316
|
+
},
|
|
2317
|
+
"additionalProperties": {},
|
|
2318
|
+
"description": "The `settings` of a `richtext` field. Its value is HTML. The toolbar only limits what users add: content that the field stores keeps its elements and attributes."
|
|
2319
|
+
},
|
|
2178
2320
|
"LayoutNode": {
|
|
2179
2321
|
"type": "object",
|
|
2180
2322
|
"properties": {
|
|
@@ -4269,6 +4411,31 @@
|
|
|
4269
4411
|
"failed"
|
|
4270
4412
|
]
|
|
4271
4413
|
},
|
|
4414
|
+
"error": {
|
|
4415
|
+
"description": "Why the processing failed, when `status` is `failed`, so that editors see it without the backend's monitoring.",
|
|
4416
|
+
"anyOf": [
|
|
4417
|
+
{
|
|
4418
|
+
"type": "object",
|
|
4419
|
+
"properties": {
|
|
4420
|
+
"code": {
|
|
4421
|
+
"type": "string",
|
|
4422
|
+
"description": "The code of the step that failed, such as a transcoder task code (`timeout`, `input_unreadable`)."
|
|
4423
|
+
},
|
|
4424
|
+
"message": {
|
|
4425
|
+
"description": "Why it failed, for people.",
|
|
4426
|
+
"type": "string"
|
|
4427
|
+
}
|
|
4428
|
+
},
|
|
4429
|
+
"required": [
|
|
4430
|
+
"code"
|
|
4431
|
+
],
|
|
4432
|
+
"additionalProperties": {}
|
|
4433
|
+
},
|
|
4434
|
+
{
|
|
4435
|
+
"type": "null"
|
|
4436
|
+
}
|
|
4437
|
+
]
|
|
4438
|
+
},
|
|
4272
4439
|
"metadata": {
|
|
4273
4440
|
"type": "object",
|
|
4274
4441
|
"propertyNames": {
|
|
@@ -4423,6 +4590,86 @@
|
|
|
4423
4590
|
"url"
|
|
4424
4591
|
],
|
|
4425
4592
|
"additionalProperties": {}
|
|
4593
|
+
},
|
|
4594
|
+
"EmbedValue": {
|
|
4595
|
+
"type": "object",
|
|
4596
|
+
"properties": {
|
|
4597
|
+
"url": {
|
|
4598
|
+
"type": "string",
|
|
4599
|
+
"description": "The URL of the video, sound or post."
|
|
4600
|
+
},
|
|
4601
|
+
"type": {
|
|
4602
|
+
"type": "string",
|
|
4603
|
+
"enum": [
|
|
4604
|
+
"video",
|
|
4605
|
+
"audio",
|
|
4606
|
+
"photo",
|
|
4607
|
+
"rich",
|
|
4608
|
+
"link"
|
|
4609
|
+
]
|
|
4610
|
+
},
|
|
4611
|
+
"title": {
|
|
4612
|
+
"type": "string"
|
|
4613
|
+
},
|
|
4614
|
+
"provider": {
|
|
4615
|
+
"description": "The name of the provider.",
|
|
4616
|
+
"type": "string"
|
|
4617
|
+
},
|
|
4618
|
+
"thumbnailUrl": {
|
|
4619
|
+
"type": "string"
|
|
4620
|
+
},
|
|
4621
|
+
"html": {
|
|
4622
|
+
"description": "The HTML that embeds it, from the oEmbed of its provider.",
|
|
4623
|
+
"type": "string"
|
|
4624
|
+
},
|
|
4625
|
+
"width": {
|
|
4626
|
+
"type": "number"
|
|
4627
|
+
},
|
|
4628
|
+
"height": {
|
|
4629
|
+
"type": "number"
|
|
4630
|
+
}
|
|
4631
|
+
},
|
|
4632
|
+
"required": [
|
|
4633
|
+
"url"
|
|
4634
|
+
],
|
|
4635
|
+
"additionalProperties": {},
|
|
4636
|
+
"description": "The value of an `embed` field: its URL, and what the backend got from its oEmbed."
|
|
4637
|
+
},
|
|
4638
|
+
"EmbedResponse": {
|
|
4639
|
+
"type": "object",
|
|
4640
|
+
"properties": {
|
|
4641
|
+
"data": {
|
|
4642
|
+
"$ref": "#/components/schemas/EmbedValue"
|
|
4643
|
+
}
|
|
4644
|
+
},
|
|
4645
|
+
"required": [
|
|
4646
|
+
"data"
|
|
4647
|
+
],
|
|
4648
|
+
"additionalProperties": {}
|
|
4649
|
+
},
|
|
4650
|
+
"LocationValue": {
|
|
4651
|
+
"type": "object",
|
|
4652
|
+
"properties": {
|
|
4653
|
+
"lat": {
|
|
4654
|
+
"type": "number",
|
|
4655
|
+
"minimum": -90,
|
|
4656
|
+
"maximum": 90
|
|
4657
|
+
},
|
|
4658
|
+
"lng": {
|
|
4659
|
+
"type": "number",
|
|
4660
|
+
"minimum": -180,
|
|
4661
|
+
"maximum": 180
|
|
4662
|
+
},
|
|
4663
|
+
"address": {
|
|
4664
|
+
"type": "string"
|
|
4665
|
+
}
|
|
4666
|
+
},
|
|
4667
|
+
"required": [
|
|
4668
|
+
"lat",
|
|
4669
|
+
"lng"
|
|
4670
|
+
],
|
|
4671
|
+
"additionalProperties": {},
|
|
4672
|
+
"description": "The value of a `location` field: a point, and its address."
|
|
4426
4673
|
}
|
|
4427
4674
|
}
|
|
4428
4675
|
}
|