@snokam/mcp-api 2.61.0 → 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 +2759 -2107
  19. package/specs/production/blog.json +783 -1504
  20. package/specs/production/broker.json +52 -24
  21. package/specs/production/chatgpt.json +285 -35
  22. package/specs/production/employees.json +2225 -1267
  23. package/specs/production/events.json +475 -755
  24. package/specs/production/notifications.json +329 -15
  25. package/specs/production/office.json +818 -836
  26. package/specs/production/recruitment.json +1889 -1116
  27. package/specs/production/sales.json +2392 -853
  28. package/specs/production/sanity.json +26027 -15014
  29. package/specs/production/sync.json +116 -20
  30. package/specs/production/webshop.json +37 -17
  31. package/specs/test/accounting.json +2869 -2159
  32. package/specs/test/blog.json +774 -1511
  33. package/specs/test/broker.json +54 -25
  34. package/specs/test/chatgpt.json +561 -198
  35. package/specs/test/employees.json +2490 -1479
  36. package/specs/test/events.json +481 -773
  37. package/specs/test/notifications.json +329 -15
  38. package/specs/test/office.json +818 -836
  39. package/specs/test/recruitment.json +1894 -1121
  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,7 +55,7 @@
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": {
@@ -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/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
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/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://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/getArticleWithDraftResult"
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/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
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
  }
@@ -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
  },
@@ -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
  }
@@ -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,944 +424,638 @@
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
- "articleSeriesReference": {
618
- "type": "object",
619
- "properties": {
620
- "sanityType": {
621
- "enum": [
622
- 1
623
- ],
624
- "type": "integer",
625
- "format": "int32",
626
- "default": 1
627
- },
628
- "sanityRef": {
629
- "type": "string"
630
- },
631
- "sanityWeakOption": {
632
- "$ref": "#/components/schemas/option_nullable`1"
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"
633
468
  },
634
- "sanityWeak": {
635
- "type": "boolean",
636
- "nullable": true
469
+ "401": {
470
+ "description": "No description",
471
+ "x-ms-summary": "Unauthorized"
637
472
  }
638
- }
639
- },
640
- "componentBlocksInner": {
641
- "type": "object",
642
- "properties": {
643
- "componentBlocksInnerOneOf": {
644
- "$ref": "#/components/schemas/componentBlocksInnerOneOf"
645
- },
646
- "componentBlocksInnerOneOf1": {
647
- "$ref": "#/components/schemas/componentBlocksInnerOneOf1"
648
- },
649
- "componentGalleryMediaInnerOneOf": {
650
- "$ref": "#/components/schemas/componentGalleryMediaInnerOneOf"
651
- },
652
- "componentGalleryMediaInnerOneOf1": {
653
- "$ref": "#/components/schemas/componentGalleryMediaInnerOneOf1"
654
- },
655
- "componentBlocksInnerOneOf2": {
656
- "$ref": "#/components/schemas/componentBlocksInnerOneOf2"
657
- },
658
- "componentBlocksInnerOneOf3": {
659
- "$ref": "#/components/schemas/componentBlocksInnerOneOf3"
660
- },
661
- "componentBlocksInnerOneOf4": {
662
- "$ref": "#/components/schemas/componentBlocksInnerOneOf4"
473
+ },
474
+ "security": [
475
+ {
476
+ "Implicit": [
477
+ "api://bb21a8d0-366b-4a95-aa59-dbbf708322d1/.default"
478
+ ]
663
479
  },
664
- "componentBlocksInnerOneOf5": {
665
- "$ref": "#/components/schemas/componentBlocksInnerOneOf5"
480
+ {
481
+ "ApiKey": []
666
482
  }
667
- }
483
+ ]
668
484
  },
669
- "componentBlocksInnerOneOf": {
670
- "type": "object",
671
- "properties": {
672
- "sanityType": {
673
- "enum": [
674
- 1
675
- ],
676
- "type": "integer",
677
- "format": "int32",
678
- "default": 1
679
- },
680
- "listItemOption": {
681
- "$ref": "#/components/schemas/option_nullable`1"
682
- },
683
- "listItem": {
684
- "enum": [
685
- 1,
686
- 2
687
- ],
688
- "type": "integer",
689
- "format": "int32",
690
- "default": 1,
691
- "nullable": true
692
- },
693
- "styleOption": {
694
- "$ref": "#/components/schemas/option_nullable`1"
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
+ }
499
+ }
695
500
  },
696
- "style": {
697
- "enum": [
698
- 1,
699
- 2,
700
- 3
701
- ],
702
- "type": "integer",
703
- "format": "int32",
704
- "default": 1,
705
- "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"
706
514
  },
707
- "sanityKey": {
708
- "type": "string"
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"
709
525
  },
710
- "childrenOption": {
711
- "$ref": "#/components/schemas/option_list`1"
526
+ "401": {
527
+ "description": "No description",
528
+ "x-ms-summary": "Unauthorized"
529
+ }
530
+ },
531
+ "security": [
532
+ {
533
+ "Implicit": [
534
+ "api://bb21a8d0-366b-4a95-aa59-dbbf708322d1/.default"
535
+ ]
712
536
  },
713
- "children": {
714
- "type": "array",
715
- "items": {
716
- "$ref": "#/components/schemas/componentBlocksInnerOneOfChildrenInner"
537
+ {
538
+ "ApiKey": []
539
+ }
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"
717
558
  }
718
559
  },
719
- "levelOption": {
720
- "$ref": "#/components/schemas/option_nullable`1"
721
- },
722
- "level": {
723
- "type": "number",
724
- "format": "double",
725
- "nullable": true
726
- },
727
- "markDefsOption": {
728
- "$ref": "#/components/schemas/option_list`1"
729
- },
730
- "markDefs": {
731
- "type": "array",
732
- "items": {
733
- "$ref": "#/components/schemas/componentBlocksInnerOneOfMarkDefsInner"
560
+ {
561
+ "name": "includeInactive",
562
+ "in": "query",
563
+ "schema": {
564
+ "type": "boolean"
734
565
  }
735
566
  }
736
- }
737
- },
738
- "componentBlocksInnerOneOf1": {
739
- "type": "object",
740
- "properties": {
741
- "sanityType": {
742
- "enum": [
743
- 1
744
- ],
745
- "type": "integer",
746
- "format": "int32",
747
- "default": 1
748
- },
749
- "sanityKey": {
750
- "type": "string"
751
- },
752
- "codeOption": {
753
- "$ref": "#/components/schemas/option_string"
754
- },
755
- "code": {
756
- "type": "string"
757
- },
758
- "filenameOption": {
759
- "$ref": "#/components/schemas/option_string"
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"
760
579
  },
761
- "filename": {
762
- "type": "string"
580
+ "401": {
581
+ "description": "No description",
582
+ "x-ms-summary": "Unauthorized"
763
583
  },
764
- "highlightedLinesOption": {
765
- "$ref": "#/components/schemas/option_list`1"
584
+ "404": {
585
+ "description": "No description",
586
+ "x-ms-summary": "Not Found"
587
+ }
588
+ },
589
+ "security": [
590
+ {
591
+ "Implicit": [
592
+ "api://bb21a8d0-366b-4a95-aa59-dbbf708322d1/.default"
593
+ ]
766
594
  },
767
- "highlightedLines": {
768
- "type": "array",
769
- "items": {
770
- "type": "number",
771
- "format": "double"
595
+ {
596
+ "ApiKey": []
597
+ }
598
+ ]
599
+ },
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"
616
+ }
617
+ ],
618
+ "requestBody": {
619
+ "description": "Partial article fields to update",
620
+ "content": {
621
+ "application/json": {
622
+ "schema": {
623
+ "$ref": "#/components/schemas/sanityPatchArticle"
624
+ }
772
625
  }
773
626
  },
774
- "languageOption": {
775
- "$ref": "#/components/schemas/option_string"
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"
776
640
  },
777
- "language": {
778
- "type": "string"
779
- }
780
- }
781
- },
782
- "componentBlocksInnerOneOf2": {
783
- "type": "object",
784
- "properties": {
785
- "sanityType": {
786
- "enum": [
787
- 1
788
- ],
789
- "type": "integer",
790
- "format": "int32",
791
- "default": 1
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"
792
651
  },
793
- "sanityKey": {
794
- "type": "string"
652
+ "401": {
653
+ "description": "No description",
654
+ "x-ms-summary": "Unauthorized"
795
655
  },
796
- "url": {
797
- "type": "string"
656
+ "404": {
657
+ "description": "Article not found",
658
+ "x-ms-summary": "Not Found"
798
659
  }
799
- }
800
- },
801
- "componentBlocksInnerOneOf3": {
802
- "type": "object",
803
- "properties": {
804
- "sanityType": {
805
- "enum": [
806
- 1
807
- ],
808
- "type": "integer",
809
- "format": "int32",
810
- "default": 1
811
- },
812
- "sanityKey": {
813
- "type": "string"
660
+ },
661
+ "security": [
662
+ {
663
+ "Implicit": [
664
+ "api://bb21a8d0-366b-4a95-aa59-dbbf708322d1/.default"
665
+ ]
814
666
  },
815
- "url": {
816
- "type": "string"
667
+ {
668
+ "ApiKey": []
817
669
  }
818
- }
670
+ ]
819
671
  },
820
- "componentBlocksInnerOneOf4": {
821
- "type": "object",
822
- "properties": {
823
- "sanityType": {
824
- "enum": [
825
- 1
826
- ],
827
- "type": "integer",
828
- "format": "int32",
829
- "default": 1
830
- },
831
- "sanityKey": {
832
- "type": "string"
833
- },
834
- "mediaOption": {
835
- "$ref": "#/components/schemas/option_list`1"
836
- },
837
- "media": {
838
- "type": "array",
839
- "items": {
840
- "$ref": "#/components/schemas/componentGalleryMediaInner"
841
- }
842
- }
843
- }
844
- },
845
- "componentBlocksInnerOneOf5": {
846
- "type": "object",
847
- "properties": {
848
- "sanityType": {
849
- "enum": [
850
- 1
851
- ],
852
- "type": "integer",
853
- "format": "int32",
854
- "default": 1
855
- },
856
- "link": {
857
- "type": "string"
858
- },
859
- "sanityKey": {
860
- "type": "string"
861
- },
862
- "text": {
863
- "type": "string"
864
- }
865
- }
866
- },
867
- "componentBlocksInnerOneOfChildrenInner": {
868
- "type": "object",
869
- "properties": {
870
- "sanityType": {
871
- "enum": [
872
- 1
873
- ],
874
- "type": "integer",
875
- "format": "int32",
876
- "default": 1
877
- },
878
- "sanityKey": {
879
- "type": "string"
880
- },
881
- "marksOption": {
882
- "$ref": "#/components/schemas/option_list`1"
883
- },
884
- "marks": {
885
- "type": "array",
886
- "items": {
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": {
887
685
  "type": "string"
888
- }
889
- },
890
- "textOption": {
891
- "$ref": "#/components/schemas/option_string"
892
- },
893
- "text": {
894
- "type": "string"
895
- }
896
- }
897
- },
898
- "componentBlocksInnerOneOfMarkDefsInner": {
899
- "type": "object",
900
- "properties": {
901
- "sanityType": {
902
- "enum": [
903
- 1
904
- ],
905
- "type": "integer",
906
- "format": "int32",
907
- "default": 1
908
- },
909
- "sanityKey": {
910
- "type": "string"
911
- },
912
- "hrefOption": {
913
- "$ref": "#/components/schemas/option_string"
914
- },
915
- "href": {
916
- "type": "string"
917
- }
918
- }
919
- },
920
- "componentGalleryMediaInner": {
921
- "type": "object",
922
- "properties": {
923
- "componentGalleryMediaInnerOneOf": {
924
- "$ref": "#/components/schemas/componentGalleryMediaInnerOneOf"
925
- },
926
- "componentGalleryMediaInnerOneOf1": {
927
- "$ref": "#/components/schemas/componentGalleryMediaInnerOneOf1"
928
- }
929
- }
930
- },
931
- "componentGalleryMediaInnerOneOf": {
932
- "type": "object",
933
- "properties": {
934
- "sanityType": {
935
- "enum": [
936
- 1
937
- ],
938
- "type": "integer",
939
- "format": "int32",
940
- "default": 1
941
- },
942
- "sanityKey": {
943
- "type": "string"
944
- },
945
- "assetOption": {
946
- "$ref": "#/components/schemas/option_sanityImageAssetReference"
947
- },
948
- "asset": {
949
- "$ref": "#/components/schemas/sanityImageAssetReference"
950
- },
951
- "cropOption": {
952
- "$ref": "#/components/schemas/option_sanityImageCrop"
953
- },
954
- "crop": {
955
- "$ref": "#/components/schemas/sanityImageCrop"
956
- },
957
- "hotspotOption": {
958
- "$ref": "#/components/schemas/option_sanityImageHotspot"
959
- },
960
- "hotspot": {
961
- "$ref": "#/components/schemas/sanityImageHotspot"
962
- },
963
- "mediaOption": {
964
- "$ref": "#/components/schemas/option_object"
965
- },
966
- "media": {
967
- "type": "object"
968
- }
969
- }
970
- },
971
- "componentGalleryMediaInnerOneOf1": {
972
- "type": "object",
973
- "properties": {
974
- "sanityType": {
975
- "enum": [
976
- 1
977
- ],
978
- "type": "integer",
979
- "format": "int32",
980
- "default": 1
981
- },
982
- "sanityKey": {
983
- "type": "string"
984
- },
985
- "assetOption": {
986
- "$ref": "#/components/schemas/option_muxVideoAssetReference"
987
- },
988
- "asset": {
989
- "$ref": "#/components/schemas/muxVideoAssetReference"
990
- }
991
- }
992
- },
993
- "componentMedia": {
994
- "type": "object",
995
- "properties": {
996
- "sanityType": {
997
- "enum": [
998
- 1
999
- ],
1000
- "type": "integer",
1001
- "format": "int32",
1002
- "default": 1
1003
- },
1004
- "type": {
1005
- "enum": [
1006
- 1,
1007
- 2
1008
- ],
1009
- "type": "integer",
1010
- "format": "int32",
1011
- "default": 1
1012
- },
1013
- "imageOption": {
1014
- "$ref": "#/components/schemas/option_componentMediaImage"
1015
- },
1016
- "image": {
1017
- "$ref": "#/components/schemas/componentMediaImage"
1018
- },
1019
- "videoOption": {
1020
- "$ref": "#/components/schemas/option_muxVideo"
1021
- },
1022
- "video": {
1023
- "$ref": "#/components/schemas/muxVideo"
1024
- }
1025
- }
1026
- },
1027
- "componentMediaImage": {
1028
- "type": "object",
1029
- "properties": {
1030
- "sanityType": {
1031
- "enum": [
1032
- 1
1033
- ],
1034
- "type": "integer",
1035
- "format": "int32",
1036
- "default": 1
1037
- },
1038
- "assetOption": {
1039
- "$ref": "#/components/schemas/option_sanityImageAssetReference"
1040
- },
1041
- "asset": {
1042
- "$ref": "#/components/schemas/sanityImageAssetReference"
1043
- },
1044
- "cropOption": {
1045
- "$ref": "#/components/schemas/option_sanityImageCrop"
1046
- },
1047
- "crop": {
1048
- "$ref": "#/components/schemas/sanityImageCrop"
1049
- },
1050
- "hotspotOption": {
1051
- "$ref": "#/components/schemas/option_sanityImageHotspot"
1052
- },
1053
- "hotspot": {
1054
- "$ref": "#/components/schemas/sanityImageHotspot"
1055
- },
1056
- "mediaOption": {
1057
- "$ref": "#/components/schemas/option_object"
1058
- },
1059
- "media": {
1060
- "type": "object"
686
+ },
687
+ "x-ms-summary": "The slug or id of the article"
1061
688
  }
1062
- }
1063
- },
1064
- "customerReference": {
1065
- "type": "object",
1066
- "properties": {
1067
- "sanityType": {
1068
- "enum": [
1069
- 1
1070
- ],
1071
- "type": "integer",
1072
- "format": "int32",
1073
- "default": 1
1074
- },
1075
- "sanityRef": {
1076
- "type": "string"
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"
1077
701
  },
1078
- "sanityWeakOption": {
1079
- "$ref": "#/components/schemas/option_nullable`1"
702
+ "401": {
703
+ "description": "No description",
704
+ "x-ms-summary": "Unauthorized"
1080
705
  },
1081
- "sanityWeak": {
1082
- "type": "boolean",
1083
- "nullable": true
706
+ "404": {
707
+ "description": "Article not found",
708
+ "x-ms-summary": "Not Found"
1084
709
  }
1085
- }
1086
- },
1087
- "getArticlesBySlugOrIdResult": {
1088
- "type": "object",
1089
- "properties": {
1090
- "sanityType": {
1091
- "enum": [
1092
- 1
1093
- ],
1094
- "type": "integer",
1095
- "format": "int32",
1096
- "default": 1
1097
- },
1098
- "active": {
1099
- "type": "boolean"
1100
- },
1101
- "metaDescription": {
1102
- "type": "string"
1103
- },
1104
- "publishedAt": {
1105
- "type": "string"
1106
- },
1107
- "sanityCreatedAt": {
1108
- "type": "string"
1109
- },
1110
- "sanityId": {
1111
- "type": "string"
1112
- },
1113
- "sanityRev": {
1114
- "type": "string"
1115
- },
1116
- "sanityUpdatedAt": {
1117
- "type": "string"
1118
- },
1119
- "slug": {
1120
- "$ref": "#/components/schemas/slug"
1121
- },
1122
- "title": {
1123
- "type": "string"
1124
- },
1125
- "articleSeries": {
1126
- "$ref": "#/components/schemas/getArticlesBySlugOrIdResultArticleSeries"
1127
- },
1128
- "authors": {
1129
- "type": "array",
1130
- "items": {
1131
- "$ref": "#/components/schemas/sanityOrderEmployee"
1132
- }
1133
- },
1134
- "content": {
1135
- "type": "array",
1136
- "items": {
1137
- "$ref": "#/components/schemas/sanityTechnologyWithRelationsProjectsInnerTestimonialsInnerContentInner"
1138
- }
1139
- },
1140
- "customerOption": {
1141
- "$ref": "#/components/schemas/option_customerReference"
1142
- },
1143
- "customer": {
1144
- "$ref": "#/components/schemas/customerReference"
1145
- },
1146
- "liveOption": {
1147
- "$ref": "#/components/schemas/option_string"
1148
- },
1149
- "live": {
1150
- "type": "string"
1151
- },
1152
- "media": {
1153
- "$ref": "#/components/schemas/sanityTechnologyWithRelationsArticlesInnerMedia"
1154
- },
1155
- "nextArticle": {
1156
- "$ref": "#/components/schemas/getArticlesBySlugOrIdResultNextArticle"
1157
- },
1158
- "previewOption": {
1159
- "$ref": "#/components/schemas/option_string"
1160
- },
1161
- "preview": {
1162
- "type": "string"
1163
- },
1164
- "previousArticle": {
1165
- "$ref": "#/components/schemas/getArticlesBySlugOrIdResultNextArticle"
1166
- },
1167
- "subscribersNotifiedOption": {
1168
- "$ref": "#/components/schemas/option_nullable`1"
1169
- },
1170
- "subscribersNotified": {
1171
- "type": "boolean",
1172
- "nullable": true
710
+ },
711
+ "security": [
712
+ {
713
+ "Implicit": [
714
+ "api://bb21a8d0-366b-4a95-aa59-dbbf708322d1/.default"
715
+ ]
1173
716
  },
1174
- "technologies": {
1175
- "type": "array",
1176
- "items": {
1177
- "$ref": "#/components/schemas/getArticlesBySlugOrIdResultTechnologiesInner"
1178
- }
717
+ {
718
+ "ApiKey": []
1179
719
  }
1180
- }
1181
- },
1182
- "getArticlesBySlugOrIdResultArticleSeries": {
1183
- "type": "object",
1184
- "properties": {
1185
- "sanityType": {
1186
- "enum": [
1187
- 1
1188
- ],
1189
- "type": "integer",
1190
- "format": "int32",
1191
- "default": 1
1192
- },
1193
- "sanityCreatedAt": {
1194
- "type": "string"
1195
- },
1196
- "sanityId": {
1197
- "type": "string"
1198
- },
1199
- "sanityRev": {
1200
- "type": "string"
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"
1201
753
  },
1202
- "sanityUpdatedAt": {
1203
- "type": "string"
754
+ "401": {
755
+ "description": "No description",
756
+ "x-ms-summary": "Unauthorized"
1204
757
  },
1205
- "slug": {
1206
- "$ref": "#/components/schemas/slug"
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
+ ]
1207
768
  },
1208
- "title": {
1209
- "type": "string"
769
+ {
770
+ "ApiKey": []
1210
771
  }
1211
- }
1212
- },
1213
- "getArticlesBySlugOrIdResultNextArticle": {
772
+ ]
773
+ }
774
+ }
775
+ },
776
+ "components": {
777
+ "schemas": {
778
+ "articleInvitationPreviewResponse": {
1214
779
  "type": "object",
1215
780
  "properties": {
1216
- "sanityType": {
1217
- "enum": [
1218
- 1
1219
- ],
1220
- "type": "integer",
1221
- "format": "int32",
1222
- "default": 1
1223
- },
1224
- "sanityId": {
1225
- "type": "string"
1226
- },
1227
- "slug": {
1228
- "$ref": "#/components/schemas/slug"
1229
- },
1230
- "title": {
1231
- "type": "string"
1232
- },
1233
- "content": {
781
+ "emails": {
1234
782
  "type": "array",
1235
783
  "items": {
1236
- "$ref": "#/components/schemas/sanityTechnologyWithRelationsArticlesInnerContentInner"
784
+ "type": "string"
1237
785
  }
1238
- },
1239
- "media": {
1240
- "$ref": "#/components/schemas/sanityTechnologyWithRelationsArticlesInnerMedia"
1241
786
  }
1242
787
  }
1243
788
  },
1244
- "getArticlesBySlugOrIdResultTechnologiesInner": {
789
+ "articleSeriesReference": {
1245
790
  "type": "object",
1246
791
  "properties": {
1247
792
  "sanityType": {
1248
793
  "enum": [
1249
- 1
794
+ "reference"
1250
795
  ],
1251
- "type": "integer",
1252
- "format": "int32",
1253
- "default": 1
1254
- },
1255
- "description": {
1256
- "type": "array",
1257
- "items": {
1258
- "$ref": "#/components/schemas/componentBlocksInner"
1259
- }
1260
- },
1261
- "parent": {
1262
- "$ref": "#/components/schemas/sanityTechnologyWithRelationsProjectsInnerTechnologiesInnerParent"
1263
- },
1264
- "sanityCreatedAt": {
1265
- "type": "string"
1266
- },
1267
- "sanityId": {
1268
- "type": "string"
1269
- },
1270
- "sanityRev": {
1271
- "type": "string"
796
+ "type": "string",
797
+ "default": "reference"
1272
798
  },
1273
- "sanityUpdatedAt": {
799
+ "sanityRef": {
1274
800
  "type": "string"
1275
801
  },
1276
- "slug": {
1277
- "$ref": "#/components/schemas/slug"
1278
- },
1279
- "title": {
1280
- "type": "string"
802
+ "sanityWeak": {
803
+ "type": "boolean"
1281
804
  }
1282
805
  }
1283
806
  },
1284
- "getArticleWithDraftResult": {
807
+ "componentBlocksInner": {
1285
808
  "type": "object",
1286
809
  "properties": {
1287
- "hasDraft": {
1288
- "type": "boolean"
810
+ "actualInstance": {
811
+ "type": "object"
1289
812
  },
1290
- "hasPublished": {
813
+ "isNullable": {
1291
814
  "type": "boolean"
1292
815
  },
1293
- "draft": {
1294
- "$ref": "#/components/schemas/getArticlesBySlugOrIdResult"
1295
- },
1296
- "published": {
1297
- "$ref": "#/components/schemas/getArticlesBySlugOrIdResult"
1298
- },
1299
- "publishedId": {
816
+ "schemaType": {
1300
817
  "type": "string"
1301
- },
1302
- "additionalProperties": {
1303
- "type": "object",
1304
- "additionalProperties": {
1305
- "$ref": "#/components/schemas/jsonElement"
1306
- }
1307
818
  }
1308
819
  }
1309
820
  },
1310
- "jsonElement": {
821
+ "componentMedia": {
1311
822
  "type": "object",
1312
823
  "properties": {
1313
- "valueKind": {
824
+ "sanityType": {
825
+ "enum": [
826
+ "component.media"
827
+ ],
828
+ "type": "string",
829
+ "default": "component.media"
830
+ },
831
+ "type": {
1314
832
  "enum": [
1315
- 0,
1316
- 1,
1317
- 2,
1318
- 3,
1319
- 4,
1320
- 5,
1321
- 6,
1322
- 7
833
+ "image",
834
+ "video"
1323
835
  ],
1324
- "type": "integer",
1325
- "format": "int32",
1326
- "default": 0
836
+ "type": "string",
837
+ "default": "image"
838
+ },
839
+ "image": {
840
+ "$ref": "#/components/schemas/componentMediaImage"
1327
841
  },
1328
- "item": {
1329
- "$ref": "#/components/schemas/jsonElement"
842
+ "video": {
843
+ "$ref": "#/components/schemas/muxVideo"
1330
844
  }
1331
845
  }
1332
846
  },
1333
- "muxVideo": {
847
+ "componentMediaImage": {
1334
848
  "type": "object",
1335
849
  "properties": {
1336
850
  "sanityType": {
1337
851
  "enum": [
1338
- 1
852
+ "image"
1339
853
  ],
1340
- "type": "integer",
1341
- "format": "int32",
1342
- "default": 1
1343
- },
1344
- "assetOption": {
1345
- "$ref": "#/components/schemas/option_muxVideoAssetReference"
854
+ "type": "string",
855
+ "default": "image"
1346
856
  },
1347
857
  "asset": {
1348
- "$ref": "#/components/schemas/muxVideoAssetReference"
858
+ "$ref": "#/components/schemas/sanityImageAssetReference"
859
+ },
860
+ "crop": {
861
+ "$ref": "#/components/schemas/sanityImageCrop"
862
+ },
863
+ "hotspot": {
864
+ "$ref": "#/components/schemas/sanityImageHotspot"
865
+ },
866
+ "media": {
867
+ "type": "object"
1349
868
  }
1350
869
  }
1351
870
  },
1352
- "muxVideoAssetReference": {
871
+ "customerReference": {
1353
872
  "type": "object",
1354
873
  "properties": {
1355
874
  "sanityType": {
1356
875
  "enum": [
1357
- 1
876
+ "reference"
1358
877
  ],
1359
- "type": "integer",
1360
- "format": "int32",
1361
- "default": 1
878
+ "type": "string",
879
+ "default": "reference"
1362
880
  },
1363
881
  "sanityRef": {
1364
882
  "type": "string"
1365
883
  },
1366
- "sanityWeakOption": {
1367
- "$ref": "#/components/schemas/option_nullable`1"
1368
- },
1369
884
  "sanityWeak": {
1370
- "type": "boolean",
1371
- "nullable": true
1372
- }
1373
- }
1374
- },
1375
- "option_articleSeriesReference": {
1376
- "type": "object",
1377
- "properties": {
1378
- "value": {
1379
- "$ref": "#/components/schemas/articleSeriesReference"
1380
- }
1381
- }
1382
- },
1383
- "option_componentMedia": {
1384
- "type": "object",
1385
- "properties": {
1386
- "value": {
1387
- "$ref": "#/components/schemas/componentMedia"
1388
- }
1389
- }
1390
- },
1391
- "option_componentMediaImage": {
1392
- "type": "object",
1393
- "properties": {
1394
- "value": {
1395
- "$ref": "#/components/schemas/componentMediaImage"
1396
- }
1397
- }
1398
- },
1399
- "option_customerReference": {
1400
- "type": "object",
1401
- "properties": {
1402
- "value": {
1403
- "$ref": "#/components/schemas/customerReference"
885
+ "type": "boolean"
1404
886
  }
1405
887
  }
1406
888
  },
1407
- "option_list`1": {
889
+ "getArticlesBySlugOrIdResult": {
1408
890
  "type": "object",
1409
891
  "properties": {
1410
- "value": {
892
+ "sanityType": {
893
+ "enum": [
894
+ "article"
895
+ ],
896
+ "type": "string",
897
+ "default": "article"
898
+ },
899
+ "active": {
900
+ "type": "boolean"
901
+ },
902
+ "articleSeries": {
903
+ "$ref": "#/components/schemas/getArticlesBySlugOrIdResultArticleSeries"
904
+ },
905
+ "authors": {
1411
906
  "type": "array",
1412
907
  "items": {
1413
- "type": "string"
908
+ "$ref": "#/components/schemas/sanityOrderEmployee"
1414
909
  }
1415
- }
1416
- }
1417
- },
1418
- "option_muxVideo": {
1419
- "type": "object",
1420
- "properties": {
1421
- "value": {
1422
- "$ref": "#/components/schemas/muxVideo"
1423
- }
1424
- }
1425
- },
1426
- "option_muxVideoAssetReference": {
1427
- "type": "object",
1428
- "properties": {
1429
- "value": {
1430
- "$ref": "#/components/schemas/muxVideoAssetReference"
1431
- }
1432
- }
1433
- },
1434
- "option_nullable`1": {
1435
- "type": "object",
1436
- "properties": {
1437
- "value": {
1438
- "type": "boolean",
1439
- "nullable": true
1440
- }
1441
- }
1442
- },
1443
- "option_object": {
1444
- "type": "object",
1445
- "properties": {
1446
- "value": {
1447
- "type": "object"
1448
- }
1449
- }
1450
- },
1451
- "option_sanityImageAssetReference": {
1452
- "type": "object",
1453
- "properties": {
1454
- "value": {
1455
- "$ref": "#/components/schemas/sanityImageAssetReference"
1456
- }
1457
- }
1458
- },
1459
- "option_sanityImageCrop": {
1460
- "type": "object",
1461
- "properties": {
1462
- "value": {
1463
- "$ref": "#/components/schemas/sanityImageCrop"
1464
- }
1465
- }
1466
- },
1467
- "option_sanityImageHotspot": {
1468
- "type": "object",
1469
- "properties": {
1470
- "value": {
1471
- "$ref": "#/components/schemas/sanityImageHotspot"
1472
- }
1473
- }
1474
- },
1475
- "option_slug": {
1476
- "type": "object",
1477
- "properties": {
1478
- "value": {
910
+ },
911
+ "content": {
912
+ "type": "array",
913
+ "items": {
914
+ "$ref": "#/components/schemas/sanityTechnologyWithRelationsDescriptionInner"
915
+ }
916
+ },
917
+ "customer": {
918
+ "$ref": "#/components/schemas/customerReference"
919
+ },
920
+ "live": {
921
+ "type": "string"
922
+ },
923
+ "media": {
924
+ "$ref": "#/components/schemas/sanityTechnologyWithRelationsArticlesInnerMedia"
925
+ },
926
+ "metaDescription": {
927
+ "type": "string"
928
+ },
929
+ "nextArticle": {
930
+ "$ref": "#/components/schemas/getArticlesBySlugOrIdResultNextArticle"
931
+ },
932
+ "preview": {
933
+ "type": "string"
934
+ },
935
+ "previousArticle": {
936
+ "$ref": "#/components/schemas/getArticlesBySlugOrIdResultNextArticle"
937
+ },
938
+ "publishedAt": {
939
+ "type": "string"
940
+ },
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": {
1479
954
  "$ref": "#/components/schemas/slug"
955
+ },
956
+ "subscribersNotified": {
957
+ "type": "boolean"
958
+ },
959
+ "technologies": {
960
+ "type": "array",
961
+ "items": {
962
+ "$ref": "#/components/schemas/getArticlesBySlugOrIdResultTechnologiesInner"
963
+ }
964
+ },
965
+ "title": {
966
+ "type": "string"
1480
967
  }
1481
968
  }
1482
969
  },
1483
- "option_string": {
970
+ "getArticlesBySlugOrIdResultArticleSeries": {
1484
971
  "type": "object",
1485
972
  "properties": {
1486
- "value": {
973
+ "sanityType": {
974
+ "enum": [
975
+ "articleSeries"
976
+ ],
977
+ "type": "string",
978
+ "default": "articleSeries"
979
+ },
980
+ "sanityCreatedAt": {
981
+ "type": "string"
982
+ },
983
+ "sanityId": {
984
+ "type": "string"
985
+ },
986
+ "sanityRev": {
987
+ "type": "string"
988
+ },
989
+ "sanityUpdatedAt": {
990
+ "type": "string"
991
+ },
992
+ "slug": {
993
+ "$ref": "#/components/schemas/slug"
994
+ },
995
+ "title": {
1487
996
  "type": "string"
1488
997
  }
1489
998
  }
1490
999
  },
1491
- "pageEmployeeOrderInner": {
1000
+ "getArticlesBySlugOrIdResultNextArticle": {
1492
1001
  "type": "object",
1493
1002
  "properties": {
1494
1003
  "sanityType": {
1495
1004
  "enum": [
1496
- 1
1005
+ "article"
1497
1006
  ],
1498
- "type": "integer",
1499
- "format": "int32",
1500
- "default": 1
1007
+ "type": "string",
1008
+ "default": "article"
1501
1009
  },
1502
- "sanityKey": {
1503
- "type": "string"
1010
+ "content": {
1011
+ "type": "array",
1012
+ "items": {
1013
+ "$ref": "#/components/schemas/sanityTechnologyWithRelationsArticlesInnerContentInner"
1014
+ }
1504
1015
  },
1505
- "sanityRef": {
1016
+ "media": {
1017
+ "$ref": "#/components/schemas/sanityTechnologyWithRelationsArticlesInnerMedia"
1018
+ },
1019
+ "sanityId": {
1506
1020
  "type": "string"
1507
1021
  },
1508
- "sanityWeakOption": {
1509
- "$ref": "#/components/schemas/option_nullable`1"
1022
+ "slug": {
1023
+ "$ref": "#/components/schemas/slug"
1510
1024
  },
1511
- "sanityWeak": {
1512
- "type": "boolean",
1513
- "nullable": true
1025
+ "title": {
1026
+ "type": "string"
1514
1027
  }
1515
1028
  }
1516
1029
  },
1517
- "sanityCreateArticle": {
1030
+ "getArticlesBySlugOrIdResultTechnologiesInner": {
1518
1031
  "type": "object",
1519
1032
  "properties": {
1520
1033
  "sanityType": {
1521
1034
  "enum": [
1522
- 1
1035
+ "technology"
1523
1036
  ],
1524
- "type": "integer",
1525
- "format": "int32",
1526
- "default": 1
1037
+ "type": "string",
1038
+ "default": "technology"
1527
1039
  },
1528
- "active": {
1529
- "type": "boolean"
1040
+ "description": {
1041
+ "type": "array",
1042
+ "items": {
1043
+ "$ref": "#/components/schemas/componentBlocksInner"
1044
+ }
1530
1045
  },
1531
- "metaDescription": {
1046
+ "parent": {
1047
+ "$ref": "#/components/schemas/sanityTechnologyWithRelationsEmployeesInnerTagsInner"
1048
+ },
1049
+ "sanityCreatedAt": {
1532
1050
  "type": "string"
1533
1051
  },
1534
- "publishedAt": {
1052
+ "sanityId": {
1053
+ "type": "string"
1054
+ },
1055
+ "sanityRev": {
1056
+ "type": "string"
1057
+ },
1058
+ "sanityUpdatedAt": {
1535
1059
  "type": "string"
1536
1060
  },
1537
1061
  "slug": {
@@ -1539,320 +1063,215 @@
1539
1063
  },
1540
1064
  "title": {
1541
1065
  "type": "string"
1066
+ }
1067
+ }
1068
+ },
1069
+ "getArticlesResultInner": {
1070
+ "type": "object",
1071
+ "properties": {
1072
+ "sanityType": {
1073
+ "enum": [
1074
+ "article"
1075
+ ],
1076
+ "type": "string",
1077
+ "default": "article"
1542
1078
  },
1543
- "articleSeriesOption": {
1544
- "$ref": "#/components/schemas/option_articleSeriesReference"
1079
+ "active": {
1080
+ "type": "boolean"
1545
1081
  },
1546
1082
  "articleSeries": {
1547
- "$ref": "#/components/schemas/articleSeriesReference"
1548
- },
1549
- "authorsOption": {
1550
- "$ref": "#/components/schemas/option_list`1"
1083
+ "$ref": "#/components/schemas/getArticlesBySlugOrIdResultArticleSeries"
1551
1084
  },
1552
1085
  "authors": {
1553
1086
  "type": "array",
1554
1087
  "items": {
1555
- "$ref": "#/components/schemas/pageEmployeeOrderInner"
1088
+ "$ref": "#/components/schemas/sanityOrderEmployee"
1556
1089
  }
1557
1090
  },
1558
- "contentOption": {
1559
- "$ref": "#/components/schemas/option_list`1"
1560
- },
1561
1091
  "content": {
1562
1092
  "type": "array",
1563
1093
  "items": {
1564
- "$ref": "#/components/schemas/componentBlocksInner"
1094
+ "$ref": "#/components/schemas/sanityTechnologyWithRelationsDescriptionInner"
1565
1095
  }
1566
1096
  },
1567
- "customerOption": {
1568
- "$ref": "#/components/schemas/option_customerReference"
1569
- },
1570
1097
  "customer": {
1571
1098
  "$ref": "#/components/schemas/customerReference"
1572
1099
  },
1573
- "liveOption": {
1574
- "$ref": "#/components/schemas/option_string"
1575
- },
1576
1100
  "live": {
1577
1101
  "type": "string"
1578
1102
  },
1579
- "mediaOption": {
1580
- "$ref": "#/components/schemas/option_componentMedia"
1581
- },
1582
1103
  "media": {
1583
- "$ref": "#/components/schemas/componentMedia"
1104
+ "$ref": "#/components/schemas/sanityTechnologyWithRelationsArticlesInnerMedia"
1584
1105
  },
1585
- "previewOption": {
1586
- "$ref": "#/components/schemas/option_string"
1106
+ "metaDescription": {
1107
+ "type": "string"
1587
1108
  },
1588
1109
  "preview": {
1589
1110
  "type": "string"
1590
1111
  },
1591
- "subscribersNotifiedOption": {
1592
- "$ref": "#/components/schemas/option_nullable`1"
1112
+ "publishedAt": {
1113
+ "type": "string"
1593
1114
  },
1594
- "subscribersNotified": {
1595
- "type": "boolean",
1596
- "nullable": true
1115
+ "sanityCreatedAt": {
1116
+ "type": "string"
1117
+ },
1118
+ "sanityId": {
1119
+ "type": "string"
1120
+ },
1121
+ "sanityRev": {
1122
+ "type": "string"
1123
+ },
1124
+ "sanityUpdatedAt": {
1125
+ "type": "string"
1126
+ },
1127
+ "slug": {
1128
+ "$ref": "#/components/schemas/slug"
1597
1129
  },
1598
- "technologiesOption": {
1599
- "$ref": "#/components/schemas/option_list`1"
1130
+ "subscribersNotified": {
1131
+ "type": "boolean"
1600
1132
  },
1601
1133
  "technologies": {
1602
1134
  "type": "array",
1603
1135
  "items": {
1604
- "$ref": "#/components/schemas/sanityCreateEmployeeTechnologiesInner"
1136
+ "$ref": "#/components/schemas/getArticlesBySlugOrIdResultTechnologiesInner"
1605
1137
  }
1606
1138
  },
1607
- "additionalProperties": {
1608
- "type": "object",
1609
- "additionalProperties": {
1610
- "$ref": "#/components/schemas/jsonElement"
1611
- }
1139
+ "title": {
1140
+ "type": "string"
1612
1141
  }
1613
1142
  }
1614
1143
  },
1615
- "sanityCreateEmployeeTechnologiesInner": {
1144
+ "getArticleWithDraftResult": {
1616
1145
  "type": "object",
1617
1146
  "properties": {
1618
- "sanityType": {
1619
- "enum": [
1620
- 1
1621
- ],
1622
- "type": "integer",
1623
- "format": "int32",
1624
- "default": 1
1625
- },
1626
- "sanityKey": {
1627
- "type": "string"
1147
+ "draft": {
1148
+ "$ref": "#/components/schemas/getArticlesBySlugOrIdResult"
1628
1149
  },
1629
- "sanityRef": {
1630
- "type": "string"
1150
+ "hasDraft": {
1151
+ "type": "boolean"
1631
1152
  },
1632
- "sanityWeakOption": {
1633
- "$ref": "#/components/schemas/option_nullable`1"
1153
+ "hasPublished": {
1154
+ "type": "boolean"
1634
1155
  },
1635
- "sanityWeak": {
1636
- "type": "boolean",
1637
- "nullable": true
1638
- }
1639
- }
1640
- },
1641
- "sanityImageAssetReference": {
1642
- "type": "object",
1643
- "properties": {
1644
- "sanityType": {
1645
- "enum": [
1646
- 1
1647
- ],
1648
- "type": "integer",
1649
- "format": "int32",
1650
- "default": 1
1156
+ "published": {
1157
+ "$ref": "#/components/schemas/getArticlesBySlugOrIdResult"
1651
1158
  },
1652
- "sanityRef": {
1159
+ "publishedId": {
1653
1160
  "type": "string"
1654
1161
  },
1655
- "sanityWeakOption": {
1656
- "$ref": "#/components/schemas/option_nullable`1"
1657
- },
1658
- "sanityWeak": {
1659
- "type": "boolean",
1660
- "nullable": true
1162
+ "additionalProperties": {
1163
+ "type": "object",
1164
+ "additionalProperties": {
1165
+ "type": "object"
1166
+ }
1661
1167
  }
1662
1168
  }
1663
1169
  },
1664
- "sanityImageCrop": {
1170
+ "muxVideo": {
1665
1171
  "type": "object",
1666
1172
  "properties": {
1667
1173
  "sanityType": {
1668
1174
  "enum": [
1669
- 1
1175
+ "mux.video"
1670
1176
  ],
1671
- "type": "integer",
1672
- "format": "int32",
1673
- "default": 1
1674
- },
1675
- "bottom": {
1676
- "type": "number",
1677
- "format": "double"
1678
- },
1679
- "left": {
1680
- "type": "number",
1681
- "format": "double"
1682
- },
1683
- "right": {
1684
- "type": "number",
1685
- "format": "double"
1177
+ "type": "string",
1178
+ "default": "mux.video"
1686
1179
  },
1687
- "top": {
1688
- "type": "number",
1689
- "format": "double"
1180
+ "asset": {
1181
+ "$ref": "#/components/schemas/muxVideoAssetReference"
1690
1182
  }
1691
1183
  }
1692
1184
  },
1693
- "sanityImageHotspot": {
1185
+ "muxVideoAssetReference": {
1694
1186
  "type": "object",
1695
1187
  "properties": {
1696
1188
  "sanityType": {
1697
1189
  "enum": [
1698
- 1
1190
+ "reference"
1699
1191
  ],
1700
- "type": "integer",
1701
- "format": "int32",
1702
- "default": 1
1703
- },
1704
- "height": {
1705
- "type": "number",
1706
- "format": "double"
1192
+ "type": "string",
1193
+ "default": "reference"
1707
1194
  },
1708
- "width": {
1709
- "type": "number",
1710
- "format": "double"
1711
- },
1712
- "x": {
1713
- "type": "number",
1714
- "format": "double"
1195
+ "sanityRef": {
1196
+ "type": "string"
1715
1197
  },
1716
- "y": {
1717
- "type": "number",
1718
- "format": "double"
1198
+ "sanityWeak": {
1199
+ "type": "boolean"
1719
1200
  }
1720
1201
  }
1721
1202
  },
1722
- "sanityOrderEmployee": {
1203
+ "pageEmployeeOrderInner": {
1723
1204
  "type": "object",
1724
1205
  "properties": {
1725
1206
  "sanityType": {
1726
1207
  "enum": [
1727
- 1
1208
+ "reference"
1728
1209
  ],
1729
- "type": "integer",
1730
- "format": "int32",
1731
- "default": 1
1210
+ "type": "string",
1211
+ "default": "reference"
1732
1212
  },
1733
- "email": {
1734
- "type": "string"
1735
- },
1736
- "image": {
1737
- "$ref": "#/components/schemas/sanityTechnologyWithRelationsProjectsInnerTestimonialsInnerCustomerLogo"
1738
- },
1739
- "name": {
1740
- "type": "string"
1741
- },
1742
- "sanityId": {
1213
+ "sanityKey": {
1743
1214
  "type": "string"
1744
1215
  },
1745
- "slug": {
1746
- "$ref": "#/components/schemas/slug"
1747
- },
1748
- "telephone": {
1216
+ "sanityRef": {
1749
1217
  "type": "string"
1750
1218
  },
1751
- "tags": {
1752
- "type": "array",
1753
- "items": {
1754
- "$ref": "#/components/schemas/sanityTechnologyWithRelationsProjectsInnerTechnologiesInnerParent"
1755
- }
1219
+ "sanityWeak": {
1220
+ "type": "boolean"
1756
1221
  }
1757
1222
  }
1758
1223
  },
1759
- "sanityPatchArticle": {
1224
+ "sanityCreateArticle": {
1760
1225
  "type": "object",
1761
1226
  "properties": {
1762
- "sanityTypeOption": {
1763
- "$ref": "#/components/schemas/option_nullable`1"
1764
- },
1765
1227
  "sanityType": {
1766
1228
  "enum": [
1767
- 1
1229
+ "article"
1768
1230
  ],
1769
- "type": "integer",
1770
- "format": "int32",
1771
- "default": 1,
1772
- "nullable": true
1773
- },
1774
- "activeOption": {
1775
- "$ref": "#/components/schemas/option_nullable`1"
1231
+ "type": "string",
1232
+ "default": "article"
1776
1233
  },
1777
1234
  "active": {
1778
- "type": "boolean",
1779
- "nullable": true
1780
- },
1781
- "articleSeriesOption": {
1782
- "$ref": "#/components/schemas/option_articleSeriesReference"
1235
+ "type": "boolean"
1783
1236
  },
1784
1237
  "articleSeries": {
1785
1238
  "$ref": "#/components/schemas/articleSeriesReference"
1786
1239
  },
1787
- "authorsOption": {
1788
- "$ref": "#/components/schemas/option_list`1"
1789
- },
1790
1240
  "authors": {
1791
1241
  "type": "array",
1792
1242
  "items": {
1793
1243
  "$ref": "#/components/schemas/pageEmployeeOrderInner"
1794
1244
  }
1795
1245
  },
1796
- "contentOption": {
1797
- "$ref": "#/components/schemas/option_list`1"
1798
- },
1799
1246
  "content": {
1800
1247
  "type": "array",
1801
1248
  "items": {
1802
1249
  "$ref": "#/components/schemas/componentBlocksInner"
1803
1250
  }
1804
1251
  },
1805
- "customerOption": {
1806
- "$ref": "#/components/schemas/option_customerReference"
1807
- },
1808
1252
  "customer": {
1809
1253
  "$ref": "#/components/schemas/customerReference"
1810
1254
  },
1811
- "liveOption": {
1812
- "$ref": "#/components/schemas/option_string"
1813
- },
1814
1255
  "live": {
1815
1256
  "type": "string"
1816
1257
  },
1817
- "mediaOption": {
1818
- "$ref": "#/components/schemas/option_componentMedia"
1819
- },
1820
1258
  "media": {
1821
1259
  "$ref": "#/components/schemas/componentMedia"
1822
1260
  },
1823
- "metaDescriptionOption": {
1824
- "$ref": "#/components/schemas/option_string"
1825
- },
1826
1261
  "metaDescription": {
1827
1262
  "type": "string"
1828
1263
  },
1829
- "previewOption": {
1830
- "$ref": "#/components/schemas/option_string"
1831
- },
1832
1264
  "preview": {
1833
1265
  "type": "string"
1834
1266
  },
1835
- "publishedAtOption": {
1836
- "$ref": "#/components/schemas/option_string"
1837
- },
1838
1267
  "publishedAt": {
1839
1268
  "type": "string"
1840
1269
  },
1841
- "slugOption": {
1842
- "$ref": "#/components/schemas/option_slug"
1843
- },
1844
1270
  "slug": {
1845
1271
  "$ref": "#/components/schemas/slug"
1846
1272
  },
1847
- "subscribersNotifiedOption": {
1848
- "$ref": "#/components/schemas/option_nullable`1"
1849
- },
1850
1273
  "subscribersNotified": {
1851
- "type": "boolean",
1852
- "nullable": true
1853
- },
1854
- "technologiesOption": {
1855
- "$ref": "#/components/schemas/option_list`1"
1274
+ "type": "boolean"
1856
1275
  },
1857
1276
  "technologies": {
1858
1277
  "type": "array",
@@ -1860,440 +1279,300 @@
1860
1279
  "$ref": "#/components/schemas/sanityCreateEmployeeTechnologiesInner"
1861
1280
  }
1862
1281
  },
1863
- "titleOption": {
1864
- "$ref": "#/components/schemas/option_string"
1865
- },
1866
1282
  "title": {
1867
1283
  "type": "string"
1868
1284
  },
1869
1285
  "additionalProperties": {
1870
1286
  "type": "object",
1871
1287
  "additionalProperties": {
1872
- "$ref": "#/components/schemas/jsonElement"
1288
+ "type": "object"
1873
1289
  }
1874
1290
  }
1875
1291
  }
1876
1292
  },
1877
- "sanityTechnologyWithRelationsArticlesInnerContentInner": {
1293
+ "sanityCreateEmployeeTechnologiesInner": {
1878
1294
  "type": "object",
1879
1295
  "properties": {
1880
- "componentBlocksInnerOneOf1": {
1881
- "$ref": "#/components/schemas/componentBlocksInnerOneOf1"
1882
- },
1883
- "componentBlocksInnerOneOf4": {
1884
- "$ref": "#/components/schemas/componentBlocksInnerOneOf4"
1885
- },
1886
- "componentBlocksInnerOneOf5": {
1887
- "$ref": "#/components/schemas/componentBlocksInnerOneOf5"
1888
- },
1889
- "componentBlocksInnerOneOf2": {
1890
- "$ref": "#/components/schemas/componentBlocksInnerOneOf2"
1891
- },
1892
- "componentBlocksInnerOneOf3": {
1893
- "$ref": "#/components/schemas/componentBlocksInnerOneOf3"
1894
- },
1895
- "componentGalleryMediaInnerOneOf1": {
1896
- "$ref": "#/components/schemas/componentGalleryMediaInnerOneOf1"
1296
+ "sanityType": {
1297
+ "enum": [
1298
+ "reference"
1299
+ ],
1300
+ "type": "string",
1301
+ "default": "reference"
1897
1302
  },
1898
- "sanityTechnologyWithRelationsProjectsInnerTestimonialsInnerContentInnerOneOf": {
1899
- "$ref": "#/components/schemas/sanityTechnologyWithRelationsProjectsInnerTestimonialsInnerContentInnerOneOf"
1303
+ "sanityKey": {
1304
+ "type": "string"
1900
1305
  },
1901
- "componentGalleryMediaInnerOneOf": {
1902
- "$ref": "#/components/schemas/componentGalleryMediaInnerOneOf"
1903
- }
1904
- }
1905
- },
1906
- "sanityTechnologyWithRelationsArticlesInnerMedia": {
1907
- "type": "object",
1908
- "properties": {
1909
- "sanityTechnologyWithRelationsProjectsInnerTestimonialsInnerCustomerLogo": {
1910
- "$ref": "#/components/schemas/sanityTechnologyWithRelationsProjectsInnerTestimonialsInnerCustomerLogo"
1306
+ "sanityRef": {
1307
+ "type": "string"
1911
1308
  },
1912
- "sanityTechnologyWithRelationsProjectsInnerMediaOneOf": {
1913
- "$ref": "#/components/schemas/sanityTechnologyWithRelationsProjectsInnerMediaOneOf"
1309
+ "sanityWeak": {
1310
+ "type": "boolean"
1914
1311
  }
1915
1312
  }
1916
1313
  },
1917
- "sanityTechnologyWithRelationsProjectsInnerMediaOneOf": {
1314
+ "sanityImageAssetReference": {
1918
1315
  "type": "object",
1919
1316
  "properties": {
1920
1317
  "sanityType": {
1921
1318
  "enum": [
1922
- 1
1319
+ "reference"
1923
1320
  ],
1924
- "type": "integer",
1925
- "format": "int32",
1926
- "default": 1
1321
+ "type": "string",
1322
+ "default": "reference"
1927
1323
  },
1928
- "asset": {
1929
- "$ref": "#/components/schemas/sanityTechnologyWithRelationsProjectsInnerTestimonialsInnerContentInnerOneOf4MediaInnerOneOf1Asset"
1324
+ "sanityRef": {
1325
+ "type": "string"
1326
+ },
1327
+ "sanityWeak": {
1328
+ "type": "boolean"
1930
1329
  }
1931
1330
  }
1932
1331
  },
1933
- "sanityTechnologyWithRelationsProjectsInnerTechnologiesInnerParent": {
1332
+ "sanityImageCrop": {
1934
1333
  "type": "object",
1935
1334
  "properties": {
1936
1335
  "sanityType": {
1937
1336
  "enum": [
1938
- 1
1337
+ "sanity.imageCrop"
1939
1338
  ],
1940
- "type": "integer",
1941
- "format": "int32",
1942
- "default": 1
1339
+ "type": "string",
1340
+ "default": "sanity.imageCrop"
1943
1341
  },
1944
- "name": {
1945
- "type": "string"
1342
+ "bottom": {
1343
+ "type": "number",
1344
+ "format": "double"
1946
1345
  },
1947
- "sanityId": {
1948
- "type": "string"
1346
+ "left": {
1347
+ "type": "number",
1348
+ "format": "double"
1949
1349
  },
1950
- "slug": {
1951
- "$ref": "#/components/schemas/slug"
1350
+ "right": {
1351
+ "type": "number",
1352
+ "format": "double"
1353
+ },
1354
+ "top": {
1355
+ "type": "number",
1356
+ "format": "double"
1952
1357
  }
1953
1358
  }
1954
1359
  },
1955
- "sanityTechnologyWithRelationsProjectsInnerTestimonialsInnerContentInner": {
1360
+ "sanityImageHotspot": {
1956
1361
  "type": "object",
1957
1362
  "properties": {
1958
- "sanityTechnologyWithRelationsProjectsInnerTestimonialsInnerContentInnerOneOf": {
1959
- "$ref": "#/components/schemas/sanityTechnologyWithRelationsProjectsInnerTestimonialsInnerContentInnerOneOf"
1960
- },
1961
- "sanityTechnologyWithRelationsProjectsInnerTestimonialsInnerContentInnerOneOf1": {
1962
- "$ref": "#/components/schemas/sanityTechnologyWithRelationsProjectsInnerTestimonialsInnerContentInnerOneOf1"
1963
- },
1964
- "sanityTechnologyWithRelationsProjectsInnerTestimonialsInnerContentInnerOneOf2": {
1965
- "$ref": "#/components/schemas/sanityTechnologyWithRelationsProjectsInnerTestimonialsInnerContentInnerOneOf2"
1966
- },
1967
- "sanityTechnologyWithRelationsProjectsInnerTestimonialsInnerContentInnerOneOf3": {
1968
- "$ref": "#/components/schemas/sanityTechnologyWithRelationsProjectsInnerTestimonialsInnerContentInnerOneOf3"
1363
+ "sanityType": {
1364
+ "enum": [
1365
+ "sanity.imageHotspot"
1366
+ ],
1367
+ "type": "string",
1368
+ "default": "sanity.imageHotspot"
1969
1369
  },
1970
- "sanityTechnologyWithRelationsProjectsInnerTestimonialsInnerContentInnerOneOf4": {
1971
- "$ref": "#/components/schemas/sanityTechnologyWithRelationsProjectsInnerTestimonialsInnerContentInnerOneOf4"
1370
+ "height": {
1371
+ "type": "number",
1372
+ "format": "double"
1972
1373
  },
1973
- "sanityTechnologyWithRelationsProjectsInnerTestimonialsInnerContentInnerOneOf5": {
1974
- "$ref": "#/components/schemas/sanityTechnologyWithRelationsProjectsInnerTestimonialsInnerContentInnerOneOf5"
1374
+ "width": {
1375
+ "type": "number",
1376
+ "format": "double"
1975
1377
  },
1976
- "sanityTechnologyWithRelationsProjectsInnerTestimonialsInnerContentInnerOneOf6": {
1977
- "$ref": "#/components/schemas/sanityTechnologyWithRelationsProjectsInnerTestimonialsInnerContentInnerOneOf6"
1378
+ "x": {
1379
+ "type": "number",
1380
+ "format": "double"
1978
1381
  },
1979
- "sanityTechnologyWithRelationsProjectsInnerTestimonialsInnerContentInnerOneOf4MediaInnerOneOf1": {
1980
- "$ref": "#/components/schemas/sanityTechnologyWithRelationsProjectsInnerTestimonialsInnerContentInnerOneOf4MediaInnerOneOf1"
1382
+ "y": {
1383
+ "type": "number",
1384
+ "format": "double"
1981
1385
  }
1982
1386
  }
1983
1387
  },
1984
- "sanityTechnologyWithRelationsProjectsInnerTestimonialsInnerContentInnerOneOf": {
1388
+ "sanityOrderEmployee": {
1985
1389
  "type": "object",
1986
1390
  "properties": {
1987
1391
  "sanityType": {
1988
1392
  "enum": [
1989
- 1
1393
+ "employee"
1990
1394
  ],
1991
- "type": "integer",
1992
- "format": "int32",
1993
- "default": 1
1395
+ "type": "string",
1396
+ "default": "employee"
1994
1397
  },
1995
- "listItemOption": {
1996
- "$ref": "#/components/schemas/option_nullable`1"
1398
+ "email": {
1399
+ "type": "string"
1997
1400
  },
1998
- "listItem": {
1999
- "enum": [
2000
- 1,
2001
- 2
2002
- ],
2003
- "type": "integer",
2004
- "format": "int32",
2005
- "default": 1,
2006
- "nullable": true
1401
+ "image": {
1402
+ "$ref": "#/components/schemas/sanityTvCategoryDashboardsInnerBackgroundImage"
2007
1403
  },
2008
- "styleOption": {
2009
- "$ref": "#/components/schemas/option_nullable`1"
1404
+ "isBot": {
1405
+ "type": "boolean",
1406
+ "nullable": true
2010
1407
  },
2011
- "style": {
2012
- "enum": [
2013
- 1,
2014
- 2,
2015
- 3
2016
- ],
2017
- "type": "integer",
2018
- "format": "int32",
2019
- "default": 1,
1408
+ "isExternal": {
1409
+ "type": "boolean",
2020
1410
  "nullable": true
2021
1411
  },
2022
- "sanityKey": {
1412
+ "name": {
2023
1413
  "type": "string"
2024
1414
  },
2025
- "childrenOption": {
2026
- "$ref": "#/components/schemas/option_list`1"
2027
- },
2028
- "children": {
2029
- "type": "array",
2030
- "items": {
2031
- "$ref": "#/components/schemas/componentBlocksInnerOneOfChildrenInner"
2032
- }
2033
- },
2034
- "levelOption": {
2035
- "$ref": "#/components/schemas/option_nullable`1"
2036
- },
2037
- "level": {
2038
- "type": "number",
2039
- "format": "double",
2040
- "nullable": true
1415
+ "sanityId": {
1416
+ "type": "string"
2041
1417
  },
2042
- "markDefsOption": {
2043
- "$ref": "#/components/schemas/option_list`1"
1418
+ "slug": {
1419
+ "$ref": "#/components/schemas/slug"
2044
1420
  },
2045
- "markDefs": {
1421
+ "tags": {
2046
1422
  "type": "array",
2047
1423
  "items": {
2048
- "$ref": "#/components/schemas/componentBlocksInnerOneOfMarkDefsInner"
1424
+ "$ref": "#/components/schemas/sanityTechnologyWithRelationsEmployeesInnerTagsInner"
2049
1425
  }
1426
+ },
1427
+ "telephone": {
1428
+ "type": "string"
2050
1429
  }
2051
1430
  }
2052
1431
  },
2053
- "sanityTechnologyWithRelationsProjectsInnerTestimonialsInnerContentInnerOneOf1": {
1432
+ "sanityPatchArticle": {
2054
1433
  "type": "object",
2055
1434
  "properties": {
2056
1435
  "sanityType": {
2057
1436
  "enum": [
2058
- 1
1437
+ "article"
2059
1438
  ],
2060
- "type": "integer",
2061
- "format": "int32",
2062
- "default": 1
2063
- },
2064
- "sanityKey": {
2065
- "type": "string"
2066
- },
2067
- "codeOption": {
2068
- "$ref": "#/components/schemas/option_string"
2069
- },
2070
- "code": {
2071
- "type": "string"
1439
+ "type": "string",
1440
+ "default": "article",
1441
+ "nullable": true
2072
1442
  },
2073
- "filenameOption": {
2074
- "$ref": "#/components/schemas/option_string"
1443
+ "active": {
1444
+ "type": "boolean",
1445
+ "nullable": true
2075
1446
  },
2076
- "filename": {
2077
- "type": "string"
1447
+ "articleSeries": {
1448
+ "$ref": "#/components/schemas/articleSeriesReference"
2078
1449
  },
2079
- "highlightedLinesOption": {
2080
- "$ref": "#/components/schemas/option_list`1"
1450
+ "authors": {
1451
+ "type": "array",
1452
+ "items": {
1453
+ "$ref": "#/components/schemas/pageEmployeeOrderInner"
1454
+ }
2081
1455
  },
2082
- "highlightedLines": {
1456
+ "content": {
2083
1457
  "type": "array",
2084
1458
  "items": {
2085
- "type": "number",
2086
- "format": "double"
1459
+ "$ref": "#/components/schemas/componentBlocksInner"
2087
1460
  }
2088
1461
  },
2089
- "languageOption": {
2090
- "$ref": "#/components/schemas/option_string"
1462
+ "customer": {
1463
+ "$ref": "#/components/schemas/customerReference"
2091
1464
  },
2092
- "language": {
1465
+ "live": {
2093
1466
  "type": "string"
2094
- }
2095
- }
2096
- },
2097
- "sanityTechnologyWithRelationsProjectsInnerTestimonialsInnerContentInnerOneOf2": {
2098
- "type": "object",
2099
- "properties": {
2100
- "sanityType": {
2101
- "enum": [
2102
- 1
2103
- ],
2104
- "type": "integer",
2105
- "format": "int32",
2106
- "default": 1
2107
1467
  },
2108
- "link": {
2109
- "type": "string"
1468
+ "media": {
1469
+ "$ref": "#/components/schemas/componentMedia"
2110
1470
  },
2111
- "sanityKey": {
1471
+ "metaDescription": {
2112
1472
  "type": "string"
2113
1473
  },
2114
- "text": {
1474
+ "preview": {
2115
1475
  "type": "string"
2116
- }
2117
- }
2118
- },
2119
- "sanityTechnologyWithRelationsProjectsInnerTestimonialsInnerContentInnerOneOf3": {
2120
- "type": "object",
2121
- "properties": {
2122
- "sanityType": {
2123
- "enum": [
2124
- 1
2125
- ],
2126
- "type": "integer",
2127
- "format": "int32",
2128
- "default": 1
2129
1476
  },
2130
- "sanityKey": {
1477
+ "publishedAt": {
2131
1478
  "type": "string"
2132
1479
  },
2133
- "url": {
2134
- "type": "string"
2135
- }
2136
- }
2137
- },
2138
- "sanityTechnologyWithRelationsProjectsInnerTestimonialsInnerContentInnerOneOf4": {
2139
- "type": "object",
2140
- "properties": {
2141
- "sanityType": {
2142
- "enum": [
2143
- 1
2144
- ],
2145
- "type": "integer",
2146
- "format": "int32",
2147
- "default": 1
1480
+ "slug": {
1481
+ "$ref": "#/components/schemas/slug"
2148
1482
  },
2149
- "sanityKey": {
2150
- "type": "string"
1483
+ "subscribersNotified": {
1484
+ "type": "boolean",
1485
+ "nullable": true
2151
1486
  },
2152
- "media": {
1487
+ "technologies": {
2153
1488
  "type": "array",
2154
1489
  "items": {
2155
- "$ref": "#/components/schemas/sanityTechnologyWithRelationsProjectsInnerTestimonialsInnerContentInnerOneOf4MediaInner"
1490
+ "$ref": "#/components/schemas/sanityCreateEmployeeTechnologiesInner"
2156
1491
  }
2157
- }
2158
- }
2159
- },
2160
- "sanityTechnologyWithRelationsProjectsInnerTestimonialsInnerContentInnerOneOf4MediaInner": {
2161
- "type": "object",
2162
- "properties": {
2163
- "sanityTechnologyWithRelationsProjectsInnerTestimonialsInnerContentInnerOneOf4MediaInnerOneOf": {
2164
- "$ref": "#/components/schemas/sanityTechnologyWithRelationsProjectsInnerTestimonialsInnerContentInnerOneOf4MediaInnerOneOf"
2165
- },
2166
- "sanityTechnologyWithRelationsProjectsInnerTestimonialsInnerContentInnerOneOf4MediaInnerOneOf1": {
2167
- "$ref": "#/components/schemas/sanityTechnologyWithRelationsProjectsInnerTestimonialsInnerContentInnerOneOf4MediaInnerOneOf1"
2168
- }
2169
- }
2170
- },
2171
- "sanityTechnologyWithRelationsProjectsInnerTestimonialsInnerContentInnerOneOf4MediaInnerOneOf": {
2172
- "type": "object",
2173
- "properties": {
2174
- "sanityType": {
2175
- "enum": [
2176
- 1
2177
- ],
2178
- "type": "integer",
2179
- "format": "int32",
2180
- "default": 1
2181
1492
  },
2182
- "sanityKey": {
1493
+ "title": {
2183
1494
  "type": "string"
2184
1495
  },
2185
- "asset": {
2186
- "$ref": "#/components/schemas/sanityTvCategoryDashboardsInnerBackgroundImageAsset"
1496
+ "additionalProperties": {
1497
+ "type": "object",
1498
+ "additionalProperties": {
1499
+ "type": "object"
1500
+ }
2187
1501
  }
2188
1502
  }
2189
1503
  },
2190
- "sanityTechnologyWithRelationsProjectsInnerTestimonialsInnerContentInnerOneOf4MediaInnerOneOf1": {
1504
+ "sanityTechnologyWithRelationsArticlesInnerContentInner": {
2191
1505
  "type": "object",
2192
1506
  "properties": {
2193
- "sanityType": {
2194
- "enum": [
2195
- 1
2196
- ],
2197
- "type": "integer",
2198
- "format": "int32",
2199
- "default": 1
1507
+ "actualInstance": {
1508
+ "type": "object"
2200
1509
  },
2201
- "sanityKey": {
2202
- "type": "string"
1510
+ "isNullable": {
1511
+ "type": "boolean"
2203
1512
  },
2204
- "asset": {
2205
- "$ref": "#/components/schemas/sanityTechnologyWithRelationsProjectsInnerTestimonialsInnerContentInnerOneOf4MediaInnerOneOf1Asset"
1513
+ "schemaType": {
1514
+ "type": "string"
2206
1515
  }
2207
1516
  }
2208
1517
  },
2209
- "sanityTechnologyWithRelationsProjectsInnerTestimonialsInnerContentInnerOneOf4MediaInnerOneOf1Asset": {
1518
+ "sanityTechnologyWithRelationsArticlesInnerMedia": {
2210
1519
  "type": "object",
2211
1520
  "properties": {
2212
- "sanityType": {
2213
- "enum": [
2214
- 1
2215
- ],
2216
- "type": "integer",
2217
- "format": "int32",
2218
- "default": 1
2219
- },
2220
- "sanityId": {
2221
- "type": "string"
1521
+ "actualInstance": {
1522
+ "type": "object"
2222
1523
  },
2223
- "filename": {
2224
- "type": "string"
1524
+ "isNullable": {
1525
+ "type": "boolean"
2225
1526
  },
2226
- "playbackId": {
1527
+ "schemaType": {
2227
1528
  "type": "string"
2228
1529
  }
2229
1530
  }
2230
1531
  },
2231
- "sanityTechnologyWithRelationsProjectsInnerTestimonialsInnerContentInnerOneOf5": {
1532
+ "sanityTechnologyWithRelationsDescriptionInner": {
2232
1533
  "type": "object",
2233
1534
  "properties": {
2234
- "sanityType": {
2235
- "enum": [
2236
- 1
2237
- ],
2238
- "type": "integer",
2239
- "format": "int32",
2240
- "default": 1
1535
+ "actualInstance": {
1536
+ "type": "object"
2241
1537
  },
2242
- "sanityKey": {
2243
- "type": "string"
1538
+ "isNullable": {
1539
+ "type": "boolean"
2244
1540
  },
2245
- "url": {
1541
+ "schemaType": {
2246
1542
  "type": "string"
2247
1543
  }
2248
1544
  }
2249
1545
  },
2250
- "sanityTechnologyWithRelationsProjectsInnerTestimonialsInnerContentInnerOneOf6": {
1546
+ "sanityTechnologyWithRelationsEmployeesInnerTagsInner": {
2251
1547
  "type": "object",
2252
1548
  "properties": {
2253
1549
  "sanityType": {
2254
1550
  "enum": [
2255
- 1
1551
+ "tag"
2256
1552
  ],
2257
- "type": "integer",
2258
- "format": "int32",
2259
- "default": 1
1553
+ "type": "string",
1554
+ "default": "tag"
2260
1555
  },
2261
- "sanityKey": {
1556
+ "name": {
2262
1557
  "type": "string"
2263
1558
  },
2264
- "asset": {
2265
- "$ref": "#/components/schemas/sanityTvCategoryDashboardsInnerBackgroundImageAsset"
2266
- },
2267
- "cropOption": {
2268
- "$ref": "#/components/schemas/option_sanityImageCrop"
2269
- },
2270
- "crop": {
2271
- "$ref": "#/components/schemas/sanityImageCrop"
2272
- },
2273
- "hotspotOption": {
2274
- "$ref": "#/components/schemas/option_sanityImageHotspot"
2275
- },
2276
- "hotspot": {
2277
- "$ref": "#/components/schemas/sanityImageHotspot"
2278
- },
2279
- "mediaOption": {
2280
- "$ref": "#/components/schemas/option_object"
1559
+ "sanityId": {
1560
+ "type": "string"
2281
1561
  },
2282
- "media": {
2283
- "type": "object"
1562
+ "slug": {
1563
+ "$ref": "#/components/schemas/slug"
2284
1564
  }
2285
1565
  }
2286
1566
  },
2287
- "sanityTechnologyWithRelationsProjectsInnerTestimonialsInnerCustomerLogo": {
1567
+ "sanityTvCategoryDashboardsInnerBackgroundImage": {
2288
1568
  "type": "object",
2289
1569
  "properties": {
2290
1570
  "sanityType": {
2291
1571
  "enum": [
2292
- 1
1572
+ "image"
2293
1573
  ],
2294
- "type": "integer",
2295
- "format": "int32",
2296
- "default": 1
1574
+ "type": "string",
1575
+ "default": "image"
2297
1576
  },
2298
1577
  "asset": {
2299
1578
  "$ref": "#/components/schemas/sanityTvCategoryDashboardsInnerBackgroundImageAsset"
@@ -2305,22 +1584,21 @@
2305
1584
  "properties": {
2306
1585
  "sanityType": {
2307
1586
  "enum": [
2308
- 1
1587
+ "sanity.imageAsset"
2309
1588
  ],
2310
- "type": "integer",
2311
- "format": "int32",
2312
- "default": 1
1589
+ "type": "string",
1590
+ "default": "sanity.imageAsset"
2313
1591
  },
2314
1592
  "mimeType": {
2315
1593
  "type": "string"
2316
1594
  },
2317
- "sanityId": {
1595
+ "originalFilename": {
2318
1596
  "type": "string"
2319
1597
  },
2320
- "url": {
1598
+ "sanityId": {
2321
1599
  "type": "string"
2322
1600
  },
2323
- "originalFilename": {
1601
+ "url": {
2324
1602
  "type": "string"
2325
1603
  }
2326
1604
  }
@@ -2330,18 +1608,14 @@
2330
1608
  "properties": {
2331
1609
  "sanityType": {
2332
1610
  "enum": [
2333
- 1
1611
+ "slug"
2334
1612
  ],
2335
- "type": "integer",
2336
- "format": "int32",
2337
- "default": 1
1613
+ "type": "string",
1614
+ "default": "slug"
2338
1615
  },
2339
1616
  "current": {
2340
1617
  "type": "string"
2341
1618
  },
2342
- "sourceOption": {
2343
- "$ref": "#/components/schemas/option_string"
2344
- },
2345
1619
  "source": {
2346
1620
  "type": "string"
2347
1621
  }
@@ -2353,14 +1627,19 @@
2353
1627
  "type": "oauth2",
2354
1628
  "flows": {
2355
1629
  "implicit": {
2356
- "authorizationUrl": "https://login.microsoftonline.com/81a4f38d-6712-4b65-868b-c3771f9ba91e/oauth2/v2.0/authorize",
2357
- "tokenUrl": "https://login.microsoftonline.com/81a4f38d-6712-4b65-868b-c3771f9ba91e/oauth2/v2.0/token",
2358
- "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",
2359
1633
  "scopes": {
2360
- "api://e60092d3-3970-4a7c-a62e-19f17c4bca08/.default": "Default function scope"
1634
+ "api://bb21a8d0-366b-4a95-aa59-dbbf708322d1/.default": "Default function scope"
2361
1635
  }
2362
1636
  }
2363
1637
  }
1638
+ },
1639
+ "ApiKey": {
1640
+ "type": "http",
1641
+ "scheme": "bearer",
1642
+ "bearerFormat": "JWT"
2364
1643
  }
2365
1644
  }
2366
1645
  }