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