@composable-os/pack-bookings 0.1.0-beta.10 → 0.1.0-beta.13

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.
package/dist/index.d.ts CHANGED
@@ -8,8 +8,8 @@ declare const _default: import("@composable-os/sdk").Extension<{
8
8
  readonly permissions: {
9
9
  readonly read: ["person", "programs.classtype"];
10
10
  readonly write: ["person"];
11
- readonly operations: ["public.list", "public.get", "capacity.get", "duplicate.check"];
12
- readonly modules: ["ops"];
11
+ readonly operations: ["order.startHeld", "public.list", "public.get", "capacity.get", "duplicate.check", "waitlist.position", "me.family", "person.link.list", "order.get", "extensionSettings.list", "notification.send", "agreement.listHealthNotes", "staffing.free", "staffing.week"];
12
+ readonly modules: ["ops", "routine-mail", "email-send", "storage"];
13
13
  };
14
14
  readonly fields: {
15
15
  readonly "programs.classtype": {
@@ -55,13 +55,22 @@ declare const _default: import("@composable-os/sdk").Extension<{
55
55
  personApproves: boolean;
56
56
  };
57
57
  readonly reminderMinutes: {
58
- type: "number";
59
- label: string;
60
- description: string;
61
- min: number;
62
- max: number;
63
- step: number;
64
- personApproves: boolean;
58
+ readonly max: 2880;
59
+ readonly type: "number";
60
+ readonly label: string;
61
+ readonly description: string;
62
+ readonly min: number;
63
+ readonly step: number;
64
+ readonly personApproves: boolean;
65
+ };
66
+ readonly dropInPrice: {
67
+ readonly type: "number";
68
+ readonly label: "Drop-in price";
69
+ readonly description: string;
70
+ readonly min: 0;
71
+ readonly max: 100000;
72
+ readonly step: 0.01;
73
+ readonly personApproves: true;
65
74
  };
66
75
  readonly staffOnly: {
67
76
  readonly type: "boolean";
@@ -69,6 +78,24 @@ declare const _default: import("@composable-os/sdk").Extension<{
69
78
  readonly description: "Members cannot book its classes themselves; staff book them in.";
70
79
  readonly personApproves: true;
71
80
  };
81
+ readonly rosterBeforeMinutes: {
82
+ readonly type: "number";
83
+ readonly label: "Set-up minutes (pay)";
84
+ readonly description: string;
85
+ readonly min: 0;
86
+ readonly max: 240;
87
+ readonly step: 1;
88
+ readonly personApproves: true;
89
+ };
90
+ readonly rosterAfterMinutes: {
91
+ readonly type: "number";
92
+ readonly label: "Pack-down minutes (pay)";
93
+ readonly description: string;
94
+ readonly min: 0;
95
+ readonly max: 240;
96
+ readonly step: 1;
97
+ readonly personApproves: true;
98
+ };
72
99
  };
73
100
  };
74
101
  readonly objects: {
@@ -92,6 +119,12 @@ declare const _default: import("@composable-os/sdk").Extension<{
92
119
  readonly min: 0;
93
120
  readonly step: 1;
94
121
  };
122
+ readonly exclusive: {
123
+ readonly type: "boolean";
124
+ readonly label: "One booking at a time";
125
+ readonly description: string;
126
+ readonly default: false;
127
+ };
95
128
  readonly notes: {
96
129
  readonly type: "longText";
97
130
  readonly label: "Notes";
@@ -133,6 +166,9 @@ declare const _default: import("@composable-os/sdk").Extension<{
133
166
  readonly default: true;
134
167
  };
135
168
  };
169
+ readonly unique: readonly [{
170
+ readonly fields: readonly ["user"];
171
+ }];
136
172
  readonly public: {
137
173
  readonly read: readonly ["name", "photo", "bio"];
138
174
  };
@@ -191,6 +227,7 @@ declare const _default: import("@composable-os/sdk").Extension<{
191
227
  readonly type: "relation";
192
228
  readonly label: "Coach";
193
229
  readonly to: "bookings.coach";
230
+ readonly personApproves: true;
194
231
  };
195
232
  readonly places: {
196
233
  readonly type: "number";
@@ -315,6 +352,7 @@ declare const _default: import("@composable-os/sdk").Extension<{
315
352
  readonly endsAt: {
316
353
  readonly type: "datetime";
317
354
  readonly label: "Ends";
355
+ readonly required: true;
318
356
  };
319
357
  readonly timezone: {
320
358
  readonly type: "timezone";
@@ -330,6 +368,7 @@ declare const _default: import("@composable-os/sdk").Extension<{
330
368
  readonly type: "relation";
331
369
  readonly label: "Coach";
332
370
  readonly to: "bookings.coach";
371
+ readonly personApproves: true;
333
372
  };
334
373
  readonly places: {
335
374
  readonly type: "number";
@@ -361,7 +400,13 @@ declare const _default: import("@composable-os/sdk").Extension<{
361
400
  readonly type: "boolean";
362
401
  readonly label: "Changed from its series";
363
402
  readonly readOnly: true;
364
- readonly description: "Edited by hand: its series no longer changes it.";
403
+ readonly description: string;
404
+ };
405
+ readonly cancelledReason: {
406
+ readonly type: "longText";
407
+ readonly label: "Why it was cancelled";
408
+ readonly readOnly: true;
409
+ readonly description: "The reason staff gave when they cancelled the class.";
365
410
  };
366
411
  readonly closed: {
367
412
  readonly type: "formula";
@@ -376,6 +421,11 @@ declare const _default: import("@composable-os/sdk").Extension<{
376
421
  readonly from: "scheduled";
377
422
  readonly to: "cancelled";
378
423
  readonly by: readonly ["host"];
424
+ readonly tools: readonly ["cancelClass"];
425
+ readonly window: {
426
+ readonly until: "endsAt";
427
+ };
428
+ readonly bindsStaff: true;
379
429
  readonly final: true;
380
430
  }, {
381
431
  readonly from: "scheduled";
@@ -388,8 +438,43 @@ declare const _default: import("@composable-os/sdk").Extension<{
388
438
  readonly places: "places";
389
439
  readonly show: "exact";
390
440
  };
441
+ readonly staffed: {
442
+ readonly who: {
443
+ readonly field: "coach";
444
+ readonly account: "user";
445
+ };
446
+ readonly starts: "startsAt";
447
+ readonly ends: "endsAt";
448
+ readonly zone: "timezone";
449
+ readonly kind: "classType";
450
+ readonly live: readonly ["scheduled", "done"];
451
+ readonly place: "room.name";
452
+ readonly pattern: {
453
+ readonly link: "series";
454
+ readonly who: "coach";
455
+ };
456
+ readonly payBefore: {
457
+ readonly field: "classType.rosterBeforeMinutes";
458
+ };
459
+ readonly payAfter: {
460
+ readonly field: "classType.rosterAfterMinutes";
461
+ };
462
+ readonly evidence: {
463
+ readonly object: "booking";
464
+ readonly link: "class";
465
+ readonly by: "markedBy";
466
+ };
467
+ };
468
+ readonly occupies: {
469
+ readonly thing: "room";
470
+ readonly starts: "startsAt";
471
+ readonly ends: "endsAt";
472
+ readonly live: readonly ["scheduled", "done"];
473
+ readonly only: "exclusive";
474
+ readonly title: "title";
475
+ };
391
476
  readonly public: {
392
- readonly read: readonly ["title", "classType", "startsAt", "endsAt", "timezone", "room", "coach", "notes", "state"];
477
+ readonly read: string[];
393
478
  readonly when: {
394
479
  readonly field: "state";
395
480
  readonly in: readonly ["scheduled"];
@@ -398,9 +483,9 @@ declare const _default: import("@composable-os/sdk").Extension<{
398
483
  readonly customerVia: {
399
484
  readonly from: "bookings.booking";
400
485
  readonly field: "class";
401
- readonly read: readonly ["title", "classType", "startsAt", "endsAt", "timezone", "room", "coach", "notes", "state"];
486
+ readonly read: string[];
402
487
  };
403
- readonly indexes: readonly [readonly ["startsAt"], readonly ["state", "startsAt"], readonly ["series"], readonly ["classType", "startsAt"]];
488
+ readonly indexes: readonly [readonly ["startsAt"], readonly ["state", "startsAt"], readonly ["series"], readonly ["classType", "startsAt"], readonly ["endsAt"]];
404
489
  };
405
490
  readonly closure: {
406
491
  readonly label: "Closure";
@@ -453,7 +538,6 @@ declare const _default: import("@composable-os/sdk").Extension<{
453
538
  readonly type: "relation";
454
539
  readonly label: "Person";
455
540
  readonly to: "person";
456
- readonly required: true;
457
541
  };
458
542
  readonly state: {
459
543
  readonly type: "select";
@@ -490,16 +574,35 @@ declare const _default: import("@composable-os/sdk").Extension<{
490
574
  };
491
575
  readonly paidOtherwise: {
492
576
  readonly type: "boolean";
493
- readonly label: "Paid at the desk";
577
+ readonly label: "Paid another way";
494
578
  readonly readOnly: true;
495
579
  readonly description: string;
496
580
  };
581
+ readonly dropInPrice: {
582
+ readonly type: "number";
583
+ readonly label: "Drop-in paid";
584
+ readonly readOnly: true;
585
+ readonly description: "What the drop-in cost, set by the host when it was bought.";
586
+ };
587
+ readonly dropInOrder: {
588
+ readonly type: "text";
589
+ readonly label: "Drop-in order";
590
+ readonly readOnly: true;
591
+ readonly description: "The order that pays for this drop-in, set by the host.";
592
+ };
497
593
  readonly bookedBy: {
498
594
  readonly type: "user";
499
595
  readonly label: "Booked by";
500
596
  readonly readOnly: true;
501
597
  readonly description: "The staff account that booked it. Empty when the member booked.";
502
598
  };
599
+ readonly madeBy: {
600
+ readonly type: "relation";
601
+ readonly label: "Booked by (member)";
602
+ readonly to: "person";
603
+ readonly readOnly: true;
604
+ readonly description: string;
605
+ };
503
606
  readonly movedFrom: {
504
607
  readonly type: "relation";
505
608
  readonly label: "Moved from";
@@ -511,13 +614,49 @@ declare const _default: import("@composable-os/sdk").Extension<{
511
614
  readonly type: "longText";
512
615
  readonly label: "Staff note";
513
616
  };
617
+ readonly markedAt: {
618
+ readonly type: "datetime";
619
+ readonly label: "Attendance marked";
620
+ readonly readOnly: true;
621
+ readonly description: "When a coach ticked them as come, or marked them as not come.";
622
+ };
623
+ readonly markedBy: {
624
+ readonly type: "user";
625
+ readonly label: "Marked by";
626
+ readonly readOnly: true;
627
+ readonly description: "The staff account that marked their attendance.";
628
+ };
629
+ readonly markedByName: {
630
+ readonly type: "text";
631
+ readonly label: "Marked by (name)";
632
+ readonly readOnly: true;
633
+ readonly description: "That staff member's name as it was then.";
634
+ };
635
+ readonly promotedAt: {
636
+ readonly type: "datetime";
637
+ readonly label: "Moved in from the waitlist";
638
+ readonly readOnly: true;
639
+ readonly description: "When the host moved them in from the waitlist.";
640
+ };
641
+ readonly passedOverAt: {
642
+ readonly type: "datetime";
643
+ readonly label: "Passed over";
644
+ readonly readOnly: true;
645
+ readonly description: "When a place was free but nothing they hold could pay for it: they stay waiting.";
646
+ };
647
+ readonly passedOverReason: {
648
+ readonly type: "text";
649
+ readonly label: "Why passed over";
650
+ readonly readOnly: true;
651
+ readonly description: "The host's reason (no_uses_left, ended, not_live, not_covered…).";
652
+ };
514
653
  };
515
654
  readonly states: {
516
655
  readonly field: "state";
517
656
  readonly initial: "booked";
518
657
  readonly create: {
519
658
  readonly in: {
520
- readonly waiting: readonly ["host"];
659
+ readonly waiting: readonly ["staff", "customer", "host"];
521
660
  readonly pending: readonly ["host"];
522
661
  };
523
662
  readonly window: {
@@ -545,7 +684,7 @@ declare const _default: import("@composable-os/sdk").Extension<{
545
684
  readonly when: {
546
685
  readonly cancelled: "cancelled_by_us";
547
686
  };
548
- readonly from: readonly ["booked", "waiting", "pending"];
687
+ readonly from: string[];
549
688
  };
550
689
  readonly requests: {
551
690
  readonly cancel: readonly ["cancelled", "late_cancelled"];
@@ -562,7 +701,25 @@ declare const _default: import("@composable-os/sdk").Extension<{
562
701
  }, {
563
702
  readonly from: "waiting";
564
703
  readonly to: "booked";
565
- readonly by: readonly ["host"];
704
+ readonly by: readonly ["host", "customer"];
705
+ readonly window: {
706
+ readonly from: {
707
+ at: string;
708
+ daysBefore: {
709
+ field: string;
710
+ setting: string;
711
+ };
712
+ zone: string;
713
+ };
714
+ readonly until: {
715
+ at: string;
716
+ minutesBefore: {
717
+ field: string;
718
+ setting: string;
719
+ };
720
+ };
721
+ };
722
+ readonly staffOnly: "class.classType.staffOnly";
566
723
  }, {
567
724
  readonly from: "waiting";
568
725
  readonly to: "left";
@@ -587,7 +744,6 @@ declare const _default: import("@composable-os/sdk").Extension<{
587
744
  readonly from: "booked";
588
745
  readonly to: "late_cancelled";
589
746
  readonly by: readonly ["staff", "customer"];
590
- readonly final: true;
591
747
  readonly window: {
592
748
  readonly from: {
593
749
  at: string;
@@ -608,6 +764,13 @@ declare const _default: import("@composable-os/sdk").Extension<{
608
764
  readonly from: "booked";
609
765
  readonly to: "attended";
610
766
  readonly by: readonly ["staff"];
767
+ readonly window: {
768
+ readonly from: {
769
+ at: string;
770
+ minutesBefore: number;
771
+ };
772
+ };
773
+ readonly bindsStaff: true;
611
774
  }, {
612
775
  readonly from: "attended";
613
776
  readonly to: "booked";
@@ -616,12 +779,16 @@ declare const _default: import("@composable-os/sdk").Extension<{
616
779
  readonly from: "booked";
617
780
  readonly to: "no_show";
618
781
  readonly by: readonly ["staff", "host"];
782
+ readonly window: {
783
+ readonly from: "class.startsAt";
784
+ };
785
+ readonly bindsStaff: true;
619
786
  }, {
620
787
  readonly from: "no_show";
621
788
  readonly to: "attended";
622
789
  readonly by: readonly ["staff"];
623
790
  }, {
624
- readonly from: readonly ["booked", "waiting", "pending"];
791
+ readonly from: string[];
625
792
  readonly to: "cancelled_by_us";
626
793
  readonly by: readonly ["host"];
627
794
  readonly final: true;
@@ -630,17 +797,84 @@ declare const _default: import("@composable-os/sdk").Extension<{
630
797
  readonly to: "moved";
631
798
  readonly by: readonly ["staff"];
632
799
  readonly final: true;
800
+ readonly window: {
801
+ readonly until: "class.startsAt";
802
+ };
803
+ readonly bindsStaff: true;
804
+ }];
805
+ readonly after: readonly [{
806
+ readonly from: "booked";
807
+ readonly to: "no_show";
808
+ readonly at: "class.endsAt";
809
+ readonly minutesAfter: 30;
810
+ readonly ifAnyIn: readonly ["attended", "no_show"];
633
811
  }];
634
812
  };
813
+ readonly healthNotes: {
814
+ readonly list: "class";
815
+ readonly person: "person";
816
+ };
817
+ readonly agreements: {
818
+ readonly point: "booking";
819
+ readonly label: "Before a booking";
820
+ readonly suggests: readonly ["waiver", "health", "guardian"];
821
+ readonly enter: readonly ["booked", "waiting"];
822
+ readonly person: "person";
823
+ readonly inlineStep: true;
824
+ };
635
825
  readonly claims: {
636
826
  readonly on: "class";
637
827
  readonly held: readonly ["pending"];
638
828
  readonly confirmed: readonly ["booked", "attended", "no_show"];
829
+ readonly waitlist: {
830
+ readonly state: "waiting";
831
+ readonly promote: "booked";
832
+ readonly until: {
833
+ readonly at: "class.startsAt";
834
+ readonly minutesBefore: {
835
+ readonly field: "class.classType.promotionMinutes";
836
+ readonly setting: "promotionMinutes";
837
+ };
838
+ };
839
+ readonly promotedAt: "promotedAt";
840
+ readonly passedOverAt: "passedOverAt";
841
+ readonly passedOverReason: "passedOverReason";
842
+ };
639
843
  };
640
844
  readonly unique: readonly [{
641
845
  readonly fields: readonly ["person", "class"];
642
846
  readonly states: string[];
643
847
  }];
848
+ readonly sellable: {
849
+ readonly price: "dropInPrice";
850
+ readonly tax: {
851
+ readonly code: "txcd_50021003";
852
+ };
853
+ readonly moves: {
854
+ readonly held: "pending";
855
+ readonly paid: "booked";
856
+ readonly expired: "expired";
857
+ readonly refund: readonly ["cancelled", "excused", "cancelled_by_us"];
858
+ readonly price: {
859
+ readonly field: "class.classType.dropInPrice";
860
+ readonly setting: "dropInPrice";
861
+ };
862
+ readonly title: "class.title";
863
+ readonly order: "dropInOrder";
864
+ readonly guest: true;
865
+ readonly holdCap: {
866
+ readonly setting: "dropInHoldPercent";
867
+ };
868
+ };
869
+ readonly finance: {
870
+ readonly category: {
871
+ readonly key: "drop_ins";
872
+ readonly label: "Drop-ins";
873
+ };
874
+ readonly earned: "at_date";
875
+ readonly at: "class.startsAt";
876
+ };
877
+ };
644
878
  readonly allowance: {
645
879
  readonly spends: {
646
880
  readonly person: "person";
@@ -662,310 +896,2090 @@ declare const _default: import("@composable-os/sdk").Extension<{
662
896
  };
663
897
  readonly paidBy: readonly ["memberships.membership", "memberships.pass"];
664
898
  readonly waived: "paidOtherwise";
899
+ readonly released: "cancelled_by_us";
665
900
  };
666
901
  };
667
902
  readonly customer: {
668
903
  readonly field: "person";
669
- readonly read: readonly ["class", "state", "holder", "classType"];
904
+ readonly read: readonly ["person", "class", "state", "holder", "classType", "promotedAt", "passedOverAt", "passedOverReason", "paidOtherwise", "dropInPrice", "dropInOrder"];
670
905
  readonly write: readonly ["class", "state", "holder"];
671
906
  readonly createOnly: readonly ["class", "holder"];
907
+ readonly guardians: {
908
+ readonly write: true;
909
+ readonly madeBy: "madeBy";
910
+ };
672
911
  };
673
912
  readonly timelineLinks: readonly ["person"];
674
913
  readonly indexes: readonly [readonly ["class", "state"], readonly ["person", "state"], readonly ["state"]];
675
914
  };
676
- };
677
- readonly views: {
678
- readonly todaysClasses: {
679
- readonly label: "Today's classes";
680
- readonly object: "bookings.class";
681
- readonly filter: {
682
- readonly and: [{
683
- readonly field: "startsAt";
684
- readonly op: "gte";
685
- readonly value: {
686
- readonly $relative: "today";
687
- };
688
- }, {
689
- readonly field: "startsAt";
690
- readonly op: "lt";
691
- readonly value: {
692
- readonly $relative: "tomorrow";
693
- };
694
- }];
695
- };
696
- readonly sort: {
697
- readonly field: "startsAt";
698
- readonly direction: "asc";
699
- };
700
- readonly columns: ["title", "startsAt", "coach", "room", "places", "taken", "available", "state"];
701
- };
702
- readonly thisWeeksClasses: {
703
- readonly label: "This week's classes";
704
- readonly object: "bookings.class";
705
- readonly filter: {
706
- readonly and: [{
707
- readonly field: "startsAt";
708
- readonly op: "gte";
709
- readonly value: {
710
- readonly $relative: "startOfWeek";
711
- };
712
- }, {
713
- readonly field: "startsAt";
714
- readonly op: "lt";
715
- readonly value: {
716
- readonly $relative: "startOfNextWeek";
717
- };
718
- }];
719
- };
720
- readonly sort: {
721
- readonly field: "startsAt";
722
- readonly direction: "asc";
723
- };
724
- readonly columns: ["title", "startsAt", "coach", "room", "taken", "available", "state"];
725
- };
726
- readonly activeSeries: {
727
- readonly label: "Timetable";
728
- readonly object: "bookings.series";
729
- readonly filter: {
730
- readonly field: "state";
731
- readonly op: "eq";
732
- readonly value: "active";
733
- };
734
- readonly sort: {
735
- readonly field: "time";
736
- readonly direction: "asc";
915
+ readonly service: {
916
+ readonly label: "Service";
917
+ readonly plural: "Services";
918
+ readonly icon: "user-check";
919
+ readonly titleField: "title";
920
+ readonly description: string;
921
+ readonly navigation: "settings";
922
+ readonly fields: {
923
+ readonly title: {
924
+ readonly type: "text";
925
+ readonly label: "Title";
926
+ readonly required: true;
927
+ };
928
+ readonly description: {
929
+ readonly type: "longText";
930
+ readonly label: "Description";
931
+ };
932
+ readonly length: {
933
+ readonly type: "number";
934
+ readonly label: "Length (minutes)";
935
+ readonly required: true;
936
+ readonly min: 5;
937
+ readonly max: 480;
938
+ readonly step: 5;
939
+ };
940
+ readonly bufferBefore: {
941
+ readonly type: "number";
942
+ readonly label: "Buffer before (minutes)";
943
+ readonly description: "Minutes kept free before each session, for the coach and the room.";
944
+ readonly min: 0;
945
+ readonly max: 240;
946
+ readonly step: 5;
947
+ };
948
+ readonly bufferAfter: {
949
+ readonly type: "number";
950
+ readonly label: "Buffer after (minutes)";
951
+ readonly description: "Minutes kept free after each session, for the coach and the room.";
952
+ readonly min: 0;
953
+ readonly max: 240;
954
+ readonly step: 5;
955
+ };
956
+ readonly price: {
957
+ readonly type: "currency";
958
+ readonly label: "Price per session";
959
+ readonly description: "What one session costs when paid for on its own. Empty: not sold per session.";
960
+ readonly personApproves: true;
961
+ };
962
+ readonly rooms: {
963
+ readonly type: "relation";
964
+ readonly label: "Rooms it may use";
965
+ readonly to: "bookings.room";
966
+ readonly many: true;
967
+ readonly description: string;
968
+ };
969
+ readonly step: {
970
+ readonly type: "number";
971
+ readonly label: "Start times every (minutes)";
972
+ readonly description: "15, 30 or 60: start times on the hour and every this many minutes. Empty: 30.";
973
+ readonly min: 15;
974
+ readonly max: 60;
975
+ readonly step: 15;
976
+ };
977
+ readonly opensDays: {
978
+ readonly type: "number";
979
+ readonly label: "Booking opens (days before)";
980
+ readonly description: "Clients may book this many days ahead. Empty: the organisation's setting.";
981
+ readonly min: 0;
982
+ readonly max: 365;
983
+ readonly step: 1;
984
+ readonly personApproves: true;
985
+ };
986
+ readonly closesMinutes: {
987
+ type: "number";
988
+ label: string;
989
+ description: string;
990
+ min: number;
991
+ max: number;
992
+ step: number;
993
+ personApproves: boolean;
994
+ };
995
+ readonly lateMinutes: {
996
+ type: "number";
997
+ label: string;
998
+ description: string;
999
+ min: number;
1000
+ max: number;
1001
+ step: number;
1002
+ personApproves: boolean;
1003
+ };
1004
+ readonly whoBooks: {
1005
+ readonly type: "select";
1006
+ readonly label: "Who books it";
1007
+ readonly default: "members_visitors";
1008
+ readonly options: readonly [{
1009
+ readonly value: "members_visitors";
1010
+ readonly label: "Members and visitors";
1011
+ }, {
1012
+ readonly value: "members";
1013
+ readonly label: "Members only";
1014
+ }, {
1015
+ readonly value: "staff";
1016
+ readonly label: "Staff only";
1017
+ }];
1018
+ readonly personApproves: true;
1019
+ };
1020
+ readonly active: {
1021
+ readonly type: "boolean";
1022
+ readonly label: "Offered";
1023
+ readonly default: true;
1024
+ };
1025
+ readonly staffOnly: {
1026
+ readonly type: "formula";
1027
+ readonly label: "Booked by staff only";
1028
+ readonly expression: "coalesce(whoBooks, \"members_visitors\") = \"staff\"";
1029
+ };
1030
+ readonly closed: {
1031
+ readonly type: "formula";
1032
+ readonly label: "Not offered";
1033
+ readonly expression: "not coalesce(active, true)";
1034
+ };
737
1035
  };
738
- readonly columns: ["title", "weekdays", "time", "length", "coach", "room", "places", "firstDate"];
1036
+ readonly indexes: readonly [readonly ["active"]];
739
1037
  };
740
- readonly lateCancels: {
741
- readonly label: "Late cancels";
742
- readonly object: "bookings.booking";
743
- readonly filter: {
744
- readonly field: "state";
745
- readonly op: "eq";
746
- readonly value: "late_cancelled";
747
- };
748
- readonly sort: {
749
- readonly field: "updatedAt";
750
- readonly direction: "desc";
1038
+ readonly appointment: {
1039
+ readonly label: "Appointment";
1040
+ readonly plural: "Appointments";
1041
+ readonly icon: "calendar-heart";
1042
+ readonly titleField: "title";
1043
+ readonly titleDefault: {
1044
+ readonly from: readonly ["service", "person"];
751
1045
  };
752
- readonly columns: ["title", "class", "person", "updatedAt"];
753
- };
754
- };
755
- readonly recordTabs: {
756
- readonly classBookings: {
757
- readonly label: "Bookings";
758
- readonly on: "bookings.class";
759
- readonly view: {
760
- readonly type: "table";
761
- readonly object: "bookings.booking";
762
- readonly relation: "class";
763
- readonly columns: ["person", "state", "holder", "paidOtherwise", "bookedBy", "createdAt"];
764
- readonly sort: {
765
- readonly field: "createdAt";
766
- readonly direction: "asc";
1046
+ readonly description: string;
1047
+ readonly navigation: "main";
1048
+ readonly navigationOrder: 33;
1049
+ readonly fields: {
1050
+ readonly title: {
1051
+ readonly type: "text";
1052
+ readonly label: "Title";
767
1053
  };
768
- };
769
- readonly order: 10;
770
- };
771
- readonly seriesClasses: {
772
- readonly label: "Classes";
773
- readonly on: "bookings.series";
774
- readonly view: {
775
- readonly type: "table";
776
- readonly object: "bookings.class";
777
- readonly relation: "series";
778
- readonly columns: ["startsAt", "coach", "room", "places", "taken", "state", "changed"];
779
- readonly sort: {
780
- readonly field: "startsAt";
781
- readonly direction: "asc";
1054
+ readonly service: {
1055
+ readonly type: "relation";
1056
+ readonly label: "Service";
1057
+ readonly to: "bookings.service";
1058
+ readonly required: true;
782
1059
  };
783
- };
784
- readonly order: 10;
785
- };
786
- readonly personBookings: {
787
- readonly label: "Bookings";
788
- readonly on: "person";
789
- readonly view: {
790
- readonly type: "table";
791
- readonly object: "bookings.booking";
792
- readonly relation: "person";
793
- readonly columns: ["class", "state", "holder", "createdAt"];
794
- readonly sort: {
795
- readonly field: "createdAt";
796
- readonly direction: "desc";
1060
+ readonly person: {
1061
+ readonly type: "relation";
1062
+ readonly label: "Client";
1063
+ readonly to: "person";
1064
+ };
1065
+ readonly coach: {
1066
+ readonly type: "relation";
1067
+ readonly label: "Coach";
1068
+ readonly to: "bookings.coach";
1069
+ };
1070
+ readonly room: {
1071
+ readonly type: "relation";
1072
+ readonly label: "Room";
1073
+ readonly to: "bookings.room";
1074
+ readonly description: "Left empty, the host gives it the first of the service's rooms free then.";
1075
+ };
1076
+ readonly startsAt: {
1077
+ readonly type: "datetime";
1078
+ readonly label: "Starts";
1079
+ readonly required: true;
1080
+ };
1081
+ readonly endsAt: {
1082
+ readonly type: "datetime";
1083
+ readonly label: "Ends";
1084
+ readonly required: true;
1085
+ };
1086
+ readonly timezone: {
1087
+ readonly type: "timezone";
1088
+ readonly label: "Time zone";
1089
+ readonly required: true;
1090
+ };
1091
+ readonly lateAnchor: {
1092
+ readonly type: "datetime";
1093
+ readonly label: "Late cancel counted from";
1094
+ readonly readOnly: true;
1095
+ readonly description: string;
1096
+ };
1097
+ readonly state: {
1098
+ readonly type: "select";
1099
+ readonly label: "State";
1100
+ readonly track: "timeline";
1101
+ readonly options: {
1102
+ value: string;
1103
+ label: string;
1104
+ }[];
1105
+ };
1106
+ readonly holder: {
1107
+ readonly type: "text";
1108
+ readonly label: "Paid from";
1109
+ readonly description: string;
1110
+ };
1111
+ readonly serviceId: {
1112
+ readonly type: "text";
1113
+ readonly label: "Service (for passes)";
1114
+ readonly readOnly: true;
1115
+ readonly description: "The service, copied by the host: what a pass's services are compared with.";
1116
+ };
1117
+ readonly weekday: {
1118
+ readonly type: "number";
1119
+ readonly label: "Weekday";
1120
+ readonly readOnly: true;
1121
+ readonly description: "The local weekday (1 Monday to 7 Sunday), set by the host.";
1122
+ };
1123
+ readonly minute: {
1124
+ readonly type: "number";
1125
+ readonly label: "Local minute";
1126
+ readonly readOnly: true;
1127
+ readonly description: "The local start, in minutes after midnight, set by the host.";
1128
+ };
1129
+ readonly paidOtherwise: {
1130
+ readonly type: "boolean";
1131
+ readonly label: "Paid at the desk";
1132
+ readonly readOnly: true;
1133
+ readonly description: "Paid at the desk or another way: it spends no session. Set when it is made.";
1134
+ };
1135
+ readonly bookedBy: {
1136
+ readonly type: "user";
1137
+ readonly label: "Booked by";
1138
+ readonly readOnly: true;
1139
+ readonly description: "The staff account that booked it.";
1140
+ };
1141
+ readonly movedFrom: {
1142
+ readonly type: "relation";
1143
+ readonly label: "Moved from";
1144
+ readonly to: "bookings.appointment";
1145
+ readonly readOnly: true;
1146
+ readonly description: "The appointment this one replaced when it was moved to another time.";
1147
+ };
1148
+ readonly note: {
1149
+ readonly type: "longText";
1150
+ readonly label: "Staff note";
1151
+ };
1152
+ readonly markedAt: {
1153
+ readonly type: "datetime";
1154
+ readonly label: "Attendance marked";
1155
+ readonly readOnly: true;
1156
+ readonly description: "When it was marked attended or not come.";
1157
+ };
1158
+ readonly markedBy: {
1159
+ readonly type: "user";
1160
+ readonly label: "Marked by";
1161
+ readonly readOnly: true;
1162
+ readonly description: "The staff account that marked it. Empty when the host marked it attended.";
1163
+ };
1164
+ readonly markedByName: {
1165
+ readonly type: "text";
1166
+ readonly label: "Marked by (name)";
1167
+ readonly readOnly: true;
1168
+ readonly description: "That staff member's name as it was then.";
1169
+ };
1170
+ readonly cancelledReason: {
1171
+ readonly type: "longText";
1172
+ readonly label: "Why it was cancelled or given back";
1173
+ readonly readOnly: true;
797
1174
  };
798
1175
  };
799
- readonly order: 35;
800
- };
801
- };
802
- readonly settings: {
803
- readonly opensDays: {
804
- readonly type: "number";
805
- readonly label: "Booking opens (days before)";
806
- readonly description: string;
807
- readonly default: 7;
808
- readonly min: 0;
809
- readonly max: 56;
810
- readonly personApproves: true;
811
- };
812
- readonly closesMinutes: {
813
- readonly type: "number";
814
- readonly label: "Booking closes (minutes before)";
815
- readonly description: "Members may book until this many minutes before a class (0: until it starts).";
816
- readonly default: 0;
817
- readonly min: 0;
818
- readonly max: 10080;
819
- readonly personApproves: true;
820
- };
821
- readonly lateMinutes: {
822
- readonly type: "number";
823
- readonly label: "Late cancel from (minutes before)";
824
- readonly description: "A cancel this close to the start is late: it keeps the class it used.";
825
- readonly default: 60;
826
- readonly min: 0;
827
- readonly max: 10080;
828
- readonly personApproves: true;
829
- };
830
- readonly promotionMinutes: {
831
- readonly type: "number";
832
- readonly label: "Waitlist stops (minutes before)";
833
- readonly description: "Nobody is moved in from the waitlist after this (a later release).";
834
- readonly default: 120;
835
- readonly min: 0;
836
- readonly max: 10080;
837
- readonly personApproves: true;
838
- };
839
- readonly reminderMinutes: {
840
- readonly type: "number";
841
- readonly label: "Reminder (minutes before)";
842
- readonly description: "When members are reminded of a class (a later release).";
843
- readonly default: 180;
844
- readonly min: 0;
845
- readonly max: 10080;
846
- readonly personApproves: true;
847
- };
848
- };
849
- readonly tools: {
850
- readonly timetable: import("@composable-os/sdk").ToolSpec<import("zod").ZodObject<{
851
- from: import("zod").ZodOptional<import("zod").ZodString>;
852
- to: import("zod").ZodOptional<import("zod").ZodString>;
853
- classType: import("zod").ZodOptional<import("zod").ZodString>;
854
- coach: import("zod").ZodOptional<import("zod").ZodString>;
855
- limit: import("zod").ZodDefault<import("zod").ZodNumber>;
1176
+ readonly states: {
1177
+ readonly field: "state";
1178
+ readonly initial: "booked";
1179
+ readonly create: {
1180
+ readonly in: {
1181
+ readonly pending: readonly ["host"];
1182
+ readonly unpaid: readonly ["host"];
1183
+ };
1184
+ readonly window: {
1185
+ readonly from: {
1186
+ at: string;
1187
+ daysBefore: {
1188
+ field: string;
1189
+ setting: string;
1190
+ };
1191
+ zone: string;
1192
+ };
1193
+ readonly until: {
1194
+ at: string;
1195
+ minutesBefore: {
1196
+ field: string;
1197
+ setting: string;
1198
+ };
1199
+ };
1200
+ };
1201
+ readonly staffOnly: "service.staffOnly";
1202
+ readonly closed: "service.closed";
1203
+ readonly requires: readonly ["person"];
1204
+ };
1205
+ readonly requests: {
1206
+ readonly cancel: readonly ["cancelled", "late_cancelled"];
1207
+ };
1208
+ readonly moves: readonly [{
1209
+ readonly from: "pending";
1210
+ readonly to: "booked";
1211
+ readonly by: readonly ["host"];
1212
+ }, {
1213
+ readonly from: "pending";
1214
+ readonly to: "expired";
1215
+ readonly by: readonly ["host"];
1216
+ readonly final: true;
1217
+ }, {
1218
+ readonly from: "unpaid";
1219
+ readonly to: "booked";
1220
+ readonly by: readonly ["staff"];
1221
+ }, {
1222
+ readonly from: "booked";
1223
+ readonly to: "cancelled";
1224
+ readonly by: readonly ["staff", "customer"];
1225
+ readonly final: true;
1226
+ readonly window: {
1227
+ readonly until: {
1228
+ at: string;
1229
+ minutesBefore: {
1230
+ field: string;
1231
+ setting: string;
1232
+ };
1233
+ };
1234
+ };
1235
+ readonly bindsStaff: true;
1236
+ }, {
1237
+ readonly from: "booked";
1238
+ readonly to: "late_cancelled";
1239
+ readonly by: readonly ["staff", "customer"];
1240
+ readonly window: {
1241
+ readonly from: {
1242
+ at: string;
1243
+ minutesBefore: {
1244
+ field: string;
1245
+ setting: string;
1246
+ };
1247
+ };
1248
+ readonly until: "startsAt";
1249
+ };
1250
+ }, {
1251
+ readonly from: "booked";
1252
+ readonly to: "moved";
1253
+ readonly by: readonly ["staff"];
1254
+ readonly final: true;
1255
+ readonly window: {
1256
+ readonly until: "startsAt";
1257
+ };
1258
+ readonly bindsStaff: true;
1259
+ }, {
1260
+ readonly from: "booked";
1261
+ readonly to: "attended";
1262
+ readonly by: readonly ["staff", "host"];
1263
+ readonly window: {
1264
+ readonly from: "startsAt";
1265
+ };
1266
+ readonly bindsStaff: true;
1267
+ }, {
1268
+ readonly from: "booked";
1269
+ readonly to: "no_show";
1270
+ readonly by: readonly ["staff", "host"];
1271
+ readonly window: {
1272
+ readonly from: "startsAt";
1273
+ };
1274
+ readonly bindsStaff: true;
1275
+ }, {
1276
+ readonly from: "attended";
1277
+ readonly to: "no_show";
1278
+ readonly by: readonly ["staff"];
1279
+ readonly window: {
1280
+ readonly until: {
1281
+ at: string;
1282
+ minutesBefore: number;
1283
+ };
1284
+ };
1285
+ readonly bindsStaff: true;
1286
+ }, {
1287
+ readonly from: "no_show";
1288
+ readonly to: "attended";
1289
+ readonly by: readonly ["staff"];
1290
+ readonly window: {
1291
+ readonly until: {
1292
+ at: string;
1293
+ minutesBefore: number;
1294
+ };
1295
+ };
1296
+ readonly bindsStaff: true;
1297
+ }, {
1298
+ readonly from: readonly ["late_cancelled", "no_show"];
1299
+ readonly to: "excused";
1300
+ readonly by: readonly ["host"];
1301
+ readonly tools: readonly ["excuseAppointment"];
1302
+ readonly final: true;
1303
+ }, {
1304
+ readonly from: readonly ["pending", "unpaid", "booked"];
1305
+ readonly to: "cancelled_by_us";
1306
+ readonly by: readonly ["host"];
1307
+ readonly tools: readonly ["cancelAppointmentByUs"];
1308
+ readonly final: true;
1309
+ }];
1310
+ readonly after: readonly [{
1311
+ readonly from: "booked";
1312
+ readonly to: "attended";
1313
+ readonly at: "endsAt";
1314
+ readonly minutesAfter: 30;
1315
+ readonly ifSet: readonly ["coach"];
1316
+ }];
1317
+ };
1318
+ readonly staffed: {
1319
+ readonly who: {
1320
+ readonly field: "coach";
1321
+ readonly account: "user";
1322
+ };
1323
+ readonly starts: "startsAt";
1324
+ readonly ends: "endsAt";
1325
+ readonly zone: "timezone";
1326
+ readonly kind: "service";
1327
+ readonly live: string[];
1328
+ readonly place: "room.name";
1329
+ readonly claimBefore: {
1330
+ readonly field: "service.bufferBefore";
1331
+ };
1332
+ readonly claimAfter: {
1333
+ readonly field: "service.bufferAfter";
1334
+ };
1335
+ readonly account: "required";
1336
+ readonly private: true;
1337
+ readonly open: {
1338
+ readonly length: {
1339
+ readonly field: "service.length";
1340
+ };
1341
+ readonly step: {
1342
+ readonly field: "service.step";
1343
+ };
1344
+ readonly rooms: {
1345
+ readonly field: "service.rooms";
1346
+ };
1347
+ readonly client: "person";
1348
+ readonly closedBy: {
1349
+ readonly object: "closure";
1350
+ readonly from: "fromDate";
1351
+ readonly until: "untilDate";
1352
+ };
1353
+ readonly customer: true;
1354
+ };
1355
+ };
1356
+ readonly occupies: {
1357
+ readonly thing: "room";
1358
+ readonly starts: "startsAt";
1359
+ readonly ends: "endsAt";
1360
+ readonly live: string[];
1361
+ readonly before: {
1362
+ readonly field: "service.bufferBefore";
1363
+ };
1364
+ readonly after: {
1365
+ readonly field: "service.bufferAfter";
1366
+ };
1367
+ readonly only: "exclusive";
1368
+ };
1369
+ readonly allowance: {
1370
+ readonly spends: {
1371
+ readonly person: "person";
1372
+ readonly holder: "holder";
1373
+ readonly spendIn: readonly ["booked"];
1374
+ readonly returnIn: readonly ["cancelled", "excused", "cancelled_by_us", "moved"];
1375
+ readonly at: "startsAt";
1376
+ readonly copy: {
1377
+ readonly serviceId: "service.id";
1378
+ };
1379
+ readonly local: {
1380
+ readonly weekday: "weekday";
1381
+ readonly minute: "minute";
1382
+ readonly zone: "timezone";
1383
+ };
1384
+ readonly movedFrom: {
1385
+ readonly field: "movedFrom";
1386
+ readonly state: "moved";
1387
+ readonly fixed: readonly ["startsAt", "endsAt", "service"];
1388
+ readonly anchor: {
1389
+ readonly field: "lateAnchor";
1390
+ readonly from: "startsAt";
1391
+ };
1392
+ };
1393
+ readonly paidBy: readonly ["memberships.membership", "memberships.pass"];
1394
+ readonly waived: "paidOtherwise";
1395
+ readonly released: "cancelled_by_us";
1396
+ };
1397
+ };
1398
+ readonly agreements: {
1399
+ readonly point: "appointment";
1400
+ readonly label: "Before an appointment";
1401
+ readonly suggests: readonly ["waiver", "health", "guardian"];
1402
+ readonly enter: readonly ["booked"];
1403
+ readonly person: "person";
1404
+ readonly inlineStep: true;
1405
+ };
1406
+ readonly timelineLinks: readonly ["person"];
1407
+ readonly indexes: readonly [readonly ["startsAt"], readonly ["coach", "startsAt"], readonly ["person", "startsAt"], readonly ["state", "startsAt"], readonly ["service"], readonly ["endsAt"]];
1408
+ };
1409
+ };
1410
+ readonly views: {
1411
+ readonly todaysClasses: {
1412
+ readonly label: "Today's classes";
1413
+ readonly object: "bookings.class";
1414
+ readonly filter: {
1415
+ readonly and: [{
1416
+ readonly field: "startsAt";
1417
+ readonly op: "gte";
1418
+ readonly value: {
1419
+ readonly $relative: "today";
1420
+ };
1421
+ }, {
1422
+ readonly field: "startsAt";
1423
+ readonly op: "lt";
1424
+ readonly value: {
1425
+ readonly $relative: "tomorrow";
1426
+ };
1427
+ }];
1428
+ };
1429
+ readonly sort: {
1430
+ readonly field: "startsAt";
1431
+ readonly direction: "asc";
1432
+ };
1433
+ readonly columns: ["title", "startsAt", "coach", "room", "places", "taken", "available", "state"];
1434
+ };
1435
+ readonly thisWeeksClasses: {
1436
+ readonly label: "This week's classes";
1437
+ readonly object: "bookings.class";
1438
+ readonly filter: {
1439
+ readonly and: [{
1440
+ readonly field: "startsAt";
1441
+ readonly op: "gte";
1442
+ readonly value: {
1443
+ readonly $relative: "startOfWeek";
1444
+ };
1445
+ }, {
1446
+ readonly field: "startsAt";
1447
+ readonly op: "lt";
1448
+ readonly value: {
1449
+ readonly $relative: "startOfNextWeek";
1450
+ };
1451
+ }];
1452
+ };
1453
+ readonly sort: {
1454
+ readonly field: "startsAt";
1455
+ readonly direction: "asc";
1456
+ };
1457
+ readonly columns: ["title", "startsAt", "coach", "room", "taken", "available", "state"];
1458
+ };
1459
+ readonly activeSeries: {
1460
+ readonly label: "Timetable";
1461
+ readonly object: "bookings.series";
1462
+ readonly filter: {
1463
+ readonly field: "state";
1464
+ readonly op: "eq";
1465
+ readonly value: "active";
1466
+ };
1467
+ readonly sort: {
1468
+ readonly field: "time";
1469
+ readonly direction: "asc";
1470
+ };
1471
+ readonly columns: ["title", "weekdays", "time", "length", "coach", "room", "places", "firstDate"];
1472
+ };
1473
+ readonly waitlists: {
1474
+ readonly label: "Waiting";
1475
+ readonly object: "bookings.booking";
1476
+ readonly filter: {
1477
+ readonly field: "state";
1478
+ readonly op: "eq";
1479
+ readonly value: "waiting";
1480
+ };
1481
+ readonly sort: {
1482
+ readonly field: "createdAt";
1483
+ readonly direction: "asc";
1484
+ };
1485
+ readonly columns: ["title", "class", "person", "createdAt", "passedOverAt", "passedOverReason"];
1486
+ };
1487
+ readonly lateCancels: {
1488
+ readonly label: "Late cancels";
1489
+ readonly object: "bookings.booking";
1490
+ readonly filter: {
1491
+ readonly field: "state";
1492
+ readonly op: "eq";
1493
+ readonly value: "late_cancelled";
1494
+ };
1495
+ readonly sort: {
1496
+ readonly field: "updatedAt";
1497
+ readonly direction: "desc";
1498
+ };
1499
+ readonly columns: ["title", "class", "person", "updatedAt"];
1500
+ };
1501
+ readonly noShowsThisMonth: {
1502
+ readonly label: "No-shows this month";
1503
+ readonly object: "bookings.booking";
1504
+ readonly filter: {
1505
+ readonly and: [{
1506
+ readonly field: "state";
1507
+ readonly op: "eq";
1508
+ readonly value: "no_show";
1509
+ }, {
1510
+ readonly field: "updatedAt";
1511
+ readonly op: "gte";
1512
+ readonly value: {
1513
+ readonly $relative: "startOfMonth";
1514
+ };
1515
+ }];
1516
+ };
1517
+ readonly sort: {
1518
+ readonly field: "updatedAt";
1519
+ readonly direction: "desc";
1520
+ };
1521
+ readonly columns: ["title", "class", "person", "markedByName", "updatedAt"];
1522
+ };
1523
+ readonly lateCancelsThisMonth: {
1524
+ readonly label: "Late cancels this month";
1525
+ readonly object: "bookings.booking";
1526
+ readonly filter: {
1527
+ readonly and: [{
1528
+ readonly field: "state";
1529
+ readonly op: "eq";
1530
+ readonly value: "late_cancelled";
1531
+ }, {
1532
+ readonly field: "updatedAt";
1533
+ readonly op: "gte";
1534
+ readonly value: {
1535
+ readonly $relative: "startOfMonth";
1536
+ };
1537
+ }];
1538
+ };
1539
+ readonly sort: {
1540
+ readonly field: "updatedAt";
1541
+ readonly direction: "desc";
1542
+ };
1543
+ readonly columns: ["title", "class", "person", "updatedAt"];
1544
+ };
1545
+ };
1546
+ readonly recordTabs: {
1547
+ readonly classBookings: {
1548
+ readonly label: "Bookings";
1549
+ readonly on: "bookings.class";
1550
+ readonly view: {
1551
+ readonly type: "table";
1552
+ readonly object: "bookings.booking";
1553
+ readonly relation: "class";
1554
+ readonly columns: ["person", "state", "holder", "paidOtherwise", "dropInPrice", "bookedBy", "promotedAt", "passedOverReason", "markedAt", "markedByName", "createdAt"];
1555
+ readonly sort: {
1556
+ readonly field: "createdAt";
1557
+ readonly direction: "asc";
1558
+ };
1559
+ };
1560
+ readonly order: 10;
1561
+ };
1562
+ readonly seriesClasses: {
1563
+ readonly label: "Classes";
1564
+ readonly on: "bookings.series";
1565
+ readonly view: {
1566
+ readonly type: "table";
1567
+ readonly object: "bookings.class";
1568
+ readonly relation: "series";
1569
+ readonly columns: ["startsAt", "coach", "room", "places", "taken", "state", "changed"];
1570
+ readonly sort: {
1571
+ readonly field: "startsAt";
1572
+ readonly direction: "asc";
1573
+ };
1574
+ };
1575
+ readonly order: 10;
1576
+ };
1577
+ readonly personBookings: {
1578
+ readonly label: "Bookings";
1579
+ readonly on: "person";
1580
+ readonly view: {
1581
+ readonly type: "table";
1582
+ readonly object: "bookings.booking";
1583
+ readonly relation: "person";
1584
+ readonly columns: ["class", "state", "holder", "createdAt"];
1585
+ readonly sort: {
1586
+ readonly field: "createdAt";
1587
+ readonly direction: "desc";
1588
+ };
1589
+ };
1590
+ readonly order: 35;
1591
+ };
1592
+ readonly personAppointments: {
1593
+ readonly label: "Appointments";
1594
+ readonly on: "person";
1595
+ readonly view: {
1596
+ readonly type: "table";
1597
+ readonly object: "bookings.appointment";
1598
+ readonly relation: "person";
1599
+ readonly columns: ["service", "startsAt", "coach", "room", "state", "holder", "paidOtherwise"];
1600
+ readonly sort: {
1601
+ readonly field: "startsAt";
1602
+ readonly direction: "desc";
1603
+ };
1604
+ };
1605
+ readonly order: 36;
1606
+ };
1607
+ readonly serviceAppointments: {
1608
+ readonly label: "Appointments";
1609
+ readonly on: "bookings.service";
1610
+ readonly view: {
1611
+ readonly type: "table";
1612
+ readonly object: "bookings.appointment";
1613
+ readonly relation: "service";
1614
+ readonly columns: ["startsAt", "person", "coach", "room", "state"];
1615
+ readonly sort: {
1616
+ readonly field: "startsAt";
1617
+ readonly direction: "desc";
1618
+ };
1619
+ };
1620
+ readonly order: 10;
1621
+ };
1622
+ };
1623
+ readonly routineMail: {
1624
+ confirmation: {
1625
+ slots: {
1626
+ oldClass: {
1627
+ field: string;
1628
+ optional: true;
1629
+ };
1630
+ oldWhen: {
1631
+ field: string;
1632
+ format: "datetime";
1633
+ zone: string;
1634
+ optional: true;
1635
+ };
1636
+ class: {
1637
+ field: string;
1638
+ };
1639
+ when: {
1640
+ field: string;
1641
+ format: "datetime";
1642
+ zone: string;
1643
+ };
1644
+ room: {
1645
+ field: string;
1646
+ optional: true;
1647
+ };
1648
+ link: {
1649
+ link: string;
1650
+ };
1651
+ day: {
1652
+ field: string;
1653
+ format: "date";
1654
+ zone: string;
1655
+ };
1656
+ time: {
1657
+ field: string;
1658
+ format: "time";
1659
+ zone: string;
1660
+ };
1661
+ short: {
1662
+ field: string;
1663
+ max: number;
1664
+ };
1665
+ };
1666
+ messages: {
1667
+ booked: {
1668
+ subject: string;
1669
+ text: string;
1670
+ textMessage: string;
1671
+ push: {
1672
+ title: string;
1673
+ body: string;
1674
+ };
1675
+ guardian: {
1676
+ subject: string;
1677
+ text: string;
1678
+ textMessage: string;
1679
+ push: {
1680
+ title: string;
1681
+ body: string;
1682
+ };
1683
+ };
1684
+ calendar: {
1685
+ readonly start: "class.startsAt";
1686
+ readonly end: "class.endsAt";
1687
+ readonly title: "class.title";
1688
+ readonly location: "class.room.name";
1689
+ readonly link: "link";
1690
+ };
1691
+ };
1692
+ paid: {
1693
+ subject: string;
1694
+ text: string;
1695
+ textMessage: string;
1696
+ push: {
1697
+ title: string;
1698
+ body: string;
1699
+ };
1700
+ guardian: {
1701
+ subject: string;
1702
+ text: string;
1703
+ textMessage: string;
1704
+ push: {
1705
+ title: string;
1706
+ body: string;
1707
+ };
1708
+ };
1709
+ calendar: {
1710
+ readonly start: "class.startsAt";
1711
+ readonly end: "class.endsAt";
1712
+ readonly title: "class.title";
1713
+ readonly location: "class.room.name";
1714
+ readonly link: "link";
1715
+ };
1716
+ };
1717
+ promoted: {
1718
+ subject: string;
1719
+ text: string;
1720
+ textMessage: string;
1721
+ push: {
1722
+ title: string;
1723
+ body: string;
1724
+ };
1725
+ guardian: {
1726
+ subject: string;
1727
+ text: string;
1728
+ textMessage: string;
1729
+ push: {
1730
+ title: string;
1731
+ body: string;
1732
+ };
1733
+ };
1734
+ calendar: {
1735
+ readonly start: "class.startsAt";
1736
+ readonly end: "class.endsAt";
1737
+ readonly title: "class.title";
1738
+ readonly location: "class.room.name";
1739
+ readonly link: "link";
1740
+ };
1741
+ };
1742
+ moved: {
1743
+ subject: string;
1744
+ text: string;
1745
+ textMessage: string;
1746
+ push: {
1747
+ title: string;
1748
+ body: string;
1749
+ };
1750
+ guardian: {
1751
+ subject: string;
1752
+ text: string;
1753
+ textMessage: string;
1754
+ push: {
1755
+ title: string;
1756
+ body: string;
1757
+ };
1758
+ };
1759
+ calendar: ({
1760
+ uid: string;
1761
+ start: string;
1762
+ end: string;
1763
+ title: string;
1764
+ location: string;
1765
+ cancelled: true;
1766
+ update: true;
1767
+ } | {
1768
+ update: true;
1769
+ start: "class.startsAt";
1770
+ end: "class.endsAt";
1771
+ title: "class.title";
1772
+ location: "class.room.name";
1773
+ link: "link";
1774
+ uid?: undefined;
1775
+ cancelled?: undefined;
1776
+ })[];
1777
+ };
1778
+ };
1779
+ channels: readonly ["email", "text", "push"];
1780
+ until: "class.startsAt";
1781
+ open: {
1782
+ readonly screen: "timetable";
1783
+ };
1784
+ label: string;
1785
+ description: string;
1786
+ about: string;
1787
+ };
1788
+ waitingList: {
1789
+ slots: {
1790
+ why: {
1791
+ choice: {
1792
+ noUsesLeft: string;
1793
+ notLive: string;
1794
+ notCovered: string;
1795
+ other: string;
1796
+ };
1797
+ };
1798
+ class: {
1799
+ field: string;
1800
+ };
1801
+ when: {
1802
+ field: string;
1803
+ format: "datetime";
1804
+ zone: string;
1805
+ };
1806
+ room: {
1807
+ field: string;
1808
+ optional: true;
1809
+ };
1810
+ link: {
1811
+ link: string;
1812
+ };
1813
+ day: {
1814
+ field: string;
1815
+ format: "date";
1816
+ zone: string;
1817
+ };
1818
+ time: {
1819
+ field: string;
1820
+ format: "time";
1821
+ zone: string;
1822
+ };
1823
+ short: {
1824
+ field: string;
1825
+ max: number;
1826
+ };
1827
+ };
1828
+ messages: {
1829
+ passedOver: {
1830
+ subject: string;
1831
+ text: string;
1832
+ textMessage: string;
1833
+ push: {
1834
+ title: string;
1835
+ body: string;
1836
+ };
1837
+ guardian: {
1838
+ subject: string;
1839
+ text: string;
1840
+ textMessage: string;
1841
+ push: {
1842
+ title: string;
1843
+ body: string;
1844
+ };
1845
+ };
1846
+ };
1847
+ placeFree: {
1848
+ subject: string;
1849
+ text: string;
1850
+ textMessage: string;
1851
+ push: {
1852
+ title: string;
1853
+ body: string;
1854
+ };
1855
+ guardian: {
1856
+ subject: string;
1857
+ text: string;
1858
+ textMessage: string;
1859
+ push: {
1860
+ title: string;
1861
+ body: string;
1862
+ };
1863
+ };
1864
+ };
1865
+ };
1866
+ channels: readonly ["email", "text", "push"];
1867
+ until: "class.startsAt";
1868
+ open: {
1869
+ readonly screen: "timetable";
1870
+ };
1871
+ label: string;
1872
+ description: string;
1873
+ about: string;
1874
+ essential: false;
1875
+ };
1876
+ change: {
1877
+ slots: {
1878
+ before: {
1879
+ at: true;
1880
+ zone: string;
1881
+ optional: true;
1882
+ };
1883
+ ends: {
1884
+ field: string;
1885
+ format: "time";
1886
+ zone: string;
1887
+ optional: true;
1888
+ };
1889
+ stays: {
1890
+ choice: {
1891
+ booking: string;
1892
+ waiting: string;
1893
+ };
1894
+ };
1895
+ moved: {
1896
+ flag: true;
1897
+ };
1898
+ notMoved: {
1899
+ flag: true;
1900
+ };
1901
+ endChanged: {
1902
+ flag: true;
1903
+ };
1904
+ roomChanged: {
1905
+ flag: true;
1906
+ };
1907
+ keep: {
1908
+ flag: true;
1909
+ };
1910
+ class: {
1911
+ field: string;
1912
+ };
1913
+ when: {
1914
+ field: string;
1915
+ format: "datetime";
1916
+ zone: string;
1917
+ };
1918
+ room: {
1919
+ field: string;
1920
+ optional: true;
1921
+ };
1922
+ link: {
1923
+ link: string;
1924
+ };
1925
+ day: {
1926
+ field: string;
1927
+ format: "date";
1928
+ zone: string;
1929
+ };
1930
+ time: {
1931
+ field: string;
1932
+ format: "time";
1933
+ zone: string;
1934
+ };
1935
+ short: {
1936
+ field: string;
1937
+ max: number;
1938
+ };
1939
+ };
1940
+ messages: {
1941
+ changed: {
1942
+ subject: string;
1943
+ text: string;
1944
+ textMessage: string;
1945
+ push: {
1946
+ title: string;
1947
+ body: string;
1948
+ };
1949
+ guardian: {
1950
+ subject: string;
1951
+ text: string;
1952
+ textMessage: string;
1953
+ push: {
1954
+ title: string;
1955
+ body: string;
1956
+ };
1957
+ };
1958
+ calendar: {
1959
+ update: true;
1960
+ if: string;
1961
+ start: "class.startsAt";
1962
+ end: "class.endsAt";
1963
+ title: "class.title";
1964
+ location: "class.room.name";
1965
+ link: "link";
1966
+ };
1967
+ };
1968
+ };
1969
+ channels: readonly ["email", "text", "push"];
1970
+ until: "class.startsAt";
1971
+ open: {
1972
+ readonly screen: "timetable";
1973
+ };
1974
+ label: string;
1975
+ description: string;
1976
+ about: string;
1977
+ };
1978
+ cancellation: {
1979
+ slots: {
1980
+ reason: {
1981
+ field: string;
1982
+ max: number;
1983
+ optional: true;
1984
+ };
1985
+ money: {
1986
+ choice: {
1987
+ refund: string;
1988
+ unpaid: string;
1989
+ membership: string;
1990
+ };
1991
+ guardian: {
1992
+ refund: string;
1993
+ membership: string;
1994
+ };
1995
+ };
1996
+ class: {
1997
+ field: string;
1998
+ };
1999
+ when: {
2000
+ field: string;
2001
+ format: "datetime";
2002
+ zone: string;
2003
+ };
2004
+ room: {
2005
+ field: string;
2006
+ optional: true;
2007
+ };
2008
+ link: {
2009
+ link: string;
2010
+ };
2011
+ day: {
2012
+ field: string;
2013
+ format: "date";
2014
+ zone: string;
2015
+ };
2016
+ time: {
2017
+ field: string;
2018
+ format: "time";
2019
+ zone: string;
2020
+ };
2021
+ short: {
2022
+ field: string;
2023
+ max: number;
2024
+ };
2025
+ };
2026
+ messages: {
2027
+ cancelled: {
2028
+ subject: string;
2029
+ text: string;
2030
+ textMessage: string;
2031
+ push: {
2032
+ title: string;
2033
+ body: string;
2034
+ };
2035
+ guardian: {
2036
+ subject: string;
2037
+ text: string;
2038
+ textMessage: string;
2039
+ push: {
2040
+ title: string;
2041
+ body: string;
2042
+ };
2043
+ };
2044
+ calendar: {
2045
+ cancelled: true;
2046
+ update: true;
2047
+ start: "class.startsAt";
2048
+ end: "class.endsAt";
2049
+ title: "class.title";
2050
+ location: "class.room.name";
2051
+ link: "link";
2052
+ };
2053
+ };
2054
+ };
2055
+ channels: readonly ["email", "text", "push"];
2056
+ until: "class.startsAt";
2057
+ open: {
2058
+ readonly screen: "timetable";
2059
+ };
2060
+ label: string;
2061
+ description: string;
2062
+ about: string;
2063
+ urgent: true;
2064
+ };
2065
+ reminder: {
2066
+ slots: {
2067
+ class: {
2068
+ field: string;
2069
+ };
2070
+ when: {
2071
+ field: string;
2072
+ format: "datetime";
2073
+ zone: string;
2074
+ };
2075
+ room: {
2076
+ field: string;
2077
+ optional: true;
2078
+ };
2079
+ link: {
2080
+ link: string;
2081
+ };
2082
+ day: {
2083
+ field: string;
2084
+ format: "date";
2085
+ zone: string;
2086
+ };
2087
+ time: {
2088
+ field: string;
2089
+ format: "time";
2090
+ zone: string;
2091
+ };
2092
+ short: {
2093
+ field: string;
2094
+ max: number;
2095
+ };
2096
+ };
2097
+ messages: {
2098
+ reminder: {
2099
+ subject: string;
2100
+ text: string;
2101
+ textMessage: string;
2102
+ push: {
2103
+ title: string;
2104
+ body: string;
2105
+ };
2106
+ guardian: {
2107
+ subject: string;
2108
+ text: string;
2109
+ textMessage: string;
2110
+ push: {
2111
+ title: string;
2112
+ body: string;
2113
+ };
2114
+ };
2115
+ };
2116
+ };
2117
+ channels: readonly ["email", "text", "push"];
2118
+ until: "class.startsAt";
2119
+ open: {
2120
+ readonly screen: "timetable";
2121
+ };
2122
+ label: string;
2123
+ description: string;
2124
+ about: string;
2125
+ essential: false;
2126
+ };
2127
+ dropIn: {
2128
+ label: string;
2129
+ description: string;
2130
+ about: string;
2131
+ slots: {
2132
+ what: {
2133
+ each: {
2134
+ object: string;
2135
+ via: string;
2136
+ max: number;
2137
+ line: string;
2138
+ slots: {
2139
+ class: {
2140
+ field: string;
2141
+ };
2142
+ when: {
2143
+ field: string;
2144
+ format: "datetime";
2145
+ zone: string;
2146
+ };
2147
+ };
2148
+ };
2149
+ };
2150
+ link: {
2151
+ link: string;
2152
+ };
2153
+ };
2154
+ messages: {
2155
+ held: {
2156
+ subject: string;
2157
+ text: string;
2158
+ };
2159
+ refunded: {
2160
+ subject: string;
2161
+ text: string;
2162
+ };
2163
+ };
2164
+ };
2165
+ feedback: {
2166
+ label: string;
2167
+ description: string;
2168
+ about: string;
2169
+ purpose: "follow_up";
2170
+ slots: {
2171
+ class: {
2172
+ field: string;
2173
+ };
2174
+ day: {
2175
+ field: string;
2176
+ format: "date";
2177
+ zone: string;
2178
+ };
2179
+ form: {
2180
+ formLink: {
2181
+ object: string;
2182
+ setting: string;
2183
+ days: number;
2184
+ once: number;
2185
+ };
2186
+ };
2187
+ };
2188
+ messages: {
2189
+ ask: {
2190
+ subject: string;
2191
+ text: string;
2192
+ guardian: {
2193
+ subject: string;
2194
+ text: string;
2195
+ };
2196
+ };
2197
+ };
2198
+ };
2199
+ };
2200
+ readonly journeySignals: {
2201
+ readonly booked: {
2202
+ readonly label: "Class booked";
2203
+ readonly description: "A place in a class is booked: made, taken from the waitlist, or paid for.";
2204
+ readonly object: "booking";
2205
+ readonly enters: readonly ["booked"];
2206
+ readonly from: readonly ["pending", "waiting"];
2207
+ };
2208
+ readonly attended: {
2209
+ readonly label: "Class attended";
2210
+ readonly description: "A coach ticks the person's name on a class's list.";
2211
+ readonly object: "booking";
2212
+ readonly enters: readonly ["attended"];
2213
+ };
2214
+ };
2215
+ readonly settings: {
2216
+ readonly opensDays: {
2217
+ readonly type: "number";
2218
+ readonly label: "Booking opens (days before)";
2219
+ readonly description: string;
2220
+ readonly default: 7;
2221
+ readonly min: 0;
2222
+ readonly max: 56;
2223
+ readonly personApproves: true;
2224
+ };
2225
+ readonly closesMinutes: {
2226
+ readonly type: "number";
2227
+ readonly label: "Booking closes (minutes before)";
2228
+ readonly description: "Members may book until this many minutes before a class (0: until it starts).";
2229
+ readonly default: 0;
2230
+ readonly min: 0;
2231
+ readonly max: 10080;
2232
+ readonly personApproves: true;
2233
+ };
2234
+ readonly lateMinutes: {
2235
+ readonly type: "number";
2236
+ readonly label: "Late cancel from (minutes before)";
2237
+ readonly description: "A cancel this close to the start is late: it keeps the class it used.";
2238
+ readonly default: 60;
2239
+ readonly min: 0;
2240
+ readonly max: 10080;
2241
+ readonly personApproves: true;
2242
+ };
2243
+ readonly promotionMinutes: {
2244
+ readonly type: "number";
2245
+ readonly label: "Waitlist stops (minutes before)";
2246
+ readonly description: string;
2247
+ readonly default: 120;
2248
+ readonly min: 0;
2249
+ readonly max: 10080;
2250
+ readonly personApproves: true;
2251
+ };
2252
+ readonly dropInPrice: {
2253
+ readonly type: "number";
2254
+ readonly label: "Drop-in price";
2255
+ readonly description: string;
2256
+ readonly min: 0;
2257
+ readonly max: 100000;
2258
+ readonly personApproves: true;
2259
+ };
2260
+ readonly dropInHoldPercent: {
2261
+ readonly type: "number";
2262
+ readonly label: "Places held for unpaid drop-ins (percent)";
2263
+ readonly description: string;
2264
+ readonly default: 50;
2265
+ readonly min: 0;
2266
+ readonly max: 100;
2267
+ readonly personApproves: true;
2268
+ };
2269
+ readonly reminderMinutes: {
2270
+ readonly type: "number";
2271
+ readonly label: "Reminder (minutes before)";
2272
+ readonly description: string;
2273
+ readonly default: 180;
2274
+ readonly min: 0;
2275
+ readonly max: 2880;
2276
+ readonly personApproves: true;
2277
+ };
2278
+ readonly appointmentOpensDays: {
2279
+ readonly type: "number";
2280
+ readonly label: "Appointments: booking opens (days before)";
2281
+ readonly description: "Clients may book a one-to-one session this many days ahead.";
2282
+ readonly default: 28;
2283
+ readonly min: 0;
2284
+ readonly max: 365;
2285
+ readonly personApproves: true;
2286
+ };
2287
+ readonly appointmentClosesMinutes: {
2288
+ readonly type: "number";
2289
+ readonly label: "Appointments: booking closes (minutes before)";
2290
+ readonly description: "Clients may book a session until this many minutes before it (720: 12 hours).";
2291
+ readonly default: 720;
2292
+ readonly min: 0;
2293
+ readonly max: 10080;
2294
+ readonly personApproves: true;
2295
+ };
2296
+ readonly appointmentLateMinutes: {
2297
+ readonly type: "number";
2298
+ readonly label: "Appointments: late cancel from (minutes before)";
2299
+ readonly description: string;
2300
+ readonly default: 1440;
2301
+ readonly min: 0;
2302
+ readonly max: 10080;
2303
+ readonly personApproves: true;
2304
+ };
2305
+ readonly bookingsUrl: {
2306
+ readonly type: "text";
2307
+ readonly label: "Where members see their bookings";
2308
+ readonly description: string;
2309
+ readonly personApproves: true;
2310
+ };
2311
+ readonly feedbackForm: {
2312
+ readonly type: "text";
2313
+ readonly label: "Feedback form (its address)";
2314
+ readonly description: string;
2315
+ readonly personApproves: true;
2316
+ };
2317
+ readonly feedbackMinutes: {
2318
+ readonly type: "number";
2319
+ readonly label: "Feedback asked (minutes after the tick)";
2320
+ readonly description: "How long after a member is ticked as come the feedback email goes.";
2321
+ readonly default: 180;
2322
+ readonly min: 0;
2323
+ readonly max: 2880;
2324
+ readonly personApproves: true;
2325
+ };
2326
+ };
2327
+ readonly roles: {
2328
+ readonly coach: {
2329
+ readonly label: "Coach";
2330
+ readonly description: string;
2331
+ readonly permissions: readonly ["bookings:coach"];
2332
+ readonly read: readonly ["bookings.class"];
2333
+ readonly today: {
2334
+ readonly "bookings.class": {
2335
+ readonly at: "startsAt";
2336
+ readonly until: "endsAt";
2337
+ readonly zone: "timezone";
2338
+ };
2339
+ readonly "bookings.booking": {
2340
+ readonly at: "class.startsAt";
2341
+ readonly until: "class.endsAt";
2342
+ readonly zone: "class.timezone";
2343
+ };
2344
+ };
2345
+ };
2346
+ };
2347
+ readonly grantable: readonly ["bookings:desk", "bookings:appointments"];
2348
+ readonly grantableLabels: {
2349
+ readonly "bookings:desk": string;
2350
+ readonly "bookings:appointments": string;
2351
+ };
2352
+ readonly tools: {
2353
+ readonly timetable: import("@composable-os/sdk").ToolSpec<import("zod").ZodObject<{
2354
+ from: import("zod").ZodOptional<import("zod").ZodString>;
2355
+ to: import("zod").ZodOptional<import("zod").ZodString>;
2356
+ classType: import("zod").ZodOptional<import("zod").ZodString>;
2357
+ coach: import("zod").ZodOptional<import("zod").ZodString>;
2358
+ limit: import("zod").ZodDefault<import("zod").ZodNumber>;
2359
+ }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
2360
+ classes: import("zod").ZodArray<import("zod").ZodObject<{
2361
+ id: import("zod").ZodString;
2362
+ title: import("zod").ZodNullable<import("zod").ZodString>;
2363
+ classType: import("zod").ZodNullable<import("zod").ZodString>;
2364
+ startsAt: import("zod").ZodNullable<import("zod").ZodString>;
2365
+ endsAt: import("zod").ZodNullable<import("zod").ZodString>;
2366
+ timeZone: import("zod").ZodNullable<import("zod").ZodString>;
2367
+ room: import("zod").ZodNullable<import("zod").ZodObject<{
2368
+ id: import("zod").ZodString;
2369
+ name: import("zod").ZodNullable<import("zod").ZodString>;
2370
+ }, import("zod/v4/core").$strip>>;
2371
+ coach: import("zod").ZodNullable<import("zod").ZodIntersection<import("zod").ZodNullable<import("zod").ZodObject<{
2372
+ id: import("zod").ZodString;
2373
+ name: import("zod").ZodNullable<import("zod").ZodString>;
2374
+ }, import("zod/v4/core").$strip>>, import("zod").ZodObject<{
2375
+ photo: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
2376
+ }, import("zod/v4/core").$strip>>>;
2377
+ notes: import("zod").ZodNullable<import("zod").ZodString>;
2378
+ places: import("zod").ZodObject<{
2379
+ status: import("zod").ZodEnum<{
2380
+ available: "available";
2381
+ low: "low";
2382
+ sold_out: "sold_out";
2383
+ }>;
2384
+ available: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodNumber>>;
2385
+ }, import("zod/v4/core").$strip>;
2386
+ }, import("zod/v4/core").$strip>>;
2387
+ }, import("zod/v4/core").$strip>>;
2388
+ readonly classGet: import("@composable-os/sdk").ToolSpec<import("zod").ZodObject<{
2389
+ classId: import("zod").ZodString;
2390
+ }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
2391
+ class: import("zod").ZodObject<{
2392
+ id: import("zod").ZodString;
2393
+ title: import("zod").ZodNullable<import("zod").ZodString>;
2394
+ classType: import("zod").ZodNullable<import("zod").ZodString>;
2395
+ startsAt: import("zod").ZodNullable<import("zod").ZodString>;
2396
+ endsAt: import("zod").ZodNullable<import("zod").ZodString>;
2397
+ timeZone: import("zod").ZodNullable<import("zod").ZodString>;
2398
+ room: import("zod").ZodNullable<import("zod").ZodObject<{
2399
+ id: import("zod").ZodString;
2400
+ name: import("zod").ZodNullable<import("zod").ZodString>;
2401
+ }, import("zod/v4/core").$strip>>;
2402
+ coach: import("zod").ZodNullable<import("zod").ZodIntersection<import("zod").ZodNullable<import("zod").ZodObject<{
2403
+ id: import("zod").ZodString;
2404
+ name: import("zod").ZodNullable<import("zod").ZodString>;
2405
+ }, import("zod/v4/core").$strip>>, import("zod").ZodObject<{
2406
+ photo: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
2407
+ }, import("zod/v4/core").$strip>>>;
2408
+ notes: import("zod").ZodNullable<import("zod").ZodString>;
2409
+ places: import("zod").ZodObject<{
2410
+ status: import("zod").ZodEnum<{
2411
+ available: "available";
2412
+ low: "low";
2413
+ sold_out: "sold_out";
2414
+ }>;
2415
+ available: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodNumber>>;
2416
+ }, import("zod/v4/core").$strip>;
2417
+ }, import("zod/v4/core").$strip>;
2418
+ }, import("zod/v4/core").$strip>>;
2419
+ readonly book: import("@composable-os/sdk").ToolSpec<import("zod").ZodObject<{
2420
+ classId: import("zod").ZodString;
2421
+ forPersonId: import("zod").ZodOptional<import("zod").ZodString>;
2422
+ holderId: import("zod").ZodOptional<import("zod").ZodString>;
2423
+ waitlist: import("zod").ZodDefault<import("zod").ZodBoolean>;
2424
+ }, import("zod/v4/core").$strip>, import("zod").ZodUnion<readonly [import("zod").ZodObject<{
2425
+ result: import("zod").ZodLiteral<"booked">;
2426
+ bookingId: import("zod").ZodString;
2427
+ classId: import("zod").ZodString;
2428
+ holderId: import("zod").ZodNullable<import("zod").ZodString>;
2429
+ }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
2430
+ result: import("zod").ZodLiteral<"waiting">;
2431
+ bookingId: import("zod").ZodString;
2432
+ classId: import("zod").ZodString;
2433
+ position: import("zod").ZodNullable<import("zod").ZodNumber>;
2434
+ waiting: import("zod").ZodNullable<import("zod").ZodNumber>;
2435
+ message: import("zod").ZodString;
2436
+ }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
2437
+ result: import("zod").ZodLiteral<"refused">;
2438
+ reason: import("zod").ZodEnum<{
2439
+ not_open: "not_open";
2440
+ closed: "closed";
2441
+ staff_only: "staff_only";
2442
+ no_use: "no_use";
2443
+ already_booked: "already_booked";
2444
+ full: "full";
2445
+ too_late: "too_late";
2446
+ not_found: "not_found";
2447
+ changed: "changed";
2448
+ not_running: "not_running";
2449
+ person_exists: "person_exists";
2450
+ possible_duplicates: "possible_duplicates";
2451
+ waitlist_closed: "waitlist_closed";
2452
+ no_drop_in: "no_drop_in";
2453
+ ask_desk: "ask_desk";
2454
+ try_later: "try_later";
2455
+ }>;
2456
+ message: import("zod").ZodString;
2457
+ detail: import("zod").ZodNullable<import("zod").ZodString>;
2458
+ opensAt: import("zod").ZodNullable<import("zod").ZodString>;
2459
+ closesAt: import("zod").ZodNullable<import("zod").ZodString>;
2460
+ people: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
2461
+ id: import("zod").ZodString;
2462
+ name: import("zod").ZodString;
2463
+ reasons: import("zod").ZodArray<import("zod").ZodString>;
2464
+ }, import("zod/v4/core").$strip>>>;
2465
+ }, import("zod/v4/core").$strip>]>>;
2466
+ readonly buy: import("@composable-os/sdk").ToolSpec<import("zod").ZodObject<{
2467
+ classId: import("zod").ZodString;
2468
+ forPersonId: import("zod").ZodOptional<import("zod").ZodString>;
2469
+ email: import("zod").ZodOptional<import("zod").ZodString>;
2470
+ agreements: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>>;
2471
+ }, import("zod/v4/core").$strip>, import("zod").ZodUnion<readonly [import("zod").ZodObject<{
2472
+ result: import("zod").ZodLiteral<"pending">;
2473
+ bookingId: import("zod").ZodString;
2474
+ classId: import("zod").ZodString;
2475
+ orderId: import("zod").ZodString;
2476
+ total: import("zod").ZodNumber;
2477
+ currency: import("zod").ZodString;
2478
+ expiresAt: import("zod").ZodNullable<import("zod").ZodString>;
2479
+ token: import("zod").ZodNullable<import("zod").ZodString>;
2480
+ }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
2481
+ result: import("zod").ZodLiteral<"refused">;
2482
+ reason: import("zod").ZodEnum<{
2483
+ not_open: "not_open";
2484
+ closed: "closed";
2485
+ staff_only: "staff_only";
2486
+ no_use: "no_use";
2487
+ already_booked: "already_booked";
2488
+ full: "full";
2489
+ too_late: "too_late";
2490
+ not_found: "not_found";
2491
+ changed: "changed";
2492
+ not_running: "not_running";
2493
+ person_exists: "person_exists";
2494
+ possible_duplicates: "possible_duplicates";
2495
+ waitlist_closed: "waitlist_closed";
2496
+ no_drop_in: "no_drop_in";
2497
+ ask_desk: "ask_desk";
2498
+ try_later: "try_later";
2499
+ }>;
2500
+ message: import("zod").ZodString;
2501
+ detail: import("zod").ZodNullable<import("zod").ZodString>;
2502
+ opensAt: import("zod").ZodNullable<import("zod").ZodString>;
2503
+ closesAt: import("zod").ZodNullable<import("zod").ZodString>;
2504
+ people: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
2505
+ id: import("zod").ZodString;
2506
+ name: import("zod").ZodString;
2507
+ reasons: import("zod").ZodArray<import("zod").ZodString>;
2508
+ }, import("zod/v4/core").$strip>>>;
2509
+ }, import("zod/v4/core").$strip>]>>;
2510
+ readonly cancel: import("@composable-os/sdk").ToolSpec<import("zod").ZodObject<{
2511
+ bookingId: import("zod").ZodString;
2512
+ confirm: import("zod").ZodDefault<import("zod").ZodBoolean>;
2513
+ expect: import("zod").ZodOptional<import("zod").ZodEnum<{
2514
+ cancelled: "cancelled";
2515
+ late_cancelled: "late_cancelled";
2516
+ }>>;
2517
+ }, import("zod/v4/core").$strip>, import("zod").ZodUnion<readonly [import("zod").ZodObject<{
2518
+ result: import("zod").ZodEnum<{
2519
+ cancelled: "cancelled";
2520
+ late_cancelled: "late_cancelled";
2521
+ preview: "preview";
2522
+ }>;
2523
+ state: import("zod").ZodEnum<{
2524
+ cancelled: "cancelled";
2525
+ late_cancelled: "late_cancelled";
2526
+ }>;
2527
+ late: import("zod").ZodBoolean;
2528
+ dropIn: import("zod").ZodBoolean;
2529
+ message: import("zod").ZodString;
2530
+ }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
2531
+ result: import("zod").ZodLiteral<"refused">;
2532
+ reason: import("zod").ZodEnum<{
2533
+ not_open: "not_open";
2534
+ closed: "closed";
2535
+ staff_only: "staff_only";
2536
+ no_use: "no_use";
2537
+ already_booked: "already_booked";
2538
+ full: "full";
2539
+ too_late: "too_late";
2540
+ not_found: "not_found";
2541
+ changed: "changed";
2542
+ not_running: "not_running";
2543
+ person_exists: "person_exists";
2544
+ possible_duplicates: "possible_duplicates";
2545
+ waitlist_closed: "waitlist_closed";
2546
+ no_drop_in: "no_drop_in";
2547
+ ask_desk: "ask_desk";
2548
+ try_later: "try_later";
2549
+ }>;
2550
+ message: import("zod").ZodString;
2551
+ detail: import("zod").ZodNullable<import("zod").ZodString>;
2552
+ opensAt: import("zod").ZodNullable<import("zod").ZodString>;
2553
+ closesAt: import("zod").ZodNullable<import("zod").ZodString>;
2554
+ people: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
2555
+ id: import("zod").ZodString;
2556
+ name: import("zod").ZodString;
2557
+ reasons: import("zod").ZodArray<import("zod").ZodString>;
2558
+ }, import("zod/v4/core").$strip>>>;
2559
+ }, import("zod/v4/core").$strip>]>>;
2560
+ readonly leaveWaitlist: import("@composable-os/sdk").ToolSpec<import("zod").ZodObject<{
2561
+ bookingId: import("zod").ZodString;
2562
+ }, import("zod/v4/core").$strip>, import("zod").ZodUnion<readonly [import("zod").ZodObject<{
2563
+ result: import("zod").ZodLiteral<"left">;
2564
+ bookingId: import("zod").ZodString;
2565
+ }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
2566
+ result: import("zod").ZodLiteral<"refused">;
2567
+ reason: import("zod").ZodEnum<{
2568
+ not_open: "not_open";
2569
+ closed: "closed";
2570
+ staff_only: "staff_only";
2571
+ no_use: "no_use";
2572
+ already_booked: "already_booked";
2573
+ full: "full";
2574
+ too_late: "too_late";
2575
+ not_found: "not_found";
2576
+ changed: "changed";
2577
+ not_running: "not_running";
2578
+ person_exists: "person_exists";
2579
+ possible_duplicates: "possible_duplicates";
2580
+ waitlist_closed: "waitlist_closed";
2581
+ no_drop_in: "no_drop_in";
2582
+ ask_desk: "ask_desk";
2583
+ try_later: "try_later";
2584
+ }>;
2585
+ message: import("zod").ZodString;
2586
+ detail: import("zod").ZodNullable<import("zod").ZodString>;
2587
+ opensAt: import("zod").ZodNullable<import("zod").ZodString>;
2588
+ closesAt: import("zod").ZodNullable<import("zod").ZodString>;
2589
+ people: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
2590
+ id: import("zod").ZodString;
2591
+ name: import("zod").ZodString;
2592
+ reasons: import("zod").ZodArray<import("zod").ZodString>;
2593
+ }, import("zod/v4/core").$strip>>>;
2594
+ }, import("zod/v4/core").$strip>]>>;
2595
+ readonly mine: import("@composable-os/sdk").ToolSpec<import("zod").ZodObject<{
2596
+ personId: import("zod").ZodOptional<import("zod").ZodString>;
2597
+ state: import("zod").ZodOptional<import("zod").ZodEnum<{
2598
+ booked: "booked";
2599
+ waiting: "waiting";
2600
+ cancelled: "cancelled";
2601
+ late_cancelled: "late_cancelled";
2602
+ pending: "pending";
2603
+ left: "left";
2604
+ }>>;
2605
+ upcoming: import("zod").ZodDefault<import("zod").ZodBoolean>;
2606
+ limit: import("zod").ZodDefault<import("zod").ZodNumber>;
2607
+ }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
2608
+ bookings: import("zod").ZodArray<import("zod").ZodObject<{
2609
+ id: import("zod").ZodString;
2610
+ personId: import("zod").ZodNullable<import("zod").ZodString>;
2611
+ state: import("zod").ZodNullable<import("zod").ZodString>;
2612
+ position: import("zod").ZodNullable<import("zod").ZodNumber>;
2613
+ holderId: import("zod").ZodNullable<import("zod").ZodString>;
2614
+ dropInOrderId: import("zod").ZodNullable<import("zod").ZodString>;
2615
+ classId: import("zod").ZodNullable<import("zod").ZodString>;
2616
+ title: import("zod").ZodNullable<import("zod").ZodString>;
2617
+ startsAt: import("zod").ZodNullable<import("zod").ZodString>;
2618
+ endsAt: import("zod").ZodNullable<import("zod").ZodString>;
2619
+ timeZone: import("zod").ZodNullable<import("zod").ZodString>;
2620
+ classState: import("zod").ZodNullable<import("zod").ZodString>;
2621
+ coach: import("zod").ZodNullable<import("zod").ZodString>;
2622
+ room: import("zod").ZodNullable<import("zod").ZodString>;
2623
+ }, import("zod/v4/core").$strip>>;
2624
+ }, import("zod/v4/core").$strip>>;
2625
+ readonly findPeople: import("@composable-os/sdk").ToolSpec<import("zod").ZodObject<{
2626
+ query: import("zod").ZodString;
2627
+ }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
2628
+ people: import("zod").ZodArray<import("zod").ZodObject<{
2629
+ id: import("zod").ZodString;
2630
+ name: import("zod").ZodNullable<import("zod").ZodString>;
2631
+ email: import("zod").ZodNullable<import("zod").ZodString>;
2632
+ }, import("zod/v4/core").$strip>>;
2633
+ }, import("zod/v4/core").$strip>>;
2634
+ readonly bookFor: import("@composable-os/sdk").ToolSpec<import("zod").ZodObject<{
2635
+ classId: import("zod").ZodString;
2636
+ personId: import("zod").ZodOptional<import("zod").ZodString>;
2637
+ newPerson: import("zod").ZodOptional<import("zod").ZodObject<{
2638
+ givenName: import("zod").ZodString;
2639
+ familyName: import("zod").ZodOptional<import("zod").ZodString>;
2640
+ email: import("zod").ZodOptional<import("zod").ZodString>;
2641
+ }, import("zod/v4/core").$strip>>;
2642
+ confirmNew: import("zod").ZodDefault<import("zod").ZodBoolean>;
2643
+ holderId: import("zod").ZodOptional<import("zod").ZodString>;
2644
+ paidAtDesk: import("zod").ZodDefault<import("zod").ZodBoolean>;
2645
+ waitlist: import("zod").ZodDefault<import("zod").ZodBoolean>;
2646
+ note: import("zod").ZodOptional<import("zod").ZodString>;
2647
+ }, import("zod/v4/core").$strip>, import("zod").ZodUnion<readonly [import("zod").ZodObject<{
2648
+ result: import("zod").ZodLiteral<"booked">;
2649
+ bookingId: import("zod").ZodString;
2650
+ classId: import("zod").ZodString;
2651
+ holderId: import("zod").ZodNullable<import("zod").ZodString>;
2652
+ personId: import("zod").ZodString;
2653
+ }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
2654
+ result: import("zod").ZodLiteral<"waiting">;
2655
+ bookingId: import("zod").ZodString;
2656
+ classId: import("zod").ZodString;
2657
+ position: import("zod").ZodNullable<import("zod").ZodNumber>;
2658
+ waiting: import("zod").ZodNullable<import("zod").ZodNumber>;
2659
+ message: import("zod").ZodString;
2660
+ personId: import("zod").ZodString;
2661
+ }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
2662
+ result: import("zod").ZodLiteral<"refused">;
2663
+ reason: import("zod").ZodEnum<{
2664
+ not_open: "not_open";
2665
+ closed: "closed";
2666
+ staff_only: "staff_only";
2667
+ no_use: "no_use";
2668
+ already_booked: "already_booked";
2669
+ full: "full";
2670
+ too_late: "too_late";
2671
+ not_found: "not_found";
2672
+ changed: "changed";
2673
+ not_running: "not_running";
2674
+ person_exists: "person_exists";
2675
+ possible_duplicates: "possible_duplicates";
2676
+ waitlist_closed: "waitlist_closed";
2677
+ no_drop_in: "no_drop_in";
2678
+ ask_desk: "ask_desk";
2679
+ try_later: "try_later";
2680
+ }>;
2681
+ message: import("zod").ZodString;
2682
+ detail: import("zod").ZodNullable<import("zod").ZodString>;
2683
+ opensAt: import("zod").ZodNullable<import("zod").ZodString>;
2684
+ closesAt: import("zod").ZodNullable<import("zod").ZodString>;
2685
+ people: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
2686
+ id: import("zod").ZodString;
2687
+ name: import("zod").ZodString;
2688
+ reasons: import("zod").ZodArray<import("zod").ZodString>;
2689
+ }, import("zod/v4/core").$strip>>>;
2690
+ }, import("zod/v4/core").$strip>]>>;
2691
+ readonly cancelFor: import("@composable-os/sdk").ToolSpec<import("zod").ZodObject<{
2692
+ bookingId: import("zod").ZodString;
2693
+ keepUse: import("zod").ZodDefault<import("zod").ZodBoolean>;
2694
+ note: import("zod").ZodOptional<import("zod").ZodString>;
2695
+ }, import("zod/v4/core").$strip>, import("zod").ZodUnion<readonly [import("zod").ZodObject<{
2696
+ result: import("zod").ZodEnum<{
2697
+ cancelled: "cancelled";
2698
+ late_cancelled: "late_cancelled";
2699
+ }>;
2700
+ bookingId: import("zod").ZodString;
2701
+ late: import("zod").ZodBoolean;
2702
+ }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
2703
+ result: import("zod").ZodLiteral<"refused">;
2704
+ reason: import("zod").ZodEnum<{
2705
+ not_open: "not_open";
2706
+ closed: "closed";
2707
+ staff_only: "staff_only";
2708
+ no_use: "no_use";
2709
+ already_booked: "already_booked";
2710
+ full: "full";
2711
+ too_late: "too_late";
2712
+ not_found: "not_found";
2713
+ changed: "changed";
2714
+ not_running: "not_running";
2715
+ person_exists: "person_exists";
2716
+ possible_duplicates: "possible_duplicates";
2717
+ waitlist_closed: "waitlist_closed";
2718
+ no_drop_in: "no_drop_in";
2719
+ ask_desk: "ask_desk";
2720
+ try_later: "try_later";
2721
+ }>;
2722
+ message: import("zod").ZodString;
2723
+ detail: import("zod").ZodNullable<import("zod").ZodString>;
2724
+ opensAt: import("zod").ZodNullable<import("zod").ZodString>;
2725
+ closesAt: import("zod").ZodNullable<import("zod").ZodString>;
2726
+ people: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
2727
+ id: import("zod").ZodString;
2728
+ name: import("zod").ZodString;
2729
+ reasons: import("zod").ZodArray<import("zod").ZodString>;
2730
+ }, import("zod/v4/core").$strip>>>;
2731
+ }, import("zod/v4/core").$strip>]>>;
2732
+ readonly returnUse: import("@composable-os/sdk").ToolSpec<import("zod").ZodObject<{
2733
+ bookingId: import("zod").ZodString;
2734
+ reason: import("zod").ZodString;
2735
+ }, import("zod/v4/core").$strip>, import("zod").ZodUnion<readonly [import("zod").ZodObject<{
2736
+ result: import("zod").ZodLiteral<"excused">;
2737
+ bookingId: import("zod").ZodString;
2738
+ late: import("zod").ZodLiteral<false>;
2739
+ }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
2740
+ result: import("zod").ZodLiteral<"refused">;
2741
+ reason: import("zod").ZodEnum<{
2742
+ not_open: "not_open";
2743
+ closed: "closed";
2744
+ staff_only: "staff_only";
2745
+ no_use: "no_use";
2746
+ already_booked: "already_booked";
2747
+ full: "full";
2748
+ too_late: "too_late";
2749
+ not_found: "not_found";
2750
+ changed: "changed";
2751
+ not_running: "not_running";
2752
+ person_exists: "person_exists";
2753
+ possible_duplicates: "possible_duplicates";
2754
+ waitlist_closed: "waitlist_closed";
2755
+ no_drop_in: "no_drop_in";
2756
+ ask_desk: "ask_desk";
2757
+ try_later: "try_later";
2758
+ }>;
2759
+ message: import("zod").ZodString;
2760
+ detail: import("zod").ZodNullable<import("zod").ZodString>;
2761
+ opensAt: import("zod").ZodNullable<import("zod").ZodString>;
2762
+ closesAt: import("zod").ZodNullable<import("zod").ZodString>;
2763
+ people: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
2764
+ id: import("zod").ZodString;
2765
+ name: import("zod").ZodString;
2766
+ reasons: import("zod").ZodArray<import("zod").ZodString>;
2767
+ }, import("zod/v4/core").$strip>>>;
2768
+ }, import("zod/v4/core").$strip>]>>;
2769
+ readonly day: import("@composable-os/sdk").ToolSpec<import("zod").ZodObject<{
2770
+ date: import("zod").ZodString;
2771
+ timeZone: import("zod").ZodDefault<import("zod").ZodString>;
856
2772
  }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
2773
+ date: import("zod").ZodString;
857
2774
  classes: import("zod").ZodArray<import("zod").ZodObject<{
858
2775
  id: import("zod").ZodString;
859
2776
  title: import("zod").ZodNullable<import("zod").ZodString>;
860
- classType: import("zod").ZodNullable<import("zod").ZodString>;
2777
+ classType: import("zod").ZodNullable<import("zod").ZodObject<{
2778
+ id: import("zod").ZodString;
2779
+ name: import("zod").ZodNullable<import("zod").ZodString>;
2780
+ }, import("zod/v4/core").$strip>>;
861
2781
  startsAt: import("zod").ZodNullable<import("zod").ZodString>;
862
2782
  endsAt: import("zod").ZodNullable<import("zod").ZodString>;
863
2783
  timeZone: import("zod").ZodNullable<import("zod").ZodString>;
864
- room: import("zod").ZodNullable<import("zod").ZodObject<{
2784
+ coach: import("zod").ZodNullable<import("zod").ZodString>;
2785
+ room: import("zod").ZodNullable<import("zod").ZodString>;
2786
+ places: import("zod").ZodNullable<import("zod").ZodNumber>;
2787
+ booked: import("zod").ZodNumber;
2788
+ held: import("zod").ZodNumber;
2789
+ available: import("zod").ZodNullable<import("zod").ZodNumber>;
2790
+ state: import("zod").ZodNullable<import("zod").ZodString>;
2791
+ staffOnly: import("zod").ZodBoolean;
2792
+ }, import("zod/v4/core").$strip>>;
2793
+ }, import("zod/v4/core").$strip>>;
2794
+ readonly classList: import("@composable-os/sdk").ToolSpec<import("zod").ZodObject<{
2795
+ classId: import("zod").ZodString;
2796
+ }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
2797
+ class: import("zod").ZodObject<{
2798
+ id: import("zod").ZodString;
2799
+ title: import("zod").ZodNullable<import("zod").ZodString>;
2800
+ classType: import("zod").ZodNullable<import("zod").ZodObject<{
865
2801
  id: import("zod").ZodString;
866
2802
  name: import("zod").ZodNullable<import("zod").ZodString>;
867
2803
  }, import("zod/v4/core").$strip>>;
868
- coach: import("zod").ZodNullable<import("zod").ZodIntersection<import("zod").ZodNullable<import("zod").ZodObject<{
2804
+ startsAt: import("zod").ZodNullable<import("zod").ZodString>;
2805
+ endsAt: import("zod").ZodNullable<import("zod").ZodString>;
2806
+ timeZone: import("zod").ZodNullable<import("zod").ZodString>;
2807
+ coach: import("zod").ZodNullable<import("zod").ZodString>;
2808
+ room: import("zod").ZodNullable<import("zod").ZodString>;
2809
+ places: import("zod").ZodNullable<import("zod").ZodNumber>;
2810
+ booked: import("zod").ZodNumber;
2811
+ held: import("zod").ZodNumber;
2812
+ available: import("zod").ZodNullable<import("zod").ZodNumber>;
2813
+ state: import("zod").ZodNullable<import("zod").ZodString>;
2814
+ staffOnly: import("zod").ZodBoolean;
2815
+ }, import("zod/v4/core").$strip>;
2816
+ bookings: import("zod").ZodArray<import("zod").ZodObject<{
2817
+ id: import("zod").ZodString;
2818
+ person: import("zod").ZodNullable<import("zod").ZodObject<{
869
2819
  id: import("zod").ZodString;
870
2820
  name: import("zod").ZodNullable<import("zod").ZodString>;
871
- }, import("zod/v4/core").$strip>>, import("zod").ZodObject<{
872
- photo: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
873
- }, import("zod/v4/core").$strip>>>;
874
- notes: import("zod").ZodNullable<import("zod").ZodString>;
875
- places: import("zod").ZodObject<{
876
- status: import("zod").ZodEnum<{
877
- available: "available";
878
- low: "low";
879
- sold_out: "sold_out";
880
- }>;
881
- available: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodNumber>>;
882
- }, import("zod/v4/core").$strip>;
2821
+ }, import("zod/v4/core").$strip>>;
2822
+ state: import("zod").ZodNullable<import("zod").ZodString>;
2823
+ paidAtDesk: import("zod").ZodBoolean;
2824
+ holderId: import("zod").ZodNullable<import("zod").ZodString>;
2825
+ bookedBy: import("zod").ZodNullable<import("zod").ZodString>;
2826
+ promotedAt: import("zod").ZodNullable<import("zod").ZodString>;
2827
+ healthNote: import("zod").ZodNullable<import("zod").ZodBoolean>;
2828
+ passedOver: import("zod").ZodNullable<import("zod").ZodString>;
883
2829
  }, import("zod/v4/core").$strip>>;
884
2830
  }, import("zod/v4/core").$strip>>;
885
- readonly classGet: import("@composable-os/sdk").ToolSpec<import("zod").ZodObject<{
2831
+ readonly roster: import("@composable-os/sdk").ToolSpec<import("zod").ZodObject<{
886
2832
  classId: import("zod").ZodString;
887
2833
  }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
888
2834
  class: import("zod").ZodObject<{
889
2835
  id: import("zod").ZodString;
890
2836
  title: import("zod").ZodNullable<import("zod").ZodString>;
891
- classType: import("zod").ZodNullable<import("zod").ZodString>;
2837
+ classType: import("zod").ZodNullable<import("zod").ZodObject<{
2838
+ id: import("zod").ZodString;
2839
+ name: import("zod").ZodNullable<import("zod").ZodString>;
2840
+ }, import("zod/v4/core").$strip>>;
892
2841
  startsAt: import("zod").ZodNullable<import("zod").ZodString>;
893
2842
  endsAt: import("zod").ZodNullable<import("zod").ZodString>;
894
2843
  timeZone: import("zod").ZodNullable<import("zod").ZodString>;
895
- room: import("zod").ZodNullable<import("zod").ZodObject<{
2844
+ coach: import("zod").ZodNullable<import("zod").ZodString>;
2845
+ room: import("zod").ZodNullable<import("zod").ZodString>;
2846
+ places: import("zod").ZodNullable<import("zod").ZodNumber>;
2847
+ booked: import("zod").ZodNumber;
2848
+ held: import("zod").ZodNumber;
2849
+ available: import("zod").ZodNullable<import("zod").ZodNumber>;
2850
+ state: import("zod").ZodNullable<import("zod").ZodString>;
2851
+ staffOnly: import("zod").ZodBoolean;
2852
+ }, import("zod/v4/core").$strip>;
2853
+ bookings: import("zod").ZodArray<import("zod").ZodObject<{
2854
+ id: import("zod").ZodString;
2855
+ person: import("zod").ZodNullable<import("zod").ZodObject<{
896
2856
  id: import("zod").ZodString;
897
2857
  name: import("zod").ZodNullable<import("zod").ZodString>;
898
2858
  }, import("zod/v4/core").$strip>>;
899
- coach: import("zod").ZodNullable<import("zod").ZodIntersection<import("zod").ZodNullable<import("zod").ZodObject<{
900
- id: import("zod").ZodString;
901
- name: import("zod").ZodNullable<import("zod").ZodString>;
902
- }, import("zod/v4/core").$strip>>, import("zod").ZodObject<{
903
- photo: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
904
- }, import("zod/v4/core").$strip>>>;
905
- notes: import("zod").ZodNullable<import("zod").ZodString>;
906
- places: import("zod").ZodObject<{
907
- status: import("zod").ZodEnum<{
908
- available: "available";
909
- low: "low";
910
- sold_out: "sold_out";
911
- }>;
912
- available: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodNumber>>;
913
- }, import("zod/v4/core").$strip>;
914
- }, import("zod/v4/core").$strip>;
2859
+ state: import("zod").ZodNullable<import("zod").ZodString>;
2860
+ markedAt: import("zod").ZodNullable<import("zod").ZodString>;
2861
+ markedBy: import("zod").ZodNullable<import("zod").ZodString>;
2862
+ promotedAt: import("zod").ZodNullable<import("zod").ZodString>;
2863
+ healthNote: import("zod").ZodNullable<import("zod").ZodBoolean>;
2864
+ }, import("zod/v4/core").$strip>>;
915
2865
  }, import("zod/v4/core").$strip>>;
916
- readonly book: import("@composable-os/sdk").ToolSpec<import("zod").ZodObject<{
917
- classId: import("zod").ZodString;
918
- holderId: import("zod").ZodOptional<import("zod").ZodString>;
2866
+ readonly markAttended: import("@composable-os/sdk").ToolSpec<import("zod").ZodObject<{
2867
+ bookingId: import("zod").ZodString;
919
2868
  }, import("zod/v4/core").$strip>, import("zod").ZodUnion<readonly [import("zod").ZodObject<{
920
- result: import("zod").ZodLiteral<"booked">;
2869
+ result: import("zod").ZodEnum<{
2870
+ booked: "booked";
2871
+ attended: "attended";
2872
+ no_show: "no_show";
2873
+ }>;
921
2874
  bookingId: import("zod").ZodString;
922
- classId: import("zod").ZodString;
923
- holderId: import("zod").ZodNullable<import("zod").ZodString>;
2875
+ message: import("zod").ZodString;
2876
+ }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
2877
+ result: import("zod").ZodLiteral<"already">;
2878
+ bookingId: import("zod").ZodString;
2879
+ state: import("zod").ZodNullable<import("zod").ZodString>;
2880
+ markedAt: import("zod").ZodNullable<import("zod").ZodString>;
2881
+ markedBy: import("zod").ZodNullable<import("zod").ZodString>;
2882
+ message: import("zod").ZodString;
924
2883
  }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
925
2884
  result: import("zod").ZodLiteral<"refused">;
926
2885
  reason: import("zod").ZodEnum<{
927
- not_open: "not_open";
928
- closed: "closed";
929
- staff_only: "staff_only";
930
- no_use: "no_use";
931
- already_booked: "already_booked";
932
- full: "full";
933
- too_late: "too_late";
934
2886
  not_found: "not_found";
935
2887
  changed: "changed";
936
- not_running: "not_running";
937
- person_exists: "person_exists";
938
- possible_duplicates: "possible_duplicates";
2888
+ not_started: "not_started";
2889
+ not_booked: "not_booked";
939
2890
  }>;
2891
+ state: import("zod").ZodNullable<import("zod").ZodString>;
2892
+ opensAt: import("zod").ZodNullable<import("zod").ZodString>;
940
2893
  message: import("zod").ZodString;
941
- detail: import("zod").ZodNullable<import("zod").ZodString>;
2894
+ }, import("zod/v4/core").$strip>]>>;
2895
+ readonly undoAttended: import("@composable-os/sdk").ToolSpec<import("zod").ZodObject<{
2896
+ bookingId: import("zod").ZodString;
2897
+ }, import("zod/v4/core").$strip>, import("zod").ZodUnion<readonly [import("zod").ZodObject<{
2898
+ result: import("zod").ZodEnum<{
2899
+ booked: "booked";
2900
+ attended: "attended";
2901
+ no_show: "no_show";
2902
+ }>;
2903
+ bookingId: import("zod").ZodString;
2904
+ message: import("zod").ZodString;
2905
+ }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
2906
+ result: import("zod").ZodLiteral<"already">;
2907
+ bookingId: import("zod").ZodString;
2908
+ state: import("zod").ZodNullable<import("zod").ZodString>;
2909
+ markedAt: import("zod").ZodNullable<import("zod").ZodString>;
2910
+ markedBy: import("zod").ZodNullable<import("zod").ZodString>;
2911
+ message: import("zod").ZodString;
2912
+ }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
2913
+ result: import("zod").ZodLiteral<"refused">;
2914
+ reason: import("zod").ZodEnum<{
2915
+ not_found: "not_found";
2916
+ changed: "changed";
2917
+ not_started: "not_started";
2918
+ not_booked: "not_booked";
2919
+ }>;
2920
+ state: import("zod").ZodNullable<import("zod").ZodString>;
942
2921
  opensAt: import("zod").ZodNullable<import("zod").ZodString>;
943
- closesAt: import("zod").ZodNullable<import("zod").ZodString>;
944
- people: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
945
- id: import("zod").ZodString;
946
- name: import("zod").ZodString;
947
- reasons: import("zod").ZodArray<import("zod").ZodString>;
948
- }, import("zod/v4/core").$strip>>>;
2922
+ message: import("zod").ZodString;
949
2923
  }, import("zod/v4/core").$strip>]>>;
950
- readonly cancel: import("@composable-os/sdk").ToolSpec<import("zod").ZodObject<{
2924
+ readonly markNoShow: import("@composable-os/sdk").ToolSpec<import("zod").ZodObject<{
951
2925
  bookingId: import("zod").ZodString;
952
- confirm: import("zod").ZodDefault<import("zod").ZodBoolean>;
953
- expect: import("zod").ZodOptional<import("zod").ZodEnum<{
954
- cancelled: "cancelled";
955
- late_cancelled: "late_cancelled";
956
- }>>;
957
2926
  }, import("zod/v4/core").$strip>, import("zod").ZodUnion<readonly [import("zod").ZodObject<{
958
2927
  result: import("zod").ZodEnum<{
959
- cancelled: "cancelled";
960
- late_cancelled: "late_cancelled";
961
- preview: "preview";
2928
+ booked: "booked";
2929
+ attended: "attended";
2930
+ no_show: "no_show";
962
2931
  }>;
963
- state: import("zod").ZodEnum<{
964
- cancelled: "cancelled";
965
- late_cancelled: "late_cancelled";
2932
+ bookingId: import("zod").ZodString;
2933
+ message: import("zod").ZodString;
2934
+ }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
2935
+ result: import("zod").ZodLiteral<"already">;
2936
+ bookingId: import("zod").ZodString;
2937
+ state: import("zod").ZodNullable<import("zod").ZodString>;
2938
+ markedAt: import("zod").ZodNullable<import("zod").ZodString>;
2939
+ markedBy: import("zod").ZodNullable<import("zod").ZodString>;
2940
+ message: import("zod").ZodString;
2941
+ }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
2942
+ result: import("zod").ZodLiteral<"refused">;
2943
+ reason: import("zod").ZodEnum<{
2944
+ not_found: "not_found";
2945
+ changed: "changed";
2946
+ not_started: "not_started";
2947
+ not_booked: "not_booked";
2948
+ }>;
2949
+ state: import("zod").ZodNullable<import("zod").ZodString>;
2950
+ opensAt: import("zod").ZodNullable<import("zod").ZodString>;
2951
+ message: import("zod").ZodString;
2952
+ }, import("zod/v4/core").$strip>]>>;
2953
+ readonly markAll: import("@composable-os/sdk").ToolSpec<import("zod").ZodObject<{
2954
+ classId: import("zod").ZodString;
2955
+ }, import("zod/v4/core").$strip>, import("zod").ZodUnion<readonly [import("zod").ZodObject<{
2956
+ result: import("zod").ZodLiteral<"marked">;
2957
+ classId: import("zod").ZodString;
2958
+ ticked: import("zod").ZodNumber;
2959
+ already: import("zod").ZodNumber;
2960
+ skipped: import("zod").ZodNumber;
2961
+ }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
2962
+ result: import("zod").ZodLiteral<"refused">;
2963
+ reason: import("zod").ZodEnum<{
2964
+ not_found: "not_found";
2965
+ changed: "changed";
2966
+ not_started: "not_started";
2967
+ not_booked: "not_booked";
966
2968
  }>;
967
- late: import("zod").ZodBoolean;
2969
+ state: import("zod").ZodNullable<import("zod").ZodString>;
2970
+ opensAt: import("zod").ZodNullable<import("zod").ZodString>;
968
2971
  message: import("zod").ZodString;
2972
+ }, import("zod/v4/core").$strip>]>>;
2973
+ readonly move: import("@composable-os/sdk").ToolSpec<import("zod").ZodObject<{
2974
+ bookingId: import("zod").ZodString;
2975
+ toClassId: import("zod").ZodString;
2976
+ note: import("zod").ZodOptional<import("zod").ZodString>;
2977
+ }, import("zod/v4/core").$strip>, import("zod").ZodUnion<readonly [import("zod").ZodObject<{
2978
+ result: import("zod").ZodLiteral<"moved">;
2979
+ fromBookingId: import("zod").ZodString;
2980
+ bookingId: import("zod").ZodString;
2981
+ classId: import("zod").ZodString;
2982
+ holderId: import("zod").ZodNullable<import("zod").ZodString>;
969
2983
  }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
970
2984
  result: import("zod").ZodLiteral<"refused">;
971
2985
  reason: import("zod").ZodEnum<{
@@ -981,6 +2995,10 @@ declare const _default: import("@composable-os/sdk").Extension<{
981
2995
  not_running: "not_running";
982
2996
  person_exists: "person_exists";
983
2997
  possible_duplicates: "possible_duplicates";
2998
+ waitlist_closed: "waitlist_closed";
2999
+ no_drop_in: "no_drop_in";
3000
+ ask_desk: "ask_desk";
3001
+ try_later: "try_later";
984
3002
  }>;
985
3003
  message: import("zod").ZodString;
986
3004
  detail: import("zod").ZodNullable<import("zod").ZodString>;
@@ -991,212 +3009,404 @@ declare const _default: import("@composable-os/sdk").Extension<{
991
3009
  name: import("zod").ZodString;
992
3010
  reasons: import("zod").ZodArray<import("zod").ZodString>;
993
3011
  }, import("zod/v4/core").$strip>>>;
994
- }, import("zod/v4/core").$strip>]>>;
995
- readonly mine: import("@composable-os/sdk").ToolSpec<import("zod").ZodObject<{
996
- state: import("zod").ZodOptional<import("zod").ZodEnum<{
997
- booked: "booked";
998
- cancelled: "cancelled";
999
- late_cancelled: "late_cancelled";
1000
- }>>;
1001
- upcoming: import("zod").ZodDefault<import("zod").ZodBoolean>;
1002
- limit: import("zod").ZodDefault<import("zod").ZodNumber>;
1003
3012
  }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
1004
- bookings: import("zod").ZodArray<import("zod").ZodObject<{
3013
+ result: import("zod").ZodLiteral<"refused">;
3014
+ message: import("zod").ZodString;
3015
+ detail: import("zod").ZodNullable<import("zod").ZodString>;
3016
+ opensAt: import("zod").ZodNullable<import("zod").ZodString>;
3017
+ closesAt: import("zod").ZodNullable<import("zod").ZodString>;
3018
+ people: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
1005
3019
  id: import("zod").ZodString;
1006
- state: import("zod").ZodNullable<import("zod").ZodString>;
1007
- holderId: import("zod").ZodNullable<import("zod").ZodString>;
1008
- classId: import("zod").ZodNullable<import("zod").ZodString>;
1009
- title: import("zod").ZodNullable<import("zod").ZodString>;
1010
- startsAt: import("zod").ZodNullable<import("zod").ZodString>;
1011
- endsAt: import("zod").ZodNullable<import("zod").ZodString>;
1012
- timeZone: import("zod").ZodNullable<import("zod").ZodString>;
1013
- classState: import("zod").ZodNullable<import("zod").ZodString>;
1014
- coach: import("zod").ZodNullable<import("zod").ZodString>;
1015
- room: import("zod").ZodNullable<import("zod").ZodString>;
1016
- }, import("zod/v4/core").$strip>>;
1017
- }, import("zod/v4/core").$strip>>;
1018
- readonly findPeople: import("@composable-os/sdk").ToolSpec<import("zod").ZodObject<{
1019
- query: import("zod").ZodString;
3020
+ name: import("zod").ZodString;
3021
+ reasons: import("zod").ZodArray<import("zod").ZodString>;
3022
+ }, import("zod/v4/core").$strip>>>;
3023
+ reason: import("zod").ZodEnum<{
3024
+ not_booked: "not_booked";
3025
+ same_class: "same_class";
3026
+ started: "started";
3027
+ }>;
3028
+ }, import("zod/v4/core").$strip>]>>;
3029
+ readonly cancelClass: import("@composable-os/sdk").ToolSpec<import("zod").ZodObject<{
3030
+ classId: import("zod").ZodString;
3031
+ reason: import("zod").ZodString;
1020
3032
  }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
3033
+ result: import("zod").ZodLiteral<"cancelled">;
3034
+ classId: import("zod").ZodString;
3035
+ bookingsCancelled: import("zod").ZodNumber;
3036
+ }, import("zod/v4/core").$strip>>;
3037
+ readonly family: import("@composable-os/sdk").ToolSpec<import("zod").ZodObject<{}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
1021
3038
  people: import("zod").ZodArray<import("zod").ZodObject<{
1022
- id: import("zod").ZodString;
1023
- name: import("zod").ZodNullable<import("zod").ZodString>;
1024
- email: import("zod").ZodNullable<import("zod").ZodString>;
3039
+ personId: import("zod").ZodString;
3040
+ name: import("zod").ZodString;
3041
+ self: import("zod").ZodBoolean;
1025
3042
  }, import("zod/v4/core").$strip>>;
1026
3043
  }, import("zod/v4/core").$strip>>;
1027
- readonly bookFor: import("@composable-os/sdk").ToolSpec<import("zod").ZodObject<{
1028
- classId: import("zod").ZodString;
1029
- personId: import("zod").ZodOptional<import("zod").ZodString>;
1030
- newPerson: import("zod").ZodOptional<import("zod").ZodObject<{
1031
- givenName: import("zod").ZodString;
1032
- familyName: import("zod").ZodOptional<import("zod").ZodString>;
1033
- email: import("zod").ZodOptional<import("zod").ZodString>;
1034
- }, import("zod/v4/core").$strip>>;
1035
- confirmNew: import("zod").ZodDefault<import("zod").ZodBoolean>;
3044
+ readonly bookAppointment: import("@composable-os/sdk").ToolSpec<import("zod").ZodObject<{
3045
+ serviceId: import("zod").ZodString;
3046
+ startsAt: import("zod").ZodString;
3047
+ personId: import("zod").ZodString;
3048
+ coachId: import("zod").ZodOptional<import("zod").ZodString>;
3049
+ roomId: import("zod").ZodOptional<import("zod").ZodString>;
1036
3050
  holderId: import("zod").ZodOptional<import("zod").ZodString>;
1037
3051
  paidAtDesk: import("zod").ZodDefault<import("zod").ZodBoolean>;
1038
3052
  note: import("zod").ZodOptional<import("zod").ZodString>;
1039
3053
  }, import("zod/v4/core").$strip>, import("zod").ZodUnion<readonly [import("zod").ZodObject<{
1040
3054
  result: import("zod").ZodLiteral<"booked">;
1041
- bookingId: import("zod").ZodString;
1042
- classId: import("zod").ZodString;
3055
+ appointmentId: import("zod").ZodString;
3056
+ coachId: import("zod").ZodNullable<import("zod").ZodString>;
3057
+ roomId: import("zod").ZodNullable<import("zod").ZodString>;
3058
+ startsAt: import("zod").ZodNullable<import("zod").ZodString>;
3059
+ endsAt: import("zod").ZodNullable<import("zod").ZodString>;
1043
3060
  holderId: import("zod").ZodNullable<import("zod").ZodString>;
1044
- personId: import("zod").ZodString;
3061
+ paidAtDesk: import("zod").ZodBoolean;
3062
+ warnings: import("zod").ZodArray<import("zod").ZodObject<{
3063
+ code: import("zod").ZodString;
3064
+ message: import("zod").ZodString;
3065
+ }, import("zod/v4/core").$strip>>;
1045
3066
  }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
1046
3067
  result: import("zod").ZodLiteral<"refused">;
1047
3068
  reason: import("zod").ZodEnum<{
1048
- not_open: "not_open";
1049
- closed: "closed";
1050
- staff_only: "staff_only";
1051
3069
  no_use: "no_use";
1052
- already_booked: "already_booked";
1053
- full: "full";
1054
3070
  too_late: "too_late";
1055
3071
  not_found: "not_found";
1056
3072
  changed: "changed";
1057
- not_running: "not_running";
1058
- person_exists: "person_exists";
1059
- possible_duplicates: "possible_duplicates";
3073
+ not_started: "not_started";
3074
+ not_booked: "not_booked";
3075
+ started: "started";
3076
+ double_booked: "double_booked";
3077
+ room_taken: "room_taken";
3078
+ no_account: "no_account";
3079
+ no_coach_free: "no_coach_free";
3080
+ not_offered: "not_offered";
3081
+ same_time: "same_time";
1060
3082
  }>;
1061
3083
  message: import("zod").ZodString;
1062
3084
  detail: import("zod").ZodNullable<import("zod").ZodString>;
1063
- opensAt: import("zod").ZodNullable<import("zod").ZodString>;
1064
- closesAt: import("zod").ZodNullable<import("zod").ZodString>;
1065
- people: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
1066
- id: import("zod").ZodString;
1067
- name: import("zod").ZodString;
1068
- reasons: import("zod").ZodArray<import("zod").ZodString>;
1069
- }, import("zod/v4/core").$strip>>>;
3085
+ state: import("zod").ZodNullable<import("zod").ZodString>;
1070
3086
  }, import("zod/v4/core").$strip>]>>;
1071
- readonly cancelFor: import("@composable-os/sdk").ToolSpec<import("zod").ZodObject<{
1072
- bookingId: import("zod").ZodString;
3087
+ readonly moveAppointment: import("@composable-os/sdk").ToolSpec<import("zod").ZodObject<{
3088
+ appointmentId: import("zod").ZodString;
3089
+ startsAt: import("zod").ZodString;
3090
+ coachId: import("zod").ZodOptional<import("zod").ZodString>;
3091
+ note: import("zod").ZodOptional<import("zod").ZodString>;
3092
+ }, import("zod/v4/core").$strip>, import("zod").ZodUnion<readonly [import("zod").ZodObject<{
3093
+ result: import("zod").ZodLiteral<"booked">;
3094
+ appointmentId: import("zod").ZodString;
3095
+ coachId: import("zod").ZodNullable<import("zod").ZodString>;
3096
+ roomId: import("zod").ZodNullable<import("zod").ZodString>;
3097
+ startsAt: import("zod").ZodNullable<import("zod").ZodString>;
3098
+ endsAt: import("zod").ZodNullable<import("zod").ZodString>;
3099
+ holderId: import("zod").ZodNullable<import("zod").ZodString>;
3100
+ paidAtDesk: import("zod").ZodBoolean;
3101
+ warnings: import("zod").ZodArray<import("zod").ZodObject<{
3102
+ code: import("zod").ZodString;
3103
+ message: import("zod").ZodString;
3104
+ }, import("zod/v4/core").$strip>>;
3105
+ fromAppointmentId: import("zod").ZodString;
3106
+ }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
3107
+ result: import("zod").ZodLiteral<"refused">;
3108
+ reason: import("zod").ZodEnum<{
3109
+ no_use: "no_use";
3110
+ too_late: "too_late";
3111
+ not_found: "not_found";
3112
+ changed: "changed";
3113
+ not_started: "not_started";
3114
+ not_booked: "not_booked";
3115
+ started: "started";
3116
+ double_booked: "double_booked";
3117
+ room_taken: "room_taken";
3118
+ no_account: "no_account";
3119
+ no_coach_free: "no_coach_free";
3120
+ not_offered: "not_offered";
3121
+ same_time: "same_time";
3122
+ }>;
3123
+ message: import("zod").ZodString;
3124
+ detail: import("zod").ZodNullable<import("zod").ZodString>;
3125
+ state: import("zod").ZodNullable<import("zod").ZodString>;
3126
+ }, import("zod/v4/core").$strip>]>>;
3127
+ readonly cancelAppointment: import("@composable-os/sdk").ToolSpec<import("zod").ZodObject<{
3128
+ appointmentId: import("zod").ZodString;
3129
+ confirm: import("zod").ZodDefault<import("zod").ZodBoolean>;
1073
3130
  keepUse: import("zod").ZodDefault<import("zod").ZodBoolean>;
1074
3131
  note: import("zod").ZodOptional<import("zod").ZodString>;
1075
3132
  }, import("zod/v4/core").$strip>, import("zod").ZodUnion<readonly [import("zod").ZodObject<{
1076
3133
  result: import("zod").ZodEnum<{
1077
3134
  cancelled: "cancelled";
1078
3135
  late_cancelled: "late_cancelled";
3136
+ preview: "preview";
3137
+ }>;
3138
+ appointmentId: import("zod").ZodString;
3139
+ state: import("zod").ZodEnum<{
3140
+ cancelled: "cancelled";
3141
+ late_cancelled: "late_cancelled";
1079
3142
  }>;
1080
- bookingId: import("zod").ZodString;
1081
3143
  late: import("zod").ZodBoolean;
1082
3144
  }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
1083
3145
  result: import("zod").ZodLiteral<"refused">;
1084
3146
  reason: import("zod").ZodEnum<{
1085
- not_open: "not_open";
1086
- closed: "closed";
1087
- staff_only: "staff_only";
1088
3147
  no_use: "no_use";
1089
- already_booked: "already_booked";
1090
- full: "full";
1091
3148
  too_late: "too_late";
1092
3149
  not_found: "not_found";
1093
3150
  changed: "changed";
1094
- not_running: "not_running";
1095
- person_exists: "person_exists";
1096
- possible_duplicates: "possible_duplicates";
3151
+ not_started: "not_started";
3152
+ not_booked: "not_booked";
3153
+ started: "started";
3154
+ double_booked: "double_booked";
3155
+ room_taken: "room_taken";
3156
+ no_account: "no_account";
3157
+ no_coach_free: "no_coach_free";
3158
+ not_offered: "not_offered";
3159
+ same_time: "same_time";
1097
3160
  }>;
1098
3161
  message: import("zod").ZodString;
1099
3162
  detail: import("zod").ZodNullable<import("zod").ZodString>;
1100
- opensAt: import("zod").ZodNullable<import("zod").ZodString>;
1101
- closesAt: import("zod").ZodNullable<import("zod").ZodString>;
1102
- people: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
1103
- id: import("zod").ZodString;
1104
- name: import("zod").ZodString;
1105
- reasons: import("zod").ZodArray<import("zod").ZodString>;
1106
- }, import("zod/v4/core").$strip>>>;
3163
+ state: import("zod").ZodNullable<import("zod").ZodString>;
1107
3164
  }, import("zod/v4/core").$strip>]>>;
1108
- readonly returnUse: import("@composable-os/sdk").ToolSpec<import("zod").ZodObject<{
1109
- bookingId: import("zod").ZodString;
3165
+ readonly cancelAppointmentByUs: import("@composable-os/sdk").ToolSpec<import("zod").ZodObject<{
3166
+ appointmentId: import("zod").ZodString;
3167
+ reason: import("zod").ZodString;
3168
+ }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
3169
+ result: import("zod").ZodLiteral<"cancelled_by_us">;
3170
+ appointmentId: import("zod").ZodString;
3171
+ }, import("zod/v4/core").$strip>>;
3172
+ readonly markAppointment: import("@composable-os/sdk").ToolSpec<import("zod").ZodObject<{
3173
+ appointmentId: import("zod").ZodString;
3174
+ mark: import("zod").ZodEnum<{
3175
+ attended: "attended";
3176
+ no_show: "no_show";
3177
+ }>;
3178
+ }, import("zod/v4/core").$strip>, import("zod").ZodUnion<readonly [import("zod").ZodObject<{
3179
+ result: import("zod").ZodEnum<{
3180
+ attended: "attended";
3181
+ no_show: "no_show";
3182
+ }>;
3183
+ appointmentId: import("zod").ZodString;
3184
+ message: import("zod").ZodString;
3185
+ }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
3186
+ result: import("zod").ZodLiteral<"refused">;
3187
+ reason: import("zod").ZodEnum<{
3188
+ no_use: "no_use";
3189
+ too_late: "too_late";
3190
+ not_found: "not_found";
3191
+ changed: "changed";
3192
+ not_started: "not_started";
3193
+ not_booked: "not_booked";
3194
+ started: "started";
3195
+ double_booked: "double_booked";
3196
+ room_taken: "room_taken";
3197
+ no_account: "no_account";
3198
+ no_coach_free: "no_coach_free";
3199
+ not_offered: "not_offered";
3200
+ same_time: "same_time";
3201
+ }>;
3202
+ message: import("zod").ZodString;
3203
+ detail: import("zod").ZodNullable<import("zod").ZodString>;
3204
+ state: import("zod").ZodNullable<import("zod").ZodString>;
3205
+ }, import("zod/v4/core").$strip>]>>;
3206
+ readonly excuseAppointment: import("@composable-os/sdk").ToolSpec<import("zod").ZodObject<{
3207
+ appointmentId: import("zod").ZodString;
1110
3208
  reason: import("zod").ZodString;
1111
3209
  }, import("zod/v4/core").$strip>, import("zod").ZodUnion<readonly [import("zod").ZodObject<{
1112
3210
  result: import("zod").ZodLiteral<"excused">;
1113
- bookingId: import("zod").ZodString;
1114
- late: import("zod").ZodLiteral<false>;
3211
+ appointmentId: import("zod").ZodString;
1115
3212
  }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
1116
3213
  result: import("zod").ZodLiteral<"refused">;
1117
3214
  reason: import("zod").ZodEnum<{
1118
- not_open: "not_open";
1119
- closed: "closed";
1120
- staff_only: "staff_only";
1121
3215
  no_use: "no_use";
1122
- already_booked: "already_booked";
1123
- full: "full";
1124
3216
  too_late: "too_late";
1125
3217
  not_found: "not_found";
1126
3218
  changed: "changed";
1127
- not_running: "not_running";
1128
- person_exists: "person_exists";
1129
- possible_duplicates: "possible_duplicates";
3219
+ not_started: "not_started";
3220
+ not_booked: "not_booked";
3221
+ started: "started";
3222
+ double_booked: "double_booked";
3223
+ room_taken: "room_taken";
3224
+ no_account: "no_account";
3225
+ no_coach_free: "no_coach_free";
3226
+ not_offered: "not_offered";
3227
+ same_time: "same_time";
1130
3228
  }>;
1131
3229
  message: import("zod").ZodString;
1132
3230
  detail: import("zod").ZodNullable<import("zod").ZodString>;
1133
- opensAt: import("zod").ZodNullable<import("zod").ZodString>;
1134
- closesAt: import("zod").ZodNullable<import("zod").ZodString>;
1135
- people: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
1136
- id: import("zod").ZodString;
1137
- name: import("zod").ZodString;
1138
- reasons: import("zod").ZodArray<import("zod").ZodString>;
1139
- }, import("zod/v4/core").$strip>>>;
3231
+ state: import("zod").ZodNullable<import("zod").ZodString>;
1140
3232
  }, import("zod/v4/core").$strip>]>>;
1141
- readonly day: import("@composable-os/sdk").ToolSpec<import("zod").ZodObject<{
1142
- date: import("zod").ZodString;
1143
- timeZone: import("zod").ZodDefault<import("zod").ZodString>;
3233
+ readonly reassignAppointment: import("@composable-os/sdk").ToolSpec<import("zod").ZodObject<{
3234
+ appointmentId: import("zod").ZodString;
3235
+ coachId: import("zod").ZodString;
3236
+ }, import("zod/v4/core").$strip>, import("zod").ZodUnion<readonly [import("zod").ZodObject<{
3237
+ result: import("zod").ZodLiteral<"booked">;
3238
+ appointmentId: import("zod").ZodString;
3239
+ coachId: import("zod").ZodNullable<import("zod").ZodString>;
3240
+ roomId: import("zod").ZodNullable<import("zod").ZodString>;
3241
+ startsAt: import("zod").ZodNullable<import("zod").ZodString>;
3242
+ endsAt: import("zod").ZodNullable<import("zod").ZodString>;
3243
+ holderId: import("zod").ZodNullable<import("zod").ZodString>;
3244
+ paidAtDesk: import("zod").ZodBoolean;
3245
+ warnings: import("zod").ZodArray<import("zod").ZodObject<{
3246
+ code: import("zod").ZodString;
3247
+ message: import("zod").ZodString;
3248
+ }, import("zod/v4/core").$strip>>;
1144
3249
  }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
3250
+ result: import("zod").ZodLiteral<"refused">;
3251
+ reason: import("zod").ZodEnum<{
3252
+ no_use: "no_use";
3253
+ too_late: "too_late";
3254
+ not_found: "not_found";
3255
+ changed: "changed";
3256
+ not_started: "not_started";
3257
+ not_booked: "not_booked";
3258
+ started: "started";
3259
+ double_booked: "double_booked";
3260
+ room_taken: "room_taken";
3261
+ no_account: "no_account";
3262
+ no_coach_free: "no_coach_free";
3263
+ not_offered: "not_offered";
3264
+ same_time: "same_time";
3265
+ }>;
3266
+ message: import("zod").ZodString;
3267
+ detail: import("zod").ZodNullable<import("zod").ZodString>;
3268
+ state: import("zod").ZodNullable<import("zod").ZodString>;
3269
+ }, import("zod/v4/core").$strip>]>>;
3270
+ readonly coachDay: import("@composable-os/sdk").ToolSpec<import("zod").ZodObject<{
1145
3271
  date: import("zod").ZodString;
1146
- classes: import("zod").ZodArray<import("zod").ZodObject<{
1147
- id: import("zod").ZodString;
1148
- title: import("zod").ZodNullable<import("zod").ZodString>;
1149
- classType: import("zod").ZodNullable<import("zod").ZodObject<{
1150
- id: import("zod").ZodString;
1151
- name: import("zod").ZodNullable<import("zod").ZodString>;
1152
- }, import("zod/v4/core").$strip>>;
1153
- startsAt: import("zod").ZodNullable<import("zod").ZodString>;
1154
- endsAt: import("zod").ZodNullable<import("zod").ZodString>;
1155
- timeZone: import("zod").ZodNullable<import("zod").ZodString>;
1156
- coach: import("zod").ZodNullable<import("zod").ZodString>;
1157
- room: import("zod").ZodNullable<import("zod").ZodString>;
1158
- places: import("zod").ZodNullable<import("zod").ZodNumber>;
1159
- booked: import("zod").ZodNumber;
1160
- held: import("zod").ZodNumber;
1161
- available: import("zod").ZodNullable<import("zod").ZodNumber>;
1162
- state: import("zod").ZodNullable<import("zod").ZodString>;
1163
- staffOnly: import("zod").ZodBoolean;
1164
- }, import("zod/v4/core").$strip>>;
1165
- }, import("zod/v4/core").$strip>>;
1166
- readonly classList: import("@composable-os/sdk").ToolSpec<import("zod").ZodObject<{
1167
- classId: import("zod").ZodString;
3272
+ coachId: import("zod").ZodOptional<import("zod").ZodString>;
1168
3273
  }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
1169
- class: import("zod").ZodObject<{
1170
- id: import("zod").ZodString;
1171
- title: import("zod").ZodNullable<import("zod").ZodString>;
1172
- classType: import("zod").ZodNullable<import("zod").ZodObject<{
1173
- id: import("zod").ZodString;
1174
- name: import("zod").ZodNullable<import("zod").ZodString>;
1175
- }, import("zod/v4/core").$strip>>;
1176
- startsAt: import("zod").ZodNullable<import("zod").ZodString>;
1177
- endsAt: import("zod").ZodNullable<import("zod").ZodString>;
1178
- timeZone: import("zod").ZodNullable<import("zod").ZodString>;
1179
- coach: import("zod").ZodNullable<import("zod").ZodString>;
1180
- room: import("zod").ZodNullable<import("zod").ZodString>;
1181
- places: import("zod").ZodNullable<import("zod").ZodNumber>;
1182
- booked: import("zod").ZodNumber;
1183
- held: import("zod").ZodNumber;
1184
- available: import("zod").ZodNullable<import("zod").ZodNumber>;
1185
- state: import("zod").ZodNullable<import("zod").ZodString>;
1186
- staffOnly: import("zod").ZodBoolean;
1187
- }, import("zod/v4/core").$strip>;
1188
- bookings: import("zod").ZodArray<import("zod").ZodObject<{
1189
- id: import("zod").ZodString;
1190
- person: import("zod").ZodNullable<import("zod").ZodObject<{
3274
+ date: import("zod").ZodString;
3275
+ timeZone: import("zod").ZodString;
3276
+ coaches: import("zod").ZodArray<import("zod").ZodObject<{
3277
+ coachId: import("zod").ZodString;
3278
+ name: import("zod").ZodNullable<import("zod").ZodString>;
3279
+ items: import("zod").ZodArray<import("zod").ZodObject<{
3280
+ kind: import("zod").ZodEnum<{
3281
+ shift: "shift";
3282
+ class: "class";
3283
+ appointment: "appointment";
3284
+ }>;
3285
+ object: import("zod").ZodString;
1191
3286
  id: import("zod").ZodString;
1192
- name: import("zod").ZodNullable<import("zod").ZodString>;
3287
+ title: import("zod").ZodNullable<import("zod").ZodString>;
3288
+ startsAt: import("zod").ZodNullable<import("zod").ZodString>;
3289
+ endsAt: import("zod").ZodNullable<import("zod").ZodString>;
3290
+ room: import("zod").ZodNullable<import("zod").ZodString>;
3291
+ state: import("zod").ZodNullable<import("zod").ZodString>;
3292
+ service: import("zod").ZodNullable<import("zod").ZodString>;
3293
+ client: import("zod").ZodNullable<import("zod").ZodObject<{
3294
+ id: import("zod").ZodString;
3295
+ name: import("zod").ZodNullable<import("zod").ZodString>;
3296
+ }, import("zod/v4/core").$strip>>;
1193
3297
  }, import("zod/v4/core").$strip>>;
1194
- state: import("zod").ZodNullable<import("zod").ZodString>;
1195
- paidAtDesk: import("zod").ZodBoolean;
1196
- holderId: import("zod").ZodNullable<import("zod").ZodString>;
1197
- bookedBy: import("zod").ZodNullable<import("zod").ZodString>;
1198
3298
  }, import("zod/v4/core").$strip>>;
1199
3299
  }, import("zod/v4/core").$strip>>;
1200
3300
  };
3301
+ readonly automations: {
3302
+ bookingConfirmed: import("@composable-os/sdk").AutomationSpec<{
3303
+ readonly type: "record";
3304
+ readonly object: "bookings.booking";
3305
+ readonly on: readonly ["created", "updated"];
3306
+ }>;
3307
+ waitlistPassedOver: import("@composable-os/sdk").AutomationSpec<{
3308
+ readonly type: "fieldChanged";
3309
+ readonly object: "bookings.booking";
3310
+ readonly field: "passedOverReason";
3311
+ }>;
3312
+ placeFree: import("@composable-os/sdk").AutomationSpec<{
3313
+ readonly type: "fieldChanged";
3314
+ readonly object: "bookings.booking";
3315
+ readonly field: "state";
3316
+ readonly from: "booked";
3317
+ readonly to: {
3318
+ readonly in: readonly ["cancelled", "late_cancelled", "excused"];
3319
+ };
3320
+ }>;
3321
+ classChanged: import("@composable-os/sdk").AutomationSpec<{
3322
+ readonly type: "record";
3323
+ readonly object: "bookings.class";
3324
+ readonly on: readonly ["updated"];
3325
+ readonly includeBulk: true;
3326
+ }>;
3327
+ classCancelled: import("@composable-os/sdk").AutomationSpec<{
3328
+ readonly type: "fieldChanged";
3329
+ readonly object: "bookings.class";
3330
+ readonly field: "state";
3331
+ readonly from: "scheduled";
3332
+ readonly to: "cancelled";
3333
+ readonly includeBulk: true;
3334
+ }>;
3335
+ classReminder: import("@composable-os/sdk").AutomationSpec<{
3336
+ readonly type: "dateRelative";
3337
+ readonly object: "bookings.class";
3338
+ readonly field: "startsAt";
3339
+ readonly minutesBefore: {
3340
+ readonly field: "classType.reminderMinutes";
3341
+ readonly setting: "reminderMinutes";
3342
+ };
3343
+ }>;
3344
+ dropInOrder: import("@composable-os/sdk").AutomationSpec<{
3345
+ readonly type: "fieldChanged";
3346
+ readonly object: "order";
3347
+ readonly field: "state";
3348
+ readonly to: {
3349
+ readonly in: readonly ["paid", "refunded"];
3350
+ };
3351
+ }>;
3352
+ noAttendanceTaken: import("@composable-os/sdk").AutomationSpec<{
3353
+ readonly type: "dateRelative";
3354
+ readonly object: "bookings.class";
3355
+ readonly field: "endsAt";
3356
+ readonly minutesAfter: 60;
3357
+ }>;
3358
+ feedbackAfterClass: import("@composable-os/sdk").AutomationSpec<{
3359
+ readonly type: "dateRelative";
3360
+ readonly object: "bookings.booking";
3361
+ readonly field: "markedAt";
3362
+ readonly minutesAfter: {
3363
+ readonly setting: "feedbackMinutes";
3364
+ };
3365
+ }>;
3366
+ };
3367
+ readonly dashboards: {
3368
+ bookings: import("@composable-os/sdk").DashboardDeclaration;
3369
+ };
3370
+ readonly screens: {
3371
+ readonly desk: {
3372
+ readonly label: "Front desk";
3373
+ readonly block: "bookings-desk";
3374
+ readonly export: "FrontDesk";
3375
+ readonly nav: {
3376
+ readonly group: "Bookings";
3377
+ readonly order: 10;
3378
+ };
3379
+ readonly opens: readonly ["findPeople", "bookFor"];
3380
+ };
3381
+ readonly classList: {
3382
+ readonly label: "Class list";
3383
+ readonly block: "bookings-class-list";
3384
+ readonly export: "TodayClassList";
3385
+ readonly nav: {
3386
+ readonly group: "Bookings";
3387
+ readonly order: 20;
3388
+ };
3389
+ readonly opens: readonly ["roster", "markAttended"];
3390
+ readonly record: {
3391
+ readonly object: "bookings.class";
3392
+ readonly as: "classId";
3393
+ };
3394
+ };
3395
+ };
3396
+ readonly portal: {
3397
+ readonly bookings: {
3398
+ readonly label: "Bookings";
3399
+ readonly web: {
3400
+ readonly block: "bookings-timetable";
3401
+ readonly export: "Timetable";
3402
+ };
3403
+ readonly native: {
3404
+ readonly block: "bookings-native-timetable";
3405
+ readonly export: "TimetableScreen";
3406
+ };
3407
+ readonly order: 10;
3408
+ readonly has: readonly ["bookings.booking"];
3409
+ };
3410
+ };
1201
3411
  }>;
1202
3412
  export default _default;