@acms-subir/client 0.1.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.
@@ -0,0 +1,954 @@
1
+ export type Pagination = {
2
+ "page": number;
3
+ "limit": number;
4
+ "nextPage": (number) | (null);
5
+ };
6
+ export type Site = {
7
+ "name": string;
8
+ "description": string;
9
+ "logo": string;
10
+ "icon": string;
11
+ "menu": Array<{
12
+ "label": string;
13
+ "href": string;
14
+ }>;
15
+ "languages": {
16
+ "default": string | null;
17
+ "locales": Array<{
18
+ "code": string;
19
+ "name": string;
20
+ }>;
21
+ };
22
+ "features": {
23
+ "blog": Array<{
24
+ "key": string;
25
+ "name": string;
26
+ "url": string;
27
+ }>;
28
+ "calendar": boolean;
29
+ "bookings": boolean;
30
+ "search": boolean;
31
+ };
32
+ "apiVersion": 1;
33
+ };
34
+ export type Theme = {
35
+ "id": string;
36
+ "name": string;
37
+ "scheme": "auto" | "light" | "dark";
38
+ "colors": {
39
+ "light": {
40
+ "bg": string;
41
+ "ink": string;
42
+ "muted": string;
43
+ "line": string;
44
+ "accent": string;
45
+ "panel": string;
46
+ "soft": string;
47
+ };
48
+ "dark": {
49
+ "bg": string;
50
+ "ink": string;
51
+ "muted": string;
52
+ "line": string;
53
+ "accent": string;
54
+ "panel": string;
55
+ "soft": string;
56
+ };
57
+ };
58
+ "fonts": {
59
+ "heading": string;
60
+ "body": string;
61
+ "mono": string;
62
+ };
63
+ "radius": "sharp" | "soft" | "round" | "smooth";
64
+ };
65
+ export type Section = {
66
+ "id": string;
67
+ "type": string;
68
+ "variant": string;
69
+ "data": {
70
+ [key: string]: unknown;
71
+ };
72
+ };
73
+ export type ContentSummary = {
74
+ "id": string;
75
+ "kind": "post" | "page";
76
+ "slug": string;
77
+ "title": string;
78
+ "collection": string | null;
79
+ "locale": string | null;
80
+ "url": string;
81
+ "excerpt": string;
82
+ "tags": Array<string>;
83
+ "image": string;
84
+ "imageAlt": string;
85
+ "publishedAt": (string) | (null);
86
+ "createdAt": string;
87
+ "updatedAt": string;
88
+ };
89
+ export type Html = {
90
+ "format": "sanitized-html";
91
+ "html": string;
92
+ };
93
+ export type Content = {
94
+ "id": string;
95
+ "kind": "post" | "page";
96
+ "slug": string;
97
+ "title": string;
98
+ "collection": string | null;
99
+ "locale": string | null;
100
+ "url": string;
101
+ "excerpt": string;
102
+ "tags": Array<string>;
103
+ "image": string;
104
+ "imageAlt": string;
105
+ "publishedAt": (string) | (null);
106
+ "createdAt": string;
107
+ "updatedAt": string;
108
+ "content": {
109
+ "format": "sanitized-html";
110
+ "html": string;
111
+ "dynamicWidgets": "website-only";
112
+ };
113
+ };
114
+ export type Post = {
115
+ "id": string;
116
+ "kind": "post";
117
+ "slug": string;
118
+ "title": string;
119
+ "collection": string;
120
+ "locale": string | null;
121
+ "url": string;
122
+ "excerpt": string;
123
+ "tags": Array<string>;
124
+ "image": string;
125
+ "imageAlt": string;
126
+ "publishedAt": (string) | (null);
127
+ "createdAt": string;
128
+ "updatedAt": string;
129
+ "content": {
130
+ "format": "sanitized-html";
131
+ "html": string;
132
+ "dynamicWidgets": "website-only";
133
+ };
134
+ };
135
+ export type Page = {
136
+ "id": string;
137
+ "kind": "page";
138
+ "slug": string;
139
+ "title": string;
140
+ "collection": string | null;
141
+ "locale": string | null;
142
+ "url": string;
143
+ "excerpt": string;
144
+ "tags": Array<string>;
145
+ "image": string;
146
+ "imageAlt": string;
147
+ "publishedAt": (string) | (null);
148
+ "createdAt": string;
149
+ "updatedAt": string;
150
+ "body": {
151
+ "format": "sanitized-html";
152
+ "html": string;
153
+ };
154
+ "cover": string;
155
+ "seo": {
156
+ "title": string;
157
+ "description": string;
158
+ };
159
+ "mode": "content" | "sections";
160
+ "sections": Array<{
161
+ "id": string;
162
+ "type": string;
163
+ "variant": string;
164
+ "data": {
165
+ [key: string]: unknown;
166
+ };
167
+ }>;
168
+ };
169
+ export type Event = {
170
+ "id": string;
171
+ "slug": string;
172
+ "title": string;
173
+ "excerpt": string;
174
+ "status": "draft" | "scheduled" | "published" | "archived";
175
+ "cancelled": boolean;
176
+ "featured": boolean;
177
+ "start": string;
178
+ "end": string;
179
+ "allDay": boolean;
180
+ "timezone": string;
181
+ "rrule": string;
182
+ "exdates": Array<string>;
183
+ "location": {
184
+ "name": string;
185
+ "address": string;
186
+ "url": string;
187
+ };
188
+ "cta": {
189
+ "label": string;
190
+ "href": string;
191
+ "style": "primary" | "outline";
192
+ };
193
+ "tags": Array<string>;
194
+ "fields": {
195
+ [key: string]: string;
196
+ };
197
+ "url": string;
198
+ "icsUrl": string;
199
+ "repeats": string;
200
+ "image": string;
201
+ "imageAlt": string;
202
+ "updatedAt": string;
203
+ "calendars": Array<{
204
+ "id": string;
205
+ "slug": string;
206
+ "name": string;
207
+ "color": string;
208
+ }>;
209
+ };
210
+ export type Events = {
211
+ "locale": string | null;
212
+ "timezone": string;
213
+ "from": string;
214
+ "to": string;
215
+ "pagination": {
216
+ "page": number;
217
+ "limit": number;
218
+ "nextPage": (number) | (null);
219
+ };
220
+ "occurrences": Array<{
221
+ "id": string;
222
+ "start": string;
223
+ "end": string;
224
+ "allDay": boolean;
225
+ "event": {
226
+ "id": string;
227
+ "slug": string;
228
+ "title": string;
229
+ "excerpt": string;
230
+ "status": "draft" | "scheduled" | "published" | "archived";
231
+ "cancelled": boolean;
232
+ "featured": boolean;
233
+ "start": string;
234
+ "end": string;
235
+ "allDay": boolean;
236
+ "timezone": string;
237
+ "rrule": string;
238
+ "exdates": Array<string>;
239
+ "location": {
240
+ "name": string;
241
+ "address": string;
242
+ "url": string;
243
+ };
244
+ "cta": {
245
+ "label": string;
246
+ "href": string;
247
+ "style": "primary" | "outline";
248
+ };
249
+ "tags": Array<string>;
250
+ "fields": {
251
+ [key: string]: string;
252
+ };
253
+ "url": string;
254
+ "icsUrl": string;
255
+ "repeats": string;
256
+ "image": string;
257
+ "imageAlt": string;
258
+ "updatedAt": string;
259
+ "calendars": Array<{
260
+ "id": string;
261
+ "slug": string;
262
+ "name": string;
263
+ "color": string;
264
+ }>;
265
+ };
266
+ }>;
267
+ };
268
+ export type Calendars = {
269
+ "calendars": Array<{
270
+ "id": string;
271
+ "slug": string;
272
+ "name": string;
273
+ "color": string;
274
+ "description": string;
275
+ "kind": "native" | "feed";
276
+ "visibility": "public" | "unlisted" | "private";
277
+ "feedUrl": string;
278
+ }>;
279
+ };
280
+ export type Resources = {
281
+ "pagination": {
282
+ "page": number;
283
+ "limit": number;
284
+ "nextPage": (number) | (null);
285
+ };
286
+ "resources": Array<{
287
+ "id": string;
288
+ "slug": string;
289
+ "name": string;
290
+ "kind": string;
291
+ "description": string;
292
+ "capacity": number;
293
+ "amenities": Array<string>;
294
+ "photo": string;
295
+ "timezone": string;
296
+ "url": string;
297
+ "links": Array<{
298
+ "id": string;
299
+ "slug": string;
300
+ "name": string;
301
+ "description": string;
302
+ "mode": "slots" | "day" | "range";
303
+ "lengths": Array<number>;
304
+ "rules": string;
305
+ "askPhone": boolean;
306
+ "autoConfirm": boolean;
307
+ "url": string;
308
+ "questions": Array<{
309
+ "id": string;
310
+ "label": string;
311
+ "type": "text" | "textarea" | "email" | "phone" | "number" | "select" | "checkbox" | "date";
312
+ "required": boolean;
313
+ "options": Array<string>;
314
+ }>;
315
+ }>;
316
+ }>;
317
+ };
318
+ export type Availability = {
319
+ "timezone": string;
320
+ "mode": "slots" | "day" | "range";
321
+ "lengths": Array<number>;
322
+ "autoConfirm": boolean;
323
+ "days": Array<{
324
+ "date": string;
325
+ "slots": Array<{
326
+ "start": string;
327
+ "end": string;
328
+ "minutes": number;
329
+ }>;
330
+ }>;
331
+ };
332
+ export type BookingResult = {
333
+ "manageToken": string;
334
+ "booking": {
335
+ "id": string;
336
+ "kind": "booking" | "block" | "rsvp";
337
+ "status": "pending" | "confirmed" | "declined" | "cancelled";
338
+ "name": string;
339
+ "email": string;
340
+ "phone": string;
341
+ "seats": number;
342
+ "answers": {
343
+ [key: string]: string;
344
+ };
345
+ "source": "web" | "admin" | "api" | "agent";
346
+ "start": string;
347
+ "end": string;
348
+ "resourceId": string | null;
349
+ "linkId": string | null;
350
+ "eventId": string | null;
351
+ "createdAt": string;
352
+ };
353
+ };
354
+ export type Device = {
355
+ "token": string;
356
+ "platform": "ios" | "android";
357
+ "locale": string | null;
358
+ "topics": Array<string>;
359
+ "registeredAt": string;
360
+ "lastSeenAt": string;
361
+ };
362
+ export type DeviceRegistration = {
363
+ "created": boolean;
364
+ "device": {
365
+ "token": string;
366
+ "platform": "ios" | "android";
367
+ "locale": string | null;
368
+ "topics": Array<string>;
369
+ "registeredAt": string;
370
+ "lastSeenAt": string;
371
+ };
372
+ };
373
+ export type DeviceRemoved = {
374
+ "token": string;
375
+ "deleted": true;
376
+ };
377
+ export type PushTopics = {
378
+ "topics": Array<{
379
+ "id": string;
380
+ "label": string;
381
+ "kind": "general" | "collection" | "calendar";
382
+ }>;
383
+ };
384
+ export type ApiErrorResponse = {
385
+ "version": 1;
386
+ "error": {
387
+ "code": "invalid_request" | "unauthorized" | "forbidden" | "not_found" | "method_not_allowed" | "conflict" | "gone" | "payload_too_large" | "unsupported_media_type" | "rate_limited" | "upstream_error" | "internal_error";
388
+ "message": string;
389
+ "issues"?: Array<{
390
+ "path": Array<string | number>;
391
+ "message": string;
392
+ }>;
393
+ };
394
+ };
395
+ export type EditorToken = {
396
+ "access_token": string;
397
+ "token_type": "Bearer";
398
+ "expires_in": number;
399
+ "refresh_token": string;
400
+ "refresh_token_expires_in": number;
401
+ "user": {
402
+ "id": string;
403
+ "name": string;
404
+ "email": string;
405
+ "role": "contributor" | "author" | "editor" | "administrator" | "owner";
406
+ };
407
+ "device": {
408
+ "id": string;
409
+ "name": string;
410
+ };
411
+ };
412
+ export type EditorOAuthError = {
413
+ "error": string;
414
+ "error_description": string;
415
+ };
416
+ export type EditorRevoked = {
417
+ "revoked": true;
418
+ };
419
+ export type EditorMe = {
420
+ "user": {
421
+ "id": string;
422
+ "name": string;
423
+ "email": string;
424
+ "role": "contributor" | "author" | "editor" | "administrator" | "owner";
425
+ };
426
+ "device": {
427
+ "id": string;
428
+ "name": string;
429
+ "clientId": string;
430
+ };
431
+ "site": {
432
+ "name": string;
433
+ "url": string;
434
+ };
435
+ "features": {
436
+ "collections": Array<{
437
+ "key": string;
438
+ "singular": string;
439
+ "plural": string;
440
+ }>;
441
+ "calendar": boolean;
442
+ "bookings": boolean;
443
+ "languages": {
444
+ "default": string | null;
445
+ "extra": Array<{
446
+ "code": string;
447
+ "name": string;
448
+ }>;
449
+ };
450
+ "aiTranslation": boolean;
451
+ };
452
+ "permissions": {
453
+ "documents": {
454
+ "edit": boolean;
455
+ "publish": boolean;
456
+ };
457
+ "sections": {
458
+ "editContent": boolean;
459
+ "editLocked": boolean;
460
+ "publishSection": boolean;
461
+ "changeLayout": boolean;
462
+ };
463
+ "bookings": boolean;
464
+ };
465
+ };
466
+ export type EditorDocumentSummary = {
467
+ "id": string;
468
+ "kind": "post" | "page" | "event";
469
+ "collection": string | null;
470
+ "title": string;
471
+ "slug": string;
472
+ "status": "draft" | "scheduled" | "published" | "archived";
473
+ "hasChanges": boolean;
474
+ "url": string;
475
+ "image": string;
476
+ "updatedAt": string;
477
+ "revision": string;
478
+ };
479
+ export type EditorDocumentList = {
480
+ "items": Array<{
481
+ "id": string;
482
+ "kind": "post" | "page" | "event";
483
+ "collection": string | null;
484
+ "title": string;
485
+ "slug": string;
486
+ "status": "draft" | "scheduled" | "published" | "archived";
487
+ "hasChanges": boolean;
488
+ "url": string;
489
+ "image": string;
490
+ "updatedAt": string;
491
+ "revision": string;
492
+ }>;
493
+ "total": number;
494
+ "pagination": {
495
+ "page": number;
496
+ "limit": number;
497
+ "nextPage": (number) | (null);
498
+ };
499
+ };
500
+ export type EditorDocument = {
501
+ "id": string;
502
+ "kind": "post" | "page" | "event";
503
+ "collection": string | null;
504
+ "title": string;
505
+ "slug": string;
506
+ "status": "draft" | "scheduled" | "published" | "archived";
507
+ "hasChanges": boolean;
508
+ "url": string;
509
+ "image": string;
510
+ "updatedAt": string;
511
+ "revision": string;
512
+ "excerpt": string;
513
+ "bodyHtml": string;
514
+ "tags": Array<string>;
515
+ "cover": string;
516
+ "coverAlt": string;
517
+ "seoTitle": string;
518
+ "seoDesc": string;
519
+ "featured": boolean;
520
+ "template": string;
521
+ "authorIds": Array<string>;
522
+ "locale": string | null;
523
+ "isHome": boolean;
524
+ "publishedAt": (string) | (null);
525
+ "scheduledAt": (string) | (null);
526
+ "createdAt": string;
527
+ "event": ({
528
+ "start": string;
529
+ "end": string;
530
+ "allDay": boolean;
531
+ "timezone": string;
532
+ "rrule": string;
533
+ "exdates": Array<string>;
534
+ "cancelled": boolean;
535
+ "location": {
536
+ "name": string;
537
+ "address": string;
538
+ "url": string;
539
+ };
540
+ "cta": {
541
+ "label": string;
542
+ "href": string;
543
+ "style": "primary" | "outline";
544
+ };
545
+ "calendarIds": Array<string>;
546
+ "fields": {
547
+ [key: string]: string;
548
+ };
549
+ "rsvp": {
550
+ "enabled": boolean;
551
+ "capacity": number;
552
+ "autoConfirm": boolean;
553
+ "maxSeats": number;
554
+ };
555
+ }) | (null);
556
+ "languages": Array<string>;
557
+ };
558
+ export type EditorSections = {
559
+ "revision": number;
560
+ "stage": "draft" | "live";
561
+ "hasDraft": boolean;
562
+ "role": "contributor" | "author" | "editor" | "administrator" | "owner";
563
+ "theme": {
564
+ "slug": string;
565
+ "name": string;
566
+ };
567
+ "definitions": {
568
+ [key: string]: {
569
+ "name": string;
570
+ "version": number;
571
+ "category": string | null;
572
+ "description": string;
573
+ "variants": Array<string>;
574
+ "fields": {
575
+ [key: string]: unknown;
576
+ };
577
+ };
578
+ };
579
+ "pages": Array<{
580
+ "pageId": string;
581
+ "title": string;
582
+ "slug": string;
583
+ "isHome": boolean;
584
+ "locale": string | null;
585
+ "mode": "content" | "sections";
586
+ "sections": Array<{
587
+ "id": string;
588
+ "type": string;
589
+ "version": number;
590
+ "variant": string;
591
+ "hidden": boolean;
592
+ "locked": boolean;
593
+ "showFrom": string | null;
594
+ "showUntil": string | null;
595
+ "data": {
596
+ [key: string]: unknown;
597
+ };
598
+ "translations": {
599
+ [key: string]: {
600
+ "data": {
601
+ [key: string]: unknown;
602
+ };
603
+ "meta": {
604
+ [key: string]: {
605
+ "state": "ai" | "reviewed";
606
+ "src": string;
607
+ };
608
+ };
609
+ };
610
+ };
611
+ "name": string;
612
+ "isNew": boolean;
613
+ "changed": boolean;
614
+ "editable": boolean;
615
+ }>;
616
+ }>;
617
+ };
618
+ export type EditorSectionResult = {
619
+ "revision": number;
620
+ "section": {
621
+ "id": string;
622
+ "type": string;
623
+ "version": number;
624
+ "variant": string;
625
+ "hidden": boolean;
626
+ "locked"?: boolean;
627
+ "showFrom"?: string;
628
+ "showUntil"?: string;
629
+ "translations"?: {
630
+ [key: string]: {
631
+ "data": {
632
+ [key: string]: unknown;
633
+ };
634
+ "meta": {
635
+ [key: string]: {
636
+ "state": "ai" | "reviewed";
637
+ "src": string;
638
+ };
639
+ };
640
+ };
641
+ };
642
+ "data": {
643
+ [key: string]: unknown;
644
+ };
645
+ };
646
+ };
647
+ export type EditorRevision = {
648
+ "revision": number;
649
+ };
650
+ export type EditorDocumentTranslation = {
651
+ "locale": string;
652
+ "revision": string;
653
+ "units": Array<{
654
+ "path": string;
655
+ "label": string;
656
+ "kind": "text" | "textarea" | "richtext" | "link" | "select";
657
+ "source": string;
658
+ "value": string;
659
+ "status": "missing" | "ai" | "reviewed" | "outdated";
660
+ }>;
661
+ "summary": {
662
+ "total": number;
663
+ "missing": number;
664
+ "ai": number;
665
+ "reviewed": number;
666
+ "outdated": number;
667
+ };
668
+ "changed"?: number;
669
+ };
670
+ export type EditorSectionTranslation = {
671
+ "locale": string;
672
+ "revision": number;
673
+ "units": Array<{
674
+ "path": string;
675
+ "label": string;
676
+ "kind": "text" | "textarea" | "richtext" | "link" | "select";
677
+ "source": string;
678
+ "value": string;
679
+ "status": "missing" | "ai" | "reviewed" | "outdated";
680
+ }>;
681
+ "summary": {
682
+ "total": number;
683
+ "missing": number;
684
+ "ai": number;
685
+ "reviewed": number;
686
+ "outdated": number;
687
+ };
688
+ "changed"?: number;
689
+ };
690
+ export type EditorMedia = {
691
+ "id": string;
692
+ "url": string;
693
+ "filename": string;
694
+ "mime": string;
695
+ "width": number;
696
+ "height": number;
697
+ "size": number;
698
+ "alt": string;
699
+ "variants": Array<{
700
+ "width": number;
701
+ "url": string;
702
+ }>;
703
+ "createdAt": string;
704
+ };
705
+ export type EditorMediaList = {
706
+ "items": Array<{
707
+ "id": string;
708
+ "url": string;
709
+ "filename": string;
710
+ "mime": string;
711
+ "width": number;
712
+ "height": number;
713
+ "size": number;
714
+ "alt": string;
715
+ "variants": Array<{
716
+ "width": number;
717
+ "url": string;
718
+ }>;
719
+ "createdAt": string;
720
+ }>;
721
+ "pagination": {
722
+ "page": number;
723
+ "limit": number;
724
+ "nextPage": (number) | (null);
725
+ };
726
+ };
727
+ export type EditorBooking = {
728
+ "id": string;
729
+ "kind": "booking" | "block" | "rsvp";
730
+ "status": "pending" | "confirmed" | "declined" | "cancelled";
731
+ "name": string;
732
+ "email": string;
733
+ "phone": string;
734
+ "seats": number;
735
+ "answers": {
736
+ [key: string]: string;
737
+ };
738
+ "source": "web" | "admin" | "api" | "agent";
739
+ "notes": string;
740
+ "start": string;
741
+ "end": string;
742
+ "resourceId": string | null;
743
+ "linkId": string | null;
744
+ "eventId": string | null;
745
+ "createdAt": string;
746
+ "updatedAt": string;
747
+ "title": string;
748
+ };
749
+ export type EditorBookingList = {
750
+ "pending": number;
751
+ "items": Array<{
752
+ "id": string;
753
+ "kind": "booking" | "block" | "rsvp";
754
+ "status": "pending" | "confirmed" | "declined" | "cancelled";
755
+ "name": string;
756
+ "email": string;
757
+ "phone": string;
758
+ "seats": number;
759
+ "answers": {
760
+ [key: string]: string;
761
+ };
762
+ "source": "web" | "admin" | "api" | "agent";
763
+ "notes": string;
764
+ "start": string;
765
+ "end": string;
766
+ "resourceId": string | null;
767
+ "linkId": string | null;
768
+ "eventId": string | null;
769
+ "createdAt": string;
770
+ "updatedAt": string;
771
+ "title": string;
772
+ }>;
773
+ "pagination": {
774
+ "page": number;
775
+ "limit": number;
776
+ "nextPage": (number) | (null);
777
+ };
778
+ };
779
+ export type EditorTokenRequest = ({
780
+ "grant_type": "authorization_code";
781
+ "code": string;
782
+ "code_verifier": string;
783
+ "redirect_uri": string;
784
+ "client_id": string;
785
+ }) | ({
786
+ "grant_type": "refresh_token";
787
+ "refresh_token": string;
788
+ "client_id"?: string;
789
+ });
790
+ export type EditorRevokeRequest = {
791
+ "token": string;
792
+ };
793
+ export type ContentList = {
794
+ "locale": string | null;
795
+ "items": Array<{
796
+ "id": string;
797
+ "kind": "post" | "page";
798
+ "slug": string;
799
+ "title": string;
800
+ "collection": string | null;
801
+ "locale": string | null;
802
+ "url": string;
803
+ "excerpt": string;
804
+ "tags": Array<string>;
805
+ "image": string;
806
+ "imageAlt": string;
807
+ "publishedAt": (string) | (null);
808
+ "createdAt": string;
809
+ "updatedAt": string;
810
+ }>;
811
+ "pagination": {
812
+ "page": number;
813
+ "limit": number;
814
+ "nextPage": (number) | (null);
815
+ };
816
+ };
817
+ export type BookingInput = ({
818
+ "start": string;
819
+ "name": string;
820
+ "email": string;
821
+ "phone"?: string;
822
+ "resource": string;
823
+ "link": string;
824
+ "minutes"?: number;
825
+ "answers"?: {
826
+ [key: string]: string;
827
+ };
828
+ }) | ({
829
+ "start": string;
830
+ "name": string;
831
+ "email": string;
832
+ "phone"?: string;
833
+ "event": string;
834
+ "seats"?: number;
835
+ });
836
+ export type DeviceInput = {
837
+ "token": string;
838
+ "platform": "ios" | "android";
839
+ "locale"?: string;
840
+ "topics"?: Array<string>;
841
+ };
842
+ export type DeviceUpdate = {
843
+ "locale"?: string;
844
+ "topics"?: Array<string>;
845
+ };
846
+ export type EditorCreateInput = ({
847
+ "kind": "post";
848
+ "title": string;
849
+ "collection"?: string;
850
+ }) | ({
851
+ "kind": "page";
852
+ "title": string;
853
+ }) | ({
854
+ "kind": "event";
855
+ "title": string;
856
+ "start": string;
857
+ "allDay"?: boolean;
858
+ });
859
+ export type EditorSaveInput = {
860
+ "revision": string;
861
+ "fields": ({
862
+ "title"?: string;
863
+ "slug"?: string;
864
+ "bodyHtml"?: string;
865
+ "seoTitle"?: string;
866
+ "seoDesc"?: string;
867
+ "template"?: string;
868
+ "excerpt"?: string;
869
+ "tags"?: Array<string>;
870
+ "cover"?: string;
871
+ "coverAlt"?: string;
872
+ "featured"?: boolean;
873
+ "collection"?: string;
874
+ "authorIds"?: Array<string>;
875
+ }) | ({
876
+ "title"?: string;
877
+ "slug"?: string;
878
+ "bodyHtml"?: string;
879
+ "seoTitle"?: string;
880
+ "seoDesc"?: string;
881
+ "template"?: string;
882
+ "isHome"?: boolean;
883
+ "locale"?: string;
884
+ }) | ({
885
+ "title"?: string;
886
+ "slug"?: string;
887
+ "bodyHtml"?: string;
888
+ "seoTitle"?: string;
889
+ "seoDesc"?: string;
890
+ "template"?: string;
891
+ "excerpt"?: string;
892
+ "tags"?: Array<string>;
893
+ "cover"?: string;
894
+ "coverAlt"?: string;
895
+ "featured"?: boolean;
896
+ "start"?: string;
897
+ "end"?: string;
898
+ "allDay"?: boolean;
899
+ "timezone"?: string;
900
+ "rrule"?: string;
901
+ "exdates"?: Array<string>;
902
+ "cancelled"?: boolean;
903
+ "location"?: {
904
+ "name": string;
905
+ "address": string;
906
+ "url": string;
907
+ };
908
+ "cta"?: {
909
+ "label": string;
910
+ "href": string;
911
+ "style": "primary" | "outline";
912
+ };
913
+ "calendarIds"?: Array<string>;
914
+ "fields"?: {
915
+ [key: string]: string;
916
+ };
917
+ "rsvp"?: {
918
+ "enabled": boolean;
919
+ "capacity": number;
920
+ "autoConfirm": boolean;
921
+ "maxSeats": number;
922
+ };
923
+ });
924
+ };
925
+ export type EditorListQuery = {
926
+ "kind"?: "post" | "page" | "event";
927
+ "collection"?: (undefined) | (string);
928
+ "status"?: (undefined) | ("draft" | "scheduled" | "published" | "archived" | "changed");
929
+ "q"?: (undefined) | (string);
930
+ "page"?: number;
931
+ "limit"?: number;
932
+ };
933
+ export type EditorSectionsQuery = {
934
+ "stage"?: "draft" | "live";
935
+ "pageId"?: (undefined) | (string);
936
+ };
937
+ export type EditorMediaQuery = {
938
+ "q"?: (undefined) | (string);
939
+ "type"?: (undefined) | ("image" | "document");
940
+ "page"?: number;
941
+ "limit"?: number;
942
+ };
943
+ export type EditorBookingsQuery = {
944
+ "status"?: "active" | "pending" | "confirmed" | "declined" | "cancelled" | "all";
945
+ "from"?: (undefined) | (string);
946
+ "page"?: number;
947
+ "limit"?: number;
948
+ };
949
+ export type ContentItem = ContentSummary;
950
+ export type Calendar = Calendars["calendars"][number];
951
+ export type Resource = Resources["resources"][number];
952
+ export type Booking = BookingResult["booking"];
953
+ export type Occurrence = Events["occurrences"][number];
954
+ export type PushTopic = PushTopics["topics"][number];