@snokam/mcp-api 2.61.1 → 3.0.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 (43) hide show
  1. package/dist/auth.d.ts +0 -15
  2. package/dist/auth.js +17 -61
  3. package/dist/builtin-tools.d.ts +109 -0
  4. package/dist/builtin-tools.js +200 -0
  5. package/dist/execute-call.d.ts +5 -0
  6. package/dist/execute-call.js +45 -0
  7. package/dist/index.d.ts +0 -7
  8. package/dist/index.js +16 -311
  9. package/dist/openapi-loader.d.ts +1 -14
  10. package/dist/openapi-loader.js +27 -50
  11. package/dist/requirements.d.ts +10 -0
  12. package/dist/requirements.js +92 -0
  13. package/dist/state.d.ts +14 -0
  14. package/dist/state.js +66 -0
  15. package/dist/tool-schema.d.ts +2 -0
  16. package/dist/tool-schema.js +42 -0
  17. package/package.json +8 -3
  18. package/specs/production/accounting.json +2931 -2321
  19. package/specs/production/blog.json +747 -1497
  20. package/specs/production/broker.json +54 -25
  21. package/specs/production/chatgpt.json +570 -207
  22. package/specs/production/employees.json +2697 -1823
  23. package/specs/production/events.json +615 -974
  24. package/specs/production/notifications.json +329 -15
  25. package/specs/production/office.json +818 -836
  26. package/specs/production/recruitment.json +1883 -1207
  27. package/specs/production/sales.json +2909 -1172
  28. package/specs/production/sanity.json +47384 -16348
  29. package/specs/production/sync.json +116 -20
  30. package/specs/production/webshop.json +37 -17
  31. package/specs/test/accounting.json +2931 -2321
  32. package/specs/test/blog.json +747 -1497
  33. package/specs/test/broker.json +54 -25
  34. package/specs/test/chatgpt.json +570 -207
  35. package/specs/test/employees.json +2697 -1823
  36. package/specs/test/events.json +615 -974
  37. package/specs/test/notifications.json +329 -15
  38. package/specs/test/office.json +818 -836
  39. package/specs/test/recruitment.json +1883 -1207
  40. package/specs/test/sales.json +2909 -1172
  41. package/specs/test/sanity.json +47384 -16348
  42. package/specs/test/sync.json +116 -20
  43. package/specs/test/webshop.json +37 -17
@@ -34,16 +34,16 @@
34
34
  }
35
35
  }
36
36
  },
37
- "/v1.0/protected/articles": {
37
+ "/v1.0/protected/articles/drafts": {
38
38
  "post": {
39
39
  "tags": [
40
40
  "Articles"
41
41
  ],
42
- "summary": "Create a new blog article",
43
- "description": "Creates a new blog article in Sanity. The caller is not automatically added as an author include authors in the body.",
44
- "operationId": "CreateArticle",
42
+ "summary": "Create a new article as a draft",
43
+ "description": "Creates a new article in Sanity's `drafts.*` namespace. The article is not visible on the public site until PublishDraft is called.",
44
+ "operationId": "CreateDraft",
45
45
  "requestBody": {
46
- "description": "The article to create",
46
+ "description": "The article content to save as a draft",
47
47
  "content": {
48
48
  "application/json": {
49
49
  "schema": {
@@ -55,11 +55,11 @@
55
55
  },
56
56
  "responses": {
57
57
  "200": {
58
- "description": "The newly created article",
58
+ "description": "The newly created draft",
59
59
  "content": {
60
60
  "application/json": {
61
61
  "schema": {
62
- "$ref": "#/components/schemas/sanityGetArticlesBySlugOrIdResult"
62
+ "$ref": "#/components/schemas/getArticlesBySlugOrIdResult"
63
63
  }
64
64
  }
65
65
  },
@@ -84,156 +84,31 @@
84
84
  "security": [
85
85
  {
86
86
  "Implicit": [
87
- "api://e60092d3-3970-4a7c-a62e-19f17c4bca08/.default"
87
+ "api://bb21a8d0-366b-4a95-aa59-dbbf708322d1/.default"
88
88
  ]
89
- }
90
- ]
91
- }
92
- },
93
- "/v1.0/protected/articles/{slugOrId}": {
94
- "patch": {
95
- "tags": [
96
- "Articles"
97
- ],
98
- "summary": "Update a blog article",
99
- "description": "Partially updates a blog article. Only the article's authors may call this.",
100
- "operationId": "PatchArticle",
101
- "parameters": [
102
- {
103
- "name": "slugOrId",
104
- "in": "path",
105
- "required": true,
106
- "schema": {
107
- "type": "string"
108
- },
109
- "x-ms-summary": "The slug or id of the article"
110
- }
111
- ],
112
- "requestBody": {
113
- "description": "Partial article fields to update",
114
- "content": {
115
- "application/json": {
116
- "schema": {
117
- "$ref": "#/components/schemas/sanityPatchArticle"
118
- }
119
- }
120
- },
121
- "required": true
122
- },
123
- "responses": {
124
- "200": {
125
- "description": "The updated article",
126
- "content": {
127
- "application/json": {
128
- "schema": {
129
- "$ref": "#/components/schemas/sanityGetArticlesBySlugOrIdResult"
130
- }
131
- }
132
- },
133
- "x-ms-summary": "Success"
134
- },
135
- "400": {
136
- "description": "Payload of Object",
137
- "content": {
138
- "application/json": {
139
- "schema": {
140
- "type": "object"
141
- }
142
- }
143
- },
144
- "x-ms-summary": "Bad Request"
145
- },
146
- "401": {
147
- "description": "No description",
148
- "x-ms-summary": "Unauthorized"
149
89
  },
150
- "404": {
151
- "description": "Article not found",
152
- "x-ms-summary": "Not Found"
153
- }
154
- },
155
- "security": [
156
90
  {
157
- "Implicit": [
158
- "api://e60092d3-3970-4a7c-a62e-19f17c4bca08/.default"
159
- ]
91
+ "ApiKey": []
160
92
  }
161
93
  ]
162
94
  },
163
- "delete": {
164
- "tags": [
165
- "Articles"
166
- ],
167
- "summary": "Delete a blog article",
168
- "description": "Deletes a blog article. Only the article's authors may call this.",
169
- "operationId": "DeleteArticle",
170
- "parameters": [
171
- {
172
- "name": "slugOrId",
173
- "in": "path",
174
- "required": true,
175
- "schema": {
176
- "type": "string"
177
- },
178
- "x-ms-summary": "The slug or id of the article"
179
- }
180
- ],
181
- "responses": {
182
- "200": {
183
- "description": "The deleted article",
184
- "content": {
185
- "application/json": {
186
- "schema": {
187
- "$ref": "#/components/schemas/sanityGetArticlesBySlugOrIdResult"
188
- }
189
- }
190
- },
191
- "x-ms-summary": "Success"
192
- },
193
- "401": {
194
- "description": "No description",
195
- "x-ms-summary": "Unauthorized"
196
- },
197
- "404": {
198
- "description": "Article not found",
199
- "x-ms-summary": "Not Found"
200
- }
201
- },
202
- "security": [
203
- {
204
- "Implicit": [
205
- "api://e60092d3-3970-4a7c-a62e-19f17c4bca08/.default"
206
- ]
207
- }
208
- ]
209
- }
210
- },
211
- "/v1.0/protected/articles/{slugOrId}/draft-status": {
212
95
  "get": {
213
96
  "tags": [
214
97
  "Articles"
215
98
  ],
216
- "summary": "Get article with draft status",
217
- "description": "Returns both the published article and any pending draft so authors can compare states. Only authors may call this.",
218
- "operationId": "GetArticleWithDraft",
219
- "parameters": [
220
- {
221
- "name": "slugOrId",
222
- "in": "path",
223
- "required": true,
224
- "schema": {
225
- "type": "string"
226
- },
227
- "x-ms-summary": "The slug or id of the article"
228
- }
229
- ],
99
+ "summary": "List drafts without a published counterpart",
100
+ "description": "Used by the editor to surface unpublished articles authors might want to resume.",
101
+ "operationId": "GetDraftOnlyArticles",
230
102
  "responses": {
231
103
  "200": {
232
- "description": "Snapshot with published + draft sides",
104
+ "description": "Draft article list",
233
105
  "content": {
234
106
  "application/json": {
235
107
  "schema": {
236
- "$ref": "#/components/schemas/sanityGetArticleWithDraftResult"
108
+ "type": "array",
109
+ "items": {
110
+ "$ref": "#/components/schemas/getArticlesResultInner"
111
+ }
237
112
  }
238
113
  }
239
114
  },
@@ -242,73 +117,16 @@
242
117
  "401": {
243
118
  "description": "No description",
244
119
  "x-ms-summary": "Unauthorized"
245
- },
246
- "404": {
247
- "description": "No description",
248
- "x-ms-summary": "Not Found"
249
120
  }
250
121
  },
251
122
  "security": [
252
123
  {
253
124
  "Implicit": [
254
- "api://e60092d3-3970-4a7c-a62e-19f17c4bca08/.default"
125
+ "api://bb21a8d0-366b-4a95-aa59-dbbf708322d1/.default"
255
126
  ]
256
- }
257
- ]
258
- }
259
- },
260
- "/v1.0/protected/articles/drafts": {
261
- "post": {
262
- "tags": [
263
- "Articles"
264
- ],
265
- "summary": "Create a new article as a draft",
266
- "description": "Creates a new article in Sanity's `drafts.*` namespace. The article is not visible on the public site until PublishDraft is called.",
267
- "operationId": "CreateDraft",
268
- "requestBody": {
269
- "description": "The article content to save as a draft",
270
- "content": {
271
- "application/json": {
272
- "schema": {
273
- "$ref": "#/components/schemas/sanityCreateArticle"
274
- }
275
- }
276
- },
277
- "required": true
278
- },
279
- "responses": {
280
- "200": {
281
- "description": "The newly created draft",
282
- "content": {
283
- "application/json": {
284
- "schema": {
285
- "$ref": "#/components/schemas/sanityGetArticlesBySlugOrIdResult"
286
- }
287
- }
288
- },
289
- "x-ms-summary": "Success"
290
- },
291
- "400": {
292
- "description": "Payload of Object",
293
- "content": {
294
- "application/json": {
295
- "schema": {
296
- "type": "object"
297
- }
298
- }
299
- },
300
- "x-ms-summary": "Bad Request"
301
127
  },
302
- "401": {
303
- "description": "No description",
304
- "x-ms-summary": "Unauthorized"
305
- }
306
- },
307
- "security": [
308
128
  {
309
- "Implicit": [
310
- "api://e60092d3-3970-4a7c-a62e-19f17c4bca08/.default"
311
- ]
129
+ "ApiKey": []
312
130
  }
313
131
  ]
314
132
  }
@@ -349,7 +167,7 @@
349
167
  "content": {
350
168
  "application/json": {
351
169
  "schema": {
352
- "$ref": "#/components/schemas/sanityGetArticlesBySlugOrIdResult"
170
+ "$ref": "#/components/schemas/getArticlesBySlugOrIdResult"
353
171
  }
354
172
  }
355
173
  },
@@ -378,8 +196,11 @@
378
196
  "security": [
379
197
  {
380
198
  "Implicit": [
381
- "api://e60092d3-3970-4a7c-a62e-19f17c4bca08/.default"
199
+ "api://bb21a8d0-366b-4a95-aa59-dbbf708322d1/.default"
382
200
  ]
201
+ },
202
+ {
203
+ "ApiKey": []
383
204
  }
384
205
  ]
385
206
  },
@@ -407,7 +228,7 @@
407
228
  "content": {
408
229
  "application/json": {
409
230
  "schema": {
410
- "$ref": "#/components/schemas/sanityGetArticlesBySlugOrIdResult"
231
+ "$ref": "#/components/schemas/getArticlesBySlugOrIdResult"
411
232
  }
412
233
  }
413
234
  },
@@ -425,8 +246,11 @@
425
246
  "security": [
426
247
  {
427
248
  "Implicit": [
428
- "api://e60092d3-3970-4a7c-a62e-19f17c4bca08/.default"
249
+ "api://bb21a8d0-366b-4a95-aa59-dbbf708322d1/.default"
429
250
  ]
251
+ },
252
+ {
253
+ "ApiKey": []
430
254
  }
431
255
  ]
432
256
  }
@@ -456,7 +280,7 @@
456
280
  "content": {
457
281
  "application/json": {
458
282
  "schema": {
459
- "$ref": "#/components/schemas/sanityGetArticlesBySlugOrIdResult"
283
+ "$ref": "#/components/schemas/getArticlesBySlugOrIdResult"
460
284
  }
461
285
  }
462
286
  },
@@ -474,8 +298,11 @@
474
298
  "security": [
475
299
  {
476
300
  "Implicit": [
477
- "api://e60092d3-3970-4a7c-a62e-19f17c4bca08/.default"
301
+ "api://bb21a8d0-366b-4a95-aa59-dbbf708322d1/.default"
478
302
  ]
303
+ },
304
+ {
305
+ "ApiKey": []
479
306
  }
480
307
  ]
481
308
  }
@@ -532,8 +359,11 @@
532
359
  "security": [
533
360
  {
534
361
  "Implicit": [
535
- "api://e60092d3-3970-4a7c-a62e-19f17c4bca08/.default"
362
+ "api://bb21a8d0-366b-4a95-aa59-dbbf708322d1/.default"
536
363
  ]
364
+ },
365
+ {
366
+ "ApiKey": []
537
367
  }
538
368
  ]
539
369
  }
@@ -594,836 +424,483 @@
594
424
  "security": [
595
425
  {
596
426
  "Implicit": [
597
- "api://e60092d3-3970-4a7c-a62e-19f17c4bca08/.default"
427
+ "api://bb21a8d0-366b-4a95-aa59-dbbf708322d1/.default"
598
428
  ]
429
+ },
430
+ {
431
+ "ApiKey": []
599
432
  }
600
433
  ]
601
434
  }
602
- }
603
- },
604
- "components": {
605
- "schemas": {
606
- "articleInvitationPreviewResponse": {
607
- "type": "object",
608
- "properties": {
609
- "emails": {
610
- "type": "array",
611
- "items": {
612
- "type": "string"
613
- }
435
+ },
436
+ "/v1.0/protected/articles": {
437
+ "get": {
438
+ "tags": [
439
+ "Articles"
440
+ ],
441
+ "summary": "List articles (admin)",
442
+ "description": "Returns the full published article list for the editor — live + offline articles when `includeInactive=true`. Public callers should hit sanity-function directly; this endpoint exists so my-page-web can read everything via blog-function without needing sanity-function admin perms.",
443
+ "operationId": "GetArticles",
444
+ "parameters": [
445
+ {
446
+ "name": "includeInactive",
447
+ "in": "query",
448
+ "schema": {
449
+ "type": "boolean"
450
+ },
451
+ "x-ms-summary": "Include `active=false` articles (admin view)"
614
452
  }
615
- }
616
- },
617
- "jsonElement": {
618
- "type": "object",
619
- "properties": {
620
- "valueKind": {
621
- "enum": [
622
- 0,
623
- 1,
624
- 2,
625
- 3,
626
- 4,
627
- 5,
628
- 6,
629
- 7
630
- ],
631
- "type": "integer",
632
- "format": "int32",
633
- "default": 0
453
+ ],
454
+ "responses": {
455
+ "200": {
456
+ "description": "Article list",
457
+ "content": {
458
+ "application/json": {
459
+ "schema": {
460
+ "type": "array",
461
+ "items": {
462
+ "$ref": "#/components/schemas/getArticlesResultInner"
463
+ }
464
+ }
465
+ }
466
+ },
467
+ "x-ms-summary": "Success"
634
468
  },
635
- "item": {
636
- "$ref": "#/components/schemas/jsonElement"
469
+ "401": {
470
+ "description": "No description",
471
+ "x-ms-summary": "Unauthorized"
637
472
  }
638
- }
639
- },
640
- "option_list`1": {
641
- "type": "object",
642
- "properties": {
643
- "value": {
644
- "type": "array",
645
- "items": {
646
- "type": "string"
647
- }
648
- }
649
- }
650
- },
651
- "option_nullable`1": {
652
- "type": "object",
653
- "properties": {
654
- "value": {
655
- "type": "boolean",
656
- "nullable": true
657
- }
658
- }
659
- },
660
- "option_object": {
661
- "type": "object",
662
- "properties": {
663
- "value": {
664
- "type": "object"
665
- }
666
- }
667
- },
668
- "option_sanityArticleSeriesReference": {
669
- "type": "object",
670
- "properties": {
671
- "value": {
672
- "$ref": "#/components/schemas/sanityArticleSeriesReference"
673
- }
674
- }
675
- },
676
- "option_sanityComponentMedia": {
677
- "type": "object",
678
- "properties": {
679
- "value": {
680
- "$ref": "#/components/schemas/sanityComponentMedia"
681
- }
682
- }
683
- },
684
- "option_sanityComponentMediaImage": {
685
- "type": "object",
686
- "properties": {
687
- "value": {
688
- "$ref": "#/components/schemas/sanityComponentMediaImage"
689
- }
690
- }
691
- },
692
- "option_sanityCustomerReference": {
693
- "type": "object",
694
- "properties": {
695
- "value": {
696
- "$ref": "#/components/schemas/sanityCustomerReference"
697
- }
698
- }
699
- },
700
- "option_sanityGetArticlesBySlugOrIdResult": {
701
- "type": "object",
702
- "properties": {
703
- "value": {
704
- "$ref": "#/components/schemas/sanityGetArticlesBySlugOrIdResult"
705
- }
706
- }
707
- },
708
- "option_sanityGetArticlesBySlugOrIdResultArticleSeries": {
709
- "type": "object",
710
- "properties": {
711
- "value": {
712
- "$ref": "#/components/schemas/sanityGetArticlesBySlugOrIdResultArticleSeries"
713
- }
714
- }
715
- },
716
- "option_sanityGetArticlesBySlugOrIdResultNextArticle": {
717
- "type": "object",
718
- "properties": {
719
- "value": {
720
- "$ref": "#/components/schemas/sanityGetArticlesBySlugOrIdResultNextArticle"
721
- }
722
- }
723
- },
724
- "option_sanityImageAssetReference": {
725
- "type": "object",
726
- "properties": {
727
- "value": {
728
- "$ref": "#/components/schemas/sanityImageAssetReference"
729
- }
730
- }
731
- },
732
- "option_sanityImageCrop": {
733
- "type": "object",
734
- "properties": {
735
- "value": {
736
- "$ref": "#/components/schemas/sanityImageCrop"
737
- }
738
- }
739
- },
740
- "option_sanityImageHotspot": {
741
- "type": "object",
742
- "properties": {
743
- "value": {
744
- "$ref": "#/components/schemas/sanityImageHotspot"
745
- }
746
- }
747
- },
748
- "option_sanityMuxVideo": {
749
- "type": "object",
750
- "properties": {
751
- "value": {
752
- "$ref": "#/components/schemas/sanityMuxVideo"
753
- }
754
- }
755
- },
756
- "option_sanityMuxVideoAssetReference": {
757
- "type": "object",
758
- "properties": {
759
- "value": {
760
- "$ref": "#/components/schemas/sanityMuxVideoAssetReference"
761
- }
762
- }
763
- },
764
- "option_sanitySlug": {
765
- "type": "object",
766
- "properties": {
767
- "value": {
768
- "$ref": "#/components/schemas/sanitySlug"
769
- }
770
- }
771
- },
772
- "option_sanityTechnologyWithRelationsProjectsInnerMedia": {
773
- "type": "object",
774
- "properties": {
775
- "value": {
776
- "$ref": "#/components/schemas/sanityTechnologyWithRelationsProjectsInnerMedia"
777
- }
778
- }
779
- },
780
- "option_sanityTvCategoryDashboardsInnerBackgroundImageAsset": {
781
- "type": "object",
782
- "properties": {
783
- "value": {
784
- "$ref": "#/components/schemas/sanityTvCategoryDashboardsInnerBackgroundImageAsset"
785
- }
786
- }
787
- },
788
- "option_sanityVideoMemoryAsset": {
789
- "type": "object",
790
- "properties": {
791
- "value": {
792
- "$ref": "#/components/schemas/sanityVideoMemoryAsset"
793
- }
794
- }
795
- },
796
- "option_string": {
797
- "type": "object",
798
- "properties": {
799
- "value": {
800
- "type": "string"
801
- }
802
- }
803
- },
804
- "sanityArticleSeriesReference": {
805
- "type": "object",
806
- "properties": {
807
- "sanityType": {
808
- "enum": [
809
- 1
810
- ],
811
- "type": "integer",
812
- "format": "int32",
813
- "default": 1
814
- },
815
- "sanityRef": {
816
- "type": "string"
817
- },
818
- "sanityWeakOption": {
819
- "$ref": "#/components/schemas/option_nullable`1"
473
+ },
474
+ "security": [
475
+ {
476
+ "Implicit": [
477
+ "api://bb21a8d0-366b-4a95-aa59-dbbf708322d1/.default"
478
+ ]
820
479
  },
821
- "sanityWeak": {
822
- "type": "boolean",
823
- "nullable": true
480
+ {
481
+ "ApiKey": []
824
482
  }
825
- }
483
+ ]
826
484
  },
827
- "sanityBlock": {
828
- "type": "object",
829
- "properties": {
830
- "sanityType": {
831
- "enum": [
832
- 1
833
- ],
834
- "type": "integer",
835
- "format": "int32",
836
- "default": 1
837
- },
838
- "listItemOption": {
839
- "$ref": "#/components/schemas/option_nullable`1"
840
- },
841
- "listItem": {
842
- "enum": [
843
- 1,
844
- 2
845
- ],
846
- "type": "integer",
847
- "format": "int32",
848
- "default": 1,
849
- "nullable": true
850
- },
851
- "styleOption": {
852
- "$ref": "#/components/schemas/option_nullable`1"
853
- },
854
- "style": {
855
- "enum": [
856
- 1,
857
- 2,
858
- 3
859
- ],
860
- "type": "integer",
861
- "format": "int32",
862
- "default": 1,
863
- "nullable": true
864
- },
865
- "sanityKey": {
866
- "type": "string"
867
- },
868
- "childrenOption": {
869
- "$ref": "#/components/schemas/option_list`1"
870
- },
871
- "children": {
872
- "type": "array",
873
- "items": {
874
- "$ref": "#/components/schemas/sanitySystemsInnerDescriptionInnerChildrenInner"
485
+ "post": {
486
+ "tags": [
487
+ "Articles"
488
+ ],
489
+ "summary": "Create a new blog article",
490
+ "description": "Creates a new blog article in Sanity. The caller is not automatically added as an author — include authors in the body.",
491
+ "operationId": "CreateArticle",
492
+ "requestBody": {
493
+ "description": "The article to create",
494
+ "content": {
495
+ "application/json": {
496
+ "schema": {
497
+ "$ref": "#/components/schemas/sanityCreateArticle"
498
+ }
875
499
  }
876
500
  },
877
- "levelOption": {
878
- "$ref": "#/components/schemas/option_nullable`1"
879
- },
880
- "level": {
881
- "type": "number",
882
- "format": "double",
883
- "nullable": true
501
+ "required": true
502
+ },
503
+ "responses": {
504
+ "200": {
505
+ "description": "The newly created article",
506
+ "content": {
507
+ "application/json": {
508
+ "schema": {
509
+ "$ref": "#/components/schemas/getArticlesBySlugOrIdResult"
510
+ }
511
+ }
512
+ },
513
+ "x-ms-summary": "Success"
884
514
  },
885
- "markDefsOption": {
886
- "$ref": "#/components/schemas/option_list`1"
515
+ "400": {
516
+ "description": "Payload of Object",
517
+ "content": {
518
+ "application/json": {
519
+ "schema": {
520
+ "type": "object"
521
+ }
522
+ }
523
+ },
524
+ "x-ms-summary": "Bad Request"
887
525
  },
888
- "markDefs": {
889
- "type": "array",
890
- "items": {
891
- "$ref": "#/components/schemas/sanitySystemsInnerDescriptionInnerMarkDefsInner"
892
- }
526
+ "401": {
527
+ "description": "No description",
528
+ "x-ms-summary": "Unauthorized"
893
529
  }
894
- }
895
- },
896
- "sanityComponentBlocksInner": {
897
- "type": "object",
898
- "properties": {
899
- "sanityBlock": {
900
- "$ref": "#/components/schemas/sanityBlock"
901
- },
902
- "sanityComponentBlocksInnerSanityCode": {
903
- "$ref": "#/components/schemas/sanityComponentBlocksInnerSanityCode"
904
- },
905
- "sanityComponentGalleryMediaInnerSanityImage": {
906
- "$ref": "#/components/schemas/sanityComponentGalleryMediaInnerSanityImage"
907
- },
908
- "sanityComponentGalleryMediaInnerSanityMuxVideo": {
909
- "$ref": "#/components/schemas/sanityComponentGalleryMediaInnerSanityMuxVideo"
910
- },
911
- "sanityComponentBlocksInnerSanityComponentYoutube": {
912
- "$ref": "#/components/schemas/sanityComponentBlocksInnerSanityComponentYoutube"
913
- },
914
- "sanityComponentBlocksInnerSanityIframe": {
915
- "$ref": "#/components/schemas/sanityComponentBlocksInnerSanityIframe"
916
- },
917
- "sanityComponentBlocksInnerSanityComponentGallery": {
918
- "$ref": "#/components/schemas/sanityComponentBlocksInnerSanityComponentGallery"
530
+ },
531
+ "security": [
532
+ {
533
+ "Implicit": [
534
+ "api://bb21a8d0-366b-4a95-aa59-dbbf708322d1/.default"
535
+ ]
919
536
  },
920
- "sanityComponentBlocksInnerSanityComponentLink": {
921
- "$ref": "#/components/schemas/sanityComponentBlocksInnerSanityComponentLink"
537
+ {
538
+ "ApiKey": []
922
539
  }
923
- }
924
- },
925
- "sanityComponentBlocksInnerSanityCode": {
926
- "type": "object",
927
- "properties": {
928
- "sanityType": {
929
- "enum": [
930
- 1
931
- ],
932
- "type": "integer",
933
- "format": "int32",
934
- "default": 1
935
- },
936
- "sanityKey": {
937
- "type": "string"
938
- },
939
- "codeOption": {
940
- "$ref": "#/components/schemas/option_string"
941
- },
942
- "code": {
943
- "type": "string"
944
- },
945
- "filenameOption": {
946
- "$ref": "#/components/schemas/option_string"
947
- },
948
- "filename": {
949
- "type": "string"
950
- },
951
- "highlightedLinesOption": {
952
- "$ref": "#/components/schemas/option_list`1"
953
- },
954
- "highlightedLines": {
955
- "type": "array",
956
- "items": {
957
- "type": "number",
958
- "format": "double"
540
+ ]
541
+ }
542
+ },
543
+ "/v1.0/protected/articles/{slugOrId}": {
544
+ "get": {
545
+ "tags": [
546
+ "Articles"
547
+ ],
548
+ "summary": "Get a single published article (admin)",
549
+ "description": "Returns the published article — `includeInactive=true` resolves \"Ikke live\" articles by slug too. Mirrors sanity-function's `/v1.0/articles/{slugOrId}` but routed through blog-function so my-page-web doesn't need direct sanity-function permissions.",
550
+ "operationId": "GetPublishedArticle",
551
+ "parameters": [
552
+ {
553
+ "name": "slugOrId",
554
+ "in": "path",
555
+ "required": true,
556
+ "schema": {
557
+ "type": "string"
959
558
  }
960
559
  },
961
- "languageOption": {
962
- "$ref": "#/components/schemas/option_string"
963
- },
964
- "language": {
965
- "type": "string"
966
- }
967
- }
968
- },
969
- "sanityComponentBlocksInnerSanityComponentGallery": {
970
- "type": "object",
971
- "properties": {
972
- "sanityType": {
973
- "enum": [
974
- 1
975
- ],
976
- "type": "integer",
977
- "format": "int32",
978
- "default": 1
979
- },
980
- "sanityKey": {
981
- "type": "string"
982
- },
983
- "mediaOption": {
984
- "$ref": "#/components/schemas/option_list`1"
985
- },
986
- "media": {
987
- "type": "array",
988
- "items": {
989
- "$ref": "#/components/schemas/sanityComponentGalleryMediaInner"
560
+ {
561
+ "name": "includeInactive",
562
+ "in": "query",
563
+ "schema": {
564
+ "type": "boolean"
990
565
  }
991
566
  }
992
- }
993
- },
994
- "sanityComponentBlocksInnerSanityComponentLink": {
995
- "type": "object",
996
- "properties": {
997
- "sanityType": {
998
- "enum": [
999
- 1
1000
- ],
1001
- "type": "integer",
1002
- "format": "int32",
1003
- "default": 1
1004
- },
1005
- "link": {
1006
- "type": "string"
1007
- },
1008
- "sanityKey": {
1009
- "type": "string"
1010
- },
1011
- "text": {
1012
- "type": "string"
1013
- }
1014
- }
1015
- },
1016
- "sanityComponentBlocksInnerSanityComponentYoutube": {
1017
- "type": "object",
1018
- "properties": {
1019
- "sanityType": {
1020
- "enum": [
1021
- 1
1022
- ],
1023
- "type": "integer",
1024
- "format": "int32",
1025
- "default": 1
567
+ ],
568
+ "responses": {
569
+ "200": {
570
+ "description": "The article",
571
+ "content": {
572
+ "application/json": {
573
+ "schema": {
574
+ "$ref": "#/components/schemas/getArticlesBySlugOrIdResult"
575
+ }
576
+ }
577
+ },
578
+ "x-ms-summary": "Success"
1026
579
  },
1027
- "sanityKey": {
1028
- "type": "string"
580
+ "401": {
581
+ "description": "No description",
582
+ "x-ms-summary": "Unauthorized"
1029
583
  },
1030
- "url": {
1031
- "type": "string"
584
+ "404": {
585
+ "description": "No description",
586
+ "x-ms-summary": "Not Found"
1032
587
  }
1033
- }
1034
- },
1035
- "sanityComponentBlocksInnerSanityIframe": {
1036
- "type": "object",
1037
- "properties": {
1038
- "sanityType": {
1039
- "enum": [
1040
- 1
1041
- ],
1042
- "type": "integer",
1043
- "format": "int32",
1044
- "default": 1
1045
- },
1046
- "sanityKey": {
1047
- "type": "string"
588
+ },
589
+ "security": [
590
+ {
591
+ "Implicit": [
592
+ "api://bb21a8d0-366b-4a95-aa59-dbbf708322d1/.default"
593
+ ]
1048
594
  },
1049
- "url": {
1050
- "type": "string"
595
+ {
596
+ "ApiKey": []
1051
597
  }
1052
- }
598
+ ]
1053
599
  },
1054
- "sanityComponentGalleryMediaInner": {
1055
- "type": "object",
1056
- "properties": {
1057
- "sanityComponentGalleryMediaInnerSanityImage": {
1058
- "$ref": "#/components/schemas/sanityComponentGalleryMediaInnerSanityImage"
1059
- },
1060
- "sanityComponentGalleryMediaInnerSanityMuxVideo": {
1061
- "$ref": "#/components/schemas/sanityComponentGalleryMediaInnerSanityMuxVideo"
600
+ "patch": {
601
+ "tags": [
602
+ "Articles"
603
+ ],
604
+ "summary": "Update a blog article",
605
+ "description": "Partially updates a blog article. Only the article's authors may call this.",
606
+ "operationId": "PatchArticle",
607
+ "parameters": [
608
+ {
609
+ "name": "slugOrId",
610
+ "in": "path",
611
+ "required": true,
612
+ "schema": {
613
+ "type": "string"
614
+ },
615
+ "x-ms-summary": "The slug or id of the article"
1062
616
  }
1063
- }
1064
- },
1065
- "sanityComponentGalleryMediaInnerSanityImage": {
1066
- "type": "object",
1067
- "properties": {
1068
- "sanityType": {
1069
- "enum": [
1070
- 1
1071
- ],
1072
- "type": "integer",
1073
- "format": "int32",
1074
- "default": 1
1075
- },
1076
- "sanityKey": {
1077
- "type": "string"
1078
- },
1079
- "assetOption": {
1080
- "$ref": "#/components/schemas/option_sanityImageAssetReference"
1081
- },
1082
- "asset": {
1083
- "$ref": "#/components/schemas/sanityImageAssetReference"
1084
- },
1085
- "cropOption": {
1086
- "$ref": "#/components/schemas/option_sanityImageCrop"
617
+ ],
618
+ "requestBody": {
619
+ "description": "Partial article fields to update",
620
+ "content": {
621
+ "application/json": {
622
+ "schema": {
623
+ "$ref": "#/components/schemas/sanityPatchArticle"
624
+ }
625
+ }
1087
626
  },
1088
- "crop": {
1089
- "$ref": "#/components/schemas/sanityImageCrop"
627
+ "required": true
628
+ },
629
+ "responses": {
630
+ "200": {
631
+ "description": "The updated article",
632
+ "content": {
633
+ "application/json": {
634
+ "schema": {
635
+ "$ref": "#/components/schemas/getArticlesBySlugOrIdResult"
636
+ }
637
+ }
638
+ },
639
+ "x-ms-summary": "Success"
1090
640
  },
1091
- "hotspotOption": {
1092
- "$ref": "#/components/schemas/option_sanityImageHotspot"
641
+ "400": {
642
+ "description": "Payload of Object",
643
+ "content": {
644
+ "application/json": {
645
+ "schema": {
646
+ "type": "object"
647
+ }
648
+ }
649
+ },
650
+ "x-ms-summary": "Bad Request"
1093
651
  },
1094
- "hotspot": {
1095
- "$ref": "#/components/schemas/sanityImageHotspot"
652
+ "401": {
653
+ "description": "No description",
654
+ "x-ms-summary": "Unauthorized"
1096
655
  },
1097
- "mediaOption": {
1098
- "$ref": "#/components/schemas/option_object"
656
+ "404": {
657
+ "description": "Article not found",
658
+ "x-ms-summary": "Not Found"
659
+ }
660
+ },
661
+ "security": [
662
+ {
663
+ "Implicit": [
664
+ "api://bb21a8d0-366b-4a95-aa59-dbbf708322d1/.default"
665
+ ]
1099
666
  },
1100
- "media": {
1101
- "type": "object"
667
+ {
668
+ "ApiKey": []
1102
669
  }
1103
- }
670
+ ]
1104
671
  },
1105
- "sanityComponentGalleryMediaInnerSanityMuxVideo": {
1106
- "type": "object",
1107
- "properties": {
1108
- "sanityType": {
1109
- "enum": [
1110
- 1
1111
- ],
1112
- "type": "integer",
1113
- "format": "int32",
1114
- "default": 1
1115
- },
1116
- "sanityKey": {
1117
- "type": "string"
672
+ "delete": {
673
+ "tags": [
674
+ "Articles"
675
+ ],
676
+ "summary": "Delete a blog article",
677
+ "description": "Deletes a blog article. Only the article's authors may call this.",
678
+ "operationId": "DeleteArticle",
679
+ "parameters": [
680
+ {
681
+ "name": "slugOrId",
682
+ "in": "path",
683
+ "required": true,
684
+ "schema": {
685
+ "type": "string"
686
+ },
687
+ "x-ms-summary": "The slug or id of the article"
688
+ }
689
+ ],
690
+ "responses": {
691
+ "200": {
692
+ "description": "The deleted article",
693
+ "content": {
694
+ "application/json": {
695
+ "schema": {
696
+ "$ref": "#/components/schemas/getArticlesBySlugOrIdResult"
697
+ }
698
+ }
699
+ },
700
+ "x-ms-summary": "Success"
1118
701
  },
1119
- "assetOption": {
1120
- "$ref": "#/components/schemas/option_sanityMuxVideoAssetReference"
702
+ "401": {
703
+ "description": "No description",
704
+ "x-ms-summary": "Unauthorized"
1121
705
  },
1122
- "asset": {
1123
- "$ref": "#/components/schemas/sanityMuxVideoAssetReference"
706
+ "404": {
707
+ "description": "Article not found",
708
+ "x-ms-summary": "Not Found"
1124
709
  }
1125
- }
1126
- },
1127
- "sanityComponentMedia": {
1128
- "type": "object",
1129
- "properties": {
1130
- "sanityType": {
1131
- "enum": [
1132
- 1
1133
- ],
1134
- "type": "integer",
1135
- "format": "int32",
1136
- "default": 1
1137
- },
1138
- "type": {
1139
- "enum": [
1140
- 1,
1141
- 2
1142
- ],
1143
- "type": "integer",
1144
- "format": "int32",
1145
- "default": 1
710
+ },
711
+ "security": [
712
+ {
713
+ "Implicit": [
714
+ "api://bb21a8d0-366b-4a95-aa59-dbbf708322d1/.default"
715
+ ]
1146
716
  },
1147
- "imageOption": {
1148
- "$ref": "#/components/schemas/option_sanityComponentMediaImage"
717
+ {
718
+ "ApiKey": []
719
+ }
720
+ ]
721
+ }
722
+ },
723
+ "/v1.0/protected/articles/{slugOrId}/draft-status": {
724
+ "get": {
725
+ "tags": [
726
+ "Articles"
727
+ ],
728
+ "summary": "Get article with draft status",
729
+ "description": "Returns both the published article and any pending draft so authors can compare states. Only authors may call this.",
730
+ "operationId": "GetArticleWithDraft",
731
+ "parameters": [
732
+ {
733
+ "name": "slugOrId",
734
+ "in": "path",
735
+ "required": true,
736
+ "schema": {
737
+ "type": "string"
738
+ },
739
+ "x-ms-summary": "The slug or id of the article"
740
+ }
741
+ ],
742
+ "responses": {
743
+ "200": {
744
+ "description": "Snapshot with published + draft sides",
745
+ "content": {
746
+ "application/json": {
747
+ "schema": {
748
+ "$ref": "#/components/schemas/getArticleWithDraftResult"
749
+ }
750
+ }
751
+ },
752
+ "x-ms-summary": "Success"
1149
753
  },
1150
- "image": {
1151
- "$ref": "#/components/schemas/sanityComponentMediaImage"
754
+ "401": {
755
+ "description": "No description",
756
+ "x-ms-summary": "Unauthorized"
1152
757
  },
1153
- "videoOption": {
1154
- "$ref": "#/components/schemas/option_sanityMuxVideo"
758
+ "404": {
759
+ "description": "No description",
760
+ "x-ms-summary": "Not Found"
761
+ }
762
+ },
763
+ "security": [
764
+ {
765
+ "Implicit": [
766
+ "api://bb21a8d0-366b-4a95-aa59-dbbf708322d1/.default"
767
+ ]
1155
768
  },
1156
- "video": {
1157
- "$ref": "#/components/schemas/sanityMuxVideo"
769
+ {
770
+ "ApiKey": []
1158
771
  }
1159
- }
1160
- },
1161
- "sanityComponentMediaImage": {
772
+ ]
773
+ }
774
+ }
775
+ },
776
+ "components": {
777
+ "schemas": {
778
+ "articleInvitationPreviewResponse": {
1162
779
  "type": "object",
1163
780
  "properties": {
1164
- "sanityType": {
1165
- "enum": [
1166
- 1
1167
- ],
1168
- "type": "integer",
1169
- "format": "int32",
1170
- "default": 1
1171
- },
1172
- "assetOption": {
1173
- "$ref": "#/components/schemas/option_sanityImageAssetReference"
1174
- },
1175
- "asset": {
1176
- "$ref": "#/components/schemas/sanityImageAssetReference"
1177
- },
1178
- "cropOption": {
1179
- "$ref": "#/components/schemas/option_sanityImageCrop"
1180
- },
1181
- "crop": {
1182
- "$ref": "#/components/schemas/sanityImageCrop"
1183
- },
1184
- "hotspotOption": {
1185
- "$ref": "#/components/schemas/option_sanityImageHotspot"
1186
- },
1187
- "hotspot": {
1188
- "$ref": "#/components/schemas/sanityImageHotspot"
1189
- },
1190
- "mediaOption": {
1191
- "$ref": "#/components/schemas/option_object"
1192
- },
1193
- "media": {
1194
- "type": "object"
781
+ "emails": {
782
+ "type": "array",
783
+ "items": {
784
+ "type": "string"
785
+ }
1195
786
  }
1196
787
  }
1197
788
  },
1198
- "sanityCreateArticle": {
789
+ "articleSeriesReference": {
1199
790
  "type": "object",
1200
791
  "properties": {
1201
792
  "sanityType": {
1202
793
  "enum": [
1203
- 1
794
+ "reference"
1204
795
  ],
1205
- "type": "integer",
1206
- "format": "int32",
1207
- "default": 1
1208
- },
1209
- "active": {
1210
- "type": "boolean"
1211
- },
1212
- "metaDescription": {
1213
- "type": "string"
1214
- },
1215
- "publishedAt": {
1216
- "type": "string"
1217
- },
1218
- "slug": {
1219
- "$ref": "#/components/schemas/sanitySlug"
1220
- },
1221
- "title": {
1222
- "type": "string"
1223
- },
1224
- "articleSeriesOption": {
1225
- "$ref": "#/components/schemas/option_sanityArticleSeriesReference"
1226
- },
1227
- "articleSeries": {
1228
- "$ref": "#/components/schemas/sanityArticleSeriesReference"
1229
- },
1230
- "authorsOption": {
1231
- "$ref": "#/components/schemas/option_list`1"
1232
- },
1233
- "authors": {
1234
- "type": "array",
1235
- "items": {
1236
- "$ref": "#/components/schemas/sanityPageEmployeeOrderInner"
1237
- }
1238
- },
1239
- "contentOption": {
1240
- "$ref": "#/components/schemas/option_list`1"
1241
- },
1242
- "content": {
1243
- "type": "array",
1244
- "items": {
1245
- "$ref": "#/components/schemas/sanityComponentBlocksInner"
1246
- }
1247
- },
1248
- "customerOption": {
1249
- "$ref": "#/components/schemas/option_sanityCustomerReference"
1250
- },
1251
- "customer": {
1252
- "$ref": "#/components/schemas/sanityCustomerReference"
1253
- },
1254
- "liveOption": {
1255
- "$ref": "#/components/schemas/option_string"
1256
- },
1257
- "live": {
1258
- "type": "string"
1259
- },
1260
- "mediaOption": {
1261
- "$ref": "#/components/schemas/option_sanityComponentMedia"
1262
- },
1263
- "media": {
1264
- "$ref": "#/components/schemas/sanityComponentMedia"
1265
- },
1266
- "previewOption": {
1267
- "$ref": "#/components/schemas/option_string"
796
+ "type": "string",
797
+ "default": "reference"
1268
798
  },
1269
- "preview": {
799
+ "sanityRef": {
1270
800
  "type": "string"
1271
801
  },
1272
- "subscribersNotifiedOption": {
1273
- "$ref": "#/components/schemas/option_nullable`1"
1274
- },
1275
- "subscribersNotified": {
1276
- "type": "boolean",
1277
- "nullable": true
1278
- },
1279
- "technologiesOption": {
1280
- "$ref": "#/components/schemas/option_list`1"
1281
- },
1282
- "technologies": {
1283
- "type": "array",
1284
- "items": {
1285
- "$ref": "#/components/schemas/sanityCreateEmployeeTechnologiesInner"
1286
- }
1287
- },
1288
- "additionalProperties": {
1289
- "type": "object",
1290
- "additionalProperties": {
1291
- "$ref": "#/components/schemas/jsonElement"
1292
- }
802
+ "sanityWeak": {
803
+ "type": "boolean"
1293
804
  }
1294
805
  }
1295
806
  },
1296
- "sanityCreateEmployeeTechnologiesInner": {
807
+ "componentBlocksInner": {
1297
808
  "type": "object",
1298
809
  "properties": {
1299
- "sanityType": {
1300
- "enum": [
1301
- 1
1302
- ],
1303
- "type": "integer",
1304
- "format": "int32",
1305
- "default": 1
810
+ "actualInstance": {
811
+ "type": "object"
1306
812
  },
1307
- "sanityKey": {
1308
- "type": "string"
813
+ "isNullable": {
814
+ "type": "boolean"
1309
815
  },
1310
- "sanityRef": {
816
+ "schemaType": {
1311
817
  "type": "string"
1312
- },
1313
- "sanityWeakOption": {
1314
- "$ref": "#/components/schemas/option_nullable`1"
1315
- },
1316
- "sanityWeak": {
1317
- "type": "boolean",
1318
- "nullable": true
1319
818
  }
1320
819
  }
1321
820
  },
1322
- "sanityCustomerReference": {
821
+ "componentMedia": {
1323
822
  "type": "object",
1324
823
  "properties": {
1325
824
  "sanityType": {
1326
825
  "enum": [
1327
- 1
826
+ "component.media"
1328
827
  ],
1329
- "type": "integer",
1330
- "format": "int32",
1331
- "default": 1
828
+ "type": "string",
829
+ "default": "component.media"
1332
830
  },
1333
- "sanityRef": {
1334
- "type": "string"
831
+ "type": {
832
+ "enum": [
833
+ "image",
834
+ "video"
835
+ ],
836
+ "type": "string",
837
+ "default": "image"
1335
838
  },
1336
- "sanityWeakOption": {
1337
- "$ref": "#/components/schemas/option_nullable`1"
839
+ "image": {
840
+ "$ref": "#/components/schemas/componentMediaImage"
1338
841
  },
1339
- "sanityWeak": {
1340
- "type": "boolean",
1341
- "nullable": true
842
+ "video": {
843
+ "$ref": "#/components/schemas/muxVideo"
1342
844
  }
1343
845
  }
1344
846
  },
1345
- "sanityEmployeeMediaInner": {
847
+ "componentMediaImage": {
1346
848
  "type": "object",
1347
849
  "properties": {
1348
- "sanityTechnologyWithRelationsProjectsInnerTestimonialsInnerContentInnerSanityGalleryMediaInnerSanityImage": {
1349
- "$ref": "#/components/schemas/sanityTechnologyWithRelationsProjectsInnerTestimonialsInnerContentInnerSanityGalleryMediaInnerSanityImage"
850
+ "sanityType": {
851
+ "enum": [
852
+ "image"
853
+ ],
854
+ "type": "string",
855
+ "default": "image"
856
+ },
857
+ "asset": {
858
+ "$ref": "#/components/schemas/sanityImageAssetReference"
1350
859
  },
1351
- "sanityTechnologyWithRelationsProjectsInnerTestimonialsInnerContentInnerSanityGalleryMediaInnerSanityVideo": {
1352
- "$ref": "#/components/schemas/sanityTechnologyWithRelationsProjectsInnerTestimonialsInnerContentInnerSanityGalleryMediaInnerSanityVideo"
860
+ "crop": {
861
+ "$ref": "#/components/schemas/sanityImageCrop"
862
+ },
863
+ "hotspot": {
864
+ "$ref": "#/components/schemas/sanityImageHotspot"
865
+ },
866
+ "media": {
867
+ "type": "object"
1353
868
  }
1354
869
  }
1355
870
  },
1356
- "sanityGallery": {
871
+ "customerReference": {
1357
872
  "type": "object",
1358
873
  "properties": {
1359
874
  "sanityType": {
1360
875
  "enum": [
1361
- 1
876
+ "reference"
1362
877
  ],
1363
- "type": "integer",
1364
- "format": "int32",
1365
- "default": 1
878
+ "type": "string",
879
+ "default": "reference"
1366
880
  },
1367
- "sanityKey": {
881
+ "sanityRef": {
1368
882
  "type": "string"
1369
883
  },
1370
- "mediaOption": {
1371
- "$ref": "#/components/schemas/option_list`1"
1372
- },
1373
- "media": {
1374
- "type": "array",
1375
- "items": {
1376
- "$ref": "#/components/schemas/sanityEmployeeMediaInner"
1377
- }
884
+ "sanityWeak": {
885
+ "type": "boolean"
1378
886
  }
1379
887
  }
1380
888
  },
1381
- "sanityGetArticlesBySlugOrIdResult": {
889
+ "getArticlesBySlugOrIdResult": {
1382
890
  "type": "object",
1383
891
  "properties": {
1384
892
  "sanityType": {
1385
893
  "enum": [
1386
- 1
894
+ "article"
1387
895
  ],
1388
- "type": "integer",
1389
- "format": "int32",
1390
- "default": 1
896
+ "type": "string",
897
+ "default": "article"
1391
898
  },
1392
899
  "active": {
1393
900
  "type": "boolean"
1394
901
  },
1395
- "metaDescription": {
1396
- "type": "string"
1397
- },
1398
- "publishedAt": {
1399
- "type": "string"
1400
- },
1401
- "sanityCreatedAt": {
1402
- "type": "string"
1403
- },
1404
- "sanityId": {
1405
- "type": "string"
1406
- },
1407
- "sanityRev": {
1408
- "type": "string"
1409
- },
1410
- "sanityUpdatedAt": {
1411
- "type": "string"
1412
- },
1413
- "slug": {
1414
- "$ref": "#/components/schemas/sanitySlug"
1415
- },
1416
- "title": {
1417
- "type": "string"
1418
- },
1419
- "articleSeriesOption": {
1420
- "$ref": "#/components/schemas/option_sanityGetArticlesBySlugOrIdResultArticleSeries"
1421
- },
1422
902
  "articleSeries": {
1423
- "$ref": "#/components/schemas/sanityGetArticlesBySlugOrIdResultArticleSeries"
1424
- },
1425
- "authorsOption": {
1426
- "$ref": "#/components/schemas/option_list`1"
903
+ "$ref": "#/components/schemas/getArticlesBySlugOrIdResultArticleSeries"
1427
904
  },
1428
905
  "authors": {
1429
906
  "type": "array",
@@ -1431,79 +908,74 @@
1431
908
  "$ref": "#/components/schemas/sanityOrderEmployee"
1432
909
  }
1433
910
  },
1434
- "contentOption": {
1435
- "$ref": "#/components/schemas/option_list`1"
1436
- },
1437
911
  "content": {
1438
912
  "type": "array",
1439
913
  "items": {
1440
- "$ref": "#/components/schemas/sanityTechnologyWithRelationsProjectsInnerTestimonialsInnerContentInner"
914
+ "$ref": "#/components/schemas/sanityTechnologyWithRelationsDescriptionInner"
1441
915
  }
1442
916
  },
1443
- "customerOption": {
1444
- "$ref": "#/components/schemas/option_sanityCustomerReference"
1445
- },
1446
917
  "customer": {
1447
- "$ref": "#/components/schemas/sanityCustomerReference"
1448
- },
1449
- "liveOption": {
1450
- "$ref": "#/components/schemas/option_string"
918
+ "$ref": "#/components/schemas/customerReference"
1451
919
  },
1452
920
  "live": {
1453
921
  "type": "string"
1454
922
  },
1455
- "mediaOption": {
1456
- "$ref": "#/components/schemas/option_sanityTechnologyWithRelationsProjectsInnerMedia"
1457
- },
1458
923
  "media": {
1459
- "$ref": "#/components/schemas/sanityTechnologyWithRelationsProjectsInnerMedia"
924
+ "$ref": "#/components/schemas/sanityTechnologyWithRelationsArticlesInnerMedia"
1460
925
  },
1461
- "nextArticleOption": {
1462
- "$ref": "#/components/schemas/option_sanityGetArticlesBySlugOrIdResultNextArticle"
926
+ "metaDescription": {
927
+ "type": "string"
1463
928
  },
1464
929
  "nextArticle": {
1465
- "$ref": "#/components/schemas/sanityGetArticlesBySlugOrIdResultNextArticle"
1466
- },
1467
- "previewOption": {
1468
- "$ref": "#/components/schemas/option_string"
930
+ "$ref": "#/components/schemas/getArticlesBySlugOrIdResultNextArticle"
1469
931
  },
1470
932
  "preview": {
1471
933
  "type": "string"
1472
934
  },
1473
- "previousArticleOption": {
1474
- "$ref": "#/components/schemas/option_sanityGetArticlesBySlugOrIdResultNextArticle"
1475
- },
1476
935
  "previousArticle": {
1477
- "$ref": "#/components/schemas/sanityGetArticlesBySlugOrIdResultNextArticle"
936
+ "$ref": "#/components/schemas/getArticlesBySlugOrIdResultNextArticle"
1478
937
  },
1479
- "subscribersNotifiedOption": {
1480
- "$ref": "#/components/schemas/option_nullable`1"
938
+ "publishedAt": {
939
+ "type": "string"
1481
940
  },
1482
- "subscribersNotified": {
1483
- "type": "boolean",
1484
- "nullable": true
941
+ "sanityCreatedAt": {
942
+ "type": "string"
943
+ },
944
+ "sanityId": {
945
+ "type": "string"
946
+ },
947
+ "sanityRev": {
948
+ "type": "string"
949
+ },
950
+ "sanityUpdatedAt": {
951
+ "type": "string"
952
+ },
953
+ "slug": {
954
+ "$ref": "#/components/schemas/slug"
1485
955
  },
1486
- "technologiesOption": {
1487
- "$ref": "#/components/schemas/option_list`1"
956
+ "subscribersNotified": {
957
+ "type": "boolean"
1488
958
  },
1489
959
  "technologies": {
1490
960
  "type": "array",
1491
961
  "items": {
1492
- "$ref": "#/components/schemas/sanityGetArticlesBySlugOrIdResultTechnologiesInner"
962
+ "$ref": "#/components/schemas/getArticlesBySlugOrIdResultTechnologiesInner"
1493
963
  }
964
+ },
965
+ "title": {
966
+ "type": "string"
1494
967
  }
1495
968
  }
1496
969
  },
1497
- "sanityGetArticlesBySlugOrIdResultArticleSeries": {
970
+ "getArticlesBySlugOrIdResultArticleSeries": {
1498
971
  "type": "object",
1499
972
  "properties": {
1500
973
  "sanityType": {
1501
974
  "enum": [
1502
- 1
975
+ "articleSeries"
1503
976
  ],
1504
- "type": "integer",
1505
- "format": "int32",
1506
- "default": 1
977
+ "type": "string",
978
+ "default": "articleSeries"
1507
979
  },
1508
980
  "sanityCreatedAt": {
1509
981
  "type": "string"
@@ -1518,35 +990,22 @@
1518
990
  "type": "string"
1519
991
  },
1520
992
  "slug": {
1521
- "$ref": "#/components/schemas/sanitySlug"
993
+ "$ref": "#/components/schemas/slug"
1522
994
  },
1523
995
  "title": {
1524
996
  "type": "string"
1525
997
  }
1526
998
  }
1527
999
  },
1528
- "sanityGetArticlesBySlugOrIdResultNextArticle": {
1000
+ "getArticlesBySlugOrIdResultNextArticle": {
1529
1001
  "type": "object",
1530
1002
  "properties": {
1531
1003
  "sanityType": {
1532
1004
  "enum": [
1533
- 1
1005
+ "article"
1534
1006
  ],
1535
- "type": "integer",
1536
- "format": "int32",
1537
- "default": 1
1538
- },
1539
- "sanityId": {
1540
- "type": "string"
1541
- },
1542
- "slug": {
1543
- "$ref": "#/components/schemas/sanitySlug"
1544
- },
1545
- "title": {
1546
- "type": "string"
1547
- },
1548
- "contentOption": {
1549
- "$ref": "#/components/schemas/option_list`1"
1007
+ "type": "string",
1008
+ "default": "article"
1550
1009
  },
1551
1010
  "content": {
1552
1011
  "type": "array",
@@ -1554,33 +1013,38 @@
1554
1013
  "$ref": "#/components/schemas/sanityTechnologyWithRelationsArticlesInnerContentInner"
1555
1014
  }
1556
1015
  },
1557
- "mediaOption": {
1558
- "$ref": "#/components/schemas/option_sanityTechnologyWithRelationsProjectsInnerMedia"
1559
- },
1560
1016
  "media": {
1561
- "$ref": "#/components/schemas/sanityTechnologyWithRelationsProjectsInnerMedia"
1017
+ "$ref": "#/components/schemas/sanityTechnologyWithRelationsArticlesInnerMedia"
1018
+ },
1019
+ "sanityId": {
1020
+ "type": "string"
1021
+ },
1022
+ "slug": {
1023
+ "$ref": "#/components/schemas/slug"
1024
+ },
1025
+ "title": {
1026
+ "type": "string"
1562
1027
  }
1563
1028
  }
1564
1029
  },
1565
- "sanityGetArticlesBySlugOrIdResultTechnologiesInner": {
1030
+ "getArticlesBySlugOrIdResultTechnologiesInner": {
1566
1031
  "type": "object",
1567
1032
  "properties": {
1568
1033
  "sanityType": {
1569
1034
  "enum": [
1570
- 1
1035
+ "technology"
1571
1036
  ],
1572
- "type": "integer",
1573
- "format": "int32",
1574
- "default": 1
1037
+ "type": "string",
1038
+ "default": "technology"
1575
1039
  },
1576
1040
  "description": {
1577
1041
  "type": "array",
1578
1042
  "items": {
1579
- "$ref": "#/components/schemas/sanityComponentBlocksInner"
1043
+ "$ref": "#/components/schemas/componentBlocksInner"
1580
1044
  }
1581
1045
  },
1582
1046
  "parent": {
1583
- "$ref": "#/components/schemas/sanityTechnologyWithRelationsProjectsInnerTechnologiesInnerParent"
1047
+ "$ref": "#/components/schemas/sanityTechnologyWithRelationsEmployeesInnerTagsInner"
1584
1048
  },
1585
1049
  "sanityCreatedAt": {
1586
1050
  "type": "string"
@@ -1595,221 +1059,156 @@
1595
1059
  "type": "string"
1596
1060
  },
1597
1061
  "slug": {
1598
- "$ref": "#/components/schemas/sanitySlug"
1062
+ "$ref": "#/components/schemas/slug"
1599
1063
  },
1600
1064
  "title": {
1601
1065
  "type": "string"
1602
1066
  }
1603
1067
  }
1604
1068
  },
1605
- "sanityGetArticleWithDraftResult": {
1069
+ "getArticlesResultInner": {
1606
1070
  "type": "object",
1607
1071
  "properties": {
1608
- "hasDraft": {
1609
- "type": "boolean"
1072
+ "sanityType": {
1073
+ "enum": [
1074
+ "article"
1075
+ ],
1076
+ "type": "string",
1077
+ "default": "article"
1610
1078
  },
1611
- "hasPublished": {
1079
+ "active": {
1612
1080
  "type": "boolean"
1613
1081
  },
1614
- "draftOption": {
1615
- "$ref": "#/components/schemas/option_sanityGetArticlesBySlugOrIdResult"
1616
- },
1617
- "draft": {
1618
- "$ref": "#/components/schemas/sanityGetArticlesBySlugOrIdResult"
1082
+ "articleSeries": {
1083
+ "$ref": "#/components/schemas/getArticlesBySlugOrIdResultArticleSeries"
1619
1084
  },
1620
- "publishedOption": {
1621
- "$ref": "#/components/schemas/option_sanityGetArticlesBySlugOrIdResult"
1085
+ "authors": {
1086
+ "type": "array",
1087
+ "items": {
1088
+ "$ref": "#/components/schemas/sanityOrderEmployee"
1089
+ }
1622
1090
  },
1623
- "published": {
1624
- "$ref": "#/components/schemas/sanityGetArticlesBySlugOrIdResult"
1091
+ "content": {
1092
+ "type": "array",
1093
+ "items": {
1094
+ "$ref": "#/components/schemas/sanityTechnologyWithRelationsDescriptionInner"
1095
+ }
1625
1096
  },
1626
- "publishedIdOption": {
1627
- "$ref": "#/components/schemas/option_string"
1097
+ "customer": {
1098
+ "$ref": "#/components/schemas/customerReference"
1628
1099
  },
1629
- "publishedId": {
1100
+ "live": {
1630
1101
  "type": "string"
1631
1102
  },
1632
- "additionalProperties": {
1633
- "type": "object",
1634
- "additionalProperties": {
1635
- "$ref": "#/components/schemas/jsonElement"
1636
- }
1637
- }
1638
- }
1639
- },
1640
- "sanityImageAssetReference": {
1641
- "type": "object",
1642
- "properties": {
1643
- "sanityType": {
1644
- "enum": [
1645
- 1
1646
- ],
1647
- "type": "integer",
1648
- "format": "int32",
1649
- "default": 1
1103
+ "media": {
1104
+ "$ref": "#/components/schemas/sanityTechnologyWithRelationsArticlesInnerMedia"
1650
1105
  },
1651
- "sanityRef": {
1106
+ "metaDescription": {
1652
1107
  "type": "string"
1653
1108
  },
1654
- "sanityWeakOption": {
1655
- "$ref": "#/components/schemas/option_nullable`1"
1109
+ "preview": {
1110
+ "type": "string"
1656
1111
  },
1657
- "sanityWeak": {
1658
- "type": "boolean",
1659
- "nullable": true
1660
- }
1661
- }
1662
- },
1663
- "sanityImageCrop": {
1664
- "type": "object",
1665
- "properties": {
1666
- "sanityType": {
1667
- "enum": [
1668
- 1
1669
- ],
1670
- "type": "integer",
1671
- "format": "int32",
1672
- "default": 1
1112
+ "publishedAt": {
1113
+ "type": "string"
1673
1114
  },
1674
- "bottom": {
1675
- "type": "number",
1676
- "format": "double"
1115
+ "sanityCreatedAt": {
1116
+ "type": "string"
1677
1117
  },
1678
- "left": {
1679
- "type": "number",
1680
- "format": "double"
1118
+ "sanityId": {
1119
+ "type": "string"
1681
1120
  },
1682
- "right": {
1683
- "type": "number",
1684
- "format": "double"
1121
+ "sanityRev": {
1122
+ "type": "string"
1685
1123
  },
1686
- "top": {
1687
- "type": "number",
1688
- "format": "double"
1689
- }
1690
- }
1691
- },
1692
- "sanityImageHotspot": {
1693
- "type": "object",
1694
- "properties": {
1695
- "sanityType": {
1696
- "enum": [
1697
- 1
1698
- ],
1699
- "type": "integer",
1700
- "format": "int32",
1701
- "default": 1
1124
+ "sanityUpdatedAt": {
1125
+ "type": "string"
1702
1126
  },
1703
- "height": {
1704
- "type": "number",
1705
- "format": "double"
1127
+ "slug": {
1128
+ "$ref": "#/components/schemas/slug"
1706
1129
  },
1707
- "width": {
1708
- "type": "number",
1709
- "format": "double"
1130
+ "subscribersNotified": {
1131
+ "type": "boolean"
1710
1132
  },
1711
- "x": {
1712
- "type": "number",
1713
- "format": "double"
1133
+ "technologies": {
1134
+ "type": "array",
1135
+ "items": {
1136
+ "$ref": "#/components/schemas/getArticlesBySlugOrIdResultTechnologiesInner"
1137
+ }
1714
1138
  },
1715
- "y": {
1716
- "type": "number",
1717
- "format": "double"
1139
+ "title": {
1140
+ "type": "string"
1718
1141
  }
1719
1142
  }
1720
1143
  },
1721
- "sanityMuxVideo": {
1144
+ "getArticleWithDraftResult": {
1722
1145
  "type": "object",
1723
1146
  "properties": {
1724
- "sanityType": {
1725
- "enum": [
1726
- 1
1727
- ],
1728
- "type": "integer",
1729
- "format": "int32",
1730
- "default": 1
1147
+ "draft": {
1148
+ "$ref": "#/components/schemas/getArticlesBySlugOrIdResult"
1731
1149
  },
1732
- "assetOption": {
1733
- "$ref": "#/components/schemas/option_sanityMuxVideoAssetReference"
1150
+ "hasDraft": {
1151
+ "type": "boolean"
1734
1152
  },
1735
- "asset": {
1736
- "$ref": "#/components/schemas/sanityMuxVideoAssetReference"
1153
+ "hasPublished": {
1154
+ "type": "boolean"
1155
+ },
1156
+ "published": {
1157
+ "$ref": "#/components/schemas/getArticlesBySlugOrIdResult"
1158
+ },
1159
+ "publishedId": {
1160
+ "type": "string"
1161
+ },
1162
+ "additionalProperties": {
1163
+ "type": "object",
1164
+ "additionalProperties": {
1165
+ "type": "object"
1166
+ }
1737
1167
  }
1738
1168
  }
1739
1169
  },
1740
- "sanityMuxVideoAssetReference": {
1170
+ "muxVideo": {
1741
1171
  "type": "object",
1742
1172
  "properties": {
1743
1173
  "sanityType": {
1744
1174
  "enum": [
1745
- 1
1175
+ "mux.video"
1746
1176
  ],
1747
- "type": "integer",
1748
- "format": "int32",
1749
- "default": 1
1750
- },
1751
- "sanityRef": {
1752
- "type": "string"
1177
+ "type": "string",
1178
+ "default": "mux.video"
1753
1179
  },
1754
- "sanityWeakOption": {
1755
- "$ref": "#/components/schemas/option_nullable`1"
1756
- },
1757
- "sanityWeak": {
1758
- "type": "boolean",
1759
- "nullable": true
1180
+ "asset": {
1181
+ "$ref": "#/components/schemas/muxVideoAssetReference"
1760
1182
  }
1761
1183
  }
1762
1184
  },
1763
- "sanityOrderEmployee": {
1185
+ "muxVideoAssetReference": {
1764
1186
  "type": "object",
1765
1187
  "properties": {
1766
1188
  "sanityType": {
1767
1189
  "enum": [
1768
- 1
1190
+ "reference"
1769
1191
  ],
1770
- "type": "integer",
1771
- "format": "int32",
1772
- "default": 1
1773
- },
1774
- "email": {
1775
- "type": "string"
1776
- },
1777
- "image": {
1778
- "$ref": "#/components/schemas/sanityTechnologyWithRelationsProjectsInnerTestimonialsInnerCustomerLogo"
1779
- },
1780
- "name": {
1781
- "type": "string"
1782
- },
1783
- "sanityId": {
1784
- "type": "string"
1785
- },
1786
- "slug": {
1787
- "$ref": "#/components/schemas/sanitySlug"
1788
- },
1789
- "telephone": {
1790
- "type": "string"
1192
+ "type": "string",
1193
+ "default": "reference"
1791
1194
  },
1792
- "tagsOption": {
1793
- "$ref": "#/components/schemas/option_list`1"
1195
+ "sanityRef": {
1196
+ "type": "string"
1794
1197
  },
1795
- "tags": {
1796
- "type": "array",
1797
- "items": {
1798
- "$ref": "#/components/schemas/sanityTechnologyWithRelationsProjectsInnerTechnologiesInnerParent"
1799
- }
1198
+ "sanityWeak": {
1199
+ "type": "boolean"
1800
1200
  }
1801
1201
  }
1802
1202
  },
1803
- "sanityPageEmployeeOrderInner": {
1203
+ "pageEmployeeOrderInner": {
1804
1204
  "type": "object",
1805
1205
  "properties": {
1806
1206
  "sanityType": {
1807
1207
  "enum": [
1808
- 1
1208
+ "reference"
1809
1209
  ],
1810
- "type": "integer",
1811
- "format": "int32",
1812
- "default": 1
1210
+ "type": "string",
1211
+ "default": "reference"
1813
1212
  },
1814
1213
  "sanityKey": {
1815
1214
  "type": "string"
@@ -1817,112 +1216,62 @@
1817
1216
  "sanityRef": {
1818
1217
  "type": "string"
1819
1218
  },
1820
- "sanityWeakOption": {
1821
- "$ref": "#/components/schemas/option_nullable`1"
1822
- },
1823
1219
  "sanityWeak": {
1824
- "type": "boolean",
1825
- "nullable": true
1220
+ "type": "boolean"
1826
1221
  }
1827
1222
  }
1828
1223
  },
1829
- "sanityPatchArticle": {
1224
+ "sanityCreateArticle": {
1830
1225
  "type": "object",
1831
1226
  "properties": {
1832
- "sanityTypeOption": {
1833
- "$ref": "#/components/schemas/option_nullable`1"
1834
- },
1835
1227
  "sanityType": {
1836
1228
  "enum": [
1837
- 1
1229
+ "article"
1838
1230
  ],
1839
- "type": "integer",
1840
- "format": "int32",
1841
- "default": 1,
1842
- "nullable": true
1843
- },
1844
- "activeOption": {
1845
- "$ref": "#/components/schemas/option_nullable`1"
1231
+ "type": "string",
1232
+ "default": "article"
1846
1233
  },
1847
1234
  "active": {
1848
- "type": "boolean",
1849
- "nullable": true
1850
- },
1851
- "articleSeriesOption": {
1852
- "$ref": "#/components/schemas/option_sanityArticleSeriesReference"
1235
+ "type": "boolean"
1853
1236
  },
1854
1237
  "articleSeries": {
1855
- "$ref": "#/components/schemas/sanityArticleSeriesReference"
1856
- },
1857
- "authorsOption": {
1858
- "$ref": "#/components/schemas/option_list`1"
1238
+ "$ref": "#/components/schemas/articleSeriesReference"
1859
1239
  },
1860
1240
  "authors": {
1861
1241
  "type": "array",
1862
1242
  "items": {
1863
- "$ref": "#/components/schemas/sanityPageEmployeeOrderInner"
1243
+ "$ref": "#/components/schemas/pageEmployeeOrderInner"
1864
1244
  }
1865
1245
  },
1866
- "contentOption": {
1867
- "$ref": "#/components/schemas/option_list`1"
1868
- },
1869
1246
  "content": {
1870
1247
  "type": "array",
1871
1248
  "items": {
1872
- "$ref": "#/components/schemas/sanityComponentBlocksInner"
1249
+ "$ref": "#/components/schemas/componentBlocksInner"
1873
1250
  }
1874
1251
  },
1875
- "customerOption": {
1876
- "$ref": "#/components/schemas/option_sanityCustomerReference"
1877
- },
1878
1252
  "customer": {
1879
- "$ref": "#/components/schemas/sanityCustomerReference"
1880
- },
1881
- "liveOption": {
1882
- "$ref": "#/components/schemas/option_string"
1253
+ "$ref": "#/components/schemas/customerReference"
1883
1254
  },
1884
1255
  "live": {
1885
1256
  "type": "string"
1886
1257
  },
1887
- "mediaOption": {
1888
- "$ref": "#/components/schemas/option_sanityComponentMedia"
1889
- },
1890
1258
  "media": {
1891
- "$ref": "#/components/schemas/sanityComponentMedia"
1892
- },
1893
- "metaDescriptionOption": {
1894
- "$ref": "#/components/schemas/option_string"
1259
+ "$ref": "#/components/schemas/componentMedia"
1895
1260
  },
1896
1261
  "metaDescription": {
1897
1262
  "type": "string"
1898
1263
  },
1899
- "previewOption": {
1900
- "$ref": "#/components/schemas/option_string"
1901
- },
1902
1264
  "preview": {
1903
1265
  "type": "string"
1904
1266
  },
1905
- "publishedAtOption": {
1906
- "$ref": "#/components/schemas/option_string"
1907
- },
1908
1267
  "publishedAt": {
1909
1268
  "type": "string"
1910
1269
  },
1911
- "slugOption": {
1912
- "$ref": "#/components/schemas/option_sanitySlug"
1913
- },
1914
1270
  "slug": {
1915
- "$ref": "#/components/schemas/sanitySlug"
1916
- },
1917
- "subscribersNotifiedOption": {
1918
- "$ref": "#/components/schemas/option_nullable`1"
1271
+ "$ref": "#/components/schemas/slug"
1919
1272
  },
1920
1273
  "subscribersNotified": {
1921
- "type": "boolean",
1922
- "nullable": true
1923
- },
1924
- "technologiesOption": {
1925
- "$ref": "#/components/schemas/option_list`1"
1274
+ "type": "boolean"
1926
1275
  },
1927
1276
  "technologies": {
1928
1277
  "type": "array",
@@ -1930,390 +1279,300 @@
1930
1279
  "$ref": "#/components/schemas/sanityCreateEmployeeTechnologiesInner"
1931
1280
  }
1932
1281
  },
1933
- "titleOption": {
1934
- "$ref": "#/components/schemas/option_string"
1935
- },
1936
1282
  "title": {
1937
1283
  "type": "string"
1938
1284
  },
1939
1285
  "additionalProperties": {
1940
1286
  "type": "object",
1941
1287
  "additionalProperties": {
1942
- "$ref": "#/components/schemas/jsonElement"
1288
+ "type": "object"
1943
1289
  }
1944
1290
  }
1945
1291
  }
1946
1292
  },
1947
- "sanitySlug": {
1293
+ "sanityCreateEmployeeTechnologiesInner": {
1948
1294
  "type": "object",
1949
1295
  "properties": {
1950
1296
  "sanityType": {
1951
1297
  "enum": [
1952
- 1
1298
+ "reference"
1953
1299
  ],
1954
- "type": "integer",
1955
- "format": "int32",
1956
- "default": 1
1300
+ "type": "string",
1301
+ "default": "reference"
1957
1302
  },
1958
- "current": {
1303
+ "sanityKey": {
1959
1304
  "type": "string"
1960
1305
  },
1961
- "sourceOption": {
1962
- "$ref": "#/components/schemas/option_string"
1963
- },
1964
- "source": {
1306
+ "sanityRef": {
1965
1307
  "type": "string"
1308
+ },
1309
+ "sanityWeak": {
1310
+ "type": "boolean"
1966
1311
  }
1967
1312
  }
1968
1313
  },
1969
- "sanitySystemsInnerDescriptionInnerChildrenInner": {
1314
+ "sanityImageAssetReference": {
1970
1315
  "type": "object",
1971
1316
  "properties": {
1972
1317
  "sanityType": {
1973
1318
  "enum": [
1974
- 1
1319
+ "reference"
1975
1320
  ],
1976
- "type": "integer",
1977
- "format": "int32",
1978
- "default": 1
1321
+ "type": "string",
1322
+ "default": "reference"
1979
1323
  },
1980
- "sanityKey": {
1324
+ "sanityRef": {
1981
1325
  "type": "string"
1982
1326
  },
1983
- "marksOption": {
1984
- "$ref": "#/components/schemas/option_list`1"
1985
- },
1986
- "marks": {
1987
- "type": "array",
1988
- "items": {
1989
- "type": "string"
1990
- }
1991
- },
1992
- "textOption": {
1993
- "$ref": "#/components/schemas/option_string"
1994
- },
1995
- "text": {
1996
- "type": "string"
1327
+ "sanityWeak": {
1328
+ "type": "boolean"
1997
1329
  }
1998
1330
  }
1999
1331
  },
2000
- "sanitySystemsInnerDescriptionInnerMarkDefsInner": {
1332
+ "sanityImageCrop": {
2001
1333
  "type": "object",
2002
1334
  "properties": {
2003
1335
  "sanityType": {
2004
1336
  "enum": [
2005
- 1
1337
+ "sanity.imageCrop"
2006
1338
  ],
2007
- "type": "integer",
2008
- "format": "int32",
2009
- "default": 1
2010
- },
2011
- "sanityKey": {
2012
- "type": "string"
2013
- },
2014
- "hrefOption": {
2015
- "$ref": "#/components/schemas/option_string"
2016
- },
2017
- "href": {
2018
- "type": "string"
2019
- }
2020
- }
2021
- },
2022
- "sanityTechnologyWithRelationsArticlesInnerContentInner": {
2023
- "type": "object",
2024
- "properties": {
2025
- "sanityComponentBlocksInnerSanityCode": {
2026
- "$ref": "#/components/schemas/sanityComponentBlocksInnerSanityCode"
2027
- },
2028
- "sanityComponentBlocksInnerSanityComponentGallery": {
2029
- "$ref": "#/components/schemas/sanityComponentBlocksInnerSanityComponentGallery"
1339
+ "type": "string",
1340
+ "default": "sanity.imageCrop"
2030
1341
  },
2031
- "sanityComponentBlocksInnerSanityComponentLink": {
2032
- "$ref": "#/components/schemas/sanityComponentBlocksInnerSanityComponentLink"
2033
- },
2034
- "sanityComponentBlocksInnerSanityComponentYoutube": {
2035
- "$ref": "#/components/schemas/sanityComponentBlocksInnerSanityComponentYoutube"
2036
- },
2037
- "sanityComponentBlocksInnerSanityIframe": {
2038
- "$ref": "#/components/schemas/sanityComponentBlocksInnerSanityIframe"
2039
- },
2040
- "sanityComponentGalleryMediaInnerSanityMuxVideo": {
2041
- "$ref": "#/components/schemas/sanityComponentGalleryMediaInnerSanityMuxVideo"
1342
+ "bottom": {
1343
+ "type": "number",
1344
+ "format": "double"
2042
1345
  },
2043
- "sanityTechnologyWithRelationsProjectsInnerTestimonialsInnerContentInnerSanityBlock": {
2044
- "$ref": "#/components/schemas/sanityTechnologyWithRelationsProjectsInnerTestimonialsInnerContentInnerSanityBlock"
1346
+ "left": {
1347
+ "type": "number",
1348
+ "format": "double"
2045
1349
  },
2046
- "sanityComponentGalleryMediaInnerSanityImage": {
2047
- "$ref": "#/components/schemas/sanityComponentGalleryMediaInnerSanityImage"
2048
- }
2049
- }
2050
- },
2051
- "sanityTechnologyWithRelationsProjectsInnerMedia": {
2052
- "type": "object",
2053
- "properties": {
2054
- "sanityTechnologyWithRelationsProjectsInnerMediaSanityImage": {
2055
- "$ref": "#/components/schemas/sanityTechnologyWithRelationsProjectsInnerMediaSanityImage"
1350
+ "right": {
1351
+ "type": "number",
1352
+ "format": "double"
2056
1353
  },
2057
- "sanityTechnologyWithRelationsProjectsInnerMediaSanityVideo": {
2058
- "$ref": "#/components/schemas/sanityTechnologyWithRelationsProjectsInnerMediaSanityVideo"
1354
+ "top": {
1355
+ "type": "number",
1356
+ "format": "double"
2059
1357
  }
2060
1358
  }
2061
1359
  },
2062
- "sanityTechnologyWithRelationsProjectsInnerMediaSanityImage": {
1360
+ "sanityImageHotspot": {
2063
1361
  "type": "object",
2064
1362
  "properties": {
2065
1363
  "sanityType": {
2066
1364
  "enum": [
2067
- 1
1365
+ "sanity.imageHotspot"
2068
1366
  ],
2069
- "type": "integer",
2070
- "format": "int32",
2071
- "default": 1
1367
+ "type": "string",
1368
+ "default": "sanity.imageHotspot"
2072
1369
  },
2073
- "assetOption": {
2074
- "$ref": "#/components/schemas/option_sanityTvCategoryDashboardsInnerBackgroundImageAsset"
1370
+ "height": {
1371
+ "type": "number",
1372
+ "format": "double"
2075
1373
  },
2076
- "asset": {
2077
- "$ref": "#/components/schemas/sanityTvCategoryDashboardsInnerBackgroundImageAsset"
2078
- }
2079
- }
2080
- },
2081
- "sanityTechnologyWithRelationsProjectsInnerMediaSanityVideo": {
2082
- "type": "object",
2083
- "properties": {
2084
- "sanityType": {
2085
- "enum": [
2086
- 1
2087
- ],
2088
- "type": "integer",
2089
- "format": "int32",
2090
- "default": 1
1374
+ "width": {
1375
+ "type": "number",
1376
+ "format": "double"
2091
1377
  },
2092
- "assetOption": {
2093
- "$ref": "#/components/schemas/option_sanityVideoMemoryAsset"
1378
+ "x": {
1379
+ "type": "number",
1380
+ "format": "double"
2094
1381
  },
2095
- "asset": {
2096
- "$ref": "#/components/schemas/sanityVideoMemoryAsset"
1382
+ "y": {
1383
+ "type": "number",
1384
+ "format": "double"
2097
1385
  }
2098
1386
  }
2099
1387
  },
2100
- "sanityTechnologyWithRelationsProjectsInnerTechnologiesInnerParent": {
1388
+ "sanityOrderEmployee": {
2101
1389
  "type": "object",
2102
1390
  "properties": {
2103
1391
  "sanityType": {
2104
1392
  "enum": [
2105
- 1
1393
+ "employee"
2106
1394
  ],
2107
- "type": "integer",
2108
- "format": "int32",
2109
- "default": 1
2110
- },
2111
- "name": {
2112
- "type": "string"
1395
+ "type": "string",
1396
+ "default": "employee"
2113
1397
  },
2114
- "sanityId": {
1398
+ "email": {
2115
1399
  "type": "string"
2116
1400
  },
2117
- "slug": {
2118
- "$ref": "#/components/schemas/sanitySlug"
2119
- }
2120
- }
2121
- },
2122
- "sanityTechnologyWithRelationsProjectsInnerTestimonialsInnerContentInner": {
2123
- "type": "object",
2124
- "properties": {
2125
- "sanityTechnologyWithRelationsProjectsInnerTestimonialsInnerContentInnerSanityBlock": {
2126
- "$ref": "#/components/schemas/sanityTechnologyWithRelationsProjectsInnerTestimonialsInnerContentInnerSanityBlock"
1401
+ "image": {
1402
+ "$ref": "#/components/schemas/sanityTvCategoryDashboardsInnerBackgroundImage"
2127
1403
  },
2128
- "sanityComponentBlocksInnerSanityCode": {
2129
- "$ref": "#/components/schemas/sanityComponentBlocksInnerSanityCode"
1404
+ "isBot": {
1405
+ "type": "boolean",
1406
+ "nullable": true
2130
1407
  },
2131
- "sanityComponentBlocksInnerSanityComponentLink": {
2132
- "$ref": "#/components/schemas/sanityComponentBlocksInnerSanityComponentLink"
1408
+ "isExternal": {
1409
+ "type": "boolean",
1410
+ "nullable": true
2133
1411
  },
2134
- "sanityComponentBlocksInnerSanityComponentYoutube": {
2135
- "$ref": "#/components/schemas/sanityComponentBlocksInnerSanityComponentYoutube"
1412
+ "name": {
1413
+ "type": "string"
2136
1414
  },
2137
- "sanityGallery": {
2138
- "$ref": "#/components/schemas/sanityGallery"
1415
+ "sanityId": {
1416
+ "type": "string"
2139
1417
  },
2140
- "sanityComponentBlocksInnerSanityIframe": {
2141
- "$ref": "#/components/schemas/sanityComponentBlocksInnerSanityIframe"
1418
+ "slug": {
1419
+ "$ref": "#/components/schemas/slug"
2142
1420
  },
2143
- "sanityTechnologyWithRelationsProjectsInnerTestimonialsInnerContentInnerSanityImage": {
2144
- "$ref": "#/components/schemas/sanityTechnologyWithRelationsProjectsInnerTestimonialsInnerContentInnerSanityImage"
1421
+ "tags": {
1422
+ "type": "array",
1423
+ "items": {
1424
+ "$ref": "#/components/schemas/sanityTechnologyWithRelationsEmployeesInnerTagsInner"
1425
+ }
2145
1426
  },
2146
- "sanityTechnologyWithRelationsProjectsInnerTestimonialsInnerContentInnerSanityGalleryMediaInnerSanityVideo": {
2147
- "$ref": "#/components/schemas/sanityTechnologyWithRelationsProjectsInnerTestimonialsInnerContentInnerSanityGalleryMediaInnerSanityVideo"
1427
+ "telephone": {
1428
+ "type": "string"
2148
1429
  }
2149
1430
  }
2150
1431
  },
2151
- "sanityTechnologyWithRelationsProjectsInnerTestimonialsInnerContentInnerSanityBlock": {
1432
+ "sanityPatchArticle": {
2152
1433
  "type": "object",
2153
1434
  "properties": {
2154
1435
  "sanityType": {
2155
1436
  "enum": [
2156
- 1
2157
- ],
2158
- "type": "integer",
2159
- "format": "int32",
2160
- "default": 1
2161
- },
2162
- "listItemOption": {
2163
- "$ref": "#/components/schemas/option_nullable`1"
2164
- },
2165
- "listItem": {
2166
- "enum": [
2167
- 1,
2168
- 2
1437
+ "article"
2169
1438
  ],
2170
- "type": "integer",
2171
- "format": "int32",
2172
- "default": 1,
1439
+ "type": "string",
1440
+ "default": "article",
2173
1441
  "nullable": true
2174
1442
  },
2175
- "styleOption": {
2176
- "$ref": "#/components/schemas/option_nullable`1"
2177
- },
2178
- "style": {
2179
- "enum": [
2180
- 1,
2181
- 2,
2182
- 3
2183
- ],
2184
- "type": "integer",
2185
- "format": "int32",
2186
- "default": 1,
1443
+ "active": {
1444
+ "type": "boolean",
2187
1445
  "nullable": true
2188
1446
  },
2189
- "sanityKey": {
2190
- "type": "string"
1447
+ "articleSeries": {
1448
+ "$ref": "#/components/schemas/articleSeriesReference"
2191
1449
  },
2192
- "childrenOption": {
2193
- "$ref": "#/components/schemas/option_list`1"
1450
+ "authors": {
1451
+ "type": "array",
1452
+ "items": {
1453
+ "$ref": "#/components/schemas/pageEmployeeOrderInner"
1454
+ }
2194
1455
  },
2195
- "children": {
1456
+ "content": {
2196
1457
  "type": "array",
2197
1458
  "items": {
2198
- "$ref": "#/components/schemas/sanitySystemsInnerDescriptionInnerChildrenInner"
1459
+ "$ref": "#/components/schemas/componentBlocksInner"
2199
1460
  }
2200
1461
  },
2201
- "levelOption": {
2202
- "$ref": "#/components/schemas/option_nullable`1"
1462
+ "customer": {
1463
+ "$ref": "#/components/schemas/customerReference"
2203
1464
  },
2204
- "level": {
2205
- "type": "number",
2206
- "format": "double",
2207
- "nullable": true
1465
+ "live": {
1466
+ "type": "string"
1467
+ },
1468
+ "media": {
1469
+ "$ref": "#/components/schemas/componentMedia"
1470
+ },
1471
+ "metaDescription": {
1472
+ "type": "string"
1473
+ },
1474
+ "preview": {
1475
+ "type": "string"
1476
+ },
1477
+ "publishedAt": {
1478
+ "type": "string"
1479
+ },
1480
+ "slug": {
1481
+ "$ref": "#/components/schemas/slug"
2208
1482
  },
2209
- "markDefsOption": {
2210
- "$ref": "#/components/schemas/option_list`1"
1483
+ "subscribersNotified": {
1484
+ "type": "boolean",
1485
+ "nullable": true
2211
1486
  },
2212
- "markDefs": {
1487
+ "technologies": {
2213
1488
  "type": "array",
2214
1489
  "items": {
2215
- "$ref": "#/components/schemas/sanitySystemsInnerDescriptionInnerMarkDefsInner"
1490
+ "$ref": "#/components/schemas/sanityCreateEmployeeTechnologiesInner"
1491
+ }
1492
+ },
1493
+ "title": {
1494
+ "type": "string"
1495
+ },
1496
+ "additionalProperties": {
1497
+ "type": "object",
1498
+ "additionalProperties": {
1499
+ "type": "object"
2216
1500
  }
2217
1501
  }
2218
1502
  }
2219
1503
  },
2220
- "sanityTechnologyWithRelationsProjectsInnerTestimonialsInnerContentInnerSanityGalleryMediaInnerSanityImage": {
1504
+ "sanityTechnologyWithRelationsArticlesInnerContentInner": {
2221
1505
  "type": "object",
2222
1506
  "properties": {
2223
- "sanityType": {
2224
- "enum": [
2225
- 1
2226
- ],
2227
- "type": "integer",
2228
- "format": "int32",
2229
- "default": 1
2230
- },
2231
- "sanityKey": {
2232
- "type": "string"
1507
+ "actualInstance": {
1508
+ "type": "object"
2233
1509
  },
2234
- "assetOption": {
2235
- "$ref": "#/components/schemas/option_sanityTvCategoryDashboardsInnerBackgroundImageAsset"
1510
+ "isNullable": {
1511
+ "type": "boolean"
2236
1512
  },
2237
- "asset": {
2238
- "$ref": "#/components/schemas/sanityTvCategoryDashboardsInnerBackgroundImageAsset"
1513
+ "schemaType": {
1514
+ "type": "string"
2239
1515
  }
2240
1516
  }
2241
1517
  },
2242
- "sanityTechnologyWithRelationsProjectsInnerTestimonialsInnerContentInnerSanityGalleryMediaInnerSanityVideo": {
1518
+ "sanityTechnologyWithRelationsArticlesInnerMedia": {
2243
1519
  "type": "object",
2244
1520
  "properties": {
2245
- "sanityType": {
2246
- "enum": [
2247
- 1
2248
- ],
2249
- "type": "integer",
2250
- "format": "int32",
2251
- "default": 1
1521
+ "actualInstance": {
1522
+ "type": "object"
2252
1523
  },
2253
- "sanityKey": {
1524
+ "isNullable": {
1525
+ "type": "boolean"
1526
+ },
1527
+ "schemaType": {
2254
1528
  "type": "string"
1529
+ }
1530
+ }
1531
+ },
1532
+ "sanityTechnologyWithRelationsDescriptionInner": {
1533
+ "type": "object",
1534
+ "properties": {
1535
+ "actualInstance": {
1536
+ "type": "object"
2255
1537
  },
2256
- "assetOption": {
2257
- "$ref": "#/components/schemas/option_sanityVideoMemoryAsset"
1538
+ "isNullable": {
1539
+ "type": "boolean"
2258
1540
  },
2259
- "asset": {
2260
- "$ref": "#/components/schemas/sanityVideoMemoryAsset"
1541
+ "schemaType": {
1542
+ "type": "string"
2261
1543
  }
2262
1544
  }
2263
1545
  },
2264
- "sanityTechnologyWithRelationsProjectsInnerTestimonialsInnerContentInnerSanityImage": {
1546
+ "sanityTechnologyWithRelationsEmployeesInnerTagsInner": {
2265
1547
  "type": "object",
2266
1548
  "properties": {
2267
1549
  "sanityType": {
2268
1550
  "enum": [
2269
- 1
1551
+ "tag"
2270
1552
  ],
2271
- "type": "integer",
2272
- "format": "int32",
2273
- "default": 1
1553
+ "type": "string",
1554
+ "default": "tag"
2274
1555
  },
2275
- "sanityKey": {
1556
+ "name": {
2276
1557
  "type": "string"
2277
1558
  },
2278
- "assetOption": {
2279
- "$ref": "#/components/schemas/option_sanityTvCategoryDashboardsInnerBackgroundImageAsset"
2280
- },
2281
- "asset": {
2282
- "$ref": "#/components/schemas/sanityTvCategoryDashboardsInnerBackgroundImageAsset"
2283
- },
2284
- "cropOption": {
2285
- "$ref": "#/components/schemas/option_sanityImageCrop"
2286
- },
2287
- "crop": {
2288
- "$ref": "#/components/schemas/sanityImageCrop"
2289
- },
2290
- "hotspotOption": {
2291
- "$ref": "#/components/schemas/option_sanityImageHotspot"
2292
- },
2293
- "hotspot": {
2294
- "$ref": "#/components/schemas/sanityImageHotspot"
2295
- },
2296
- "mediaOption": {
2297
- "$ref": "#/components/schemas/option_object"
1559
+ "sanityId": {
1560
+ "type": "string"
2298
1561
  },
2299
- "media": {
2300
- "type": "object"
1562
+ "slug": {
1563
+ "$ref": "#/components/schemas/slug"
2301
1564
  }
2302
1565
  }
2303
1566
  },
2304
- "sanityTechnologyWithRelationsProjectsInnerTestimonialsInnerCustomerLogo": {
1567
+ "sanityTvCategoryDashboardsInnerBackgroundImage": {
2305
1568
  "type": "object",
2306
1569
  "properties": {
2307
1570
  "sanityType": {
2308
1571
  "enum": [
2309
- 1
1572
+ "image"
2310
1573
  ],
2311
- "type": "integer",
2312
- "format": "int32",
2313
- "default": 1
2314
- },
2315
- "assetOption": {
2316
- "$ref": "#/components/schemas/option_sanityTvCategoryDashboardsInnerBackgroundImageAsset"
1574
+ "type": "string",
1575
+ "default": "image"
2317
1576
  },
2318
1577
  "asset": {
2319
1578
  "$ref": "#/components/schemas/sanityTvCategoryDashboardsInnerBackgroundImageAsset"
@@ -2325,53 +1584,39 @@
2325
1584
  "properties": {
2326
1585
  "sanityType": {
2327
1586
  "enum": [
2328
- 1
1587
+ "sanity.imageAsset"
2329
1588
  ],
2330
- "type": "integer",
2331
- "format": "int32",
2332
- "default": 1
1589
+ "type": "string",
1590
+ "default": "sanity.imageAsset"
2333
1591
  },
2334
1592
  "mimeType": {
2335
1593
  "type": "string"
2336
1594
  },
2337
- "sanityId": {
1595
+ "originalFilename": {
2338
1596
  "type": "string"
2339
1597
  },
2340
- "url": {
1598
+ "sanityId": {
2341
1599
  "type": "string"
2342
1600
  },
2343
- "originalFilenameOption": {
2344
- "$ref": "#/components/schemas/option_string"
2345
- },
2346
- "originalFilename": {
1601
+ "url": {
2347
1602
  "type": "string"
2348
1603
  }
2349
1604
  }
2350
1605
  },
2351
- "sanityVideoMemoryAsset": {
1606
+ "slug": {
2352
1607
  "type": "object",
2353
1608
  "properties": {
2354
1609
  "sanityType": {
2355
1610
  "enum": [
2356
- 1
1611
+ "slug"
2357
1612
  ],
2358
- "type": "integer",
2359
- "format": "int32",
2360
- "default": 1
1613
+ "type": "string",
1614
+ "default": "slug"
2361
1615
  },
2362
- "sanityId": {
2363
- "type": "string"
2364
- },
2365
- "filenameOption": {
2366
- "$ref": "#/components/schemas/option_string"
2367
- },
2368
- "filename": {
1616
+ "current": {
2369
1617
  "type": "string"
2370
1618
  },
2371
- "playbackIdOption": {
2372
- "$ref": "#/components/schemas/option_string"
2373
- },
2374
- "playbackId": {
1619
+ "source": {
2375
1620
  "type": "string"
2376
1621
  }
2377
1622
  }
@@ -2382,14 +1627,19 @@
2382
1627
  "type": "oauth2",
2383
1628
  "flows": {
2384
1629
  "implicit": {
2385
- "authorizationUrl": "https://login.microsoftonline.com/81a4f38d-6712-4b65-868b-c3771f9ba91e/oauth2/v2.0/authorize",
2386
- "tokenUrl": "https://login.microsoftonline.com/81a4f38d-6712-4b65-868b-c3771f9ba91e/oauth2/v2.0/token",
2387
- "refreshUrl": "https://login.microsoftonline.com/81a4f38d-6712-4b65-868b-c3771f9ba91e/oauth2/v2.0/token",
1630
+ "authorizationUrl": "https://login.microsoftonline.com/organizations/oauth2/v2.0/authorize",
1631
+ "tokenUrl": "https://login.microsoftonline.com/organizations/oauth2/v2.0/token",
1632
+ "refreshUrl": "https://login.microsoftonline.com/organizations/oauth2/v2.0/token",
2388
1633
  "scopes": {
2389
- "api://e60092d3-3970-4a7c-a62e-19f17c4bca08/.default": "Default function scope"
1634
+ "api://bb21a8d0-366b-4a95-aa59-dbbf708322d1/.default": "Default function scope"
2390
1635
  }
2391
1636
  }
2392
1637
  }
1638
+ },
1639
+ "ApiKey": {
1640
+ "type": "http",
1641
+ "scheme": "bearer",
1642
+ "bearerFormat": "JWT"
2393
1643
  }
2394
1644
  }
2395
1645
  }