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

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,7 +8,7 @@ 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"];
11
+ readonly operations: ["order.startHeld", "public.list", "public.get", "capacity.get", "duplicate.check", "waitlist.position", "me.family"];
12
12
  readonly modules: ["ops"];
13
13
  };
14
14
  readonly fields: {
@@ -63,6 +63,15 @@ declare const _default: import("@composable-os/sdk").Extension<{
63
63
  step: number;
64
64
  personApproves: boolean;
65
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;
74
+ };
66
75
  readonly staffOnly: {
67
76
  readonly type: "boolean";
68
77
  readonly label: "Booked by staff only";
@@ -315,6 +324,7 @@ declare const _default: import("@composable-os/sdk").Extension<{
315
324
  readonly endsAt: {
316
325
  readonly type: "datetime";
317
326
  readonly label: "Ends";
327
+ readonly required: true;
318
328
  };
319
329
  readonly timezone: {
320
330
  readonly type: "timezone";
@@ -363,6 +373,12 @@ declare const _default: import("@composable-os/sdk").Extension<{
363
373
  readonly readOnly: true;
364
374
  readonly description: "Edited by hand: its series no longer changes it.";
365
375
  };
376
+ readonly cancelledReason: {
377
+ readonly type: "longText";
378
+ readonly label: "Why it was cancelled";
379
+ readonly readOnly: true;
380
+ readonly description: "The reason staff gave when they cancelled the class.";
381
+ };
366
382
  readonly closed: {
367
383
  readonly type: "formula";
368
384
  readonly label: "Closed to members";
@@ -376,6 +392,11 @@ declare const _default: import("@composable-os/sdk").Extension<{
376
392
  readonly from: "scheduled";
377
393
  readonly to: "cancelled";
378
394
  readonly by: readonly ["host"];
395
+ readonly tools: readonly ["cancelClass"];
396
+ readonly window: {
397
+ readonly until: "endsAt";
398
+ };
399
+ readonly bindsStaff: true;
379
400
  readonly final: true;
380
401
  }, {
381
402
  readonly from: "scheduled";
@@ -400,7 +421,7 @@ declare const _default: import("@composable-os/sdk").Extension<{
400
421
  readonly field: "class";
401
422
  readonly read: readonly ["title", "classType", "startsAt", "endsAt", "timezone", "room", "coach", "notes", "state"];
402
423
  };
403
- readonly indexes: readonly [readonly ["startsAt"], readonly ["state", "startsAt"], readonly ["series"], readonly ["classType", "startsAt"]];
424
+ readonly indexes: readonly [readonly ["startsAt"], readonly ["state", "startsAt"], readonly ["series"], readonly ["classType", "startsAt"], readonly ["endsAt"]];
404
425
  };
405
426
  readonly closure: {
406
427
  readonly label: "Closure";
@@ -453,7 +474,6 @@ declare const _default: import("@composable-os/sdk").Extension<{
453
474
  readonly type: "relation";
454
475
  readonly label: "Person";
455
476
  readonly to: "person";
456
- readonly required: true;
457
477
  };
458
478
  readonly state: {
459
479
  readonly type: "select";
@@ -490,16 +510,35 @@ declare const _default: import("@composable-os/sdk").Extension<{
490
510
  };
491
511
  readonly paidOtherwise: {
492
512
  readonly type: "boolean";
493
- readonly label: "Paid at the desk";
513
+ readonly label: "Paid another way";
494
514
  readonly readOnly: true;
495
515
  readonly description: string;
496
516
  };
517
+ readonly dropInPrice: {
518
+ readonly type: "number";
519
+ readonly label: "Drop-in paid";
520
+ readonly readOnly: true;
521
+ readonly description: "What the drop-in cost, set by the host when it was bought.";
522
+ };
523
+ readonly dropInOrder: {
524
+ readonly type: "text";
525
+ readonly label: "Drop-in order";
526
+ readonly readOnly: true;
527
+ readonly description: "The order that pays for this drop-in, set by the host.";
528
+ };
497
529
  readonly bookedBy: {
498
530
  readonly type: "user";
499
531
  readonly label: "Booked by";
500
532
  readonly readOnly: true;
501
533
  readonly description: "The staff account that booked it. Empty when the member booked.";
502
534
  };
535
+ readonly madeBy: {
536
+ readonly type: "relation";
537
+ readonly label: "Booked by (member)";
538
+ readonly to: "person";
539
+ readonly readOnly: true;
540
+ readonly description: string;
541
+ };
503
542
  readonly movedFrom: {
504
543
  readonly type: "relation";
505
544
  readonly label: "Moved from";
@@ -511,13 +550,49 @@ declare const _default: import("@composable-os/sdk").Extension<{
511
550
  readonly type: "longText";
512
551
  readonly label: "Staff note";
513
552
  };
553
+ readonly markedAt: {
554
+ readonly type: "datetime";
555
+ readonly label: "Attendance marked";
556
+ readonly readOnly: true;
557
+ readonly description: "When a coach ticked them as come, or marked them as not come.";
558
+ };
559
+ readonly markedBy: {
560
+ readonly type: "user";
561
+ readonly label: "Marked by";
562
+ readonly readOnly: true;
563
+ readonly description: "The staff account that marked their attendance.";
564
+ };
565
+ readonly markedByName: {
566
+ readonly type: "text";
567
+ readonly label: "Marked by (name)";
568
+ readonly readOnly: true;
569
+ readonly description: "That staff member's name as it was then.";
570
+ };
571
+ readonly promotedAt: {
572
+ readonly type: "datetime";
573
+ readonly label: "Moved in from the waitlist";
574
+ readonly readOnly: true;
575
+ readonly description: "When the host moved them in from the waitlist.";
576
+ };
577
+ readonly passedOverAt: {
578
+ readonly type: "datetime";
579
+ readonly label: "Passed over";
580
+ readonly readOnly: true;
581
+ readonly description: "When a place was free but nothing they hold could pay for it: they stay waiting.";
582
+ };
583
+ readonly passedOverReason: {
584
+ readonly type: "text";
585
+ readonly label: "Why passed over";
586
+ readonly readOnly: true;
587
+ readonly description: "The host's reason (no_uses_left, ended, not_live, not_covered…).";
588
+ };
514
589
  };
515
590
  readonly states: {
516
591
  readonly field: "state";
517
592
  readonly initial: "booked";
518
593
  readonly create: {
519
594
  readonly in: {
520
- readonly waiting: readonly ["host"];
595
+ readonly waiting: readonly ["staff", "customer", "host"];
521
596
  readonly pending: readonly ["host"];
522
597
  };
523
598
  readonly window: {
@@ -545,7 +620,7 @@ declare const _default: import("@composable-os/sdk").Extension<{
545
620
  readonly when: {
546
621
  readonly cancelled: "cancelled_by_us";
547
622
  };
548
- readonly from: readonly ["booked", "waiting", "pending"];
623
+ readonly from: string[];
549
624
  };
550
625
  readonly requests: {
551
626
  readonly cancel: readonly ["cancelled", "late_cancelled"];
@@ -562,7 +637,25 @@ declare const _default: import("@composable-os/sdk").Extension<{
562
637
  }, {
563
638
  readonly from: "waiting";
564
639
  readonly to: "booked";
565
- readonly by: readonly ["host"];
640
+ readonly by: readonly ["host", "customer"];
641
+ readonly window: {
642
+ readonly from: {
643
+ at: string;
644
+ daysBefore: {
645
+ field: string;
646
+ setting: string;
647
+ };
648
+ zone: string;
649
+ };
650
+ readonly until: {
651
+ at: string;
652
+ minutesBefore: {
653
+ field: string;
654
+ setting: string;
655
+ };
656
+ };
657
+ };
658
+ readonly staffOnly: "class.classType.staffOnly";
566
659
  }, {
567
660
  readonly from: "waiting";
568
661
  readonly to: "left";
@@ -587,7 +680,6 @@ declare const _default: import("@composable-os/sdk").Extension<{
587
680
  readonly from: "booked";
588
681
  readonly to: "late_cancelled";
589
682
  readonly by: readonly ["staff", "customer"];
590
- readonly final: true;
591
683
  readonly window: {
592
684
  readonly from: {
593
685
  at: string;
@@ -608,6 +700,13 @@ declare const _default: import("@composable-os/sdk").Extension<{
608
700
  readonly from: "booked";
609
701
  readonly to: "attended";
610
702
  readonly by: readonly ["staff"];
703
+ readonly window: {
704
+ readonly from: {
705
+ at: string;
706
+ minutesBefore: number;
707
+ };
708
+ };
709
+ readonly bindsStaff: true;
611
710
  }, {
612
711
  readonly from: "attended";
613
712
  readonly to: "booked";
@@ -616,12 +715,16 @@ declare const _default: import("@composable-os/sdk").Extension<{
616
715
  readonly from: "booked";
617
716
  readonly to: "no_show";
618
717
  readonly by: readonly ["staff", "host"];
718
+ readonly window: {
719
+ readonly from: "class.startsAt";
720
+ };
721
+ readonly bindsStaff: true;
619
722
  }, {
620
723
  readonly from: "no_show";
621
724
  readonly to: "attended";
622
725
  readonly by: readonly ["staff"];
623
726
  }, {
624
- readonly from: readonly ["booked", "waiting", "pending"];
727
+ readonly from: string[];
625
728
  readonly to: "cancelled_by_us";
626
729
  readonly by: readonly ["host"];
627
730
  readonly final: true;
@@ -630,17 +733,64 @@ declare const _default: import("@composable-os/sdk").Extension<{
630
733
  readonly to: "moved";
631
734
  readonly by: readonly ["staff"];
632
735
  readonly final: true;
736
+ readonly window: {
737
+ readonly until: "class.startsAt";
738
+ };
739
+ readonly bindsStaff: true;
740
+ }];
741
+ readonly after: readonly [{
742
+ readonly from: "booked";
743
+ readonly to: "no_show";
744
+ readonly at: "class.endsAt";
745
+ readonly minutesAfter: 30;
746
+ readonly ifAnyIn: readonly ["attended", "no_show"];
633
747
  }];
634
748
  };
635
749
  readonly claims: {
636
750
  readonly on: "class";
637
751
  readonly held: readonly ["pending"];
638
752
  readonly confirmed: readonly ["booked", "attended", "no_show"];
753
+ readonly waitlist: {
754
+ readonly state: "waiting";
755
+ readonly promote: "booked";
756
+ readonly until: {
757
+ readonly at: "class.startsAt";
758
+ readonly minutesBefore: {
759
+ readonly field: "class.classType.promotionMinutes";
760
+ readonly setting: "promotionMinutes";
761
+ };
762
+ };
763
+ readonly promotedAt: "promotedAt";
764
+ readonly passedOverAt: "passedOverAt";
765
+ readonly passedOverReason: "passedOverReason";
766
+ };
639
767
  };
640
768
  readonly unique: readonly [{
641
769
  readonly fields: readonly ["person", "class"];
642
770
  readonly states: string[];
643
771
  }];
772
+ readonly sellable: {
773
+ readonly price: "dropInPrice";
774
+ readonly tax: {
775
+ readonly code: "txcd_50021003";
776
+ };
777
+ readonly moves: {
778
+ readonly held: "pending";
779
+ readonly paid: "booked";
780
+ readonly expired: "expired";
781
+ readonly refund: readonly ["cancelled", "excused", "cancelled_by_us"];
782
+ readonly price: {
783
+ readonly field: "class.classType.dropInPrice";
784
+ readonly setting: "dropInPrice";
785
+ };
786
+ readonly title: "class.title";
787
+ readonly order: "dropInOrder";
788
+ readonly guest: true;
789
+ readonly holdCap: {
790
+ readonly setting: "dropInHoldPercent";
791
+ };
792
+ };
793
+ };
644
794
  readonly allowance: {
645
795
  readonly spends: {
646
796
  readonly person: "person";
@@ -666,9 +816,13 @@ declare const _default: import("@composable-os/sdk").Extension<{
666
816
  };
667
817
  readonly customer: {
668
818
  readonly field: "person";
669
- readonly read: readonly ["class", "state", "holder", "classType"];
819
+ readonly read: readonly ["person", "class", "state", "holder", "classType", "promotedAt", "passedOverAt", "passedOverReason", "paidOtherwise", "dropInPrice", "dropInOrder"];
670
820
  readonly write: readonly ["class", "state", "holder"];
671
821
  readonly createOnly: readonly ["class", "holder"];
822
+ readonly guardians: {
823
+ readonly write: true;
824
+ readonly madeBy: "madeBy";
825
+ };
672
826
  };
673
827
  readonly timelineLinks: readonly ["person"];
674
828
  readonly indexes: readonly [readonly ["class", "state"], readonly ["person", "state"], readonly ["state"]];
@@ -737,6 +891,20 @@ declare const _default: import("@composable-os/sdk").Extension<{
737
891
  };
738
892
  readonly columns: ["title", "weekdays", "time", "length", "coach", "room", "places", "firstDate"];
739
893
  };
894
+ readonly waitlists: {
895
+ readonly label: "Waiting";
896
+ readonly object: "bookings.booking";
897
+ readonly filter: {
898
+ readonly field: "state";
899
+ readonly op: "eq";
900
+ readonly value: "waiting";
901
+ };
902
+ readonly sort: {
903
+ readonly field: "createdAt";
904
+ readonly direction: "asc";
905
+ };
906
+ readonly columns: ["title", "class", "person", "createdAt", "passedOverAt", "passedOverReason"];
907
+ };
740
908
  readonly lateCancels: {
741
909
  readonly label: "Late cancels";
742
910
  readonly object: "bookings.booking";
@@ -760,7 +928,7 @@ declare const _default: import("@composable-os/sdk").Extension<{
760
928
  readonly type: "table";
761
929
  readonly object: "bookings.booking";
762
930
  readonly relation: "class";
763
- readonly columns: ["person", "state", "holder", "paidOtherwise", "bookedBy", "createdAt"];
931
+ readonly columns: ["person", "state", "holder", "paidOtherwise", "dropInPrice", "bookedBy", "promotedAt", "passedOverReason", "markedAt", "markedByName", "createdAt"];
764
932
  readonly sort: {
765
933
  readonly field: "createdAt";
766
934
  readonly direction: "asc";
@@ -830,12 +998,29 @@ declare const _default: import("@composable-os/sdk").Extension<{
830
998
  readonly promotionMinutes: {
831
999
  readonly type: "number";
832
1000
  readonly label: "Waitlist stops (minutes before)";
833
- readonly description: "Nobody is moved in from the waitlist after this (a later release).";
1001
+ readonly description: string;
834
1002
  readonly default: 120;
835
1003
  readonly min: 0;
836
1004
  readonly max: 10080;
837
1005
  readonly personApproves: true;
838
1006
  };
1007
+ readonly dropInPrice: {
1008
+ readonly type: "number";
1009
+ readonly label: "Drop-in price";
1010
+ readonly description: string;
1011
+ readonly min: 0;
1012
+ readonly max: 100000;
1013
+ readonly personApproves: true;
1014
+ };
1015
+ readonly dropInHoldPercent: {
1016
+ readonly type: "number";
1017
+ readonly label: "Places held for unpaid drop-ins (percent)";
1018
+ readonly description: string;
1019
+ readonly default: 50;
1020
+ readonly min: 0;
1021
+ readonly max: 100;
1022
+ readonly personApproves: true;
1023
+ };
839
1024
  readonly reminderMinutes: {
840
1025
  readonly type: "number";
841
1026
  readonly label: "Reminder (minutes before)";
@@ -846,6 +1031,26 @@ declare const _default: import("@composable-os/sdk").Extension<{
846
1031
  readonly personApproves: true;
847
1032
  };
848
1033
  };
1034
+ readonly roles: {
1035
+ readonly coach: {
1036
+ readonly label: "Coach";
1037
+ readonly description: string;
1038
+ readonly permissions: readonly ["bookings:coach"];
1039
+ readonly read: readonly ["bookings.class"];
1040
+ readonly today: {
1041
+ readonly "bookings.class": {
1042
+ readonly at: "startsAt";
1043
+ readonly until: "endsAt";
1044
+ readonly zone: "timezone";
1045
+ };
1046
+ readonly "bookings.booking": {
1047
+ readonly at: "class.startsAt";
1048
+ readonly until: "class.endsAt";
1049
+ readonly zone: "class.timezone";
1050
+ };
1051
+ };
1052
+ };
1053
+ };
849
1054
  readonly tools: {
850
1055
  readonly timetable: import("@composable-os/sdk").ToolSpec<import("zod").ZodObject<{
851
1056
  from: import("zod").ZodOptional<import("zod").ZodString>;
@@ -915,12 +1120,21 @@ declare const _default: import("@composable-os/sdk").Extension<{
915
1120
  }, import("zod/v4/core").$strip>>;
916
1121
  readonly book: import("@composable-os/sdk").ToolSpec<import("zod").ZodObject<{
917
1122
  classId: import("zod").ZodString;
1123
+ forPersonId: import("zod").ZodOptional<import("zod").ZodString>;
918
1124
  holderId: import("zod").ZodOptional<import("zod").ZodString>;
1125
+ waitlist: import("zod").ZodDefault<import("zod").ZodBoolean>;
919
1126
  }, import("zod/v4/core").$strip>, import("zod").ZodUnion<readonly [import("zod").ZodObject<{
920
1127
  result: import("zod").ZodLiteral<"booked">;
921
1128
  bookingId: import("zod").ZodString;
922
1129
  classId: import("zod").ZodString;
923
1130
  holderId: import("zod").ZodNullable<import("zod").ZodString>;
1131
+ }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
1132
+ result: import("zod").ZodLiteral<"waiting">;
1133
+ bookingId: import("zod").ZodString;
1134
+ classId: import("zod").ZodString;
1135
+ position: import("zod").ZodNullable<import("zod").ZodNumber>;
1136
+ waiting: import("zod").ZodNullable<import("zod").ZodNumber>;
1137
+ message: import("zod").ZodString;
924
1138
  }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
925
1139
  result: import("zod").ZodLiteral<"refused">;
926
1140
  reason: import("zod").ZodEnum<{
@@ -936,6 +1150,53 @@ declare const _default: import("@composable-os/sdk").Extension<{
936
1150
  not_running: "not_running";
937
1151
  person_exists: "person_exists";
938
1152
  possible_duplicates: "possible_duplicates";
1153
+ waitlist_closed: "waitlist_closed";
1154
+ no_drop_in: "no_drop_in";
1155
+ ask_desk: "ask_desk";
1156
+ try_later: "try_later";
1157
+ }>;
1158
+ message: import("zod").ZodString;
1159
+ detail: import("zod").ZodNullable<import("zod").ZodString>;
1160
+ opensAt: import("zod").ZodNullable<import("zod").ZodString>;
1161
+ closesAt: import("zod").ZodNullable<import("zod").ZodString>;
1162
+ people: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
1163
+ id: import("zod").ZodString;
1164
+ name: import("zod").ZodString;
1165
+ reasons: import("zod").ZodArray<import("zod").ZodString>;
1166
+ }, import("zod/v4/core").$strip>>>;
1167
+ }, import("zod/v4/core").$strip>]>>;
1168
+ readonly buy: import("@composable-os/sdk").ToolSpec<import("zod").ZodObject<{
1169
+ classId: import("zod").ZodString;
1170
+ forPersonId: import("zod").ZodOptional<import("zod").ZodString>;
1171
+ email: import("zod").ZodOptional<import("zod").ZodString>;
1172
+ }, import("zod/v4/core").$strip>, import("zod").ZodUnion<readonly [import("zod").ZodObject<{
1173
+ result: import("zod").ZodLiteral<"pending">;
1174
+ bookingId: import("zod").ZodString;
1175
+ classId: import("zod").ZodString;
1176
+ orderId: import("zod").ZodString;
1177
+ total: import("zod").ZodNumber;
1178
+ currency: import("zod").ZodString;
1179
+ expiresAt: import("zod").ZodNullable<import("zod").ZodString>;
1180
+ token: import("zod").ZodNullable<import("zod").ZodString>;
1181
+ }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
1182
+ result: import("zod").ZodLiteral<"refused">;
1183
+ reason: import("zod").ZodEnum<{
1184
+ not_open: "not_open";
1185
+ closed: "closed";
1186
+ staff_only: "staff_only";
1187
+ no_use: "no_use";
1188
+ already_booked: "already_booked";
1189
+ full: "full";
1190
+ too_late: "too_late";
1191
+ not_found: "not_found";
1192
+ changed: "changed";
1193
+ not_running: "not_running";
1194
+ person_exists: "person_exists";
1195
+ possible_duplicates: "possible_duplicates";
1196
+ waitlist_closed: "waitlist_closed";
1197
+ no_drop_in: "no_drop_in";
1198
+ ask_desk: "ask_desk";
1199
+ try_later: "try_later";
939
1200
  }>;
940
1201
  message: import("zod").ZodString;
941
1202
  detail: import("zod").ZodNullable<import("zod").ZodString>;
@@ -965,6 +1226,7 @@ declare const _default: import("@composable-os/sdk").Extension<{
965
1226
  late_cancelled: "late_cancelled";
966
1227
  }>;
967
1228
  late: import("zod").ZodBoolean;
1229
+ dropIn: import("zod").ZodBoolean;
968
1230
  message: import("zod").ZodString;
969
1231
  }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
970
1232
  result: import("zod").ZodLiteral<"refused">;
@@ -981,6 +1243,45 @@ declare const _default: import("@composable-os/sdk").Extension<{
981
1243
  not_running: "not_running";
982
1244
  person_exists: "person_exists";
983
1245
  possible_duplicates: "possible_duplicates";
1246
+ waitlist_closed: "waitlist_closed";
1247
+ no_drop_in: "no_drop_in";
1248
+ ask_desk: "ask_desk";
1249
+ try_later: "try_later";
1250
+ }>;
1251
+ message: import("zod").ZodString;
1252
+ detail: import("zod").ZodNullable<import("zod").ZodString>;
1253
+ opensAt: import("zod").ZodNullable<import("zod").ZodString>;
1254
+ closesAt: import("zod").ZodNullable<import("zod").ZodString>;
1255
+ people: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
1256
+ id: import("zod").ZodString;
1257
+ name: import("zod").ZodString;
1258
+ reasons: import("zod").ZodArray<import("zod").ZodString>;
1259
+ }, import("zod/v4/core").$strip>>>;
1260
+ }, import("zod/v4/core").$strip>]>>;
1261
+ readonly leaveWaitlist: import("@composable-os/sdk").ToolSpec<import("zod").ZodObject<{
1262
+ bookingId: import("zod").ZodString;
1263
+ }, import("zod/v4/core").$strip>, import("zod").ZodUnion<readonly [import("zod").ZodObject<{
1264
+ result: import("zod").ZodLiteral<"left">;
1265
+ bookingId: import("zod").ZodString;
1266
+ }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
1267
+ result: import("zod").ZodLiteral<"refused">;
1268
+ reason: import("zod").ZodEnum<{
1269
+ not_open: "not_open";
1270
+ closed: "closed";
1271
+ staff_only: "staff_only";
1272
+ no_use: "no_use";
1273
+ already_booked: "already_booked";
1274
+ full: "full";
1275
+ too_late: "too_late";
1276
+ not_found: "not_found";
1277
+ changed: "changed";
1278
+ not_running: "not_running";
1279
+ person_exists: "person_exists";
1280
+ possible_duplicates: "possible_duplicates";
1281
+ waitlist_closed: "waitlist_closed";
1282
+ no_drop_in: "no_drop_in";
1283
+ ask_desk: "ask_desk";
1284
+ try_later: "try_later";
984
1285
  }>;
985
1286
  message: import("zod").ZodString;
986
1287
  detail: import("zod").ZodNullable<import("zod").ZodString>;
@@ -993,8 +1294,12 @@ declare const _default: import("@composable-os/sdk").Extension<{
993
1294
  }, import("zod/v4/core").$strip>>>;
994
1295
  }, import("zod/v4/core").$strip>]>>;
995
1296
  readonly mine: import("@composable-os/sdk").ToolSpec<import("zod").ZodObject<{
1297
+ personId: import("zod").ZodOptional<import("zod").ZodString>;
996
1298
  state: import("zod").ZodOptional<import("zod").ZodEnum<{
997
1299
  booked: "booked";
1300
+ waiting: "waiting";
1301
+ pending: "pending";
1302
+ left: "left";
998
1303
  cancelled: "cancelled";
999
1304
  late_cancelled: "late_cancelled";
1000
1305
  }>>;
@@ -1003,8 +1308,11 @@ declare const _default: import("@composable-os/sdk").Extension<{
1003
1308
  }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
1004
1309
  bookings: import("zod").ZodArray<import("zod").ZodObject<{
1005
1310
  id: import("zod").ZodString;
1311
+ personId: import("zod").ZodNullable<import("zod").ZodString>;
1006
1312
  state: import("zod").ZodNullable<import("zod").ZodString>;
1313
+ position: import("zod").ZodNullable<import("zod").ZodNumber>;
1007
1314
  holderId: import("zod").ZodNullable<import("zod").ZodString>;
1315
+ dropInOrderId: import("zod").ZodNullable<import("zod").ZodString>;
1008
1316
  classId: import("zod").ZodNullable<import("zod").ZodString>;
1009
1317
  title: import("zod").ZodNullable<import("zod").ZodString>;
1010
1318
  startsAt: import("zod").ZodNullable<import("zod").ZodString>;
@@ -1035,6 +1343,7 @@ declare const _default: import("@composable-os/sdk").Extension<{
1035
1343
  confirmNew: import("zod").ZodDefault<import("zod").ZodBoolean>;
1036
1344
  holderId: import("zod").ZodOptional<import("zod").ZodString>;
1037
1345
  paidAtDesk: import("zod").ZodDefault<import("zod").ZodBoolean>;
1346
+ waitlist: import("zod").ZodDefault<import("zod").ZodBoolean>;
1038
1347
  note: import("zod").ZodOptional<import("zod").ZodString>;
1039
1348
  }, import("zod/v4/core").$strip>, import("zod").ZodUnion<readonly [import("zod").ZodObject<{
1040
1349
  result: import("zod").ZodLiteral<"booked">;
@@ -1042,6 +1351,14 @@ declare const _default: import("@composable-os/sdk").Extension<{
1042
1351
  classId: import("zod").ZodString;
1043
1352
  holderId: import("zod").ZodNullable<import("zod").ZodString>;
1044
1353
  personId: import("zod").ZodString;
1354
+ }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
1355
+ result: import("zod").ZodLiteral<"waiting">;
1356
+ bookingId: import("zod").ZodString;
1357
+ classId: import("zod").ZodString;
1358
+ position: import("zod").ZodNullable<import("zod").ZodNumber>;
1359
+ waiting: import("zod").ZodNullable<import("zod").ZodNumber>;
1360
+ message: import("zod").ZodString;
1361
+ personId: import("zod").ZodString;
1045
1362
  }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
1046
1363
  result: import("zod").ZodLiteral<"refused">;
1047
1364
  reason: import("zod").ZodEnum<{
@@ -1057,6 +1374,10 @@ declare const _default: import("@composable-os/sdk").Extension<{
1057
1374
  not_running: "not_running";
1058
1375
  person_exists: "person_exists";
1059
1376
  possible_duplicates: "possible_duplicates";
1377
+ waitlist_closed: "waitlist_closed";
1378
+ no_drop_in: "no_drop_in";
1379
+ ask_desk: "ask_desk";
1380
+ try_later: "try_later";
1060
1381
  }>;
1061
1382
  message: import("zod").ZodString;
1062
1383
  detail: import("zod").ZodNullable<import("zod").ZodString>;
@@ -1094,6 +1415,10 @@ declare const _default: import("@composable-os/sdk").Extension<{
1094
1415
  not_running: "not_running";
1095
1416
  person_exists: "person_exists";
1096
1417
  possible_duplicates: "possible_duplicates";
1418
+ waitlist_closed: "waitlist_closed";
1419
+ no_drop_in: "no_drop_in";
1420
+ ask_desk: "ask_desk";
1421
+ try_later: "try_later";
1097
1422
  }>;
1098
1423
  message: import("zod").ZodString;
1099
1424
  detail: import("zod").ZodNullable<import("zod").ZodString>;
@@ -1127,6 +1452,10 @@ declare const _default: import("@composable-os/sdk").Extension<{
1127
1452
  not_running: "not_running";
1128
1453
  person_exists: "person_exists";
1129
1454
  possible_duplicates: "possible_duplicates";
1455
+ waitlist_closed: "waitlist_closed";
1456
+ no_drop_in: "no_drop_in";
1457
+ ask_desk: "ask_desk";
1458
+ try_later: "try_later";
1130
1459
  }>;
1131
1460
  message: import("zod").ZodString;
1132
1461
  detail: import("zod").ZodNullable<import("zod").ZodString>;
@@ -1195,6 +1524,220 @@ declare const _default: import("@composable-os/sdk").Extension<{
1195
1524
  paidAtDesk: import("zod").ZodBoolean;
1196
1525
  holderId: import("zod").ZodNullable<import("zod").ZodString>;
1197
1526
  bookedBy: import("zod").ZodNullable<import("zod").ZodString>;
1527
+ promotedAt: import("zod").ZodNullable<import("zod").ZodString>;
1528
+ passedOver: import("zod").ZodNullable<import("zod").ZodString>;
1529
+ }, import("zod/v4/core").$strip>>;
1530
+ }, import("zod/v4/core").$strip>>;
1531
+ readonly roster: import("@composable-os/sdk").ToolSpec<import("zod").ZodObject<{
1532
+ classId: import("zod").ZodString;
1533
+ }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
1534
+ class: import("zod").ZodObject<{
1535
+ id: import("zod").ZodString;
1536
+ title: import("zod").ZodNullable<import("zod").ZodString>;
1537
+ classType: import("zod").ZodNullable<import("zod").ZodObject<{
1538
+ id: import("zod").ZodString;
1539
+ name: import("zod").ZodNullable<import("zod").ZodString>;
1540
+ }, import("zod/v4/core").$strip>>;
1541
+ startsAt: import("zod").ZodNullable<import("zod").ZodString>;
1542
+ endsAt: import("zod").ZodNullable<import("zod").ZodString>;
1543
+ timeZone: import("zod").ZodNullable<import("zod").ZodString>;
1544
+ coach: import("zod").ZodNullable<import("zod").ZodString>;
1545
+ room: import("zod").ZodNullable<import("zod").ZodString>;
1546
+ places: import("zod").ZodNullable<import("zod").ZodNumber>;
1547
+ booked: import("zod").ZodNumber;
1548
+ held: import("zod").ZodNumber;
1549
+ available: import("zod").ZodNullable<import("zod").ZodNumber>;
1550
+ state: import("zod").ZodNullable<import("zod").ZodString>;
1551
+ staffOnly: import("zod").ZodBoolean;
1552
+ }, import("zod/v4/core").$strip>;
1553
+ bookings: import("zod").ZodArray<import("zod").ZodObject<{
1554
+ id: import("zod").ZodString;
1555
+ person: import("zod").ZodNullable<import("zod").ZodObject<{
1556
+ id: import("zod").ZodString;
1557
+ name: import("zod").ZodNullable<import("zod").ZodString>;
1558
+ }, import("zod/v4/core").$strip>>;
1559
+ state: import("zod").ZodNullable<import("zod").ZodString>;
1560
+ markedAt: import("zod").ZodNullable<import("zod").ZodString>;
1561
+ markedBy: import("zod").ZodNullable<import("zod").ZodString>;
1562
+ promotedAt: import("zod").ZodNullable<import("zod").ZodString>;
1563
+ }, import("zod/v4/core").$strip>>;
1564
+ }, import("zod/v4/core").$strip>>;
1565
+ readonly markAttended: import("@composable-os/sdk").ToolSpec<import("zod").ZodObject<{
1566
+ bookingId: import("zod").ZodString;
1567
+ }, import("zod/v4/core").$strip>, import("zod").ZodUnion<readonly [import("zod").ZodObject<{
1568
+ result: import("zod").ZodEnum<{
1569
+ booked: "booked";
1570
+ attended: "attended";
1571
+ no_show: "no_show";
1572
+ }>;
1573
+ bookingId: import("zod").ZodString;
1574
+ message: import("zod").ZodString;
1575
+ }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
1576
+ result: import("zod").ZodLiteral<"already">;
1577
+ bookingId: import("zod").ZodString;
1578
+ state: import("zod").ZodNullable<import("zod").ZodString>;
1579
+ markedAt: import("zod").ZodNullable<import("zod").ZodString>;
1580
+ markedBy: import("zod").ZodNullable<import("zod").ZodString>;
1581
+ message: import("zod").ZodString;
1582
+ }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
1583
+ result: import("zod").ZodLiteral<"refused">;
1584
+ reason: import("zod").ZodEnum<{
1585
+ not_found: "not_found";
1586
+ changed: "changed";
1587
+ not_started: "not_started";
1588
+ not_booked: "not_booked";
1589
+ }>;
1590
+ state: import("zod").ZodNullable<import("zod").ZodString>;
1591
+ opensAt: import("zod").ZodNullable<import("zod").ZodString>;
1592
+ message: import("zod").ZodString;
1593
+ }, import("zod/v4/core").$strip>]>>;
1594
+ readonly undoAttended: import("@composable-os/sdk").ToolSpec<import("zod").ZodObject<{
1595
+ bookingId: import("zod").ZodString;
1596
+ }, import("zod/v4/core").$strip>, import("zod").ZodUnion<readonly [import("zod").ZodObject<{
1597
+ result: import("zod").ZodEnum<{
1598
+ booked: "booked";
1599
+ attended: "attended";
1600
+ no_show: "no_show";
1601
+ }>;
1602
+ bookingId: import("zod").ZodString;
1603
+ message: import("zod").ZodString;
1604
+ }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
1605
+ result: import("zod").ZodLiteral<"already">;
1606
+ bookingId: import("zod").ZodString;
1607
+ state: import("zod").ZodNullable<import("zod").ZodString>;
1608
+ markedAt: import("zod").ZodNullable<import("zod").ZodString>;
1609
+ markedBy: import("zod").ZodNullable<import("zod").ZodString>;
1610
+ message: import("zod").ZodString;
1611
+ }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
1612
+ result: import("zod").ZodLiteral<"refused">;
1613
+ reason: import("zod").ZodEnum<{
1614
+ not_found: "not_found";
1615
+ changed: "changed";
1616
+ not_started: "not_started";
1617
+ not_booked: "not_booked";
1618
+ }>;
1619
+ state: import("zod").ZodNullable<import("zod").ZodString>;
1620
+ opensAt: import("zod").ZodNullable<import("zod").ZodString>;
1621
+ message: import("zod").ZodString;
1622
+ }, import("zod/v4/core").$strip>]>>;
1623
+ readonly markNoShow: import("@composable-os/sdk").ToolSpec<import("zod").ZodObject<{
1624
+ bookingId: import("zod").ZodString;
1625
+ }, import("zod/v4/core").$strip>, import("zod").ZodUnion<readonly [import("zod").ZodObject<{
1626
+ result: import("zod").ZodEnum<{
1627
+ booked: "booked";
1628
+ attended: "attended";
1629
+ no_show: "no_show";
1630
+ }>;
1631
+ bookingId: import("zod").ZodString;
1632
+ message: import("zod").ZodString;
1633
+ }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
1634
+ result: import("zod").ZodLiteral<"already">;
1635
+ bookingId: import("zod").ZodString;
1636
+ state: import("zod").ZodNullable<import("zod").ZodString>;
1637
+ markedAt: import("zod").ZodNullable<import("zod").ZodString>;
1638
+ markedBy: import("zod").ZodNullable<import("zod").ZodString>;
1639
+ message: import("zod").ZodString;
1640
+ }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
1641
+ result: import("zod").ZodLiteral<"refused">;
1642
+ reason: import("zod").ZodEnum<{
1643
+ not_found: "not_found";
1644
+ changed: "changed";
1645
+ not_started: "not_started";
1646
+ not_booked: "not_booked";
1647
+ }>;
1648
+ state: import("zod").ZodNullable<import("zod").ZodString>;
1649
+ opensAt: import("zod").ZodNullable<import("zod").ZodString>;
1650
+ message: import("zod").ZodString;
1651
+ }, import("zod/v4/core").$strip>]>>;
1652
+ readonly markAll: import("@composable-os/sdk").ToolSpec<import("zod").ZodObject<{
1653
+ classId: import("zod").ZodString;
1654
+ }, import("zod/v4/core").$strip>, import("zod").ZodUnion<readonly [import("zod").ZodObject<{
1655
+ result: import("zod").ZodLiteral<"marked">;
1656
+ classId: import("zod").ZodString;
1657
+ ticked: import("zod").ZodNumber;
1658
+ already: import("zod").ZodNumber;
1659
+ skipped: import("zod").ZodNumber;
1660
+ }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
1661
+ result: import("zod").ZodLiteral<"refused">;
1662
+ reason: import("zod").ZodEnum<{
1663
+ not_found: "not_found";
1664
+ changed: "changed";
1665
+ not_started: "not_started";
1666
+ not_booked: "not_booked";
1667
+ }>;
1668
+ state: import("zod").ZodNullable<import("zod").ZodString>;
1669
+ opensAt: import("zod").ZodNullable<import("zod").ZodString>;
1670
+ message: import("zod").ZodString;
1671
+ }, import("zod/v4/core").$strip>]>>;
1672
+ readonly move: import("@composable-os/sdk").ToolSpec<import("zod").ZodObject<{
1673
+ bookingId: import("zod").ZodString;
1674
+ toClassId: import("zod").ZodString;
1675
+ note: import("zod").ZodOptional<import("zod").ZodString>;
1676
+ }, import("zod/v4/core").$strip>, import("zod").ZodUnion<readonly [import("zod").ZodObject<{
1677
+ result: import("zod").ZodLiteral<"moved">;
1678
+ fromBookingId: import("zod").ZodString;
1679
+ bookingId: import("zod").ZodString;
1680
+ classId: import("zod").ZodString;
1681
+ holderId: import("zod").ZodNullable<import("zod").ZodString>;
1682
+ }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
1683
+ result: import("zod").ZodLiteral<"refused">;
1684
+ reason: import("zod").ZodEnum<{
1685
+ not_open: "not_open";
1686
+ closed: "closed";
1687
+ staff_only: "staff_only";
1688
+ no_use: "no_use";
1689
+ already_booked: "already_booked";
1690
+ full: "full";
1691
+ too_late: "too_late";
1692
+ not_found: "not_found";
1693
+ changed: "changed";
1694
+ not_running: "not_running";
1695
+ person_exists: "person_exists";
1696
+ possible_duplicates: "possible_duplicates";
1697
+ waitlist_closed: "waitlist_closed";
1698
+ no_drop_in: "no_drop_in";
1699
+ ask_desk: "ask_desk";
1700
+ try_later: "try_later";
1701
+ }>;
1702
+ message: import("zod").ZodString;
1703
+ detail: import("zod").ZodNullable<import("zod").ZodString>;
1704
+ opensAt: import("zod").ZodNullable<import("zod").ZodString>;
1705
+ closesAt: import("zod").ZodNullable<import("zod").ZodString>;
1706
+ people: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
1707
+ id: import("zod").ZodString;
1708
+ name: import("zod").ZodString;
1709
+ reasons: import("zod").ZodArray<import("zod").ZodString>;
1710
+ }, import("zod/v4/core").$strip>>>;
1711
+ }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
1712
+ result: import("zod").ZodLiteral<"refused">;
1713
+ message: import("zod").ZodString;
1714
+ detail: import("zod").ZodNullable<import("zod").ZodString>;
1715
+ opensAt: import("zod").ZodNullable<import("zod").ZodString>;
1716
+ closesAt: import("zod").ZodNullable<import("zod").ZodString>;
1717
+ people: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
1718
+ id: import("zod").ZodString;
1719
+ name: import("zod").ZodString;
1720
+ reasons: import("zod").ZodArray<import("zod").ZodString>;
1721
+ }, import("zod/v4/core").$strip>>>;
1722
+ reason: import("zod").ZodEnum<{
1723
+ not_booked: "not_booked";
1724
+ same_class: "same_class";
1725
+ started: "started";
1726
+ }>;
1727
+ }, import("zod/v4/core").$strip>]>>;
1728
+ readonly cancelClass: import("@composable-os/sdk").ToolSpec<import("zod").ZodObject<{
1729
+ classId: import("zod").ZodString;
1730
+ reason: import("zod").ZodString;
1731
+ }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
1732
+ result: import("zod").ZodLiteral<"cancelled">;
1733
+ classId: import("zod").ZodString;
1734
+ bookingsCancelled: import("zod").ZodNumber;
1735
+ }, import("zod/v4/core").$strip>>;
1736
+ readonly family: import("@composable-os/sdk").ToolSpec<import("zod").ZodObject<{}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
1737
+ people: import("zod").ZodArray<import("zod").ZodObject<{
1738
+ personId: import("zod").ZodString;
1739
+ name: import("zod").ZodString;
1740
+ self: import("zod").ZodBoolean;
1198
1741
  }, import("zod/v4/core").$strip>>;
1199
1742
  }, import("zod/v4/core").$strip>>;
1200
1743
  };