@snokam/mcp-api 0.5.1

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.
@@ -0,0 +1,2322 @@
1
+ {
2
+ "openapi": "3.0.1",
3
+ "info": {
4
+ "title": "Events Function",
5
+ "description": "Backend to change events and participations",
6
+ "version": "v1.0.0"
7
+ },
8
+ "servers": [
9
+ {
10
+ "url": "https://events.api.test.snokam.no"
11
+ }
12
+ ],
13
+ "paths": {
14
+ "/v1.0/public": {
15
+ "get": {
16
+ "tags": [
17
+ "Events"
18
+ ],
19
+ "summary": "Gets events",
20
+ "description": "Retrieves events within a date range.",
21
+ "operationId": "PublicEvents",
22
+ "parameters": [
23
+ {
24
+ "name": "from",
25
+ "in": "query",
26
+ "description": "The start date for the events",
27
+ "schema": {
28
+ "type": "string",
29
+ "format": "date-time"
30
+ },
31
+ "x-ms-summary": "Start date"
32
+ },
33
+ {
34
+ "name": "to",
35
+ "in": "query",
36
+ "description": "The end date for the events",
37
+ "schema": {
38
+ "type": "string",
39
+ "format": "date-time"
40
+ },
41
+ "x-ms-summary": "End date"
42
+ },
43
+ {
44
+ "name": "token",
45
+ "in": "query",
46
+ "description": "Bypass token",
47
+ "schema": {
48
+ "type": "string"
49
+ },
50
+ "x-ms-summary": "Token"
51
+ }
52
+ ],
53
+ "responses": {
54
+ "200": {
55
+ "description": "Events retrieved successfully",
56
+ "content": {
57
+ "application/json": {
58
+ "schema": {
59
+ "type": "array",
60
+ "items": {
61
+ "$ref": "#/components/schemas/event"
62
+ }
63
+ }
64
+ }
65
+ },
66
+ "x-ms-summary": "Success"
67
+ },
68
+ "400": {
69
+ "description": "Invalid query parameters",
70
+ "content": {
71
+ "application/json": {
72
+ "schema": {
73
+ "$ref": "#/components/schemas/badRequestResult"
74
+ }
75
+ }
76
+ },
77
+ "x-ms-summary": "Bad Request"
78
+ }
79
+ }
80
+ }
81
+ },
82
+ "/v1.0/public/{eventIdOrSlug}": {
83
+ "get": {
84
+ "tags": [
85
+ "Events"
86
+ ],
87
+ "summary": "Gets an event by slug or id",
88
+ "description": "Retrieves an event by its slug or id.",
89
+ "operationId": "PublicEvent",
90
+ "parameters": [
91
+ {
92
+ "name": "eventIdOrSlug",
93
+ "in": "path",
94
+ "description": "The slug or id of the event to retrieve",
95
+ "required": true,
96
+ "schema": {
97
+ "type": "string"
98
+ },
99
+ "x-ms-summary": "The slug or id of the event"
100
+ }
101
+ ],
102
+ "responses": {
103
+ "200": {
104
+ "description": "Event retrieved successfully",
105
+ "content": {
106
+ "application/json": {
107
+ "schema": {
108
+ "$ref": "#/components/schemas/event"
109
+ }
110
+ }
111
+ },
112
+ "x-ms-summary": "Success"
113
+ },
114
+ "401": {
115
+ "description": "User is not authorized",
116
+ "x-ms-summary": "Unauthorized"
117
+ },
118
+ "404": {
119
+ "description": "Event not found",
120
+ "x-ms-summary": "Not Found"
121
+ }
122
+ }
123
+ }
124
+ },
125
+ "/v1.0/public/random-event": {
126
+ "get": {
127
+ "tags": [
128
+ "Events"
129
+ ],
130
+ "summary": "Gets random event",
131
+ "description": "Retrieves random event",
132
+ "operationId": "GetPublicRandomEvent",
133
+ "responses": {
134
+ "200": {
135
+ "description": "Event retrieved successfully",
136
+ "content": {
137
+ "application/json": {
138
+ "schema": {
139
+ "$ref": "#/components/schemas/event"
140
+ }
141
+ }
142
+ },
143
+ "x-ms-summary": "Success"
144
+ }
145
+ }
146
+ }
147
+ },
148
+ "/v1.0/public/ongoing-event": {
149
+ "get": {
150
+ "tags": [
151
+ "Events"
152
+ ],
153
+ "summary": "Gets ongoing event",
154
+ "description": "Retrieves ongoing event",
155
+ "operationId": "GetPublicOngoingEvent",
156
+ "responses": {
157
+ "200": {
158
+ "description": "Event retrieved successfully",
159
+ "content": {
160
+ "application/json": {
161
+ "schema": {
162
+ "$ref": "#/components/schemas/event"
163
+ }
164
+ }
165
+ },
166
+ "x-ms-summary": "Success"
167
+ },
168
+ "204": {
169
+ "description": "No ongoing events",
170
+ "x-ms-summary": "Not content"
171
+ }
172
+ }
173
+ }
174
+ },
175
+ "/v1.0/public/ongoing-events": {
176
+ "get": {
177
+ "tags": [
178
+ "Events"
179
+ ],
180
+ "summary": "Gets ongoing events",
181
+ "description": "Retrieves ongoing events",
182
+ "operationId": "GetPublicOngoingEvents",
183
+ "responses": {
184
+ "200": {
185
+ "description": "Event retrieved successfully",
186
+ "content": {
187
+ "application/json": {
188
+ "schema": {
189
+ "type": "array",
190
+ "items": {
191
+ "$ref": "#/components/schemas/event"
192
+ }
193
+ }
194
+ }
195
+ },
196
+ "x-ms-summary": "Success"
197
+ },
198
+ "204": {
199
+ "description": "No ongoing events",
200
+ "x-ms-summary": "Not content"
201
+ }
202
+ }
203
+ }
204
+ },
205
+ "/v1.0/public/{eventId}/add-guest-feedback": {
206
+ "post": {
207
+ "tags": [
208
+ "Events"
209
+ ],
210
+ "summary": "Add guest feedback",
211
+ "description": "Adds guest event feedback",
212
+ "operationId": "AddGuestFeedback",
213
+ "parameters": [
214
+ {
215
+ "name": "eventId",
216
+ "in": "path",
217
+ "description": "The ID of the event to patch",
218
+ "required": true,
219
+ "schema": {
220
+ "type": "string"
221
+ },
222
+ "x-ms-summary": "The ID of the event"
223
+ }
224
+ ],
225
+ "requestBody": {
226
+ "description": "Event data to patch",
227
+ "content": {
228
+ "application/json": {
229
+ "schema": {
230
+ "$ref": "#/components/schemas/addGuestGeedback"
231
+ }
232
+ }
233
+ },
234
+ "required": true
235
+ },
236
+ "responses": {
237
+ "200": {
238
+ "description": "Event feedback sent successfully",
239
+ "x-ms-summary": "Success"
240
+ }
241
+ }
242
+ }
243
+ },
244
+ "/v1.0/public/get-guest-events-pending-feedback": {
245
+ "get": {
246
+ "tags": [
247
+ "Events"
248
+ ],
249
+ "summary": "Gets guest events pending feedback",
250
+ "description": "Gets guest events pending feedback",
251
+ "operationId": "GetGuestEventsPendingFeedback",
252
+ "parameters": [
253
+ {
254
+ "name": "token",
255
+ "in": "query",
256
+ "description": "Participation token",
257
+ "schema": {
258
+ "type": "string"
259
+ },
260
+ "x-ms-summary": "Token"
261
+ }
262
+ ],
263
+ "responses": {
264
+ "200": {
265
+ "description": "Event feedback sent successfully",
266
+ "content": {
267
+ "application/json": {
268
+ "schema": {
269
+ "type": "array",
270
+ "items": {
271
+ "$ref": "#/components/schemas/event"
272
+ }
273
+ }
274
+ }
275
+ },
276
+ "x-ms-summary": "Success"
277
+ }
278
+ },
279
+ "security": [
280
+ {
281
+ "Implicit": [
282
+ "api://92e357cd-734e-4f39-8c33-00cc401c8b76/user_impersonation"
283
+ ]
284
+ }
285
+ ]
286
+ }
287
+ },
288
+ "/v1.0/public/{eventId}/memories": {
289
+ "post": {
290
+ "tags": [
291
+ "Events"
292
+ ],
293
+ "summary": "Upload my memories to an event",
294
+ "description": "Upload my memories to an event",
295
+ "operationId": "UploadGuestMemories",
296
+ "parameters": [
297
+ {
298
+ "name": "eventId",
299
+ "in": "path",
300
+ "description": "The id of the event to upload memories to",
301
+ "required": true,
302
+ "schema": {
303
+ "type": "string"
304
+ },
305
+ "x-ms-summary": "The id of the event"
306
+ }
307
+ ],
308
+ "requestBody": {
309
+ "description": "Event data to patch",
310
+ "content": {
311
+ "application/json": {
312
+ "schema": {
313
+ "type": "array",
314
+ "items": {
315
+ "$ref": "#/components/schemas/sanityCreateMemory"
316
+ }
317
+ }
318
+ }
319
+ },
320
+ "required": true
321
+ },
322
+ "responses": {
323
+ "200": {
324
+ "description": "Memories uploaded sent successfully",
325
+ "x-ms-summary": "Success"
326
+ }
327
+ },
328
+ "security": [
329
+ {
330
+ "Implicit": [
331
+ "api://92e357cd-734e-4f39-8c33-00cc401c8b76/user_impersonation"
332
+ ]
333
+ }
334
+ ]
335
+ }
336
+ },
337
+ "/v1.0/public/blob-storage": {
338
+ "get": {
339
+ "tags": [
340
+ "Tokens"
341
+ ],
342
+ "summary": "Gets blob storage and creates sas token",
343
+ "description": "Generates a sas token for use to upload image and video memories to azure blob storage",
344
+ "operationId": "GetBlobStorage",
345
+ "responses": {
346
+ "200": {
347
+ "description": "Generated token",
348
+ "content": {
349
+ "application/json": {
350
+ "schema": {
351
+ "$ref": "#/components/schemas/azureBlobStorageCredentials"
352
+ }
353
+ }
354
+ },
355
+ "x-ms-summary": "Success"
356
+ },
357
+ "401": {
358
+ "description": "User is not authorized",
359
+ "x-ms-summary": "Unauthorized"
360
+ }
361
+ }
362
+ }
363
+ },
364
+ "/v1.0/public/{eventId}/participate": {
365
+ "post": {
366
+ "tags": [
367
+ "Events"
368
+ ],
369
+ "summary": "Participates in an event",
370
+ "description": "Registers participation in an event.",
371
+ "operationId": "Participate",
372
+ "parameters": [
373
+ {
374
+ "name": "eventId",
375
+ "in": "path",
376
+ "description": "The ID of the event to patch",
377
+ "required": true,
378
+ "schema": {
379
+ "type": "string"
380
+ },
381
+ "x-ms-summary": "The ID of the event"
382
+ }
383
+ ],
384
+ "requestBody": {
385
+ "description": "Participation data",
386
+ "content": {
387
+ "application/json": {
388
+ "schema": {
389
+ "$ref": "#/components/schemas/participate"
390
+ }
391
+ }
392
+ },
393
+ "required": true
394
+ },
395
+ "responses": {
396
+ "200": {
397
+ "description": "Participation registered successfully",
398
+ "content": {
399
+ "application/json": {
400
+ "schema": {
401
+ "$ref": "#/components/schemas/participant"
402
+ }
403
+ }
404
+ },
405
+ "x-ms-summary": "Success"
406
+ },
407
+ "401": {
408
+ "description": "User is not authorized",
409
+ "x-ms-summary": "Unauthorized"
410
+ }
411
+ }
412
+ },
413
+ "delete": {
414
+ "tags": [
415
+ "Events"
416
+ ],
417
+ "summary": "Removes participation",
418
+ "description": "Removes participation from an event.",
419
+ "operationId": "RemoveParticipation",
420
+ "parameters": [
421
+ {
422
+ "name": "eventId",
423
+ "in": "path",
424
+ "description": "The ID of the event to patch",
425
+ "required": true,
426
+ "schema": {
427
+ "type": "string"
428
+ },
429
+ "x-ms-summary": "The ID of the event"
430
+ }
431
+ ],
432
+ "requestBody": {
433
+ "description": "Data to remove participation",
434
+ "content": {
435
+ "application/json": {
436
+ "schema": {
437
+ "$ref": "#/components/schemas/removeParticipation"
438
+ }
439
+ }
440
+ },
441
+ "required": true
442
+ },
443
+ "responses": {
444
+ "200": {
445
+ "description": "Participation removed successfully",
446
+ "x-ms-summary": "Success"
447
+ },
448
+ "401": {
449
+ "description": "User is not authorized",
450
+ "x-ms-summary": "Unauthorized"
451
+ }
452
+ }
453
+ }
454
+ },
455
+ "/v1.0/protected": {
456
+ "get": {
457
+ "tags": [
458
+ "Events"
459
+ ],
460
+ "summary": "Gets events",
461
+ "description": "Retrieves events within a date range.",
462
+ "operationId": "ProtectedEvents",
463
+ "parameters": [
464
+ {
465
+ "name": "from",
466
+ "in": "query",
467
+ "description": "The start date for the events",
468
+ "schema": {
469
+ "type": "string",
470
+ "format": "date-time"
471
+ },
472
+ "x-ms-summary": "Start date"
473
+ },
474
+ {
475
+ "name": "to",
476
+ "in": "query",
477
+ "description": "The end date for the events",
478
+ "schema": {
479
+ "type": "string",
480
+ "format": "date-time"
481
+ },
482
+ "x-ms-summary": "End date"
483
+ }
484
+ ],
485
+ "responses": {
486
+ "200": {
487
+ "description": "Events retrieved successfully",
488
+ "content": {
489
+ "application/json": {
490
+ "schema": {
491
+ "type": "array",
492
+ "items": {
493
+ "$ref": "#/components/schemas/event"
494
+ }
495
+ }
496
+ }
497
+ },
498
+ "x-ms-summary": "Success"
499
+ },
500
+ "400": {
501
+ "description": "Invalid query parameters",
502
+ "content": {
503
+ "application/json": {
504
+ "schema": {
505
+ "$ref": "#/components/schemas/badRequestResult"
506
+ }
507
+ }
508
+ },
509
+ "x-ms-summary": "Bad Request"
510
+ }
511
+ },
512
+ "security": [
513
+ {
514
+ "Implicit": [
515
+ "api://92e357cd-734e-4f39-8c33-00cc401c8b76/user_impersonation"
516
+ ]
517
+ }
518
+ ]
519
+ },
520
+ "post": {
521
+ "tags": [
522
+ "Events"
523
+ ],
524
+ "summary": "Creates an event",
525
+ "description": "Creates a new event.",
526
+ "operationId": "Create",
527
+ "requestBody": {
528
+ "description": "Event data to create",
529
+ "content": {
530
+ "application/json": {
531
+ "schema": {
532
+ "$ref": "#/components/schemas/createEvent"
533
+ }
534
+ }
535
+ },
536
+ "required": true
537
+ },
538
+ "responses": {
539
+ "200": {
540
+ "description": "Event created successfully",
541
+ "content": {
542
+ "application/json": {
543
+ "schema": {
544
+ "$ref": "#/components/schemas/createEvent"
545
+ }
546
+ }
547
+ },
548
+ "x-ms-summary": "Success"
549
+ },
550
+ "401": {
551
+ "description": "User is not authorized",
552
+ "x-ms-summary": "Unauthorized"
553
+ }
554
+ },
555
+ "security": [
556
+ {
557
+ "Implicit": [
558
+ "api://92e357cd-734e-4f39-8c33-00cc401c8b76/user_impersonation"
559
+ ]
560
+ }
561
+ ]
562
+ }
563
+ },
564
+ "/v1.0/protected/{eventIdOrSlug}": {
565
+ "get": {
566
+ "tags": [
567
+ "Events"
568
+ ],
569
+ "summary": "Gets an event by slug or id",
570
+ "description": "Retrieves an event by its slug or id.",
571
+ "operationId": "ProtectedEvent",
572
+ "parameters": [
573
+ {
574
+ "name": "eventIdOrSlug",
575
+ "in": "path",
576
+ "description": "The slug or id of the event to retrieve",
577
+ "required": true,
578
+ "schema": {
579
+ "type": "string"
580
+ },
581
+ "x-ms-summary": "The slug or id of the event"
582
+ }
583
+ ],
584
+ "responses": {
585
+ "200": {
586
+ "description": "Event retrieved successfully",
587
+ "content": {
588
+ "application/json": {
589
+ "schema": {
590
+ "$ref": "#/components/schemas/event"
591
+ }
592
+ }
593
+ },
594
+ "x-ms-summary": "Success"
595
+ },
596
+ "401": {
597
+ "description": "User is not authorized",
598
+ "x-ms-summary": "Unauthorized"
599
+ },
600
+ "404": {
601
+ "description": "Event not found",
602
+ "x-ms-summary": "Not Found"
603
+ }
604
+ },
605
+ "security": [
606
+ {
607
+ "Implicit": [
608
+ "api://92e357cd-734e-4f39-8c33-00cc401c8b76/user_impersonation"
609
+ ]
610
+ }
611
+ ]
612
+ },
613
+ "patch": {
614
+ "tags": [
615
+ "Events"
616
+ ],
617
+ "summary": "Patches an event",
618
+ "description": "Patches an existing event.",
619
+ "operationId": "PatchMyEvent",
620
+ "parameters": [
621
+ {
622
+ "name": "eventIdOrSlug",
623
+ "in": "path",
624
+ "description": "The ID of the event to patch",
625
+ "required": true,
626
+ "schema": {
627
+ "type": "string"
628
+ },
629
+ "x-ms-summary": "The ID of the event"
630
+ }
631
+ ],
632
+ "requestBody": {
633
+ "description": "Event data to patch",
634
+ "content": {
635
+ "application/json": {
636
+ "schema": {
637
+ "$ref": "#/components/schemas/patchEvent"
638
+ }
639
+ }
640
+ },
641
+ "required": true
642
+ },
643
+ "responses": {
644
+ "200": {
645
+ "description": "Event patched successfully",
646
+ "content": {
647
+ "application/json": {
648
+ "schema": {
649
+ "$ref": "#/components/schemas/event"
650
+ }
651
+ }
652
+ },
653
+ "x-ms-summary": "Success"
654
+ },
655
+ "401": {
656
+ "description": "User is not authorized",
657
+ "x-ms-summary": "Unauthorized"
658
+ }
659
+ },
660
+ "security": [
661
+ {
662
+ "Implicit": [
663
+ "api://92e357cd-734e-4f39-8c33-00cc401c8b76/user_impersonation"
664
+ ]
665
+ }
666
+ ]
667
+ }
668
+ },
669
+ "/v1.0/protected/random-event": {
670
+ "get": {
671
+ "tags": [
672
+ "Events"
673
+ ],
674
+ "summary": "Gets random event",
675
+ "description": "Retrieves random event",
676
+ "operationId": "GetProtectedRandomEvent",
677
+ "responses": {
678
+ "200": {
679
+ "description": "Event retrieved successfully",
680
+ "content": {
681
+ "application/json": {
682
+ "schema": {
683
+ "$ref": "#/components/schemas/event"
684
+ }
685
+ }
686
+ },
687
+ "x-ms-summary": "Success"
688
+ }
689
+ },
690
+ "security": [
691
+ {
692
+ "Implicit": [
693
+ "api://92e357cd-734e-4f39-8c33-00cc401c8b76/user_impersonation"
694
+ ]
695
+ }
696
+ ]
697
+ }
698
+ },
699
+ "/v1.0/protected/ongoing-event": {
700
+ "get": {
701
+ "tags": [
702
+ "Events"
703
+ ],
704
+ "summary": "Gets ongoing event",
705
+ "description": "Retrieves ongoing event",
706
+ "operationId": "GetProtectedOngoingEvent",
707
+ "responses": {
708
+ "200": {
709
+ "description": "Event retrieved successfully",
710
+ "content": {
711
+ "application/json": {
712
+ "schema": {
713
+ "$ref": "#/components/schemas/event"
714
+ }
715
+ }
716
+ },
717
+ "x-ms-summary": "Success"
718
+ },
719
+ "204": {
720
+ "description": "No ongoing events",
721
+ "x-ms-summary": "Not content"
722
+ }
723
+ },
724
+ "security": [
725
+ {
726
+ "Implicit": [
727
+ "api://92e357cd-734e-4f39-8c33-00cc401c8b76/user_impersonation"
728
+ ]
729
+ }
730
+ ]
731
+ }
732
+ },
733
+ "/v1.0/protected/{eventIdOrSlug}/invitation-preview": {
734
+ "get": {
735
+ "tags": [
736
+ "Events"
737
+ ],
738
+ "summary": "Preview invitation recipients",
739
+ "description": "Returns the list of subscriber emails that would receive an invitation for the given event type. Does not send any email.",
740
+ "operationId": "GetInvitationPreview",
741
+ "parameters": [
742
+ {
743
+ "name": "eventIdOrSlug",
744
+ "in": "path",
745
+ "description": "The slug or id of the event (for route consistency)",
746
+ "required": true,
747
+ "schema": {
748
+ "type": "string"
749
+ },
750
+ "x-ms-summary": "The slug or id of the event"
751
+ },
752
+ {
753
+ "name": "eventTypeId",
754
+ "in": "query",
755
+ "description": "The ID of the event type to preview subscribers for",
756
+ "required": true,
757
+ "schema": {
758
+ "type": "string"
759
+ },
760
+ "x-ms-summary": "The event type ID"
761
+ }
762
+ ],
763
+ "responses": {
764
+ "200": {
765
+ "description": "List of subscriber emails",
766
+ "content": {
767
+ "application/json": {
768
+ "schema": {
769
+ "$ref": "#/components/schemas/invitationPreviewResponse"
770
+ }
771
+ }
772
+ },
773
+ "x-ms-summary": "Success"
774
+ },
775
+ "400": {
776
+ "description": "Event type ID is required",
777
+ "x-ms-summary": "Bad Request"
778
+ },
779
+ "401": {
780
+ "description": "User is not authorized",
781
+ "x-ms-summary": "Unauthorized"
782
+ }
783
+ },
784
+ "security": [
785
+ {
786
+ "Implicit": [
787
+ "api://92e357cd-734e-4f39-8c33-00cc401c8b76/user_impersonation"
788
+ ]
789
+ }
790
+ ]
791
+ }
792
+ },
793
+ "/v1.0/protected/{eventIdOrSlug}/send-invitations": {
794
+ "post": {
795
+ "tags": [
796
+ "Events"
797
+ ],
798
+ "summary": "Sends email invitations",
799
+ "description": "Sends email invitations to subscribers of the specified event type and marks invitationSent as true. Cannot be called if invitations have already been sent.",
800
+ "operationId": "SendInvitations",
801
+ "parameters": [
802
+ {
803
+ "name": "eventIdOrSlug",
804
+ "in": "path",
805
+ "description": "The slug or id of the event to send invitations for",
806
+ "required": true,
807
+ "schema": {
808
+ "type": "string"
809
+ },
810
+ "x-ms-summary": "The slug or id of the event"
811
+ },
812
+ {
813
+ "name": "eventTypeId",
814
+ "in": "query",
815
+ "description": "The ID of the event type to send invitations to subscribers of",
816
+ "required": true,
817
+ "schema": {
818
+ "type": "string"
819
+ },
820
+ "x-ms-summary": "The event type ID"
821
+ }
822
+ ],
823
+ "responses": {
824
+ "200": {
825
+ "description": "Invitations sent successfully",
826
+ "content": {
827
+ "application/json": {
828
+ "schema": {
829
+ "$ref": "#/components/schemas/event"
830
+ }
831
+ }
832
+ },
833
+ "x-ms-summary": "Success"
834
+ },
835
+ "400": {
836
+ "description": "No subscribers found for event type, or invitations have already been sent",
837
+ "x-ms-summary": "Bad Request"
838
+ },
839
+ "401": {
840
+ "description": "User is not authorized",
841
+ "x-ms-summary": "Unauthorized"
842
+ },
843
+ "404": {
844
+ "description": "Event not found",
845
+ "x-ms-summary": "Not Found"
846
+ }
847
+ },
848
+ "security": [
849
+ {
850
+ "Implicit": [
851
+ "api://92e357cd-734e-4f39-8c33-00cc401c8b76/user_impersonation"
852
+ ]
853
+ }
854
+ ]
855
+ }
856
+ },
857
+ "/v1.0/protected/{eventId}/add-my-feedback": {
858
+ "post": {
859
+ "tags": [
860
+ "Events"
861
+ ],
862
+ "summary": "Add my feedback",
863
+ "description": "Adds my event feedback",
864
+ "operationId": "AddMyFeedback",
865
+ "parameters": [
866
+ {
867
+ "name": "eventId",
868
+ "in": "path",
869
+ "description": "The ID of the event to patch",
870
+ "required": true,
871
+ "schema": {
872
+ "type": "string"
873
+ },
874
+ "x-ms-summary": "The ID of the event"
875
+ }
876
+ ],
877
+ "requestBody": {
878
+ "description": "Event data to patch",
879
+ "content": {
880
+ "application/json": {
881
+ "schema": {
882
+ "$ref": "#/components/schemas/addEmployeeFeedback"
883
+ }
884
+ }
885
+ },
886
+ "required": true
887
+ },
888
+ "responses": {
889
+ "200": {
890
+ "description": "Event feedback sent successfully",
891
+ "x-ms-summary": "Success"
892
+ }
893
+ },
894
+ "security": [
895
+ {
896
+ "Implicit": [
897
+ "api://92e357cd-734e-4f39-8c33-00cc401c8b76/user_impersonation"
898
+ ]
899
+ }
900
+ ]
901
+ }
902
+ },
903
+ "/v1.0/protected/get-my-events-pending-feedback": {
904
+ "get": {
905
+ "tags": [
906
+ "Events"
907
+ ],
908
+ "summary": "Gets events pending feedback",
909
+ "description": "Gets events pending feedback",
910
+ "operationId": "GetMyEventsPendingFeedback",
911
+ "responses": {
912
+ "200": {
913
+ "description": "Event feedback sent successfully",
914
+ "content": {
915
+ "application/json": {
916
+ "schema": {
917
+ "type": "array",
918
+ "items": {
919
+ "$ref": "#/components/schemas/event"
920
+ }
921
+ }
922
+ }
923
+ },
924
+ "x-ms-summary": "Success"
925
+ }
926
+ },
927
+ "security": [
928
+ {
929
+ "Implicit": [
930
+ "api://92e357cd-734e-4f39-8c33-00cc401c8b76/user_impersonation"
931
+ ]
932
+ }
933
+ ]
934
+ }
935
+ },
936
+ "/v1.0/protected/{eventId}/memories/{memoryKey}": {
937
+ "patch": {
938
+ "tags": [
939
+ "Events"
940
+ ],
941
+ "summary": "Reviews media",
942
+ "description": "Approves or rejects a memory.",
943
+ "operationId": "ReviewUploadedMemory",
944
+ "parameters": [
945
+ {
946
+ "name": "eventId",
947
+ "in": "path",
948
+ "description": "The id of the event to patch",
949
+ "required": true,
950
+ "schema": {
951
+ "type": "string"
952
+ },
953
+ "x-ms-summary": "The id of the event"
954
+ },
955
+ {
956
+ "name": "memoryKey",
957
+ "in": "path",
958
+ "description": "The key of the memory to patch",
959
+ "required": true,
960
+ "schema": {
961
+ "type": "string"
962
+ },
963
+ "x-ms-summary": "The key of the memory"
964
+ }
965
+ ],
966
+ "requestBody": {
967
+ "description": "Review data",
968
+ "content": {
969
+ "application/json": {
970
+ "schema": {
971
+ "$ref": "#/components/schemas/patchEventMemory"
972
+ }
973
+ }
974
+ },
975
+ "required": true
976
+ },
977
+ "responses": {
978
+ "200": {
979
+ "description": "Event patched successfully",
980
+ "content": {
981
+ "application/json": {
982
+ "schema": {
983
+ "$ref": "#/components/schemas/event"
984
+ }
985
+ }
986
+ },
987
+ "x-ms-summary": "Success"
988
+ },
989
+ "401": {
990
+ "description": "User is not authorized",
991
+ "x-ms-summary": "Unauthorized"
992
+ }
993
+ },
994
+ "security": [
995
+ {
996
+ "Implicit": [
997
+ "api://92e357cd-734e-4f39-8c33-00cc401c8b76/user_impersonation"
998
+ ]
999
+ }
1000
+ ]
1001
+ }
1002
+ },
1003
+ "/v1.0/protected/{eventId}/memories": {
1004
+ "post": {
1005
+ "tags": [
1006
+ "Events"
1007
+ ],
1008
+ "summary": "Upload my memories to an event",
1009
+ "description": "Upload my memories to an event",
1010
+ "operationId": "UploadMyMemories",
1011
+ "parameters": [
1012
+ {
1013
+ "name": "eventId",
1014
+ "in": "path",
1015
+ "description": "The id of the event to patch",
1016
+ "required": true,
1017
+ "schema": {
1018
+ "type": "string"
1019
+ },
1020
+ "x-ms-summary": "The id of the event"
1021
+ }
1022
+ ],
1023
+ "requestBody": {
1024
+ "description": "Event data to patch",
1025
+ "content": {
1026
+ "application/json": {
1027
+ "schema": {
1028
+ "type": "array",
1029
+ "items": {
1030
+ "$ref": "#/components/schemas/sanityCreateMemory"
1031
+ }
1032
+ }
1033
+ }
1034
+ },
1035
+ "required": true
1036
+ },
1037
+ "responses": {
1038
+ "200": {
1039
+ "description": "Memories uploaded sent successfully",
1040
+ "x-ms-summary": "Success"
1041
+ }
1042
+ },
1043
+ "security": [
1044
+ {
1045
+ "Implicit": [
1046
+ "api://92e357cd-734e-4f39-8c33-00cc401c8b76/user_impersonation"
1047
+ ]
1048
+ }
1049
+ ]
1050
+ }
1051
+ },
1052
+ "/v1.0/protected/{eventId}/participate": {
1053
+ "post": {
1054
+ "tags": [
1055
+ "Events"
1056
+ ],
1057
+ "summary": "Participates in an event",
1058
+ "description": "Registers participation in an event.",
1059
+ "operationId": "AddMyParticipation",
1060
+ "parameters": [
1061
+ {
1062
+ "name": "eventId",
1063
+ "in": "path",
1064
+ "description": "The ID of the event to patch",
1065
+ "required": true,
1066
+ "schema": {
1067
+ "type": "string"
1068
+ },
1069
+ "x-ms-summary": "The ID of the event"
1070
+ }
1071
+ ],
1072
+ "responses": {
1073
+ "200": {
1074
+ "description": "Participation registered successfully",
1075
+ "content": {
1076
+ "application/json": {
1077
+ "schema": {
1078
+ "$ref": "#/components/schemas/participant"
1079
+ }
1080
+ }
1081
+ },
1082
+ "x-ms-summary": "Success"
1083
+ },
1084
+ "401": {
1085
+ "description": "User is not authorized",
1086
+ "x-ms-summary": "Unauthorized"
1087
+ }
1088
+ },
1089
+ "security": [
1090
+ {
1091
+ "Implicit": [
1092
+ "api://92e357cd-734e-4f39-8c33-00cc401c8b76/user_impersonation"
1093
+ ]
1094
+ }
1095
+ ]
1096
+ },
1097
+ "delete": {
1098
+ "tags": [
1099
+ "Events"
1100
+ ],
1101
+ "summary": "Removes participation",
1102
+ "description": "Removes participation from an event.",
1103
+ "operationId": "RemoveMyParticipation",
1104
+ "parameters": [
1105
+ {
1106
+ "name": "eventId",
1107
+ "in": "path",
1108
+ "description": "The ID of the event to patch",
1109
+ "required": true,
1110
+ "schema": {
1111
+ "type": "string"
1112
+ },
1113
+ "x-ms-summary": "The ID of the event"
1114
+ }
1115
+ ],
1116
+ "responses": {
1117
+ "200": {
1118
+ "description": "Participation removed successfully",
1119
+ "x-ms-summary": "Success"
1120
+ },
1121
+ "401": {
1122
+ "description": "User is not authorized",
1123
+ "x-ms-summary": "Unauthorized"
1124
+ }
1125
+ },
1126
+ "security": [
1127
+ {
1128
+ "Implicit": [
1129
+ "api://92e357cd-734e-4f39-8c33-00cc401c8b76/user_impersonation"
1130
+ ]
1131
+ }
1132
+ ]
1133
+ }
1134
+ },
1135
+ "/v1.0/protected/instagram": {
1136
+ "post": {
1137
+ "tags": [
1138
+ "Social Media"
1139
+ ],
1140
+ "summary": "Posts images to Instagram",
1141
+ "description": "Posts images to Instagram.",
1142
+ "operationId": "PostToInstagram",
1143
+ "requestBody": {
1144
+ "description": "Data to post images to Instagram",
1145
+ "content": {
1146
+ "application/json": {
1147
+ "schema": {
1148
+ "$ref": "#/components/schemas/postToInstagram"
1149
+ }
1150
+ }
1151
+ },
1152
+ "required": true
1153
+ },
1154
+ "responses": {
1155
+ "200": {
1156
+ "description": "Images posted to Instagram successfully",
1157
+ "content": {
1158
+ "application/json": {
1159
+ "schema": {
1160
+ "type": "string"
1161
+ }
1162
+ }
1163
+ },
1164
+ "x-ms-summary": "Success"
1165
+ },
1166
+ "401": {
1167
+ "description": "User is not authorized",
1168
+ "x-ms-summary": "Unauthorized"
1169
+ }
1170
+ },
1171
+ "security": [
1172
+ {
1173
+ "Implicit": [
1174
+ "api://92e357cd-734e-4f39-8c33-00cc401c8b76/user_impersonation"
1175
+ ]
1176
+ }
1177
+ ]
1178
+ }
1179
+ }
1180
+ },
1181
+ "components": {
1182
+ "schemas": {
1183
+ "addEmployeeFeedback": {
1184
+ "type": "object",
1185
+ "properties": {
1186
+ "sanityType": {
1187
+ "enum": [
1188
+ "response"
1189
+ ],
1190
+ "type": "string",
1191
+ "default": "response"
1192
+ },
1193
+ "comment": {
1194
+ "type": "string"
1195
+ },
1196
+ "overallRating": {
1197
+ "type": "number",
1198
+ "format": "double"
1199
+ },
1200
+ "organizationRating": {
1201
+ "type": "number",
1202
+ "format": "double"
1203
+ },
1204
+ "foodAndDrinkRating": {
1205
+ "type": "number",
1206
+ "format": "double"
1207
+ },
1208
+ "locationRating": {
1209
+ "type": "number",
1210
+ "format": "double"
1211
+ },
1212
+ "additionalProperties": {
1213
+ "type": "object",
1214
+ "additionalProperties": {
1215
+ "type": "object"
1216
+ }
1217
+ }
1218
+ }
1219
+ },
1220
+ "addGuestGeedback": {
1221
+ "required": [
1222
+ "token"
1223
+ ],
1224
+ "type": "object",
1225
+ "properties": {
1226
+ "token": {
1227
+ "minLength": 1,
1228
+ "type": "string",
1229
+ "nullable": true
1230
+ },
1231
+ "sanityType": {
1232
+ "enum": [
1233
+ "response"
1234
+ ],
1235
+ "type": "string",
1236
+ "default": "response"
1237
+ },
1238
+ "comment": {
1239
+ "type": "string"
1240
+ },
1241
+ "overallRating": {
1242
+ "type": "number",
1243
+ "format": "double"
1244
+ },
1245
+ "organizationRating": {
1246
+ "type": "number",
1247
+ "format": "double"
1248
+ },
1249
+ "foodAndDrinkRating": {
1250
+ "type": "number",
1251
+ "format": "double"
1252
+ },
1253
+ "locationRating": {
1254
+ "type": "number",
1255
+ "format": "double"
1256
+ },
1257
+ "additionalProperties": {
1258
+ "type": "object",
1259
+ "additionalProperties": {
1260
+ "type": "object"
1261
+ }
1262
+ }
1263
+ }
1264
+ },
1265
+ "azureBlobStorageCredentials": {
1266
+ "type": "object",
1267
+ "properties": {
1268
+ "sasToken": {
1269
+ "type": "string"
1270
+ },
1271
+ "blobUrl": {
1272
+ "type": "string"
1273
+ },
1274
+ "additionalProperties": {
1275
+ "type": "object",
1276
+ "additionalProperties": {
1277
+ "type": "object"
1278
+ }
1279
+ }
1280
+ }
1281
+ },
1282
+ "badRequestResult": {
1283
+ "type": "object",
1284
+ "properties": {
1285
+ "statusCode": {
1286
+ "type": "integer",
1287
+ "format": "int32"
1288
+ }
1289
+ }
1290
+ },
1291
+ "componentMedia": {
1292
+ "type": "object",
1293
+ "properties": {
1294
+ "type": {
1295
+ "enum": [
1296
+ "image",
1297
+ "video"
1298
+ ],
1299
+ "type": "string",
1300
+ "default": "image"
1301
+ },
1302
+ "sanityType": {
1303
+ "enum": [
1304
+ "component.media"
1305
+ ],
1306
+ "type": "string",
1307
+ "default": "component.media"
1308
+ },
1309
+ "video": {
1310
+ "$ref": "#/components/schemas/muxVideo"
1311
+ },
1312
+ "image": {
1313
+ "$ref": "#/components/schemas/componentMediaImage"
1314
+ }
1315
+ }
1316
+ },
1317
+ "componentMediaImage": {
1318
+ "type": "object",
1319
+ "properties": {
1320
+ "sanityType": {
1321
+ "enum": [
1322
+ "image"
1323
+ ],
1324
+ "type": "string",
1325
+ "default": "image"
1326
+ },
1327
+ "crop": {
1328
+ "$ref": "#/components/schemas/sanityImageCrop"
1329
+ },
1330
+ "hotspot": {
1331
+ "$ref": "#/components/schemas/sanityImageHotspot"
1332
+ },
1333
+ "media": {
1334
+ "type": "object"
1335
+ },
1336
+ "asset": {
1337
+ "$ref": "#/components/schemas/sanityImageAssetReference"
1338
+ }
1339
+ }
1340
+ },
1341
+ "createEvent": {
1342
+ "type": "object",
1343
+ "properties": {
1344
+ "status": {
1345
+ "enum": [
1346
+ "active",
1347
+ "cancelled"
1348
+ ],
1349
+ "type": "string",
1350
+ "default": "active"
1351
+ },
1352
+ "dates": {
1353
+ "type": "array",
1354
+ "items": {
1355
+ "type": "string",
1356
+ "format": "date-time"
1357
+ }
1358
+ },
1359
+ "file": {
1360
+ "$ref": "#/components/schemas/createEventFile"
1361
+ },
1362
+ "sanityType": {
1363
+ "enum": [
1364
+ "event"
1365
+ ],
1366
+ "type": "string",
1367
+ "default": "event"
1368
+ },
1369
+ "memories": {
1370
+ "type": "array",
1371
+ "items": {
1372
+ "$ref": "#/components/schemas/sanityCreateEventMemoriesInner"
1373
+ }
1374
+ },
1375
+ "invitationSent": {
1376
+ "type": "boolean"
1377
+ },
1378
+ "manualMemoriesApproval": {
1379
+ "type": "boolean"
1380
+ },
1381
+ "askForFeedback": {
1382
+ "type": "boolean"
1383
+ },
1384
+ "participants": {
1385
+ "type": "array",
1386
+ "items": {
1387
+ "$ref": "#/components/schemas/sanityCreateEventParticipantsInner"
1388
+ }
1389
+ },
1390
+ "maxParticipants": {
1391
+ "type": "number",
1392
+ "format": "double"
1393
+ },
1394
+ "place": {
1395
+ "type": "string"
1396
+ },
1397
+ "endTime": {
1398
+ "type": "string"
1399
+ },
1400
+ "time": {
1401
+ "type": "string"
1402
+ },
1403
+ "participationStart": {
1404
+ "type": "string"
1405
+ },
1406
+ "creator": {
1407
+ "$ref": "#/components/schemas/employeeReference"
1408
+ },
1409
+ "eventType": {
1410
+ "type": "array",
1411
+ "items": {
1412
+ "$ref": "#/components/schemas/sanityCreateEventEventTypeInner"
1413
+ }
1414
+ },
1415
+ "category": {
1416
+ "type": "array",
1417
+ "items": {
1418
+ "type": "string"
1419
+ }
1420
+ },
1421
+ "isServingFood": {
1422
+ "type": "boolean"
1423
+ },
1424
+ "recurringId": {
1425
+ "type": "string"
1426
+ },
1427
+ "media": {
1428
+ "$ref": "#/components/schemas/componentMedia"
1429
+ },
1430
+ "slug": {
1431
+ "$ref": "#/components/schemas/slug"
1432
+ },
1433
+ "linkOnly": {
1434
+ "type": "boolean"
1435
+ },
1436
+ "public": {
1437
+ "type": "boolean"
1438
+ },
1439
+ "title": {
1440
+ "type": "string"
1441
+ },
1442
+ "description": {
1443
+ "type": "string"
1444
+ },
1445
+ "feedback": {
1446
+ "type": "array",
1447
+ "items": {
1448
+ "$ref": "#/components/schemas/sanityCreateEventFeedbackInner"
1449
+ }
1450
+ },
1451
+ "additionalProperties": {
1452
+ "type": "object",
1453
+ "additionalProperties": {
1454
+ "type": "object"
1455
+ }
1456
+ }
1457
+ }
1458
+ },
1459
+ "createEventFile": {
1460
+ "type": "object",
1461
+ "properties": {
1462
+ "type": {
1463
+ "type": "string",
1464
+ "nullable": true
1465
+ },
1466
+ "url": {
1467
+ "type": "string",
1468
+ "nullable": true
1469
+ },
1470
+ "filename": {
1471
+ "type": "string",
1472
+ "nullable": true
1473
+ }
1474
+ }
1475
+ },
1476
+ "employeeReference": {
1477
+ "type": "object",
1478
+ "properties": {
1479
+ "sanityType": {
1480
+ "enum": [
1481
+ "reference"
1482
+ ],
1483
+ "type": "string",
1484
+ "default": "reference"
1485
+ },
1486
+ "sanityWeak": {
1487
+ "type": "boolean"
1488
+ },
1489
+ "sanityRef": {
1490
+ "type": "string"
1491
+ }
1492
+ }
1493
+ },
1494
+ "event": {
1495
+ "required": [
1496
+ "sanityId",
1497
+ "sanityType",
1498
+ "sanityRev",
1499
+ "sanityCreatedAt",
1500
+ "sanityUpdatedAt",
1501
+ "creator",
1502
+ "title",
1503
+ "slug",
1504
+ "description",
1505
+ "eventTypes",
1506
+ "time"
1507
+ ],
1508
+ "type": "object",
1509
+ "properties": {
1510
+ "sanityId": {
1511
+ "minLength": 1,
1512
+ "type": "string"
1513
+ },
1514
+ "sanityType": {
1515
+ "minLength": 1,
1516
+ "type": "string"
1517
+ },
1518
+ "sanityRev": {
1519
+ "minLength": 1,
1520
+ "type": "string"
1521
+ },
1522
+ "sanityCreatedAt": {
1523
+ "minLength": 1,
1524
+ "type": "string"
1525
+ },
1526
+ "sanityUpdatedAt": {
1527
+ "minLength": 1,
1528
+ "type": "string"
1529
+ },
1530
+ "creator": {
1531
+ "$ref": "#/components/schemas/sanityOrderEmployee"
1532
+ },
1533
+ "participants": {
1534
+ "type": "array",
1535
+ "items": {
1536
+ "$ref": "#/components/schemas/participant"
1537
+ }
1538
+ },
1539
+ "memories": {
1540
+ "type": "array",
1541
+ "items": {
1542
+ "$ref": "#/components/schemas/sanityEventMemoriesInner"
1543
+ }
1544
+ },
1545
+ "media": {
1546
+ "$ref": "#/components/schemas/sanityTechnologyWithRelationsArticlesInnerMedia"
1547
+ },
1548
+ "unapprovedMediaCount": {
1549
+ "type": "integer",
1550
+ "format": "int32"
1551
+ },
1552
+ "recurringId": {
1553
+ "type": "string"
1554
+ },
1555
+ "public": {
1556
+ "type": "boolean"
1557
+ },
1558
+ "linkOnly": {
1559
+ "type": "boolean"
1560
+ },
1561
+ "status": {
1562
+ "type": "string"
1563
+ },
1564
+ "askForFeedback": {
1565
+ "type": "boolean"
1566
+ },
1567
+ "title": {
1568
+ "minLength": 1,
1569
+ "type": "string"
1570
+ },
1571
+ "slug": {
1572
+ "$ref": "#/components/schemas/slug"
1573
+ },
1574
+ "description": {
1575
+ "minLength": 1,
1576
+ "type": "string"
1577
+ },
1578
+ "isServingFood": {
1579
+ "type": "boolean",
1580
+ "nullable": true
1581
+ },
1582
+ "eventTypes": {
1583
+ "type": "array",
1584
+ "items": {
1585
+ "$ref": "#/components/schemas/eventType"
1586
+ }
1587
+ },
1588
+ "endTime": {
1589
+ "type": "string"
1590
+ },
1591
+ "place": {
1592
+ "type": "string"
1593
+ },
1594
+ "maxParticipants": {
1595
+ "type": "number",
1596
+ "format": "double",
1597
+ "nullable": true
1598
+ },
1599
+ "time": {
1600
+ "minLength": 1,
1601
+ "type": "string"
1602
+ },
1603
+ "participationStart": {
1604
+ "type": "string"
1605
+ },
1606
+ "manualMemoriesApproval": {
1607
+ "type": "boolean"
1608
+ },
1609
+ "feedback": {
1610
+ "type": "array",
1611
+ "items": {
1612
+ "$ref": "#/components/schemas/sanityEventFeedbackInner"
1613
+ }
1614
+ },
1615
+ "invitationSent": {
1616
+ "type": "boolean",
1617
+ "nullable": true
1618
+ }
1619
+ }
1620
+ },
1621
+ "eventType": {
1622
+ "type": "object",
1623
+ "properties": {
1624
+ "sanityId": {
1625
+ "type": "string"
1626
+ },
1627
+ "sanityType": {
1628
+ "type": "string"
1629
+ },
1630
+ "name": {
1631
+ "type": "string"
1632
+ },
1633
+ "slug": {
1634
+ "$ref": "#/components/schemas/slug"
1635
+ },
1636
+ "canSubscribe": {
1637
+ "type": "boolean"
1638
+ }
1639
+ }
1640
+ },
1641
+ "image": {
1642
+ "type": "object",
1643
+ "properties": {
1644
+ "url": {
1645
+ "type": "string"
1646
+ },
1647
+ "tags": {
1648
+ "type": "array",
1649
+ "items": {
1650
+ "$ref": "#/components/schemas/tag"
1651
+ }
1652
+ }
1653
+ }
1654
+ },
1655
+ "invitationPreviewResponse": {
1656
+ "type": "object",
1657
+ "properties": {
1658
+ "emails": {
1659
+ "type": "array",
1660
+ "items": {
1661
+ "type": "string"
1662
+ }
1663
+ }
1664
+ }
1665
+ },
1666
+ "muxVideo": {
1667
+ "type": "object",
1668
+ "properties": {
1669
+ "sanityType": {
1670
+ "enum": [
1671
+ "mux.video"
1672
+ ],
1673
+ "type": "string",
1674
+ "default": "mux.video"
1675
+ },
1676
+ "asset": {
1677
+ "$ref": "#/components/schemas/muxVideoAssetReference"
1678
+ }
1679
+ }
1680
+ },
1681
+ "muxVideoAssetReference": {
1682
+ "type": "object",
1683
+ "properties": {
1684
+ "sanityType": {
1685
+ "enum": [
1686
+ "reference"
1687
+ ],
1688
+ "type": "string",
1689
+ "default": "reference"
1690
+ },
1691
+ "sanityWeak": {
1692
+ "type": "boolean"
1693
+ },
1694
+ "sanityRef": {
1695
+ "type": "string"
1696
+ }
1697
+ }
1698
+ },
1699
+ "participant": {
1700
+ "required": [
1701
+ "sanityKey",
1702
+ "sanityType",
1703
+ "name",
1704
+ "email",
1705
+ "token",
1706
+ "feedbackSubmitted"
1707
+ ],
1708
+ "type": "object",
1709
+ "properties": {
1710
+ "sanityKey": {
1711
+ "minLength": 1,
1712
+ "type": "string"
1713
+ },
1714
+ "sanityType": {
1715
+ "minLength": 1,
1716
+ "type": "string"
1717
+ },
1718
+ "image": {
1719
+ "type": "string"
1720
+ },
1721
+ "name": {
1722
+ "minLength": 1,
1723
+ "type": "string"
1724
+ },
1725
+ "email": {
1726
+ "minLength": 1,
1727
+ "type": "string"
1728
+ },
1729
+ "registered": {
1730
+ "type": "string"
1731
+ },
1732
+ "details": {
1733
+ "type": "string"
1734
+ },
1735
+ "token": {
1736
+ "minLength": 1,
1737
+ "type": "string"
1738
+ },
1739
+ "feedbackSubmitted": {
1740
+ "type": "boolean"
1741
+ }
1742
+ }
1743
+ },
1744
+ "participate": {
1745
+ "required": [
1746
+ "name",
1747
+ "email"
1748
+ ],
1749
+ "type": "object",
1750
+ "properties": {
1751
+ "name": {
1752
+ "minLength": 1,
1753
+ "type": "string"
1754
+ },
1755
+ "email": {
1756
+ "minLength": 1,
1757
+ "type": "string"
1758
+ },
1759
+ "details": {
1760
+ "type": "string"
1761
+ }
1762
+ }
1763
+ },
1764
+ "patchEvent": {
1765
+ "type": "object",
1766
+ "properties": {
1767
+ "file": {
1768
+ "$ref": "#/components/schemas/createEventFile"
1769
+ },
1770
+ "invitationSent": {
1771
+ "type": "boolean",
1772
+ "nullable": true
1773
+ },
1774
+ "sanityType": {
1775
+ "enum": [
1776
+ "event"
1777
+ ],
1778
+ "type": "string",
1779
+ "default": "event",
1780
+ "nullable": true
1781
+ },
1782
+ "status": {
1783
+ "enum": [
1784
+ "active",
1785
+ "cancelled"
1786
+ ],
1787
+ "type": "string",
1788
+ "default": "active",
1789
+ "nullable": true
1790
+ },
1791
+ "feedback": {
1792
+ "type": "array",
1793
+ "items": {
1794
+ "$ref": "#/components/schemas/sanityCreateEventFeedbackInner"
1795
+ }
1796
+ },
1797
+ "description": {
1798
+ "type": "string"
1799
+ },
1800
+ "title": {
1801
+ "type": "string"
1802
+ },
1803
+ "public": {
1804
+ "type": "boolean",
1805
+ "nullable": true
1806
+ },
1807
+ "linkOnly": {
1808
+ "type": "boolean",
1809
+ "nullable": true
1810
+ },
1811
+ "slug": {
1812
+ "$ref": "#/components/schemas/slug"
1813
+ },
1814
+ "media": {
1815
+ "$ref": "#/components/schemas/componentMedia"
1816
+ },
1817
+ "recurringId": {
1818
+ "type": "string"
1819
+ },
1820
+ "isServingFood": {
1821
+ "type": "boolean",
1822
+ "nullable": true
1823
+ },
1824
+ "category": {
1825
+ "type": "array",
1826
+ "items": {
1827
+ "type": "string"
1828
+ }
1829
+ },
1830
+ "eventType": {
1831
+ "type": "array",
1832
+ "items": {
1833
+ "$ref": "#/components/schemas/sanityCreateEventEventTypeInner"
1834
+ }
1835
+ },
1836
+ "creator": {
1837
+ "$ref": "#/components/schemas/employeeReference"
1838
+ },
1839
+ "participationStart": {
1840
+ "type": "string"
1841
+ },
1842
+ "time": {
1843
+ "type": "string"
1844
+ },
1845
+ "endTime": {
1846
+ "type": "string"
1847
+ },
1848
+ "place": {
1849
+ "type": "string"
1850
+ },
1851
+ "maxParticipants": {
1852
+ "type": "number",
1853
+ "format": "double",
1854
+ "nullable": true
1855
+ },
1856
+ "participants": {
1857
+ "type": "array",
1858
+ "items": {
1859
+ "$ref": "#/components/schemas/sanityCreateEventParticipantsInner"
1860
+ }
1861
+ },
1862
+ "askForFeedback": {
1863
+ "type": "boolean",
1864
+ "nullable": true
1865
+ },
1866
+ "manualMemoriesApproval": {
1867
+ "type": "boolean",
1868
+ "nullable": true
1869
+ },
1870
+ "memories": {
1871
+ "type": "array",
1872
+ "items": {
1873
+ "$ref": "#/components/schemas/sanityCreateEventMemoriesInner"
1874
+ }
1875
+ },
1876
+ "additionalProperties": {
1877
+ "type": "object",
1878
+ "additionalProperties": {
1879
+ "type": "object"
1880
+ }
1881
+ }
1882
+ }
1883
+ },
1884
+ "patchEventMemory": {
1885
+ "type": "object",
1886
+ "properties": {
1887
+ "approved": {
1888
+ "type": "boolean"
1889
+ },
1890
+ "additionalProperties": {
1891
+ "type": "object",
1892
+ "additionalProperties": {
1893
+ "type": "object"
1894
+ }
1895
+ }
1896
+ }
1897
+ },
1898
+ "postToInstagram": {
1899
+ "required": [
1900
+ "eventId"
1901
+ ],
1902
+ "type": "object",
1903
+ "properties": {
1904
+ "eventId": {
1905
+ "minLength": 1,
1906
+ "type": "string"
1907
+ },
1908
+ "description": {
1909
+ "type": "string"
1910
+ },
1911
+ "images": {
1912
+ "type": "array",
1913
+ "items": {
1914
+ "$ref": "#/components/schemas/image"
1915
+ }
1916
+ }
1917
+ }
1918
+ },
1919
+ "removeParticipation": {
1920
+ "required": [
1921
+ "token"
1922
+ ],
1923
+ "type": "object",
1924
+ "properties": {
1925
+ "token": {
1926
+ "minLength": 1,
1927
+ "type": "string"
1928
+ }
1929
+ }
1930
+ },
1931
+ "sanityCreateEventEventTypeInner": {
1932
+ "type": "object",
1933
+ "properties": {
1934
+ "sanityType": {
1935
+ "enum": [
1936
+ "reference"
1937
+ ],
1938
+ "type": "string",
1939
+ "default": "reference"
1940
+ },
1941
+ "sanityWeak": {
1942
+ "type": "boolean"
1943
+ },
1944
+ "sanityRef": {
1945
+ "type": "string"
1946
+ },
1947
+ "sanityKey": {
1948
+ "type": "string"
1949
+ }
1950
+ }
1951
+ },
1952
+ "sanityCreateEventFeedbackInner": {
1953
+ "type": "object",
1954
+ "properties": {
1955
+ "sanityType": {
1956
+ "enum": [
1957
+ "response"
1958
+ ],
1959
+ "type": "string",
1960
+ "default": "response"
1961
+ },
1962
+ "comment": {
1963
+ "type": "string"
1964
+ },
1965
+ "overallRating": {
1966
+ "type": "number",
1967
+ "format": "double"
1968
+ },
1969
+ "organizationRating": {
1970
+ "type": "number",
1971
+ "format": "double"
1972
+ },
1973
+ "foodAndDrinkRating": {
1974
+ "type": "number",
1975
+ "format": "double"
1976
+ },
1977
+ "locationRating": {
1978
+ "type": "number",
1979
+ "format": "double"
1980
+ },
1981
+ "sanityKey": {
1982
+ "type": "string"
1983
+ }
1984
+ }
1985
+ },
1986
+ "sanityCreateEventMemoriesInner": {
1987
+ "type": "object",
1988
+ "properties": {
1989
+ "actualInstance": {
1990
+ "type": "object"
1991
+ },
1992
+ "isNullable": {
1993
+ "type": "boolean"
1994
+ },
1995
+ "schemaType": {
1996
+ "type": "string"
1997
+ }
1998
+ }
1999
+ },
2000
+ "sanityCreateEventParticipantsInner": {
2001
+ "type": "object",
2002
+ "properties": {
2003
+ "actualInstance": {
2004
+ "type": "object"
2005
+ },
2006
+ "isNullable": {
2007
+ "type": "boolean"
2008
+ },
2009
+ "schemaType": {
2010
+ "type": "string"
2011
+ }
2012
+ }
2013
+ },
2014
+ "sanityCreateMemory": {
2015
+ "type": "object",
2016
+ "properties": {
2017
+ "sanityType": {
2018
+ "enum": [
2019
+ "memory.image",
2020
+ "memory.video"
2021
+ ],
2022
+ "type": "string",
2023
+ "default": "memory.image"
2024
+ },
2025
+ "filename": {
2026
+ "type": "string"
2027
+ },
2028
+ "mediaUrl": {
2029
+ "type": "string"
2030
+ },
2031
+ "additionalProperties": {
2032
+ "type": "object",
2033
+ "additionalProperties": {
2034
+ "type": "object"
2035
+ }
2036
+ }
2037
+ }
2038
+ },
2039
+ "sanityEventFeedbackInner": {
2040
+ "type": "object",
2041
+ "properties": {
2042
+ "sanityType": {
2043
+ "enum": [
2044
+ "response"
2045
+ ],
2046
+ "type": "string",
2047
+ "default": "response"
2048
+ },
2049
+ "comment": {
2050
+ "type": "string"
2051
+ },
2052
+ "overallRating": {
2053
+ "type": "number",
2054
+ "format": "double"
2055
+ },
2056
+ "organizationRating": {
2057
+ "type": "number",
2058
+ "format": "double"
2059
+ },
2060
+ "foodAndDrinkRating": {
2061
+ "type": "number",
2062
+ "format": "double"
2063
+ },
2064
+ "locationRating": {
2065
+ "type": "number",
2066
+ "format": "double"
2067
+ },
2068
+ "sanityKey": {
2069
+ "type": "string"
2070
+ }
2071
+ }
2072
+ },
2073
+ "sanityEventMemoriesInner": {
2074
+ "type": "object",
2075
+ "properties": {
2076
+ "actualInstance": {
2077
+ "type": "object"
2078
+ },
2079
+ "isNullable": {
2080
+ "type": "boolean"
2081
+ },
2082
+ "schemaType": {
2083
+ "type": "string"
2084
+ }
2085
+ }
2086
+ },
2087
+ "sanityImageAssetReference": {
2088
+ "type": "object",
2089
+ "properties": {
2090
+ "sanityType": {
2091
+ "enum": [
2092
+ "reference"
2093
+ ],
2094
+ "type": "string",
2095
+ "default": "reference"
2096
+ },
2097
+ "sanityWeak": {
2098
+ "type": "boolean"
2099
+ },
2100
+ "sanityRef": {
2101
+ "type": "string"
2102
+ }
2103
+ }
2104
+ },
2105
+ "sanityImageCrop": {
2106
+ "type": "object",
2107
+ "properties": {
2108
+ "sanityType": {
2109
+ "enum": [
2110
+ "sanity.imageCrop"
2111
+ ],
2112
+ "type": "string",
2113
+ "default": "sanity.imageCrop"
2114
+ },
2115
+ "right": {
2116
+ "type": "number",
2117
+ "format": "double"
2118
+ },
2119
+ "left": {
2120
+ "type": "number",
2121
+ "format": "double"
2122
+ },
2123
+ "bottom": {
2124
+ "type": "number",
2125
+ "format": "double"
2126
+ },
2127
+ "top": {
2128
+ "type": "number",
2129
+ "format": "double"
2130
+ }
2131
+ }
2132
+ },
2133
+ "sanityImageHotspot": {
2134
+ "type": "object",
2135
+ "properties": {
2136
+ "sanityType": {
2137
+ "enum": [
2138
+ "sanity.imageHotspot"
2139
+ ],
2140
+ "type": "string",
2141
+ "default": "sanity.imageHotspot"
2142
+ },
2143
+ "width": {
2144
+ "type": "number",
2145
+ "format": "double"
2146
+ },
2147
+ "height": {
2148
+ "type": "number",
2149
+ "format": "double"
2150
+ },
2151
+ "y": {
2152
+ "type": "number",
2153
+ "format": "double"
2154
+ },
2155
+ "x": {
2156
+ "type": "number",
2157
+ "format": "double"
2158
+ }
2159
+ }
2160
+ },
2161
+ "sanityOrderEmployee": {
2162
+ "type": "object",
2163
+ "properties": {
2164
+ "sanityType": {
2165
+ "enum": [
2166
+ "employee"
2167
+ ],
2168
+ "type": "string",
2169
+ "default": "employee"
2170
+ },
2171
+ "tags": {
2172
+ "type": "array",
2173
+ "items": {
2174
+ "$ref": "#/components/schemas/sanityTechnologyWithRelationsProjectsInnerTechnologiesInnerParent"
2175
+ }
2176
+ },
2177
+ "image": {
2178
+ "$ref": "#/components/schemas/sanityTechnologyWithRelationsProjectsInnerTestimonialsInnerCustomerLogo"
2179
+ },
2180
+ "slug": {
2181
+ "$ref": "#/components/schemas/slug"
2182
+ },
2183
+ "email": {
2184
+ "type": "string"
2185
+ },
2186
+ "telephone": {
2187
+ "type": "string"
2188
+ },
2189
+ "name": {
2190
+ "type": "string"
2191
+ },
2192
+ "sanityId": {
2193
+ "type": "string"
2194
+ }
2195
+ }
2196
+ },
2197
+ "sanityTechnologyWithRelationsArticlesInnerMedia": {
2198
+ "type": "object",
2199
+ "properties": {
2200
+ "actualInstance": {
2201
+ "type": "object"
2202
+ },
2203
+ "isNullable": {
2204
+ "type": "boolean"
2205
+ },
2206
+ "schemaType": {
2207
+ "type": "string"
2208
+ }
2209
+ }
2210
+ },
2211
+ "sanityTechnologyWithRelationsProjectsInnerTechnologiesInnerParent": {
2212
+ "type": "object",
2213
+ "properties": {
2214
+ "sanityType": {
2215
+ "enum": [
2216
+ "tag"
2217
+ ],
2218
+ "type": "string",
2219
+ "default": "tag"
2220
+ },
2221
+ "slug": {
2222
+ "$ref": "#/components/schemas/slug"
2223
+ },
2224
+ "name": {
2225
+ "type": "string"
2226
+ },
2227
+ "sanityId": {
2228
+ "type": "string"
2229
+ }
2230
+ }
2231
+ },
2232
+ "sanityTechnologyWithRelationsProjectsInnerTestimonialsInnerCustomerLogo": {
2233
+ "type": "object",
2234
+ "properties": {
2235
+ "sanityType": {
2236
+ "enum": [
2237
+ "image"
2238
+ ],
2239
+ "type": "string",
2240
+ "default": "image"
2241
+ },
2242
+ "asset": {
2243
+ "$ref": "#/components/schemas/sanityTvCategoryDashboardsInnerBackgroundImageAsset"
2244
+ }
2245
+ }
2246
+ },
2247
+ "sanityTvCategoryDashboardsInnerBackgroundImageAsset": {
2248
+ "type": "object",
2249
+ "properties": {
2250
+ "sanityType": {
2251
+ "enum": [
2252
+ "sanity.imageAsset"
2253
+ ],
2254
+ "type": "string",
2255
+ "default": "sanity.imageAsset"
2256
+ },
2257
+ "mimeType": {
2258
+ "type": "string"
2259
+ },
2260
+ "originalFilename": {
2261
+ "type": "string"
2262
+ },
2263
+ "url": {
2264
+ "type": "string"
2265
+ },
2266
+ "sanityId": {
2267
+ "type": "string"
2268
+ }
2269
+ }
2270
+ },
2271
+ "slug": {
2272
+ "type": "object",
2273
+ "properties": {
2274
+ "sanityType": {
2275
+ "enum": [
2276
+ "slug"
2277
+ ],
2278
+ "type": "string",
2279
+ "default": "slug"
2280
+ },
2281
+ "source": {
2282
+ "type": "string"
2283
+ },
2284
+ "current": {
2285
+ "type": "string"
2286
+ }
2287
+ }
2288
+ },
2289
+ "tag": {
2290
+ "type": "object",
2291
+ "properties": {
2292
+ "username": {
2293
+ "type": "string"
2294
+ },
2295
+ "x": {
2296
+ "type": "number",
2297
+ "format": "float"
2298
+ },
2299
+ "y": {
2300
+ "type": "number",
2301
+ "format": "float"
2302
+ }
2303
+ }
2304
+ }
2305
+ },
2306
+ "securitySchemes": {
2307
+ "Implicit": {
2308
+ "type": "oauth2",
2309
+ "flows": {
2310
+ "implicit": {
2311
+ "authorizationUrl": "https://login.microsoftonline.com/a8533784-aa3c-403b-a61a-1533ecc6e3ed/oauth2/v2.0/authorize",
2312
+ "tokenUrl": "https://login.microsoftonline.com/a8533784-aa3c-403b-a61a-1533ecc6e3ed/oauth2/v2.0/token",
2313
+ "refreshUrl": "https://login.microsoftonline.com/a8533784-aa3c-403b-a61a-1533ecc6e3ed/oauth2/v2.0/token",
2314
+ "scopes": {
2315
+ "api://92e357cd-734e-4f39-8c33-00cc401c8b76/user_impersonation": "Default function scope"
2316
+ }
2317
+ }
2318
+ }
2319
+ }
2320
+ }
2321
+ }
2322
+ }