@vermeulen.solutions/eventual 0.0.0-stage → 0.18.2

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 (75) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +139 -2
  3. package/astro/EventList.astro +57 -0
  4. package/astro/admin.d.mts +3 -0
  5. package/astro/admin.mjs +158 -0
  6. package/astro/blueprint.d.mts +51 -0
  7. package/astro/blueprint.mjs +236 -0
  8. package/astro/cache.ts +82 -0
  9. package/astro/descriptor.mjs +7 -0
  10. package/astro/editor-compat.mjs +197 -0
  11. package/astro/editor-i18n.d.mts +8 -0
  12. package/astro/editor-i18n.mjs +157 -0
  13. package/astro/event-details.ts +29 -0
  14. package/astro/event-list.ts +56 -0
  15. package/astro/feed.ts +201 -0
  16. package/astro/install.d.mts +9 -0
  17. package/astro/install.mjs +66 -0
  18. package/astro/schema.ts +88 -0
  19. package/dist/index.d.mts +5 -0
  20. package/dist/index.mjs +1585 -0
  21. package/dist/plugin.d.mts +6 -0
  22. package/dist/plugin.mjs +13 -0
  23. package/docs/collection-setup.md +46 -0
  24. package/docs/history.md +16 -0
  25. package/docs/native-modernization.md +99 -0
  26. package/docs/public-feed-caching.md +259 -0
  27. package/docs/registry-installation.md +13 -0
  28. package/docs/release-notes-0.14.0.md +27 -0
  29. package/docs/release-notes-0.14.1.md +40 -0
  30. package/docs/release-notes-0.15.0.md +18 -0
  31. package/docs/release-notes-0.16.0.md +7 -0
  32. package/docs/release-notes-0.17.0.md +7 -0
  33. package/docs/release-notes-0.18.0.md +8 -0
  34. package/docs/release-notes-0.18.1.md +7 -0
  35. package/docs/release-notes-0.18.2.md +6 -0
  36. package/docs/upgrade-0.13.0.md +21 -0
  37. package/docs/user-guide.md +40 -0
  38. package/emdash-plugin.jsonc +77 -0
  39. package/package.json +143 -4
  40. package/scripts/check-editor-installation.mjs +32 -0
  41. package/scripts/export-native-schema.mjs +28 -0
  42. package/scripts/upgrade-native-editor.mjs +296 -0
  43. package/src/domain/calendar-links.ts +80 -0
  44. package/src/domain/category.ts +32 -0
  45. package/src/domain/collections.ts +101 -0
  46. package/src/domain/date-time.ts +220 -0
  47. package/src/domain/description.ts +108 -0
  48. package/src/domain/event-data.ts +217 -0
  49. package/src/domain/event-expansion.ts +305 -0
  50. package/src/domain/event.ts +195 -0
  51. package/src/domain/icalendar.ts +165 -0
  52. package/src/domain/image.ts +18 -0
  53. package/src/domain/invocation-budget.ts +56 -0
  54. package/src/domain/messages.ts +8 -0
  55. package/src/domain/migration.ts +666 -0
  56. package/src/domain/native-calendar.ts +256 -0
  57. package/src/domain/native-references.ts +41 -0
  58. package/src/domain/native-source.ts +261 -0
  59. package/src/domain/native-validation.ts +366 -0
  60. package/src/domain/occurrences.ts +54 -0
  61. package/src/domain/portable-text.ts +180 -0
  62. package/src/domain/public-cache.ts +24 -0
  63. package/src/domain/recurrence-rule.ts +34 -0
  64. package/src/domain/recurrence.ts +350 -0
  65. package/src/domain/request-memo.ts +8 -0
  66. package/src/domain/schedule-history.ts +14 -0
  67. package/src/domain/text.ts +2 -0
  68. package/src/domain/time-entry.ts +23 -0
  69. package/src/domain/venue-adapter.ts +101 -0
  70. package/src/domain/venue.ts +42 -0
  71. package/src/public-event.ts +88 -0
  72. package/src/schema/blueprint.ts +315 -0
  73. package/src/storage.ts +257 -0
  74. package/transfer/index.d.mts +13 -0
  75. package/transfer/index.mjs +155 -0
package/dist/index.mjs ADDED
@@ -0,0 +1,1585 @@
1
+ // Auto-generated by emdash-plugin build. Do not edit.
2
+ // Source: emdash-plugin.jsonc + package.json
3
+ //
4
+ // Default-exports a sandboxed plugin descriptor. Pass it directly into
5
+ // emdash's `plugins:` or `sandboxed:` array — no factory call needed.
6
+
7
+ /** @type {import("emdash").PluginDescriptor} */
8
+ const descriptor = Object.freeze({
9
+ "id": "eventual",
10
+ "version": "0.18.2",
11
+ "format": "standard",
12
+ "entrypoint": "@vermeulen.solutions/eventual/sandbox",
13
+ "capabilities": [
14
+ "content:read",
15
+ "content:revisions:read",
16
+ "content:write",
17
+ "content:publish",
18
+ "schema:read",
19
+ "hooks.content-policy:register",
20
+ "media:read",
21
+ "media:bytes:read",
22
+ "network:request"
23
+ ],
24
+ "allowedHosts": [
25
+ "cdn.jsdelivr.net"
26
+ ],
27
+ "storage": {
28
+ "events": {
29
+ "indexes": [
30
+ "start",
31
+ "published",
32
+ [
33
+ "published",
34
+ "start"
35
+ ],
36
+ "venueId",
37
+ "organizerId"
38
+ ]
39
+ },
40
+ "venues": {
41
+ "indexes": [
42
+ "name"
43
+ ]
44
+ },
45
+ "organizers": {
46
+ "indexes": [
47
+ "name"
48
+ ]
49
+ },
50
+ "calendar_cancellations": {
51
+ "indexes": [
52
+ "eventId",
53
+ "cancelledAt"
54
+ ]
55
+ }
56
+ },
57
+ "hooks": [
58
+ "plugin:activate",
59
+ "content:beforeSave",
60
+ "content:beforeDelete",
61
+ "content:beforePublish",
62
+ "content:beforeSchedule",
63
+ "content:beforeUnpublish"
64
+ ],
65
+ "routes": [
66
+ {
67
+ "name": "mcp/organizers/list",
68
+ "permission": "plugins:manage"
69
+ },
70
+ {
71
+ "name": "mcp/organizers/create",
72
+ "permission": "plugins:manage"
73
+ },
74
+ {
75
+ "name": "mcp/organizers/update",
76
+ "permission": "plugins:manage"
77
+ },
78
+ {
79
+ "name": "mcp/events/list",
80
+ "permission": "plugins:manage"
81
+ },
82
+ {
83
+ "name": "mcp/events/get",
84
+ "permission": "plugins:manage"
85
+ },
86
+ {
87
+ "name": "mcp/events/occurrences",
88
+ "permission": "plugins:manage"
89
+ },
90
+ {
91
+ "name": "mcp/events/create",
92
+ "permission": "plugins:manage"
93
+ },
94
+ {
95
+ "name": "mcp/events/update",
96
+ "permission": "plugins:manage"
97
+ },
98
+ {
99
+ "name": "mcp/events/publish",
100
+ "permission": "plugins:manage"
101
+ },
102
+ {
103
+ "name": "mcp/events/unpublish",
104
+ "permission": "plugins:manage"
105
+ },
106
+ {
107
+ "name": "mcp/events/delete",
108
+ "permission": "plugins:manage"
109
+ },
110
+ {
111
+ "name": "mcp/events/exception/set",
112
+ "permission": "plugins:manage"
113
+ },
114
+ {
115
+ "name": "mcp/events/exception/remove",
116
+ "permission": "plugins:manage"
117
+ },
118
+ {
119
+ "name": "mcp/venues/list",
120
+ "permission": "plugins:manage"
121
+ },
122
+ {
123
+ "name": "mcp/venues/create",
124
+ "permission": "plugins:manage"
125
+ },
126
+ {
127
+ "name": "mcp/venues/update",
128
+ "permission": "plugins:manage"
129
+ },
130
+ {
131
+ "name": "mcp/venues/delete",
132
+ "permission": "plugins:manage"
133
+ },
134
+ {
135
+ "name": "mcp/settings/get",
136
+ "permission": "plugins:manage"
137
+ },
138
+ {
139
+ "name": "mcp/settings/update",
140
+ "permission": "plugins:manage"
141
+ },
142
+ {
143
+ "name": "mcp/transfer/preview",
144
+ "permission": "plugins:manage"
145
+ },
146
+ {
147
+ "name": "mcp/transfer/import",
148
+ "permission": "plugins:manage"
149
+ },
150
+ {
151
+ "name": "mcp/transfer/export",
152
+ "permission": "plugins:manage"
153
+ },
154
+ {
155
+ "name": "mcp/transfer/migrateToNative",
156
+ "permission": "plugins:manage"
157
+ },
158
+ {
159
+ "name": "admin",
160
+ "permission": "content:edit_any"
161
+ },
162
+ {
163
+ "name": "admin/editor/schedule",
164
+ "permission": "content:edit_any"
165
+ },
166
+ {
167
+ "name": "publicEvents",
168
+ "methods": [
169
+ "GET"
170
+ ],
171
+ "request": {
172
+ "body": "none"
173
+ },
174
+ "public": true,
175
+ "cacheControl": "public, max-age=60"
176
+ },
177
+ {
178
+ "name": "publicEventImage",
179
+ "methods": [
180
+ "GET"
181
+ ],
182
+ "request": {
183
+ "body": "none"
184
+ },
185
+ "response": "raw",
186
+ "public": true,
187
+ "cacheControl": "no-store"
188
+ },
189
+ {
190
+ "name": "calendar",
191
+ "methods": [
192
+ "GET"
193
+ ],
194
+ "request": {
195
+ "body": "none"
196
+ },
197
+ "response": "raw",
198
+ "public": true,
199
+ "cacheControl": "public, max-age=300"
200
+ }
201
+ ],
202
+ "mcp": {
203
+ "tools": [
204
+ {
205
+ "name": "previewImport",
206
+ "description": "Preview import.",
207
+ "route": "mcp/transfer/preview",
208
+ "permission": "plugins:manage",
209
+ "destructive": false,
210
+ "inputSchema": {
211
+ "type": "object",
212
+ "properties": {
213
+ "collection": {
214
+ "type": "string",
215
+ "enum": [
216
+ "events",
217
+ "venues",
218
+ "organizers"
219
+ ]
220
+ },
221
+ "source": {
222
+ "type": "string",
223
+ "minLength": 1,
224
+ "maxLength": 200
225
+ },
226
+ "mode": {
227
+ "type": "string",
228
+ "enum": [
229
+ "copy",
230
+ "restore"
231
+ ]
232
+ },
233
+ "records": {
234
+ "type": "array",
235
+ "items": {
236
+ "type": "object",
237
+ "properties": {
238
+ "sourceId": {
239
+ "type": "string",
240
+ "minLength": 1,
241
+ "maxLength": 200
242
+ },
243
+ "data": {
244
+ "type": "object",
245
+ "additionalProperties": true
246
+ }
247
+ },
248
+ "required": [
249
+ "sourceId",
250
+ "data"
251
+ ],
252
+ "additionalProperties": false
253
+ },
254
+ "maxItems": 10,
255
+ "minItems": 1
256
+ }
257
+ },
258
+ "required": [
259
+ "collection",
260
+ "source",
261
+ "records"
262
+ ],
263
+ "additionalProperties": false
264
+ }
265
+ },
266
+ {
267
+ "name": "importRecords",
268
+ "description": "Import records.",
269
+ "route": "mcp/transfer/import",
270
+ "permission": "plugins:manage",
271
+ "destructive": false,
272
+ "inputSchema": {
273
+ "type": "object",
274
+ "properties": {
275
+ "collection": {
276
+ "type": "string",
277
+ "enum": [
278
+ "events",
279
+ "venues",
280
+ "organizers"
281
+ ]
282
+ },
283
+ "source": {
284
+ "type": "string",
285
+ "minLength": 1,
286
+ "maxLength": 200
287
+ },
288
+ "mode": {
289
+ "type": "string",
290
+ "enum": [
291
+ "copy",
292
+ "restore"
293
+ ]
294
+ },
295
+ "records": {
296
+ "type": "array",
297
+ "items": {
298
+ "type": "object",
299
+ "properties": {
300
+ "sourceId": {
301
+ "type": "string",
302
+ "minLength": 1,
303
+ "maxLength": 200
304
+ },
305
+ "data": {
306
+ "type": "object",
307
+ "additionalProperties": true
308
+ }
309
+ },
310
+ "required": [
311
+ "sourceId",
312
+ "data"
313
+ ],
314
+ "additionalProperties": false
315
+ },
316
+ "maxItems": 10,
317
+ "minItems": 1
318
+ }
319
+ },
320
+ "required": [
321
+ "collection",
322
+ "source",
323
+ "records"
324
+ ],
325
+ "additionalProperties": false
326
+ }
327
+ },
328
+ {
329
+ "name": "exportRecords",
330
+ "description": "Export records.",
331
+ "route": "mcp/transfer/export",
332
+ "permission": "plugins:manage",
333
+ "destructive": false,
334
+ "inputSchema": {
335
+ "type": "object",
336
+ "properties": {
337
+ "collection": {
338
+ "type": "string",
339
+ "enum": [
340
+ "events",
341
+ "venues",
342
+ "organizers"
343
+ ]
344
+ },
345
+ "cursor": {
346
+ "type": "string",
347
+ "minLength": 1,
348
+ "maxLength": 2000
349
+ },
350
+ "limit": {
351
+ "type": "integer",
352
+ "minimum": 1,
353
+ "maximum": 10
354
+ }
355
+ },
356
+ "required": [
357
+ "collection"
358
+ ],
359
+ "additionalProperties": false
360
+ }
361
+ },
362
+ {
363
+ "name": "listOrganizers",
364
+ "description": "List organizers.",
365
+ "route": "mcp/organizers/list",
366
+ "permission": "plugins:manage",
367
+ "destructive": false,
368
+ "inputSchema": {
369
+ "type": "object",
370
+ "properties": {},
371
+ "additionalProperties": false
372
+ }
373
+ },
374
+ {
375
+ "name": "createOrganizer",
376
+ "description": "Create organizer.",
377
+ "route": "mcp/organizers/create",
378
+ "permission": "plugins:manage",
379
+ "destructive": false,
380
+ "inputSchema": {
381
+ "type": "object",
382
+ "properties": {
383
+ "name": {
384
+ "type": "string",
385
+ "minLength": 1,
386
+ "maxLength": 200
387
+ },
388
+ "website": {
389
+ "type": "string",
390
+ "maxLength": 2048
391
+ },
392
+ "contactUrl": {
393
+ "type": "string",
394
+ "maxLength": 2048
395
+ }
396
+ },
397
+ "required": [
398
+ "name"
399
+ ],
400
+ "additionalProperties": false
401
+ }
402
+ },
403
+ {
404
+ "name": "updateOrganizer",
405
+ "description": "Update organizer.",
406
+ "route": "mcp/organizers/update",
407
+ "permission": "plugins:manage",
408
+ "destructive": true,
409
+ "inputSchema": {
410
+ "type": "object",
411
+ "properties": {
412
+ "id": {
413
+ "type": "string",
414
+ "minLength": 1,
415
+ "maxLength": 200
416
+ },
417
+ "expectedUpdatedAt": {
418
+ "type": "string",
419
+ "minLength": 1,
420
+ "maxLength": 32
421
+ },
422
+ "patch": {
423
+ "type": "object",
424
+ "properties": {
425
+ "name": {
426
+ "type": "string",
427
+ "minLength": 1,
428
+ "maxLength": 200
429
+ },
430
+ "website": {
431
+ "type": "string",
432
+ "maxLength": 2048
433
+ },
434
+ "contactUrl": {
435
+ "type": "string",
436
+ "maxLength": 2048
437
+ }
438
+ },
439
+ "additionalProperties": false
440
+ }
441
+ },
442
+ "required": [
443
+ "id",
444
+ "expectedUpdatedAt",
445
+ "patch"
446
+ ],
447
+ "additionalProperties": false
448
+ }
449
+ },
450
+ {
451
+ "name": "listEvents",
452
+ "description": "List occurrences.",
453
+ "route": "mcp/events/list",
454
+ "permission": "plugins:manage",
455
+ "destructive": false,
456
+ "inputSchema": {
457
+ "type": "object",
458
+ "properties": {
459
+ "from": {
460
+ "type": "string"
461
+ },
462
+ "through": {
463
+ "type": "string"
464
+ },
465
+ "includeDrafts": {
466
+ "type": "boolean"
467
+ },
468
+ "limit": {
469
+ "type": "integer",
470
+ "minimum": 1,
471
+ "maximum": 100
472
+ }
473
+ },
474
+ "additionalProperties": false
475
+ }
476
+ },
477
+ {
478
+ "name": "getEvent",
479
+ "description": "Get event.",
480
+ "route": "mcp/events/get",
481
+ "permission": "plugins:manage",
482
+ "destructive": false,
483
+ "inputSchema": {
484
+ "type": "object",
485
+ "properties": {
486
+ "id": {
487
+ "type": "string",
488
+ "minLength": 1,
489
+ "maxLength": 200
490
+ }
491
+ },
492
+ "required": [
493
+ "id"
494
+ ],
495
+ "additionalProperties": false
496
+ }
497
+ },
498
+ {
499
+ "name": "listOccurrences",
500
+ "description": "List occurrences.",
501
+ "route": "mcp/events/occurrences",
502
+ "permission": "plugins:manage",
503
+ "destructive": false,
504
+ "inputSchema": {
505
+ "type": "object",
506
+ "properties": {
507
+ "id": {
508
+ "type": "string",
509
+ "minLength": 1,
510
+ "maxLength": 200
511
+ },
512
+ "from": {
513
+ "type": "string"
514
+ },
515
+ "through": {
516
+ "type": "string"
517
+ },
518
+ "limit": {
519
+ "type": "integer",
520
+ "minimum": 1,
521
+ "maximum": 100
522
+ }
523
+ },
524
+ "required": [
525
+ "id"
526
+ ],
527
+ "additionalProperties": false
528
+ }
529
+ },
530
+ {
531
+ "name": "createEvent",
532
+ "description": "Create event.",
533
+ "route": "mcp/events/create",
534
+ "permission": "plugins:manage",
535
+ "destructive": false,
536
+ "inputSchema": {
537
+ "type": "object",
538
+ "properties": {
539
+ "title": {
540
+ "type": "string",
541
+ "minLength": 1,
542
+ "maxLength": 200
543
+ },
544
+ "description": {
545
+ "type": "string",
546
+ "maxLength": 12000
547
+ },
548
+ "start": {
549
+ "type": "string",
550
+ "minLength": 1,
551
+ "maxLength": 32
552
+ },
553
+ "end": {
554
+ "type": "string",
555
+ "minLength": 1,
556
+ "maxLength": 32
557
+ },
558
+ "allDay": {
559
+ "type": "boolean"
560
+ },
561
+ "timezone": {
562
+ "type": "string",
563
+ "minLength": 1,
564
+ "maxLength": 100
565
+ },
566
+ "location": {
567
+ "type": "string",
568
+ "maxLength": 500
569
+ },
570
+ "locationType": {
571
+ "type": "string",
572
+ "enum": [
573
+ "physical",
574
+ "virtual",
575
+ "hybrid"
576
+ ]
577
+ },
578
+ "virtualUrl": {
579
+ "type": "string",
580
+ "maxLength": 2048
581
+ },
582
+ "status": {
583
+ "type": "string",
584
+ "enum": [
585
+ "draft",
586
+ "published",
587
+ "cancelled",
588
+ "postponed",
589
+ "rescheduled"
590
+ ]
591
+ },
592
+ "organizer": {
593
+ "type": "string",
594
+ "maxLength": 300
595
+ },
596
+ "organizerId": {
597
+ "type": "string",
598
+ "maxLength": 200
599
+ },
600
+ "externalUrl": {
601
+ "type": "string",
602
+ "maxLength": 2048
603
+ },
604
+ "imageUrl": {
605
+ "type": "string",
606
+ "maxLength": 2048
607
+ },
608
+ "imageMediaId": {
609
+ "type": "string",
610
+ "maxLength": 200
611
+ },
612
+ "categories": {
613
+ "type": "array",
614
+ "items": {
615
+ "type": "string",
616
+ "maxLength": 100
617
+ },
618
+ "maxItems": 30
619
+ },
620
+ "venueId": {
621
+ "type": "string",
622
+ "maxLength": 200
623
+ },
624
+ "recurrence": {
625
+ "oneOf": [
626
+ {
627
+ "type": "object",
628
+ "properties": {
629
+ "frequency": {
630
+ "type": "string",
631
+ "const": "daily"
632
+ },
633
+ "until": {
634
+ "type": "string"
635
+ },
636
+ "interval": {
637
+ "type": "integer",
638
+ "minimum": 1,
639
+ "maximum": 52
640
+ }
641
+ },
642
+ "required": [
643
+ "frequency",
644
+ "until"
645
+ ],
646
+ "additionalProperties": false
647
+ },
648
+ {
649
+ "type": "object",
650
+ "properties": {
651
+ "frequency": {
652
+ "type": "string",
653
+ "const": "weekly"
654
+ },
655
+ "until": {
656
+ "type": "string"
657
+ },
658
+ "interval": {
659
+ "type": "integer",
660
+ "minimum": 1,
661
+ "maximum": 52
662
+ },
663
+ "weekdays": {
664
+ "type": "array",
665
+ "items": {
666
+ "type": "string",
667
+ "enum": [
668
+ "sunday",
669
+ "monday",
670
+ "tuesday",
671
+ "wednesday",
672
+ "thursday",
673
+ "friday",
674
+ "saturday"
675
+ ]
676
+ },
677
+ "maxItems": 7,
678
+ "minItems": 1
679
+ }
680
+ },
681
+ "required": [
682
+ "frequency",
683
+ "until"
684
+ ],
685
+ "additionalProperties": false
686
+ },
687
+ {
688
+ "type": "object",
689
+ "properties": {
690
+ "frequency": {
691
+ "type": "string",
692
+ "const": "monthly"
693
+ },
694
+ "until": {
695
+ "type": "string"
696
+ },
697
+ "interval": {
698
+ "type": "integer",
699
+ "minimum": 1,
700
+ "maximum": 52
701
+ },
702
+ "pattern": {
703
+ "oneOf": [
704
+ {
705
+ "type": "object",
706
+ "properties": {
707
+ "type": {
708
+ "type": "string",
709
+ "const": "dayOfMonth"
710
+ },
711
+ "dayOfMonth": {
712
+ "type": "integer",
713
+ "minimum": 1,
714
+ "maximum": 31
715
+ },
716
+ "missingDayBehavior": {
717
+ "type": "string",
718
+ "enum": [
719
+ "skip",
720
+ "lastDay"
721
+ ]
722
+ }
723
+ },
724
+ "required": [
725
+ "type",
726
+ "dayOfMonth",
727
+ "missingDayBehavior"
728
+ ],
729
+ "additionalProperties": false
730
+ },
731
+ {
732
+ "type": "object",
733
+ "properties": {
734
+ "type": {
735
+ "type": "string",
736
+ "const": "weekdayOfMonth"
737
+ },
738
+ "weekday": {
739
+ "type": "string",
740
+ "enum": [
741
+ "sunday",
742
+ "monday",
743
+ "tuesday",
744
+ "wednesday",
745
+ "thursday",
746
+ "friday",
747
+ "saturday"
748
+ ]
749
+ },
750
+ "position": {
751
+ "anyOf": [
752
+ {
753
+ "type": "number",
754
+ "const": 1
755
+ },
756
+ {
757
+ "type": "number",
758
+ "const": 2
759
+ },
760
+ {
761
+ "type": "number",
762
+ "const": 3
763
+ },
764
+ {
765
+ "type": "number",
766
+ "const": 4
767
+ },
768
+ {
769
+ "type": "number",
770
+ "const": 5
771
+ },
772
+ {
773
+ "type": "string",
774
+ "const": "last"
775
+ }
776
+ ]
777
+ }
778
+ },
779
+ "required": [
780
+ "type",
781
+ "weekday",
782
+ "position"
783
+ ],
784
+ "additionalProperties": false
785
+ }
786
+ ]
787
+ }
788
+ },
789
+ "required": [
790
+ "frequency",
791
+ "until",
792
+ "pattern"
793
+ ],
794
+ "additionalProperties": false
795
+ }
796
+ ]
797
+ }
798
+ },
799
+ "required": [
800
+ "title",
801
+ "start",
802
+ "end",
803
+ "allDay"
804
+ ],
805
+ "additionalProperties": false
806
+ }
807
+ },
808
+ {
809
+ "name": "updateEvent",
810
+ "description": "Update event.",
811
+ "route": "mcp/events/update",
812
+ "permission": "plugins:manage",
813
+ "destructive": true,
814
+ "inputSchema": {
815
+ "type": "object",
816
+ "properties": {
817
+ "id": {
818
+ "type": "string",
819
+ "minLength": 1,
820
+ "maxLength": 200
821
+ },
822
+ "patch": {
823
+ "type": "object",
824
+ "properties": {
825
+ "title": {
826
+ "type": "string",
827
+ "minLength": 1,
828
+ "maxLength": 200
829
+ },
830
+ "description": {
831
+ "type": "string",
832
+ "maxLength": 12000
833
+ },
834
+ "start": {
835
+ "type": "string",
836
+ "minLength": 1,
837
+ "maxLength": 32
838
+ },
839
+ "end": {
840
+ "type": "string",
841
+ "minLength": 1,
842
+ "maxLength": 32
843
+ },
844
+ "allDay": {
845
+ "type": "boolean"
846
+ },
847
+ "timezone": {
848
+ "type": "string",
849
+ "minLength": 1,
850
+ "maxLength": 100
851
+ },
852
+ "location": {
853
+ "type": "string",
854
+ "maxLength": 500
855
+ },
856
+ "locationType": {
857
+ "type": "string",
858
+ "enum": [
859
+ "physical",
860
+ "virtual",
861
+ "hybrid"
862
+ ]
863
+ },
864
+ "virtualUrl": {
865
+ "type": "string",
866
+ "maxLength": 2048
867
+ },
868
+ "status": {
869
+ "type": "string",
870
+ "enum": [
871
+ "draft",
872
+ "published",
873
+ "cancelled",
874
+ "postponed",
875
+ "rescheduled"
876
+ ]
877
+ },
878
+ "organizer": {
879
+ "type": "string",
880
+ "maxLength": 300
881
+ },
882
+ "organizerId": {
883
+ "type": "string",
884
+ "maxLength": 200
885
+ },
886
+ "externalUrl": {
887
+ "type": "string",
888
+ "maxLength": 2048
889
+ },
890
+ "imageUrl": {
891
+ "type": "string",
892
+ "maxLength": 2048
893
+ },
894
+ "imageMediaId": {
895
+ "type": "string",
896
+ "maxLength": 200
897
+ },
898
+ "categories": {
899
+ "type": "array",
900
+ "items": {
901
+ "type": "string",
902
+ "maxLength": 100
903
+ },
904
+ "maxItems": 30
905
+ },
906
+ "venueId": {
907
+ "type": "string",
908
+ "maxLength": 200
909
+ },
910
+ "recurrence": {
911
+ "anyOf": [
912
+ {
913
+ "oneOf": [
914
+ {
915
+ "type": "object",
916
+ "properties": {
917
+ "frequency": {
918
+ "type": "string",
919
+ "const": "daily"
920
+ },
921
+ "until": {
922
+ "type": "string"
923
+ },
924
+ "interval": {
925
+ "type": "integer",
926
+ "minimum": 1,
927
+ "maximum": 52
928
+ }
929
+ },
930
+ "required": [
931
+ "frequency",
932
+ "until"
933
+ ],
934
+ "additionalProperties": false
935
+ },
936
+ {
937
+ "type": "object",
938
+ "properties": {
939
+ "frequency": {
940
+ "type": "string",
941
+ "const": "weekly"
942
+ },
943
+ "until": {
944
+ "type": "string"
945
+ },
946
+ "interval": {
947
+ "type": "integer",
948
+ "minimum": 1,
949
+ "maximum": 52
950
+ },
951
+ "weekdays": {
952
+ "type": "array",
953
+ "items": {
954
+ "type": "string",
955
+ "enum": [
956
+ "sunday",
957
+ "monday",
958
+ "tuesday",
959
+ "wednesday",
960
+ "thursday",
961
+ "friday",
962
+ "saturday"
963
+ ]
964
+ },
965
+ "maxItems": 7,
966
+ "minItems": 1
967
+ }
968
+ },
969
+ "required": [
970
+ "frequency",
971
+ "until"
972
+ ],
973
+ "additionalProperties": false
974
+ },
975
+ {
976
+ "type": "object",
977
+ "properties": {
978
+ "frequency": {
979
+ "type": "string",
980
+ "const": "monthly"
981
+ },
982
+ "until": {
983
+ "type": "string"
984
+ },
985
+ "interval": {
986
+ "type": "integer",
987
+ "minimum": 1,
988
+ "maximum": 52
989
+ },
990
+ "pattern": {
991
+ "oneOf": [
992
+ {
993
+ "type": "object",
994
+ "properties": {
995
+ "type": {
996
+ "type": "string",
997
+ "const": "dayOfMonth"
998
+ },
999
+ "dayOfMonth": {
1000
+ "type": "integer",
1001
+ "minimum": 1,
1002
+ "maximum": 31
1003
+ },
1004
+ "missingDayBehavior": {
1005
+ "type": "string",
1006
+ "enum": [
1007
+ "skip",
1008
+ "lastDay"
1009
+ ]
1010
+ }
1011
+ },
1012
+ "required": [
1013
+ "type",
1014
+ "dayOfMonth",
1015
+ "missingDayBehavior"
1016
+ ],
1017
+ "additionalProperties": false
1018
+ },
1019
+ {
1020
+ "type": "object",
1021
+ "properties": {
1022
+ "type": {
1023
+ "type": "string",
1024
+ "const": "weekdayOfMonth"
1025
+ },
1026
+ "weekday": {
1027
+ "type": "string",
1028
+ "enum": [
1029
+ "sunday",
1030
+ "monday",
1031
+ "tuesday",
1032
+ "wednesday",
1033
+ "thursday",
1034
+ "friday",
1035
+ "saturday"
1036
+ ]
1037
+ },
1038
+ "position": {
1039
+ "anyOf": [
1040
+ {
1041
+ "type": "number",
1042
+ "const": 1
1043
+ },
1044
+ {
1045
+ "type": "number",
1046
+ "const": 2
1047
+ },
1048
+ {
1049
+ "type": "number",
1050
+ "const": 3
1051
+ },
1052
+ {
1053
+ "type": "number",
1054
+ "const": 4
1055
+ },
1056
+ {
1057
+ "type": "number",
1058
+ "const": 5
1059
+ },
1060
+ {
1061
+ "type": "string",
1062
+ "const": "last"
1063
+ }
1064
+ ]
1065
+ }
1066
+ },
1067
+ "required": [
1068
+ "type",
1069
+ "weekday",
1070
+ "position"
1071
+ ],
1072
+ "additionalProperties": false
1073
+ }
1074
+ ]
1075
+ }
1076
+ },
1077
+ "required": [
1078
+ "frequency",
1079
+ "until",
1080
+ "pattern"
1081
+ ],
1082
+ "additionalProperties": false
1083
+ }
1084
+ ]
1085
+ },
1086
+ {
1087
+ "type": "null"
1088
+ }
1089
+ ]
1090
+ }
1091
+ },
1092
+ "additionalProperties": false
1093
+ }
1094
+ },
1095
+ "required": [
1096
+ "id",
1097
+ "patch"
1098
+ ],
1099
+ "additionalProperties": false
1100
+ }
1101
+ },
1102
+ {
1103
+ "name": "publishEvent",
1104
+ "description": "Publish.",
1105
+ "route": "mcp/events/publish",
1106
+ "permission": "plugins:manage",
1107
+ "destructive": true,
1108
+ "inputSchema": {
1109
+ "type": "object",
1110
+ "properties": {
1111
+ "id": {
1112
+ "type": "string",
1113
+ "minLength": 1,
1114
+ "maxLength": 200
1115
+ }
1116
+ },
1117
+ "required": [
1118
+ "id"
1119
+ ],
1120
+ "additionalProperties": false
1121
+ }
1122
+ },
1123
+ {
1124
+ "name": "unpublishEvent",
1125
+ "description": "Unpublish.",
1126
+ "route": "mcp/events/unpublish",
1127
+ "permission": "plugins:manage",
1128
+ "destructive": true,
1129
+ "inputSchema": {
1130
+ "type": "object",
1131
+ "properties": {
1132
+ "id": {
1133
+ "type": "string",
1134
+ "minLength": 1,
1135
+ "maxLength": 200
1136
+ }
1137
+ },
1138
+ "required": [
1139
+ "id"
1140
+ ],
1141
+ "additionalProperties": false
1142
+ }
1143
+ },
1144
+ {
1145
+ "name": "deleteEvent",
1146
+ "description": "Delete event.",
1147
+ "route": "mcp/events/delete",
1148
+ "permission": "plugins:manage",
1149
+ "destructive": true,
1150
+ "inputSchema": {
1151
+ "type": "object",
1152
+ "properties": {
1153
+ "id": {
1154
+ "type": "string",
1155
+ "minLength": 1,
1156
+ "maxLength": 200
1157
+ }
1158
+ },
1159
+ "required": [
1160
+ "id"
1161
+ ],
1162
+ "additionalProperties": false
1163
+ }
1164
+ },
1165
+ {
1166
+ "name": "setOccurrenceException",
1167
+ "description": "Set exception.",
1168
+ "route": "mcp/events/exception/set",
1169
+ "permission": "plugins:manage",
1170
+ "destructive": true,
1171
+ "inputSchema": {
1172
+ "type": "object",
1173
+ "properties": {
1174
+ "eventId": {
1175
+ "type": "string",
1176
+ "minLength": 1,
1177
+ "maxLength": 200
1178
+ },
1179
+ "recurrenceId": {
1180
+ "type": "string",
1181
+ "maxLength": 16
1182
+ },
1183
+ "status": {
1184
+ "type": "string",
1185
+ "enum": [
1186
+ "cancelled",
1187
+ "modified"
1188
+ ]
1189
+ },
1190
+ "overrides": {
1191
+ "type": "object",
1192
+ "properties": {
1193
+ "locationType": {
1194
+ "type": "string",
1195
+ "enum": [
1196
+ "physical",
1197
+ "virtual",
1198
+ "hybrid"
1199
+ ]
1200
+ },
1201
+ "virtualUrl": {
1202
+ "type": "string",
1203
+ "maxLength": 2048
1204
+ },
1205
+ "status": {
1206
+ "type": "string",
1207
+ "enum": [
1208
+ "draft",
1209
+ "published",
1210
+ "cancelled",
1211
+ "postponed",
1212
+ "rescheduled"
1213
+ ]
1214
+ },
1215
+ "title": {
1216
+ "type": "string",
1217
+ "minLength": 1,
1218
+ "maxLength": 200
1219
+ },
1220
+ "description": {
1221
+ "type": "string",
1222
+ "maxLength": 12000
1223
+ },
1224
+ "start": {
1225
+ "type": "string",
1226
+ "minLength": 1,
1227
+ "maxLength": 32
1228
+ },
1229
+ "end": {
1230
+ "type": "string",
1231
+ "minLength": 1,
1232
+ "maxLength": 32
1233
+ },
1234
+ "allDay": {
1235
+ "type": "boolean"
1236
+ },
1237
+ "timezone": {
1238
+ "type": "string",
1239
+ "minLength": 1,
1240
+ "maxLength": 100
1241
+ },
1242
+ "location": {
1243
+ "type": "string",
1244
+ "maxLength": 500
1245
+ },
1246
+ "organizer": {
1247
+ "type": "string",
1248
+ "maxLength": 300
1249
+ },
1250
+ "externalUrl": {
1251
+ "type": "string",
1252
+ "maxLength": 2048
1253
+ },
1254
+ "imageUrl": {
1255
+ "type": "string",
1256
+ "maxLength": 2048
1257
+ },
1258
+ "categories": {
1259
+ "type": "array",
1260
+ "items": {
1261
+ "type": "string",
1262
+ "maxLength": 100
1263
+ },
1264
+ "maxItems": 30
1265
+ }
1266
+ },
1267
+ "additionalProperties": false
1268
+ }
1269
+ },
1270
+ "required": [
1271
+ "eventId",
1272
+ "recurrenceId",
1273
+ "status"
1274
+ ],
1275
+ "additionalProperties": false
1276
+ }
1277
+ },
1278
+ {
1279
+ "name": "removeOccurrenceException",
1280
+ "description": "Remove exception.",
1281
+ "route": "mcp/events/exception/remove",
1282
+ "permission": "plugins:manage",
1283
+ "destructive": true,
1284
+ "inputSchema": {
1285
+ "type": "object",
1286
+ "properties": {
1287
+ "eventId": {
1288
+ "type": "string",
1289
+ "minLength": 1,
1290
+ "maxLength": 200
1291
+ },
1292
+ "recurrenceId": {
1293
+ "type": "string",
1294
+ "maxLength": 16
1295
+ }
1296
+ },
1297
+ "required": [
1298
+ "eventId",
1299
+ "recurrenceId"
1300
+ ],
1301
+ "additionalProperties": false
1302
+ }
1303
+ },
1304
+ {
1305
+ "name": "listVenues",
1306
+ "description": "List venues.",
1307
+ "route": "mcp/venues/list",
1308
+ "permission": "plugins:manage",
1309
+ "destructive": false,
1310
+ "inputSchema": {
1311
+ "type": "object",
1312
+ "properties": {},
1313
+ "additionalProperties": false
1314
+ }
1315
+ },
1316
+ {
1317
+ "name": "createVenue",
1318
+ "description": "Create venue.",
1319
+ "route": "mcp/venues/create",
1320
+ "permission": "plugins:manage",
1321
+ "destructive": false,
1322
+ "inputSchema": {
1323
+ "type": "object",
1324
+ "properties": {
1325
+ "name": {
1326
+ "type": "string",
1327
+ "minLength": 1,
1328
+ "maxLength": 200
1329
+ },
1330
+ "street": {
1331
+ "type": "string",
1332
+ "maxLength": 300
1333
+ },
1334
+ "street2": {
1335
+ "type": "string",
1336
+ "maxLength": 300
1337
+ },
1338
+ "locality": {
1339
+ "type": "string",
1340
+ "maxLength": 150
1341
+ },
1342
+ "region": {
1343
+ "type": "string",
1344
+ "maxLength": 150
1345
+ },
1346
+ "postalCode": {
1347
+ "type": "string",
1348
+ "maxLength": 40
1349
+ },
1350
+ "country": {
1351
+ "type": "string",
1352
+ "maxLength": 100
1353
+ }
1354
+ },
1355
+ "required": [
1356
+ "name"
1357
+ ],
1358
+ "additionalProperties": false
1359
+ }
1360
+ },
1361
+ {
1362
+ "name": "updateVenue",
1363
+ "description": "Update venue.",
1364
+ "route": "mcp/venues/update",
1365
+ "permission": "plugins:manage",
1366
+ "destructive": true,
1367
+ "inputSchema": {
1368
+ "type": "object",
1369
+ "properties": {
1370
+ "id": {
1371
+ "type": "string",
1372
+ "minLength": 1,
1373
+ "maxLength": 200
1374
+ },
1375
+ "patch": {
1376
+ "type": "object",
1377
+ "properties": {
1378
+ "name": {
1379
+ "type": "string",
1380
+ "minLength": 1,
1381
+ "maxLength": 200
1382
+ },
1383
+ "street": {
1384
+ "type": "string",
1385
+ "maxLength": 300
1386
+ },
1387
+ "street2": {
1388
+ "type": "string",
1389
+ "maxLength": 300
1390
+ },
1391
+ "locality": {
1392
+ "type": "string",
1393
+ "maxLength": 150
1394
+ },
1395
+ "region": {
1396
+ "type": "string",
1397
+ "maxLength": 150
1398
+ },
1399
+ "postalCode": {
1400
+ "type": "string",
1401
+ "maxLength": 40
1402
+ },
1403
+ "country": {
1404
+ "type": "string",
1405
+ "maxLength": 100
1406
+ }
1407
+ },
1408
+ "additionalProperties": false
1409
+ }
1410
+ },
1411
+ "required": [
1412
+ "id",
1413
+ "patch"
1414
+ ],
1415
+ "additionalProperties": false
1416
+ }
1417
+ },
1418
+ {
1419
+ "name": "deleteVenue",
1420
+ "description": "Delete venue.",
1421
+ "route": "mcp/venues/delete",
1422
+ "permission": "plugins:manage",
1423
+ "destructive": true,
1424
+ "inputSchema": {
1425
+ "type": "object",
1426
+ "properties": {
1427
+ "id": {
1428
+ "type": "string",
1429
+ "minLength": 1,
1430
+ "maxLength": 200
1431
+ }
1432
+ },
1433
+ "required": [
1434
+ "id"
1435
+ ],
1436
+ "additionalProperties": false
1437
+ }
1438
+ },
1439
+ {
1440
+ "name": "getSettings",
1441
+ "description": "Read settings.",
1442
+ "route": "mcp/settings/get",
1443
+ "permission": "plugins:manage",
1444
+ "destructive": false,
1445
+ "inputSchema": {
1446
+ "type": "object",
1447
+ "properties": {},
1448
+ "additionalProperties": false
1449
+ }
1450
+ },
1451
+ {
1452
+ "name": "updateSettings",
1453
+ "description": "Update settings.",
1454
+ "route": "mcp/settings/update",
1455
+ "permission": "plugins:manage",
1456
+ "destructive": true,
1457
+ "inputSchema": {
1458
+ "type": "object",
1459
+ "properties": {
1460
+ "defaultTimezone": {
1461
+ "type": "string",
1462
+ "minLength": 1,
1463
+ "maxLength": 100
1464
+ },
1465
+ "collections": {
1466
+ "type": "object",
1467
+ "properties": {
1468
+ "events": {
1469
+ "type": "string",
1470
+ "minLength": 1,
1471
+ "maxLength": 63
1472
+ },
1473
+ "venues": {
1474
+ "type": "string",
1475
+ "maxLength": 63
1476
+ },
1477
+ "organizers": {
1478
+ "type": "string",
1479
+ "maxLength": 63
1480
+ }
1481
+ },
1482
+ "required": [
1483
+ "events",
1484
+ "venues",
1485
+ "organizers"
1486
+ ],
1487
+ "additionalProperties": false
1488
+ },
1489
+ "legacyReads": {
1490
+ "type": "boolean"
1491
+ }
1492
+ },
1493
+ "required": [
1494
+ "defaultTimezone"
1495
+ ],
1496
+ "additionalProperties": false
1497
+ }
1498
+ },
1499
+ {
1500
+ "name": "migrateToNative",
1501
+ "description": "Migrate to native.",
1502
+ "route": "mcp/transfer/migrateToNative",
1503
+ "permission": "plugins:manage",
1504
+ "destructive": true,
1505
+ "inputSchema": {
1506
+ "type": "object",
1507
+ "properties": {
1508
+ "locale": {
1509
+ "type": "string",
1510
+ "minLength": 1,
1511
+ "maxLength": 20
1512
+ },
1513
+ "venueCollection": {
1514
+ "type": "string",
1515
+ "minLength": 1,
1516
+ "maxLength": 100
1517
+ },
1518
+ "dryRun": {
1519
+ "type": "boolean"
1520
+ },
1521
+ "cursor": {
1522
+ "type": "string",
1523
+ "minLength": 1,
1524
+ "maxLength": 4000
1525
+ },
1526
+ "limit": {
1527
+ "type": "integer",
1528
+ "minimum": 1,
1529
+ "maximum": 100
1530
+ },
1531
+ "venueMapping": {
1532
+ "type": "object",
1533
+ "additionalProperties": {
1534
+ "type": "string",
1535
+ "minLength": 1,
1536
+ "maxLength": 200
1537
+ },
1538
+ "maxProperties": 1000
1539
+ }
1540
+ },
1541
+ "additionalProperties": false
1542
+ }
1543
+ }
1544
+ ]
1545
+ },
1546
+ "adminPages": [
1547
+ {
1548
+ "path": "/events",
1549
+ "label": "Eventual RSVP",
1550
+ "icon": "calendar"
1551
+ },
1552
+ {
1553
+ "path": "/venues",
1554
+ "label": "Venues",
1555
+ "icon": "map-pin"
1556
+ },
1557
+ {
1558
+ "path": "/organizers",
1559
+ "label": "Organizers",
1560
+ "icon": "users"
1561
+ },
1562
+ {
1563
+ "path": "/settings",
1564
+ "label": "Event settings",
1565
+ "icon": "settings"
1566
+ }
1567
+ ],
1568
+ "adminWidgets": [
1569
+ {
1570
+ "id": "upcoming-events",
1571
+ "title": "Upcoming events",
1572
+ "size": "half"
1573
+ }
1574
+ ],
1575
+ "editorPanels": [
1576
+ {
1577
+ "id": "event-schedule",
1578
+ "title": "Dates, venue & repeat",
1579
+ "route": "admin/editor/schedule",
1580
+ "order": 10
1581
+ }
1582
+ ]
1583
+ });
1584
+
1585
+ export default descriptor;