@snokam/mcp-api 0.13.0 → 0.15.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.
@@ -33,7 +33,1354 @@
33
33
  }
34
34
  }
35
35
  }
36
+ },
37
+ "/v1.0/protected/articles": {
38
+ "post": {
39
+ "tags": [
40
+ "Articles"
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",
45
+ "requestBody": {
46
+ "description": "The article to create",
47
+ "content": {
48
+ "application/json": {
49
+ "schema": {
50
+ "$ref": "#/components/schemas/sanityCreateArticle"
51
+ }
52
+ }
53
+ },
54
+ "required": true
55
+ },
56
+ "responses": {
57
+ "200": {
58
+ "description": "The newly created article",
59
+ "content": {
60
+ "application/json": {
61
+ "schema": {
62
+ "$ref": "#/components/schemas/getArticlesBySlugOrIdResult"
63
+ }
64
+ }
65
+ },
66
+ "x-ms-summary": "Success"
67
+ },
68
+ "400": {
69
+ "description": "Payload of Object",
70
+ "content": {
71
+ "application/json": {
72
+ "schema": {
73
+ "type": "object"
74
+ }
75
+ }
76
+ },
77
+ "x-ms-summary": "Bad Request"
78
+ },
79
+ "401": {
80
+ "description": "No description",
81
+ "x-ms-summary": "Unauthorized"
82
+ }
83
+ },
84
+ "security": [
85
+ {
86
+ "Implicit": [
87
+ "api://c375ccd2-e69d-4262-808d-1a197df95d34/.default"
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/getArticlesBySlugOrIdResult"
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
+ },
150
+ "404": {
151
+ "description": "Article not found",
152
+ "x-ms-summary": "Not Found"
153
+ }
154
+ },
155
+ "security": [
156
+ {
157
+ "Implicit": [
158
+ "api://c375ccd2-e69d-4262-808d-1a197df95d34/.default"
159
+ ]
160
+ }
161
+ ]
162
+ },
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/getArticlesBySlugOrIdResult"
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://c375ccd2-e69d-4262-808d-1a197df95d34/.default"
206
+ ]
207
+ }
208
+ ]
209
+ }
210
+ },
211
+ "/v1.0/protected/articles/{slugOrId}/draft-status": {
212
+ "get": {
213
+ "tags": [
214
+ "Articles"
215
+ ],
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
+ ],
230
+ "responses": {
231
+ "200": {
232
+ "description": "Snapshot with published + draft sides",
233
+ "content": {
234
+ "application/json": {
235
+ "schema": {
236
+ "$ref": "#/components/schemas/getArticleWithDraftResult"
237
+ }
238
+ }
239
+ },
240
+ "x-ms-summary": "Success"
241
+ },
242
+ "401": {
243
+ "description": "No description",
244
+ "x-ms-summary": "Unauthorized"
245
+ },
246
+ "404": {
247
+ "description": "No description",
248
+ "x-ms-summary": "Not Found"
249
+ }
250
+ },
251
+ "security": [
252
+ {
253
+ "Implicit": [
254
+ "api://c375ccd2-e69d-4262-808d-1a197df95d34/.default"
255
+ ]
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/getArticlesBySlugOrIdResult"
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
+ },
302
+ "401": {
303
+ "description": "No description",
304
+ "x-ms-summary": "Unauthorized"
305
+ }
306
+ },
307
+ "security": [
308
+ {
309
+ "Implicit": [
310
+ "api://c375ccd2-e69d-4262-808d-1a197df95d34/.default"
311
+ ]
312
+ }
313
+ ]
314
+ }
315
+ },
316
+ "/v1.0/protected/articles/{slugOrId}/draft": {
317
+ "patch": {
318
+ "tags": [
319
+ "Articles"
320
+ ],
321
+ "summary": "Write an edit to the draft",
322
+ "description": "Patches the draft for the given article. Creates the draft from the published copy first if none exists. Only authors may call this.",
323
+ "operationId": "PatchDraft",
324
+ "parameters": [
325
+ {
326
+ "name": "slugOrId",
327
+ "in": "path",
328
+ "required": true,
329
+ "schema": {
330
+ "type": "string"
331
+ },
332
+ "x-ms-summary": "The slug or id of the article"
333
+ }
334
+ ],
335
+ "requestBody": {
336
+ "description": "Fields to merge into the draft",
337
+ "content": {
338
+ "application/json": {
339
+ "schema": {
340
+ "$ref": "#/components/schemas/sanityPatchArticle"
341
+ }
342
+ }
343
+ },
344
+ "required": true
345
+ },
346
+ "responses": {
347
+ "200": {
348
+ "description": "The updated draft",
349
+ "content": {
350
+ "application/json": {
351
+ "schema": {
352
+ "$ref": "#/components/schemas/getArticlesBySlugOrIdResult"
353
+ }
354
+ }
355
+ },
356
+ "x-ms-summary": "Success"
357
+ },
358
+ "400": {
359
+ "description": "Payload of Object",
360
+ "content": {
361
+ "application/json": {
362
+ "schema": {
363
+ "type": "object"
364
+ }
365
+ }
366
+ },
367
+ "x-ms-summary": "Bad Request"
368
+ },
369
+ "401": {
370
+ "description": "No description",
371
+ "x-ms-summary": "Unauthorized"
372
+ },
373
+ "404": {
374
+ "description": "No description",
375
+ "x-ms-summary": "Not Found"
376
+ }
377
+ },
378
+ "security": [
379
+ {
380
+ "Implicit": [
381
+ "api://c375ccd2-e69d-4262-808d-1a197df95d34/.default"
382
+ ]
383
+ }
384
+ ]
385
+ },
386
+ "delete": {
387
+ "tags": [
388
+ "Articles"
389
+ ],
390
+ "summary": "Delete the draft",
391
+ "description": "Removes the draft without touching the published article. Only authors may call this.",
392
+ "operationId": "DiscardDraft",
393
+ "parameters": [
394
+ {
395
+ "name": "slugOrId",
396
+ "in": "path",
397
+ "required": true,
398
+ "schema": {
399
+ "type": "string"
400
+ },
401
+ "x-ms-summary": "The slug or id of the article"
402
+ }
403
+ ],
404
+ "responses": {
405
+ "200": {
406
+ "description": "The discarded draft (pre-delete snapshot)",
407
+ "content": {
408
+ "application/json": {
409
+ "schema": {
410
+ "$ref": "#/components/schemas/getArticlesBySlugOrIdResult"
411
+ }
412
+ }
413
+ },
414
+ "x-ms-summary": "Success"
415
+ },
416
+ "401": {
417
+ "description": "No description",
418
+ "x-ms-summary": "Unauthorized"
419
+ },
420
+ "404": {
421
+ "description": "No draft exists",
422
+ "x-ms-summary": "Not Found"
423
+ }
424
+ },
425
+ "security": [
426
+ {
427
+ "Implicit": [
428
+ "api://c375ccd2-e69d-4262-808d-1a197df95d34/.default"
429
+ ]
430
+ }
431
+ ]
432
+ }
433
+ },
434
+ "/v1.0/protected/articles/{slugOrId}/publish": {
435
+ "post": {
436
+ "tags": [
437
+ "Articles"
438
+ ],
439
+ "summary": "Promote the draft to published",
440
+ "description": "Overwrites the published article with the current draft and removes the draft. Only authors may call this.",
441
+ "operationId": "PublishDraft",
442
+ "parameters": [
443
+ {
444
+ "name": "slugOrId",
445
+ "in": "path",
446
+ "required": true,
447
+ "schema": {
448
+ "type": "string"
449
+ },
450
+ "x-ms-summary": "The slug or id of the article"
451
+ }
452
+ ],
453
+ "responses": {
454
+ "200": {
455
+ "description": "The newly-published article",
456
+ "content": {
457
+ "application/json": {
458
+ "schema": {
459
+ "$ref": "#/components/schemas/getArticlesBySlugOrIdResult"
460
+ }
461
+ }
462
+ },
463
+ "x-ms-summary": "Success"
464
+ },
465
+ "401": {
466
+ "description": "No description",
467
+ "x-ms-summary": "Unauthorized"
468
+ },
469
+ "404": {
470
+ "description": "No draft exists",
471
+ "x-ms-summary": "Not Found"
472
+ }
473
+ },
474
+ "security": [
475
+ {
476
+ "Implicit": [
477
+ "api://c375ccd2-e69d-4262-808d-1a197df95d34/.default"
478
+ ]
479
+ }
480
+ ]
481
+ }
482
+ },
483
+ "/v1.0/protected/{slugOrId}/article-invitation-preview": {
484
+ "get": {
485
+ "tags": [
486
+ "Articles"
487
+ ],
488
+ "summary": "Preview invitation recipients",
489
+ "description": "Returns the list of subscriber emails for the given tag slugs. Does not send any email.",
490
+ "operationId": "GetArticleInvitationPreview",
491
+ "parameters": [
492
+ {
493
+ "name": "slugOrId",
494
+ "in": "path",
495
+ "required": true,
496
+ "schema": {
497
+ "type": "string"
498
+ },
499
+ "x-ms-summary": "The slug or id of the article"
500
+ },
501
+ {
502
+ "name": "tagSlugs",
503
+ "in": "query",
504
+ "required": true,
505
+ "schema": {
506
+ "type": "string"
507
+ },
508
+ "x-ms-summary": "Comma-separated tag slugs to preview subscribers for"
509
+ }
510
+ ],
511
+ "responses": {
512
+ "200": {
513
+ "description": "List of subscriber emails",
514
+ "content": {
515
+ "application/json": {
516
+ "schema": {
517
+ "$ref": "#/components/schemas/articleInvitationPreviewResponse"
518
+ }
519
+ }
520
+ },
521
+ "x-ms-summary": "Success"
522
+ },
523
+ "400": {
524
+ "description": "At least one tag slug is required",
525
+ "x-ms-summary": "Bad Request"
526
+ },
527
+ "401": {
528
+ "description": "No description",
529
+ "x-ms-summary": "Unauthorized"
530
+ }
531
+ },
532
+ "security": [
533
+ {
534
+ "Implicit": [
535
+ "api://c375ccd2-e69d-4262-808d-1a197df95d34/.default"
536
+ ]
537
+ }
538
+ ]
539
+ }
540
+ },
541
+ "/v1.0/protected/{slugOrId}/send-article-invitations": {
542
+ "post": {
543
+ "tags": [
544
+ "Articles"
545
+ ],
546
+ "summary": "Send article invitation emails",
547
+ "description": "Sends invitation emails to subscribers of the given tags and marks invitationSent as true on the article. Only the article author may call this.",
548
+ "operationId": "SendArticleInvitations",
549
+ "parameters": [
550
+ {
551
+ "name": "slugOrId",
552
+ "in": "path",
553
+ "required": true,
554
+ "schema": {
555
+ "type": "string"
556
+ },
557
+ "x-ms-summary": "The slug or id of the article"
558
+ },
559
+ {
560
+ "name": "tagSlugs",
561
+ "in": "query",
562
+ "required": true,
563
+ "schema": {
564
+ "type": "string"
565
+ },
566
+ "x-ms-summary": "Comma-separated tag slugs to send invitations to"
567
+ }
568
+ ],
569
+ "responses": {
570
+ "200": {
571
+ "description": "Invitations sent successfully",
572
+ "x-ms-summary": "Success"
573
+ },
574
+ "400": {
575
+ "description": "Payload of Object",
576
+ "content": {
577
+ "application/json": {
578
+ "schema": {
579
+ "type": "object"
580
+ }
581
+ }
582
+ },
583
+ "x-ms-summary": "Bad Request"
584
+ },
585
+ "401": {
586
+ "description": "No description",
587
+ "x-ms-summary": "Unauthorized"
588
+ },
589
+ "404": {
590
+ "description": "Article not found",
591
+ "x-ms-summary": "Not Found"
592
+ }
593
+ },
594
+ "security": [
595
+ {
596
+ "Implicit": [
597
+ "api://c375ccd2-e69d-4262-808d-1a197df95d34/.default"
598
+ ]
599
+ }
600
+ ]
601
+ }
36
602
  }
37
603
  },
38
- "components": {}
604
+ "components": {
605
+ "schemas": {
606
+ "articleInvitationPreviewResponse": {
607
+ "type": "object",
608
+ "properties": {
609
+ "emails": {
610
+ "type": "array",
611
+ "items": {
612
+ "type": "string"
613
+ }
614
+ }
615
+ }
616
+ },
617
+ "articleSeriesReference": {
618
+ "type": "object",
619
+ "properties": {
620
+ "sanityType": {
621
+ "enum": [
622
+ "reference"
623
+ ],
624
+ "type": "string",
625
+ "default": "reference"
626
+ },
627
+ "sanityRef": {
628
+ "type": "string"
629
+ },
630
+ "sanityWeak": {
631
+ "type": "boolean"
632
+ }
633
+ }
634
+ },
635
+ "componentBlocksInner": {
636
+ "type": "object",
637
+ "properties": {
638
+ "actualInstance": {
639
+ "type": "object"
640
+ },
641
+ "isNullable": {
642
+ "type": "boolean"
643
+ },
644
+ "schemaType": {
645
+ "type": "string"
646
+ }
647
+ }
648
+ },
649
+ "componentMedia": {
650
+ "type": "object",
651
+ "properties": {
652
+ "sanityType": {
653
+ "enum": [
654
+ "component.media"
655
+ ],
656
+ "type": "string",
657
+ "default": "component.media"
658
+ },
659
+ "type": {
660
+ "enum": [
661
+ "image",
662
+ "video"
663
+ ],
664
+ "type": "string",
665
+ "default": "image"
666
+ },
667
+ "image": {
668
+ "$ref": "#/components/schemas/componentMediaImage"
669
+ },
670
+ "video": {
671
+ "$ref": "#/components/schemas/muxVideo"
672
+ }
673
+ }
674
+ },
675
+ "componentMediaImage": {
676
+ "type": "object",
677
+ "properties": {
678
+ "sanityType": {
679
+ "enum": [
680
+ "image"
681
+ ],
682
+ "type": "string",
683
+ "default": "image"
684
+ },
685
+ "asset": {
686
+ "$ref": "#/components/schemas/sanityImageAssetReference"
687
+ },
688
+ "crop": {
689
+ "$ref": "#/components/schemas/sanityImageCrop"
690
+ },
691
+ "hotspot": {
692
+ "$ref": "#/components/schemas/sanityImageHotspot"
693
+ },
694
+ "media": {
695
+ "type": "object"
696
+ }
697
+ }
698
+ },
699
+ "customerReference": {
700
+ "type": "object",
701
+ "properties": {
702
+ "sanityType": {
703
+ "enum": [
704
+ "reference"
705
+ ],
706
+ "type": "string",
707
+ "default": "reference"
708
+ },
709
+ "sanityRef": {
710
+ "type": "string"
711
+ },
712
+ "sanityWeak": {
713
+ "type": "boolean"
714
+ }
715
+ }
716
+ },
717
+ "getArticlesBySlugOrIdResult": {
718
+ "type": "object",
719
+ "properties": {
720
+ "sanityType": {
721
+ "enum": [
722
+ "article"
723
+ ],
724
+ "type": "string",
725
+ "default": "article"
726
+ },
727
+ "active": {
728
+ "type": "boolean"
729
+ },
730
+ "articleSeries": {
731
+ "$ref": "#/components/schemas/getArticlesBySlugOrIdResultArticleSeries"
732
+ },
733
+ "authors": {
734
+ "type": "array",
735
+ "items": {
736
+ "$ref": "#/components/schemas/sanityOrderEmployee"
737
+ }
738
+ },
739
+ "content": {
740
+ "type": "array",
741
+ "items": {
742
+ "$ref": "#/components/schemas/sanityTechnologyWithRelationsProjectsInnerTestimonialsInnerContentInner"
743
+ }
744
+ },
745
+ "customer": {
746
+ "$ref": "#/components/schemas/customerReference"
747
+ },
748
+ "live": {
749
+ "type": "string"
750
+ },
751
+ "media": {
752
+ "$ref": "#/components/schemas/sanityTechnologyWithRelationsArticlesInnerMedia"
753
+ },
754
+ "metaDescription": {
755
+ "type": "string"
756
+ },
757
+ "nextArticle": {
758
+ "$ref": "#/components/schemas/getArticlesBySlugOrIdResultNextArticle"
759
+ },
760
+ "preview": {
761
+ "type": "string"
762
+ },
763
+ "previousArticle": {
764
+ "$ref": "#/components/schemas/getArticlesBySlugOrIdResultNextArticle"
765
+ },
766
+ "publishedAt": {
767
+ "type": "string"
768
+ },
769
+ "sanityCreatedAt": {
770
+ "type": "string"
771
+ },
772
+ "sanityId": {
773
+ "type": "string"
774
+ },
775
+ "sanityRev": {
776
+ "type": "string"
777
+ },
778
+ "sanityUpdatedAt": {
779
+ "type": "string"
780
+ },
781
+ "slug": {
782
+ "$ref": "#/components/schemas/slug"
783
+ },
784
+ "subscribersNotified": {
785
+ "type": "boolean"
786
+ },
787
+ "technologies": {
788
+ "type": "array",
789
+ "items": {
790
+ "$ref": "#/components/schemas/getArticlesBySlugOrIdResultTechnologiesInner"
791
+ }
792
+ },
793
+ "title": {
794
+ "type": "string"
795
+ }
796
+ }
797
+ },
798
+ "getArticlesBySlugOrIdResultArticleSeries": {
799
+ "type": "object",
800
+ "properties": {
801
+ "sanityType": {
802
+ "enum": [
803
+ "articleSeries"
804
+ ],
805
+ "type": "string",
806
+ "default": "articleSeries"
807
+ },
808
+ "sanityCreatedAt": {
809
+ "type": "string"
810
+ },
811
+ "sanityId": {
812
+ "type": "string"
813
+ },
814
+ "sanityRev": {
815
+ "type": "string"
816
+ },
817
+ "sanityUpdatedAt": {
818
+ "type": "string"
819
+ },
820
+ "slug": {
821
+ "$ref": "#/components/schemas/slug"
822
+ },
823
+ "title": {
824
+ "type": "string"
825
+ }
826
+ }
827
+ },
828
+ "getArticlesBySlugOrIdResultNextArticle": {
829
+ "type": "object",
830
+ "properties": {
831
+ "sanityType": {
832
+ "enum": [
833
+ "article"
834
+ ],
835
+ "type": "string",
836
+ "default": "article"
837
+ },
838
+ "content": {
839
+ "type": "array",
840
+ "items": {
841
+ "$ref": "#/components/schemas/sanityTechnologyWithRelationsArticlesInnerContentInner"
842
+ }
843
+ },
844
+ "media": {
845
+ "$ref": "#/components/schemas/sanityTechnologyWithRelationsArticlesInnerMedia"
846
+ },
847
+ "sanityId": {
848
+ "type": "string"
849
+ },
850
+ "slug": {
851
+ "$ref": "#/components/schemas/slug"
852
+ },
853
+ "title": {
854
+ "type": "string"
855
+ }
856
+ }
857
+ },
858
+ "getArticlesBySlugOrIdResultTechnologiesInner": {
859
+ "type": "object",
860
+ "properties": {
861
+ "sanityType": {
862
+ "enum": [
863
+ "technology"
864
+ ],
865
+ "type": "string",
866
+ "default": "technology"
867
+ },
868
+ "description": {
869
+ "type": "array",
870
+ "items": {
871
+ "$ref": "#/components/schemas/componentBlocksInner"
872
+ }
873
+ },
874
+ "parent": {
875
+ "$ref": "#/components/schemas/sanityTechnologyWithRelationsProjectsInnerTechnologiesInnerParent"
876
+ },
877
+ "sanityCreatedAt": {
878
+ "type": "string"
879
+ },
880
+ "sanityId": {
881
+ "type": "string"
882
+ },
883
+ "sanityRev": {
884
+ "type": "string"
885
+ },
886
+ "sanityUpdatedAt": {
887
+ "type": "string"
888
+ },
889
+ "slug": {
890
+ "$ref": "#/components/schemas/slug"
891
+ },
892
+ "title": {
893
+ "type": "string"
894
+ }
895
+ }
896
+ },
897
+ "getArticleWithDraftResult": {
898
+ "type": "object",
899
+ "properties": {
900
+ "draft": {
901
+ "$ref": "#/components/schemas/getArticlesBySlugOrIdResult"
902
+ },
903
+ "hasDraft": {
904
+ "type": "boolean"
905
+ },
906
+ "hasPublished": {
907
+ "type": "boolean"
908
+ },
909
+ "published": {
910
+ "$ref": "#/components/schemas/getArticlesBySlugOrIdResult"
911
+ },
912
+ "publishedId": {
913
+ "type": "string"
914
+ },
915
+ "additionalProperties": {
916
+ "type": "object",
917
+ "additionalProperties": {
918
+ "type": "object"
919
+ }
920
+ }
921
+ }
922
+ },
923
+ "muxVideo": {
924
+ "type": "object",
925
+ "properties": {
926
+ "sanityType": {
927
+ "enum": [
928
+ "mux.video"
929
+ ],
930
+ "type": "string",
931
+ "default": "mux.video"
932
+ },
933
+ "asset": {
934
+ "$ref": "#/components/schemas/muxVideoAssetReference"
935
+ }
936
+ }
937
+ },
938
+ "muxVideoAssetReference": {
939
+ "type": "object",
940
+ "properties": {
941
+ "sanityType": {
942
+ "enum": [
943
+ "reference"
944
+ ],
945
+ "type": "string",
946
+ "default": "reference"
947
+ },
948
+ "sanityRef": {
949
+ "type": "string"
950
+ },
951
+ "sanityWeak": {
952
+ "type": "boolean"
953
+ }
954
+ }
955
+ },
956
+ "pageEmployeeOrderInner": {
957
+ "type": "object",
958
+ "properties": {
959
+ "sanityType": {
960
+ "enum": [
961
+ "reference"
962
+ ],
963
+ "type": "string",
964
+ "default": "reference"
965
+ },
966
+ "sanityKey": {
967
+ "type": "string"
968
+ },
969
+ "sanityRef": {
970
+ "type": "string"
971
+ },
972
+ "sanityWeak": {
973
+ "type": "boolean"
974
+ }
975
+ }
976
+ },
977
+ "sanityCreateArticle": {
978
+ "type": "object",
979
+ "properties": {
980
+ "sanityType": {
981
+ "enum": [
982
+ "article"
983
+ ],
984
+ "type": "string",
985
+ "default": "article"
986
+ },
987
+ "active": {
988
+ "type": "boolean"
989
+ },
990
+ "articleSeries": {
991
+ "$ref": "#/components/schemas/articleSeriesReference"
992
+ },
993
+ "authors": {
994
+ "type": "array",
995
+ "items": {
996
+ "$ref": "#/components/schemas/pageEmployeeOrderInner"
997
+ }
998
+ },
999
+ "content": {
1000
+ "type": "array",
1001
+ "items": {
1002
+ "$ref": "#/components/schemas/componentBlocksInner"
1003
+ }
1004
+ },
1005
+ "customer": {
1006
+ "$ref": "#/components/schemas/customerReference"
1007
+ },
1008
+ "live": {
1009
+ "type": "string"
1010
+ },
1011
+ "media": {
1012
+ "$ref": "#/components/schemas/componentMedia"
1013
+ },
1014
+ "metaDescription": {
1015
+ "type": "string"
1016
+ },
1017
+ "preview": {
1018
+ "type": "string"
1019
+ },
1020
+ "publishedAt": {
1021
+ "type": "string"
1022
+ },
1023
+ "slug": {
1024
+ "$ref": "#/components/schemas/slug"
1025
+ },
1026
+ "subscribersNotified": {
1027
+ "type": "boolean"
1028
+ },
1029
+ "technologies": {
1030
+ "type": "array",
1031
+ "items": {
1032
+ "$ref": "#/components/schemas/sanityCreateEmployeeTechnologiesInner"
1033
+ }
1034
+ },
1035
+ "title": {
1036
+ "type": "string"
1037
+ },
1038
+ "additionalProperties": {
1039
+ "type": "object",
1040
+ "additionalProperties": {
1041
+ "type": "object"
1042
+ }
1043
+ }
1044
+ }
1045
+ },
1046
+ "sanityCreateEmployeeTechnologiesInner": {
1047
+ "type": "object",
1048
+ "properties": {
1049
+ "sanityType": {
1050
+ "enum": [
1051
+ "reference"
1052
+ ],
1053
+ "type": "string",
1054
+ "default": "reference"
1055
+ },
1056
+ "sanityKey": {
1057
+ "type": "string"
1058
+ },
1059
+ "sanityRef": {
1060
+ "type": "string"
1061
+ },
1062
+ "sanityWeak": {
1063
+ "type": "boolean"
1064
+ }
1065
+ }
1066
+ },
1067
+ "sanityImageAssetReference": {
1068
+ "type": "object",
1069
+ "properties": {
1070
+ "sanityType": {
1071
+ "enum": [
1072
+ "reference"
1073
+ ],
1074
+ "type": "string",
1075
+ "default": "reference"
1076
+ },
1077
+ "sanityRef": {
1078
+ "type": "string"
1079
+ },
1080
+ "sanityWeak": {
1081
+ "type": "boolean"
1082
+ }
1083
+ }
1084
+ },
1085
+ "sanityImageCrop": {
1086
+ "type": "object",
1087
+ "properties": {
1088
+ "sanityType": {
1089
+ "enum": [
1090
+ "sanity.imageCrop"
1091
+ ],
1092
+ "type": "string",
1093
+ "default": "sanity.imageCrop"
1094
+ },
1095
+ "bottom": {
1096
+ "type": "number",
1097
+ "format": "double"
1098
+ },
1099
+ "left": {
1100
+ "type": "number",
1101
+ "format": "double"
1102
+ },
1103
+ "right": {
1104
+ "type": "number",
1105
+ "format": "double"
1106
+ },
1107
+ "top": {
1108
+ "type": "number",
1109
+ "format": "double"
1110
+ }
1111
+ }
1112
+ },
1113
+ "sanityImageHotspot": {
1114
+ "type": "object",
1115
+ "properties": {
1116
+ "sanityType": {
1117
+ "enum": [
1118
+ "sanity.imageHotspot"
1119
+ ],
1120
+ "type": "string",
1121
+ "default": "sanity.imageHotspot"
1122
+ },
1123
+ "height": {
1124
+ "type": "number",
1125
+ "format": "double"
1126
+ },
1127
+ "width": {
1128
+ "type": "number",
1129
+ "format": "double"
1130
+ },
1131
+ "x": {
1132
+ "type": "number",
1133
+ "format": "double"
1134
+ },
1135
+ "y": {
1136
+ "type": "number",
1137
+ "format": "double"
1138
+ }
1139
+ }
1140
+ },
1141
+ "sanityOrderEmployee": {
1142
+ "type": "object",
1143
+ "properties": {
1144
+ "sanityType": {
1145
+ "enum": [
1146
+ "employee"
1147
+ ],
1148
+ "type": "string",
1149
+ "default": "employee"
1150
+ },
1151
+ "email": {
1152
+ "type": "string"
1153
+ },
1154
+ "image": {
1155
+ "$ref": "#/components/schemas/sanityTechnologyWithRelationsProjectsInnerTestimonialsInnerCustomerLogo"
1156
+ },
1157
+ "name": {
1158
+ "type": "string"
1159
+ },
1160
+ "sanityId": {
1161
+ "type": "string"
1162
+ },
1163
+ "slug": {
1164
+ "$ref": "#/components/schemas/slug"
1165
+ },
1166
+ "tags": {
1167
+ "type": "array",
1168
+ "items": {
1169
+ "$ref": "#/components/schemas/sanityTechnologyWithRelationsProjectsInnerTechnologiesInnerParent"
1170
+ }
1171
+ },
1172
+ "telephone": {
1173
+ "type": "string"
1174
+ }
1175
+ }
1176
+ },
1177
+ "sanityPatchArticle": {
1178
+ "type": "object",
1179
+ "properties": {
1180
+ "sanityType": {
1181
+ "enum": [
1182
+ "article"
1183
+ ],
1184
+ "type": "string",
1185
+ "default": "article",
1186
+ "nullable": true
1187
+ },
1188
+ "active": {
1189
+ "type": "boolean",
1190
+ "nullable": true
1191
+ },
1192
+ "articleSeries": {
1193
+ "$ref": "#/components/schemas/articleSeriesReference"
1194
+ },
1195
+ "authors": {
1196
+ "type": "array",
1197
+ "items": {
1198
+ "$ref": "#/components/schemas/pageEmployeeOrderInner"
1199
+ }
1200
+ },
1201
+ "content": {
1202
+ "type": "array",
1203
+ "items": {
1204
+ "$ref": "#/components/schemas/componentBlocksInner"
1205
+ }
1206
+ },
1207
+ "customer": {
1208
+ "$ref": "#/components/schemas/customerReference"
1209
+ },
1210
+ "live": {
1211
+ "type": "string"
1212
+ },
1213
+ "media": {
1214
+ "$ref": "#/components/schemas/componentMedia"
1215
+ },
1216
+ "metaDescription": {
1217
+ "type": "string"
1218
+ },
1219
+ "preview": {
1220
+ "type": "string"
1221
+ },
1222
+ "publishedAt": {
1223
+ "type": "string"
1224
+ },
1225
+ "slug": {
1226
+ "$ref": "#/components/schemas/slug"
1227
+ },
1228
+ "subscribersNotified": {
1229
+ "type": "boolean",
1230
+ "nullable": true
1231
+ },
1232
+ "technologies": {
1233
+ "type": "array",
1234
+ "items": {
1235
+ "$ref": "#/components/schemas/sanityCreateEmployeeTechnologiesInner"
1236
+ }
1237
+ },
1238
+ "title": {
1239
+ "type": "string"
1240
+ },
1241
+ "additionalProperties": {
1242
+ "type": "object",
1243
+ "additionalProperties": {
1244
+ "type": "object"
1245
+ }
1246
+ }
1247
+ }
1248
+ },
1249
+ "sanityTechnologyWithRelationsArticlesInnerContentInner": {
1250
+ "type": "object",
1251
+ "properties": {
1252
+ "actualInstance": {
1253
+ "type": "object"
1254
+ },
1255
+ "isNullable": {
1256
+ "type": "boolean"
1257
+ },
1258
+ "schemaType": {
1259
+ "type": "string"
1260
+ }
1261
+ }
1262
+ },
1263
+ "sanityTechnologyWithRelationsArticlesInnerMedia": {
1264
+ "type": "object",
1265
+ "properties": {
1266
+ "actualInstance": {
1267
+ "type": "object"
1268
+ },
1269
+ "isNullable": {
1270
+ "type": "boolean"
1271
+ },
1272
+ "schemaType": {
1273
+ "type": "string"
1274
+ }
1275
+ }
1276
+ },
1277
+ "sanityTechnologyWithRelationsProjectsInnerTechnologiesInnerParent": {
1278
+ "type": "object",
1279
+ "properties": {
1280
+ "sanityType": {
1281
+ "enum": [
1282
+ "tag"
1283
+ ],
1284
+ "type": "string",
1285
+ "default": "tag"
1286
+ },
1287
+ "name": {
1288
+ "type": "string"
1289
+ },
1290
+ "sanityId": {
1291
+ "type": "string"
1292
+ },
1293
+ "slug": {
1294
+ "$ref": "#/components/schemas/slug"
1295
+ }
1296
+ }
1297
+ },
1298
+ "sanityTechnologyWithRelationsProjectsInnerTestimonialsInnerContentInner": {
1299
+ "type": "object",
1300
+ "properties": {
1301
+ "actualInstance": {
1302
+ "type": "object"
1303
+ },
1304
+ "isNullable": {
1305
+ "type": "boolean"
1306
+ },
1307
+ "schemaType": {
1308
+ "type": "string"
1309
+ }
1310
+ }
1311
+ },
1312
+ "sanityTechnologyWithRelationsProjectsInnerTestimonialsInnerCustomerLogo": {
1313
+ "type": "object",
1314
+ "properties": {
1315
+ "sanityType": {
1316
+ "enum": [
1317
+ "image"
1318
+ ],
1319
+ "type": "string",
1320
+ "default": "image"
1321
+ },
1322
+ "asset": {
1323
+ "$ref": "#/components/schemas/sanityTvCategoryDashboardsInnerBackgroundImageAsset"
1324
+ }
1325
+ }
1326
+ },
1327
+ "sanityTvCategoryDashboardsInnerBackgroundImageAsset": {
1328
+ "type": "object",
1329
+ "properties": {
1330
+ "sanityType": {
1331
+ "enum": [
1332
+ "sanity.imageAsset"
1333
+ ],
1334
+ "type": "string",
1335
+ "default": "sanity.imageAsset"
1336
+ },
1337
+ "mimeType": {
1338
+ "type": "string"
1339
+ },
1340
+ "originalFilename": {
1341
+ "type": "string"
1342
+ },
1343
+ "sanityId": {
1344
+ "type": "string"
1345
+ },
1346
+ "url": {
1347
+ "type": "string"
1348
+ }
1349
+ }
1350
+ },
1351
+ "slug": {
1352
+ "type": "object",
1353
+ "properties": {
1354
+ "sanityType": {
1355
+ "enum": [
1356
+ "slug"
1357
+ ],
1358
+ "type": "string",
1359
+ "default": "slug"
1360
+ },
1361
+ "current": {
1362
+ "type": "string"
1363
+ },
1364
+ "source": {
1365
+ "type": "string"
1366
+ }
1367
+ }
1368
+ }
1369
+ },
1370
+ "securitySchemes": {
1371
+ "Implicit": {
1372
+ "type": "oauth2",
1373
+ "flows": {
1374
+ "implicit": {
1375
+ "authorizationUrl": "https://login.microsoftonline.com/a8533784-aa3c-403b-a61a-1533ecc6e3ed/oauth2/v2.0/authorize",
1376
+ "tokenUrl": "https://login.microsoftonline.com/a8533784-aa3c-403b-a61a-1533ecc6e3ed/oauth2/v2.0/token",
1377
+ "refreshUrl": "https://login.microsoftonline.com/a8533784-aa3c-403b-a61a-1533ecc6e3ed/oauth2/v2.0/token",
1378
+ "scopes": {
1379
+ "api://c375ccd2-e69d-4262-808d-1a197df95d34/.default": "Default function scope"
1380
+ }
1381
+ }
1382
+ }
1383
+ }
1384
+ }
1385
+ }
39
1386
  }