@tryghost/admin-api-schema 2.16.0 → 3.1.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.
Files changed (77) hide show
  1. package/README.md +2 -3
  2. package/lib/admin-api-schema.js +12 -92
  3. package/lib/{canary → schemas}/README.md +1 -1
  4. package/lib/{v3 → schemas}/images-upload.json +2 -2
  5. package/lib/{v2 → schemas}/images.json +1 -1
  6. package/lib/{canary → schemas}/index.js +0 -0
  7. package/lib/{v3 → schemas}/labels-add.json +2 -2
  8. package/lib/{v3 → schemas}/labels-edit.json +2 -2
  9. package/lib/{v3 → schemas}/labels.json +1 -1
  10. package/lib/{canary → schemas}/media-upload.json +2 -2
  11. package/lib/{canary → schemas}/media.json +1 -1
  12. package/lib/{v3 → schemas}/members-add.json +2 -2
  13. package/lib/{canary → schemas}/members-edit.json +7 -4
  14. package/lib/{canary → schemas}/members-upload.json +1 -1
  15. package/lib/{canary → schemas}/members.json +4 -1
  16. package/lib/{v3 → schemas}/pages-add.json +2 -2
  17. package/lib/{v3 → schemas}/pages-edit.json +2 -2
  18. package/lib/{canary → schemas}/pages.json +1 -1
  19. package/lib/{v3 → schemas}/posts-add.json +2 -2
  20. package/lib/{v3 → schemas}/posts-edit.json +2 -2
  21. package/lib/{canary → schemas}/posts.json +1 -1
  22. package/lib/{canary → schemas}/products-add.json +2 -2
  23. package/lib/{canary → schemas}/products-edit.json +2 -2
  24. package/lib/{canary → schemas}/products.json +3 -3
  25. package/lib/{v3 → schemas}/snippets-add.json +2 -2
  26. package/lib/{v3 → schemas}/snippets-edit.json +2 -2
  27. package/lib/{v3 → schemas}/snippets.json +1 -1
  28. package/lib/{v3 → schemas}/tags-add.json +2 -2
  29. package/lib/{v2 → schemas}/tags-edit.json +2 -2
  30. package/lib/{v3 → schemas}/tags.json +1 -1
  31. package/lib/{canary → schemas}/tiers-add.json +2 -2
  32. package/lib/{canary → schemas}/tiers-edit.json +2 -2
  33. package/lib/{canary → schemas}/tiers.json +5 -2
  34. package/lib/{v3 → schemas}/webhooks-add.json +2 -2
  35. package/lib/{v3 → schemas}/webhooks-edit.json +1 -1
  36. package/lib/{v3 → schemas}/webhooks.json +1 -1
  37. package/lib/utils/json-schema.js +1 -0
  38. package/package.json +2 -2
  39. package/lib/canary/images-upload.json +0 -7
  40. package/lib/canary/images.json +0 -23
  41. package/lib/canary/labels-add.json +0 -22
  42. package/lib/canary/labels-edit.json +0 -17
  43. package/lib/canary/labels.json +0 -39
  44. package/lib/canary/members-add.json +0 -21
  45. package/lib/canary/pages-add.json +0 -21
  46. package/lib/canary/pages-edit.json +0 -21
  47. package/lib/canary/posts-add.json +0 -21
  48. package/lib/canary/posts-edit.json +0 -21
  49. package/lib/canary/snippets-add.json +0 -22
  50. package/lib/canary/snippets-edit.json +0 -22
  51. package/lib/canary/snippets.json +0 -39
  52. package/lib/canary/tags-add.json +0 -22
  53. package/lib/canary/tags-edit.json +0 -17
  54. package/lib/canary/tags.json +0 -112
  55. package/lib/canary/webhooks-add.json +0 -21
  56. package/lib/canary/webhooks-edit.json +0 -74
  57. package/lib/canary/webhooks.json +0 -67
  58. package/lib/v2/README.md +0 -8
  59. package/lib/v2/images-upload.json +0 -7
  60. package/lib/v2/index.js +0 -9
  61. package/lib/v2/pages-add.json +0 -21
  62. package/lib/v2/pages-edit.json +0 -21
  63. package/lib/v2/pages.json +0 -250
  64. package/lib/v2/posts-add.json +0 -21
  65. package/lib/v2/posts-edit.json +0 -21
  66. package/lib/v2/posts.json +0 -250
  67. package/lib/v2/tags-add.json +0 -22
  68. package/lib/v2/tags.json +0 -69
  69. package/lib/v3/README.md +0 -8
  70. package/lib/v3/images.json +0 -23
  71. package/lib/v3/index.js +0 -18
  72. package/lib/v3/members-edit.json +0 -74
  73. package/lib/v3/members-upload.json +0 -48
  74. package/lib/v3/members.json +0 -109
  75. package/lib/v3/pages.json +0 -250
  76. package/lib/v3/posts.json +0 -263
  77. package/lib/v3/tags-edit.json +0 -17
package/lib/v3/posts.json DELETED
@@ -1,263 +0,0 @@
1
- {
2
- "$schema": "http://json-schema.org/draft-07/schema#",
3
- "$id": "posts.v3",
4
- "title": "posts",
5
- "description": "Base posts definitions",
6
- "definitions": {
7
- "post": {
8
- "type": "object",
9
- "additionalProperties": false,
10
- "properties": {
11
- "title": {
12
- "type": "string",
13
- "maxLength": 2000
14
- },
15
- "slug": {
16
- "type": "string",
17
- "maxLength": 191
18
- },
19
- "mobiledoc": {
20
- "type": ["string", "null"],
21
- "format": "json-string",
22
- "maxLength": 1000000000
23
- },
24
- "html": {
25
- "type": ["string", "null"],
26
- "maxLength": 1000000000
27
- },
28
- "feature_image": {
29
- "type": ["string", "null"],
30
- "format": "uri-reference",
31
- "maxLength": 2000
32
- },
33
- "featured": {
34
- "type": "boolean"
35
- },
36
- "status": {
37
- "type": "string",
38
- "enum": ["published", "draft", "scheduled"]
39
- },
40
- "locale": {
41
- "type": ["string", "null"],
42
- "maxLength": 6
43
- },
44
- "visibility": {
45
- "type": ["string", "null"]
46
- },
47
- "meta_title": {
48
- "type": ["string", "null"],
49
- "maxLength": 300
50
- },
51
- "meta_description": {
52
- "type": ["string", "null"],
53
- "maxLength": 500
54
- },
55
- "updated_at": {
56
- "type": ["string", "null"],
57
- "format": "date-time"
58
- },
59
- "published_at": {
60
- "type": ["string", "null"],
61
- "format": "date-time"
62
- },
63
- "custom_excerpt": {
64
- "type": ["string", "null"],
65
- "maxLength": 300
66
- },
67
- "codeinjection_head": {
68
- "type": ["string", "null"],
69
- "maxLength": 65535
70
- },
71
- "codeinjection_foot": {
72
- "type": ["string", "null"],
73
- "maxLength": 65535
74
- },
75
- "og_image": {
76
- "type": ["string", "null"],
77
- "format": "uri-reference",
78
- "maxLength": 2000
79
- },
80
- "og_title": {
81
- "type": ["string", "null"],
82
- "maxLength": 300
83
- },
84
- "og_description": {
85
- "type": ["string", "null"],
86
- "maxLength": 500
87
- },
88
- "twitter_image": {
89
- "type": ["string", "null"],
90
- "format": "uri-reference",
91
- "maxLength": 2000
92
- },
93
- "twitter_title": {
94
- "type": ["string", "null"],
95
- "maxLength": 300
96
- },
97
- "twitter_description": {
98
- "type": ["string", "null"],
99
- "maxLength": 500
100
- },
101
- "email_subject": {
102
- "type": ["string", "null"],
103
- "maxLength": 300
104
- },
105
- "custom_template": {
106
- "type": ["string", "null"],
107
- "maxLength": 100
108
- },
109
- "canonical_url": {
110
- "type": ["string", "null"],
111
- "format": "uri-reference",
112
- "maxLength": 2000
113
- },
114
- "authors": {
115
- "$ref": "#/definitions/post-authors"
116
- },
117
- "tags": {
118
- "$ref": "#/definitions/post-tags"
119
- },
120
- "id": {
121
- "strip": true
122
- },
123
- "uuid": {
124
- "strip": true
125
- },
126
- "comment_id": {
127
- "strip": true
128
- },
129
- "author": {
130
- "strip": true
131
- },
132
- "author_id": {
133
- "strip": true
134
- },
135
- "page": {
136
- "strip": true
137
- },
138
- "created_at": {
139
- "strip": true
140
- },
141
- "created_by": {
142
- "strip": true
143
- },
144
- "updated_by": {
145
- "strip": true
146
- },
147
- "published_by": {
148
- "strip": true
149
- },
150
- "url": {
151
- "strip": true
152
- },
153
- "primary_tag": {
154
- "strip": true
155
- },
156
- "primary_author": {
157
- "strip": true
158
- },
159
- "excerpt": {
160
- "strip": true
161
- },
162
- "plaintext": {
163
- "strip": true
164
- },
165
- "email": {
166
- "strip": true
167
- },
168
- "send_email_when_published": {
169
- "strip": true
170
- },
171
- "email_recipient_filter": {
172
- "strip": true
173
- },
174
- "frontmatter": {
175
- "strip": true
176
- }
177
- }
178
- },
179
- "post-authors": {
180
- "description": "Authors of the post",
181
- "type": "array",
182
- "items": {
183
- "anyOf": [
184
- {
185
- "type": "object",
186
- "properties": {
187
- "id": {
188
- "type": "string",
189
- "maxLength": 24
190
- },
191
- "slug": {
192
- "type": "string",
193
- "maxLength": 191
194
- },
195
- "email": {
196
- "type": "string",
197
- "maxLength": 191
198
- },
199
- "roles": {
200
- "strip": true
201
- },
202
- "permissions": {
203
- "strip": true
204
- }
205
- },
206
- "anyOf": [
207
- { "required": ["id"] },
208
- { "required": ["slug"] },
209
- { "required": ["email"] }
210
- ]
211
- },
212
- {
213
- "type": "string",
214
- "maxLength": 191
215
- }
216
- ]
217
- }
218
- },
219
- "post-tags": {
220
- "description": "Tags of the post",
221
- "type": "array",
222
- "items": {
223
- "anyOf": [
224
- {
225
- "type": "object",
226
- "properties": {
227
- "id": {
228
- "type": "string",
229
- "maxLength": 24
230
- },
231
- "name": {
232
- "type": "string",
233
- "maxLength": 191
234
- },
235
- "slug": {
236
- "type": ["string", "null"],
237
- "maxLength": 191
238
- },
239
- "parent": {
240
- "strip": true
241
- },
242
- "parent_id": {
243
- "strip": true
244
- },
245
- "posts": {
246
- "strip": true
247
- }
248
- },
249
- "anyOf": [
250
- { "required": ["id"] },
251
- { "required": ["name"] },
252
- { "required": ["slug"] }
253
- ]
254
- },
255
- {
256
- "type": "string",
257
- "maxLength": 191
258
- }
259
- ]
260
- }
261
- }
262
- }
263
- }
@@ -1,17 +0,0 @@
1
- {
2
- "$schema": "http://json-schema.org/draft-07/schema#",
3
- "$id": "tags.edit.v3",
4
- "title": "tags.edit",
5
- "description": "Schema for tags.edit",
6
- "type": "object",
7
- "additionalProperties": false,
8
- "properties": {
9
- "tags": {
10
- "type": "array",
11
- "minItems": 1,
12
- "maxItems": 1,
13
- "items": { "$ref": "tags.v3#/definitions/tag" }
14
- }
15
- },
16
- "required": ["tags"]
17
- }