@panneau/protocol 5.0.0-alpha.4 → 5.0.0-alpha.5
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/conformance/index.d.ts.map +1 -1
- package/dist/conformance/index.js +121 -1
- package/dist/conformance/index.js.map +1 -1
- package/dist/constants.d.ts +2 -2
- package/dist/constants.d.ts.map +1 -1
- package/dist/constants.js +3 -1
- package/dist/constants.js.map +1 -1
- package/dist/index.js +5 -2
- package/dist/libraries.d.ts +16 -0
- package/dist/libraries.d.ts.map +1 -0
- package/dist/libraries.js +15 -0
- package/dist/libraries.js.map +1 -0
- package/dist/lint.d.ts +2 -2
- package/dist/lint.d.ts.map +1 -1
- package/dist/lint.js +15 -9
- package/dist/lint.js.map +1 -1
- package/dist/mock/example.d.ts.map +1 -1
- package/dist/mock/example.js +8 -0
- package/dist/mock/example.js.map +1 -1
- package/dist/mock/index.d.ts +9 -1
- package/dist/mock/index.d.ts.map +1 -1
- package/dist/mock/index.js +119 -13
- package/dist/mock/index.js.map +1 -1
- package/dist/openapi.d.ts.map +1 -1
- package/dist/openapi.js +37 -7
- package/dist/openapi.js.map +1 -1
- package/dist/rules.d.ts.map +1 -1
- package/dist/rules.js +17 -0
- package/dist/rules.js.map +1 -1
- package/dist/runtime/index.d.ts +3 -0
- package/dist/runtime/index.d.ts.map +1 -1
- package/dist/runtime/index.js +4 -1
- package/dist/schemas/action.d.ts +17 -1
- package/dist/schemas/action.d.ts.map +1 -1
- package/dist/schemas/api.d.ts +87 -0
- package/dist/schemas/api.d.ts.map +1 -1
- package/dist/schemas/api.js +28 -9
- package/dist/schemas/api.js.map +1 -1
- package/dist/schemas/definition.d.ts +38 -2
- package/dist/schemas/definition.d.ts.map +1 -1
- package/dist/schemas/definition.js +2 -1
- package/dist/schemas/definition.js.map +1 -1
- package/dist/schemas/field.d.ts +24 -1
- package/dist/schemas/field.d.ts.map +1 -1
- package/dist/schemas/field.js +22 -4
- package/dist/schemas/field.js.map +1 -1
- package/dist/schemas/index.d.ts +201 -6
- package/dist/schemas/index.d.ts.map +1 -1
- package/dist/schemas/index.js +4 -2
- package/dist/schemas/index.js.map +1 -1
- package/dist/schemas/resource.d.ts +36 -2
- package/dist/schemas/resource.d.ts.map +1 -1
- package/dist/schemas/resource.js +3 -1
- package/dist/schemas/resource.js.map +1 -1
- package/dist/search.d.ts +51 -0
- package/dist/search.d.ts.map +1 -0
- package/dist/search.js +53 -0
- package/dist/search.js.map +1 -0
- package/dist/transforms.d.ts +17 -0
- package/dist/transforms.d.ts.map +1 -0
- package/dist/transforms.js +34 -0
- package/dist/transforms.js.map +1 -0
- package/package.json +1 -1
- package/schema/boot.schema.json +80 -1
- package/schema/definition.schema.json +80 -1
- package/schema/openapi.json +342 -13
package/schema/openapi.json
CHANGED
|
@@ -686,6 +686,94 @@
|
|
|
686
686
|
}
|
|
687
687
|
}
|
|
688
688
|
},
|
|
689
|
+
"/resources/{resource}/fields/{field}/check": {
|
|
690
|
+
"parameters": [
|
|
691
|
+
{
|
|
692
|
+
"name": "resource",
|
|
693
|
+
"in": "path",
|
|
694
|
+
"required": true,
|
|
695
|
+
"description": "Resource id.",
|
|
696
|
+
"schema": {
|
|
697
|
+
"type": "string"
|
|
698
|
+
}
|
|
699
|
+
},
|
|
700
|
+
{
|
|
701
|
+
"name": "field",
|
|
702
|
+
"in": "path",
|
|
703
|
+
"required": true,
|
|
704
|
+
"description": "Name of a field with `check`.",
|
|
705
|
+
"schema": {
|
|
706
|
+
"type": "string"
|
|
707
|
+
}
|
|
708
|
+
}
|
|
709
|
+
],
|
|
710
|
+
"post": {
|
|
711
|
+
"operationId": "checkField",
|
|
712
|
+
"summary": "Checks a value as it is typed: whether a slug is available, and its URL. With the permission to create, or to update the item `id`.",
|
|
713
|
+
"requestBody": {
|
|
714
|
+
"required": true,
|
|
715
|
+
"content": {
|
|
716
|
+
"application/json": {
|
|
717
|
+
"schema": {
|
|
718
|
+
"$ref": "#/components/schemas/FieldCheckRequest"
|
|
719
|
+
}
|
|
720
|
+
}
|
|
721
|
+
}
|
|
722
|
+
},
|
|
723
|
+
"responses": {
|
|
724
|
+
"200": {
|
|
725
|
+
"description": "What the backend says about the value.",
|
|
726
|
+
"content": {
|
|
727
|
+
"application/json": {
|
|
728
|
+
"schema": {
|
|
729
|
+
"$ref": "#/components/schemas/FieldCheckResponse"
|
|
730
|
+
}
|
|
731
|
+
}
|
|
732
|
+
}
|
|
733
|
+
},
|
|
734
|
+
"401": {
|
|
735
|
+
"description": "Not authenticated.",
|
|
736
|
+
"content": {
|
|
737
|
+
"application/problem+json": {
|
|
738
|
+
"schema": {
|
|
739
|
+
"$ref": "#/components/schemas/Problem"
|
|
740
|
+
}
|
|
741
|
+
}
|
|
742
|
+
}
|
|
743
|
+
},
|
|
744
|
+
"403": {
|
|
745
|
+
"description": "Not allowed.",
|
|
746
|
+
"content": {
|
|
747
|
+
"application/problem+json": {
|
|
748
|
+
"schema": {
|
|
749
|
+
"$ref": "#/components/schemas/Problem"
|
|
750
|
+
}
|
|
751
|
+
}
|
|
752
|
+
}
|
|
753
|
+
},
|
|
754
|
+
"404": {
|
|
755
|
+
"description": "Not found.",
|
|
756
|
+
"content": {
|
|
757
|
+
"application/problem+json": {
|
|
758
|
+
"schema": {
|
|
759
|
+
"$ref": "#/components/schemas/Problem"
|
|
760
|
+
}
|
|
761
|
+
}
|
|
762
|
+
}
|
|
763
|
+
},
|
|
764
|
+
"422": {
|
|
765
|
+
"description": "Invalid values: messages are in `errors`, keyed by dot path.",
|
|
766
|
+
"content": {
|
|
767
|
+
"application/problem+json": {
|
|
768
|
+
"schema": {
|
|
769
|
+
"$ref": "#/components/schemas/Problem"
|
|
770
|
+
}
|
|
771
|
+
}
|
|
772
|
+
}
|
|
773
|
+
}
|
|
774
|
+
}
|
|
775
|
+
}
|
|
776
|
+
},
|
|
689
777
|
"/actions/runs": {
|
|
690
778
|
"get": {
|
|
691
779
|
"operationId": "listActionRuns",
|
|
@@ -1413,7 +1501,30 @@
|
|
|
1413
1501
|
"name": "q",
|
|
1414
1502
|
"in": "query",
|
|
1415
1503
|
"required": true,
|
|
1416
|
-
"description": "Search terms.",
|
|
1504
|
+
"description": "Search terms, trimmed.",
|
|
1505
|
+
"schema": {
|
|
1506
|
+
"type": "string",
|
|
1507
|
+
"minLength": 2,
|
|
1508
|
+
"maxLength": 255
|
|
1509
|
+
}
|
|
1510
|
+
},
|
|
1511
|
+
{
|
|
1512
|
+
"name": "limit",
|
|
1513
|
+
"in": "query",
|
|
1514
|
+
"required": false,
|
|
1515
|
+
"description": "Items per resource.",
|
|
1516
|
+
"schema": {
|
|
1517
|
+
"type": "integer",
|
|
1518
|
+
"minimum": 1,
|
|
1519
|
+
"maximum": 20,
|
|
1520
|
+
"default": 5
|
|
1521
|
+
}
|
|
1522
|
+
},
|
|
1523
|
+
{
|
|
1524
|
+
"name": "resources",
|
|
1525
|
+
"in": "query",
|
|
1526
|
+
"required": false,
|
|
1527
|
+
"description": "Comma-separated ids of the searchable resources to search. Defaults to every one.",
|
|
1417
1528
|
"schema": {
|
|
1418
1529
|
"type": "string"
|
|
1419
1530
|
}
|
|
@@ -1421,7 +1532,7 @@
|
|
|
1421
1532
|
],
|
|
1422
1533
|
"responses": {
|
|
1423
1534
|
"200": {
|
|
1424
|
-
"description": "Results grouped by resource.",
|
|
1535
|
+
"description": "Results grouped by resource, in the order of the definition: at most `limit` items per resource, and 20 in all.",
|
|
1425
1536
|
"content": {
|
|
1426
1537
|
"application/json": {
|
|
1427
1538
|
"schema": {
|
|
@@ -1439,6 +1550,26 @@
|
|
|
1439
1550
|
}
|
|
1440
1551
|
}
|
|
1441
1552
|
}
|
|
1553
|
+
},
|
|
1554
|
+
"422": {
|
|
1555
|
+
"description": "Invalid values: messages are in `errors`, keyed by dot path.",
|
|
1556
|
+
"content": {
|
|
1557
|
+
"application/problem+json": {
|
|
1558
|
+
"schema": {
|
|
1559
|
+
"$ref": "#/components/schemas/Problem"
|
|
1560
|
+
}
|
|
1561
|
+
}
|
|
1562
|
+
}
|
|
1563
|
+
},
|
|
1564
|
+
"429": {
|
|
1565
|
+
"description": "Too many requests: `Retry-After` gives the seconds to wait.",
|
|
1566
|
+
"content": {
|
|
1567
|
+
"application/problem+json": {
|
|
1568
|
+
"schema": {
|
|
1569
|
+
"$ref": "#/components/schemas/Problem"
|
|
1570
|
+
}
|
|
1571
|
+
}
|
|
1572
|
+
}
|
|
1442
1573
|
}
|
|
1443
1574
|
}
|
|
1444
1575
|
}
|
|
@@ -1814,6 +1945,43 @@
|
|
|
1814
1945
|
],
|
|
1815
1946
|
"additionalProperties": {}
|
|
1816
1947
|
},
|
|
1948
|
+
{
|
|
1949
|
+
"type": "object",
|
|
1950
|
+
"properties": {
|
|
1951
|
+
"rule": {
|
|
1952
|
+
"type": "string",
|
|
1953
|
+
"const": "crop"
|
|
1954
|
+
},
|
|
1955
|
+
"value": {
|
|
1956
|
+
"type": "object",
|
|
1957
|
+
"properties": {
|
|
1958
|
+
"ratios": {
|
|
1959
|
+
"description": "A crop must have one of them: its height is within one pixel of its width divided by the ratio, after its rotation.",
|
|
1960
|
+
"type": "array",
|
|
1961
|
+
"items": {
|
|
1962
|
+
"type": "string",
|
|
1963
|
+
"pattern": "^[1-9][0-9]*:[1-9][0-9]*$",
|
|
1964
|
+
"description": "An aspect ratio, as `width:height`: `16:9`."
|
|
1965
|
+
}
|
|
1966
|
+
},
|
|
1967
|
+
"required": {
|
|
1968
|
+
"description": "Each image needs a crop for this use.",
|
|
1969
|
+
"type": "boolean"
|
|
1970
|
+
}
|
|
1971
|
+
},
|
|
1972
|
+
"additionalProperties": {}
|
|
1973
|
+
},
|
|
1974
|
+
"message": {
|
|
1975
|
+
"description": "Message shown when the rule fails, instead of the default one.",
|
|
1976
|
+
"type": "string"
|
|
1977
|
+
}
|
|
1978
|
+
},
|
|
1979
|
+
"required": [
|
|
1980
|
+
"rule",
|
|
1981
|
+
"value"
|
|
1982
|
+
],
|
|
1983
|
+
"additionalProperties": {}
|
|
1984
|
+
},
|
|
1817
1985
|
{
|
|
1818
1986
|
"type": "object",
|
|
1819
1987
|
"properties": {
|
|
@@ -1832,7 +2000,7 @@
|
|
|
1832
2000
|
"description": "A rule added in a later version of the protocol. Clients that don't know it ignore it; the server still enforces it."
|
|
1833
2001
|
}
|
|
1834
2002
|
],
|
|
1835
|
-
"description": "A portable validation rule. `min` and `max` apply to numbers, and to the length of text and arrays. `accept` lists MIME types (`image/*`). `maxSize` is in bytes."
|
|
2003
|
+
"description": "A portable validation rule. `min` and `max` apply to numbers, and to the length of text and arrays. `accept` lists MIME types (`image/*`). `maxSize` is in bytes. `crop` checks the transform of each image of an `image` or `media` value (decision 0031)."
|
|
1836
2004
|
},
|
|
1837
2005
|
"BlockType": {
|
|
1838
2006
|
"type": "object",
|
|
@@ -1913,24 +2081,67 @@
|
|
|
1913
2081
|
}
|
|
1914
2082
|
},
|
|
1915
2083
|
"multiple": {
|
|
1916
|
-
"description": "`select`, `relation`, `media`, `file`: the value is an array.",
|
|
2084
|
+
"description": "`select`, `relation`, `media`, `image`, `file`: the value is an array.",
|
|
1917
2085
|
"type": "boolean"
|
|
1918
2086
|
},
|
|
1919
2087
|
"resource": {
|
|
1920
|
-
"description": "`relation`: id of the related resource. `media`: id of a resource of kind `media`,
|
|
1921
|
-
"
|
|
2088
|
+
"description": "`relation`: id of the related resource. `media`, `image`: id of a resource of kind `media`, or a list of them; without it, every library of the definition (decision 0027).",
|
|
2089
|
+
"anyOf": [
|
|
2090
|
+
{
|
|
2091
|
+
"type": "string",
|
|
2092
|
+
"minLength": 1
|
|
2093
|
+
},
|
|
2094
|
+
{
|
|
2095
|
+
"minItems": 1,
|
|
2096
|
+
"type": "array",
|
|
2097
|
+
"items": {
|
|
2098
|
+
"type": "string",
|
|
2099
|
+
"minLength": 1
|
|
2100
|
+
}
|
|
2101
|
+
}
|
|
2102
|
+
]
|
|
1922
2103
|
},
|
|
1923
2104
|
"accept": {
|
|
1924
|
-
"description": "`media`, `file`: accepted MIME types.",
|
|
2105
|
+
"description": "`media`, `image`, `file`: accepted MIME types. `image` defaults to `image/*`.",
|
|
1925
2106
|
"type": "array",
|
|
1926
2107
|
"items": {
|
|
1927
2108
|
"type": "string"
|
|
1928
2109
|
}
|
|
1929
2110
|
},
|
|
2111
|
+
"ratios": {
|
|
2112
|
+
"description": "`image`: ratios the editor suggests. The `crop` rule enforces ratios (decision 0031).",
|
|
2113
|
+
"type": "array",
|
|
2114
|
+
"items": {
|
|
2115
|
+
"type": "string",
|
|
2116
|
+
"pattern": "^[1-9][0-9]*:[1-9][0-9]*$",
|
|
2117
|
+
"description": "An aspect ratio, as `width:height`: `16:9`."
|
|
2118
|
+
}
|
|
2119
|
+
},
|
|
2120
|
+
"rotate": {
|
|
2121
|
+
"description": "`image`: whether the editor offers rotation and flips. Defaults to true.",
|
|
2122
|
+
"type": "boolean"
|
|
2123
|
+
},
|
|
2124
|
+
"focalPoint": {
|
|
2125
|
+
"description": "`image`: whether the editor offers the focal point. Defaults to true.",
|
|
2126
|
+
"type": "boolean"
|
|
2127
|
+
},
|
|
2128
|
+
"transformBase": {
|
|
2129
|
+
"description": "`image`: what a transform for one use starts from: the media's own transform (`media`, the default), the original file, or the user's choice in the editor (decision 0031).",
|
|
2130
|
+
"type": "string",
|
|
2131
|
+
"enum": [
|
|
2132
|
+
"media",
|
|
2133
|
+
"original",
|
|
2134
|
+
"choose"
|
|
2135
|
+
]
|
|
2136
|
+
},
|
|
1930
2137
|
"from": {
|
|
1931
2138
|
"description": "`slug`: the field the slug is generated from.",
|
|
1932
2139
|
"type": "string"
|
|
1933
2140
|
},
|
|
2141
|
+
"check": {
|
|
2142
|
+
"description": "The client checks the value with the backend as it is typed, with `POST /resources/{resource}/fields/{field}/check`: whether a `slug` is available, and its URL. A field at the top of the resource only.",
|
|
2143
|
+
"type": "boolean"
|
|
2144
|
+
},
|
|
1934
2145
|
"display": {
|
|
1935
2146
|
"description": "Display used in lists, when it differs from the default one of the type.",
|
|
1936
2147
|
"type": "string"
|
|
@@ -2336,7 +2547,7 @@
|
|
|
2336
2547
|
]
|
|
2337
2548
|
},
|
|
2338
2549
|
"search": {
|
|
2339
|
-
"description": "Whether the resource is in the global search.",
|
|
2550
|
+
"description": "Whether the resource is in the global search. Defaults to whether its list has a search (`list.search`).",
|
|
2340
2551
|
"type": "boolean"
|
|
2341
2552
|
}
|
|
2342
2553
|
},
|
|
@@ -2380,6 +2591,14 @@
|
|
|
2380
2591
|
"description": "The field used as the title of an item, in lists and pickers.",
|
|
2381
2592
|
"type": "string"
|
|
2382
2593
|
},
|
|
2594
|
+
"itemSubtitle": {
|
|
2595
|
+
"description": "The field shown under the title of an item, in search results, cards and pickers.",
|
|
2596
|
+
"type": "string"
|
|
2597
|
+
},
|
|
2598
|
+
"itemImage": {
|
|
2599
|
+
"description": "The field that holds the image of an item (a media or a URL), in search results, cards and pickers.",
|
|
2600
|
+
"type": "string"
|
|
2601
|
+
},
|
|
2383
2602
|
"fields": {
|
|
2384
2603
|
"type": "array",
|
|
2385
2604
|
"items": {
|
|
@@ -2453,6 +2672,10 @@
|
|
|
2453
2672
|
},
|
|
2454
2673
|
"abilities": {
|
|
2455
2674
|
"$ref": "#/components/schemas/Abilities"
|
|
2675
|
+
},
|
|
2676
|
+
"resource": {
|
|
2677
|
+
"description": "The resource of users: its item with this `id` is the profile of the user. Without it, clients look for a resource `users`.",
|
|
2678
|
+
"type": "string"
|
|
2456
2679
|
}
|
|
2457
2680
|
},
|
|
2458
2681
|
"required": [
|
|
@@ -3694,10 +3917,22 @@
|
|
|
3694
3917
|
"y"
|
|
3695
3918
|
],
|
|
3696
3919
|
"additionalProperties": {}
|
|
3920
|
+
},
|
|
3921
|
+
"base": {
|
|
3922
|
+
"description": "What a transform for one use starts from: the original file by default, or the media's own transform (`media`). With `media`, the crop and the focal point are relative to the media's version instead of the original (decision 0031).",
|
|
3923
|
+
"type": "string",
|
|
3924
|
+
"enum": [
|
|
3925
|
+
"media",
|
|
3926
|
+
"original"
|
|
3927
|
+
]
|
|
3928
|
+
},
|
|
3929
|
+
"baseTransform": {
|
|
3930
|
+
"description": "With `base: \"media\"`: the media's own transform this one was made on. When the media's transform is no longer the same, clients ask to check the crop, and renderers clamp it.",
|
|
3931
|
+
"$ref": "#/components/schemas/MediaTransform"
|
|
3697
3932
|
}
|
|
3698
3933
|
},
|
|
3699
3934
|
"additionalProperties": {},
|
|
3700
|
-
"description": "Non-destructive edits of an image, applied in this order: crop, then rotate, then flip."
|
|
3935
|
+
"description": "Non-destructive edits of an image, applied in this order: crop, then rotate, then flip. Renderers ignore the keys they don't know, which editor tools can add."
|
|
3701
3936
|
},
|
|
3702
3937
|
"StoredFile": {
|
|
3703
3938
|
"type": "object",
|
|
@@ -3866,6 +4101,82 @@
|
|
|
3866
4101
|
"additionalProperties": {},
|
|
3867
4102
|
"description": "A presigned request."
|
|
3868
4103
|
},
|
|
4104
|
+
"FieldCheckRequest": {
|
|
4105
|
+
"type": "object",
|
|
4106
|
+
"properties": {
|
|
4107
|
+
"value": {
|
|
4108
|
+
"type": "string",
|
|
4109
|
+
"description": "The value to check, as it is typed."
|
|
4110
|
+
},
|
|
4111
|
+
"locale": {
|
|
4112
|
+
"description": "The locale of the value, for a localized field.",
|
|
4113
|
+
"type": "string"
|
|
4114
|
+
},
|
|
4115
|
+
"id": {
|
|
4116
|
+
"description": "The item being edited, or null when creating one.",
|
|
4117
|
+
"anyOf": [
|
|
4118
|
+
{
|
|
4119
|
+
"$ref": "#/components/schemas/Id"
|
|
4120
|
+
},
|
|
4121
|
+
{
|
|
4122
|
+
"type": "null"
|
|
4123
|
+
}
|
|
4124
|
+
]
|
|
4125
|
+
},
|
|
4126
|
+
"values": {
|
|
4127
|
+
"description": "The form's current values, as they would be sent to save, for what the check depends on (a page's parent).",
|
|
4128
|
+
"type": "object",
|
|
4129
|
+
"propertyNames": {
|
|
4130
|
+
"type": "string"
|
|
4131
|
+
},
|
|
4132
|
+
"additionalProperties": {}
|
|
4133
|
+
}
|
|
4134
|
+
},
|
|
4135
|
+
"required": [
|
|
4136
|
+
"value"
|
|
4137
|
+
],
|
|
4138
|
+
"additionalProperties": {},
|
|
4139
|
+
"description": "A value of a field with `check`, to check with the backend."
|
|
4140
|
+
},
|
|
4141
|
+
"FieldCheckResponse": {
|
|
4142
|
+
"type": "object",
|
|
4143
|
+
"properties": {
|
|
4144
|
+
"available": {
|
|
4145
|
+
"type": "boolean",
|
|
4146
|
+
"description": "Whether no other item of the resource, in its scope and the same locale, has the value."
|
|
4147
|
+
},
|
|
4148
|
+
"suggestion": {
|
|
4149
|
+
"description": "An available value close to the one checked, when it is taken.",
|
|
4150
|
+
"type": [
|
|
4151
|
+
"string",
|
|
4152
|
+
"null"
|
|
4153
|
+
]
|
|
4154
|
+
},
|
|
4155
|
+
"prefix": {
|
|
4156
|
+
"description": "What the field shows in front of the value: the start of its URL.",
|
|
4157
|
+
"type": [
|
|
4158
|
+
"string",
|
|
4159
|
+
"null"
|
|
4160
|
+
]
|
|
4161
|
+
},
|
|
4162
|
+
"url": {
|
|
4163
|
+
"description": "The URL the value gives the item, which the field links to.",
|
|
4164
|
+
"type": [
|
|
4165
|
+
"string",
|
|
4166
|
+
"null"
|
|
4167
|
+
]
|
|
4168
|
+
},
|
|
4169
|
+
"disabled": {
|
|
4170
|
+
"description": "The field doesn't apply to this item (the home page has no slug): the field is read-only.",
|
|
4171
|
+
"type": "boolean"
|
|
4172
|
+
}
|
|
4173
|
+
},
|
|
4174
|
+
"required": [
|
|
4175
|
+
"available"
|
|
4176
|
+
],
|
|
4177
|
+
"additionalProperties": {},
|
|
4178
|
+
"description": "What the backend says about a value: not authoritative, since saving still validates it."
|
|
4179
|
+
},
|
|
3869
4180
|
"MediaInfo": {
|
|
3870
4181
|
"type": "object",
|
|
3871
4182
|
"properties": {
|
|
@@ -3964,6 +4275,17 @@
|
|
|
3964
4275
|
"type": "string"
|
|
3965
4276
|
},
|
|
3966
4277
|
"additionalProperties": {}
|
|
4278
|
+
},
|
|
4279
|
+
"transform": {
|
|
4280
|
+
"description": "The media's own transform, from its library, which clients need to draw a transform for one use made over it (decision 0031).",
|
|
4281
|
+
"anyOf": [
|
|
4282
|
+
{
|
|
4283
|
+
"$ref": "#/components/schemas/MediaTransform"
|
|
4284
|
+
},
|
|
4285
|
+
{
|
|
4286
|
+
"type": "null"
|
|
4287
|
+
}
|
|
4288
|
+
]
|
|
3967
4289
|
}
|
|
3968
4290
|
},
|
|
3969
4291
|
"required": [
|
|
@@ -4007,6 +4329,10 @@
|
|
|
4007
4329
|
"id": {
|
|
4008
4330
|
"$ref": "#/components/schemas/Id"
|
|
4009
4331
|
},
|
|
4332
|
+
"resource": {
|
|
4333
|
+
"description": "The library of the media. Required for a field that allows several libraries, since ids are unique only within their resource (decision 0027).",
|
|
4334
|
+
"type": "string"
|
|
4335
|
+
},
|
|
4010
4336
|
"label": {
|
|
4011
4337
|
"description": "The `itemTitle` of the media.",
|
|
4012
4338
|
"type": "string"
|
|
@@ -4015,7 +4341,7 @@
|
|
|
4015
4341
|
"$ref": "#/components/schemas/MediaInfo"
|
|
4016
4342
|
},
|
|
4017
4343
|
"transform": {
|
|
4018
|
-
"description": "The edits of the image for this use only, over
|
|
4344
|
+
"description": "The edits of the image for this use only: from the original file, or over the media's own transform with `base: \"media\"`.",
|
|
4019
4345
|
"anyOf": [
|
|
4020
4346
|
{
|
|
4021
4347
|
"$ref": "#/components/schemas/MediaTransform"
|
|
@@ -4030,7 +4356,7 @@
|
|
|
4030
4356
|
"id"
|
|
4031
4357
|
],
|
|
4032
4358
|
"additionalProperties": {},
|
|
4033
|
-
"description": "The value of a `media` field in items: the media, with what lists and fields show, and its edits for this use. Requests send the id, or `{ id, transform }
|
|
4359
|
+
"description": "The value of a `media` or `image` field in items: the media, with what lists and fields show, and its edits for this use. Requests send the id, or `{ id, resource, transform }`: `resource` is required when the field allows several libraries."
|
|
4034
4360
|
},
|
|
4035
4361
|
"Session": {
|
|
4036
4362
|
"type": "object",
|
|
@@ -4053,7 +4379,8 @@
|
|
|
4053
4379
|
"type": "object",
|
|
4054
4380
|
"properties": {
|
|
4055
4381
|
"resource": {
|
|
4056
|
-
"type": "string"
|
|
4382
|
+
"type": "string",
|
|
4383
|
+
"description": "The id of the resource."
|
|
4057
4384
|
},
|
|
4058
4385
|
"items": {
|
|
4059
4386
|
"type": "array",
|
|
@@ -4062,6 +4389,7 @@
|
|
|
4062
4389
|
}
|
|
4063
4390
|
},
|
|
4064
4391
|
"total": {
|
|
4392
|
+
"description": "How many items of the resource match, when the backend counts them: the list of the resource, searched, shows them all.",
|
|
4065
4393
|
"type": "integer",
|
|
4066
4394
|
"minimum": 0,
|
|
4067
4395
|
"maximum": 9007199254740991
|
|
@@ -4078,7 +4406,8 @@
|
|
|
4078
4406
|
"required": [
|
|
4079
4407
|
"data"
|
|
4080
4408
|
],
|
|
4081
|
-
"additionalProperties": {}
|
|
4409
|
+
"additionalProperties": {},
|
|
4410
|
+
"description": "The results of the global search: the resources with results, in the order of the definition."
|
|
4082
4411
|
},
|
|
4083
4412
|
"PreviewResponse": {
|
|
4084
4413
|
"type": "object",
|