@savvycal/appointments-core 0.8.0 → 0.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.cts CHANGED
@@ -2234,6 +2234,136 @@ interface components {
2234
2234
  /** @description The title of the block. */
2235
2235
  title?: string;
2236
2236
  };
2237
+ /**
2238
+ * BookingIntentCompletedEventData
2239
+ * @description This is an object representing data for the booking intent completed event.
2240
+ * @example {
2241
+ * "object": {
2242
+ * "abandoned_at": null,
2243
+ * "appointment": null,
2244
+ * "client": null,
2245
+ * "client_data": {
2246
+ * "email": "jane@example.com",
2247
+ * "first_name": "Jane",
2248
+ * "last_name": "Doe",
2249
+ * "locale": "en",
2250
+ * "phone": "+15551234567",
2251
+ * "reference_id": "ext_123",
2252
+ * "time_zone": "America/New_York"
2253
+ * },
2254
+ * "completed_at": null,
2255
+ * "created_at": "2026-02-22T10:00:00Z",
2256
+ * "end_at": {
2257
+ * "local": "2026-02-23T10:30:00-05:00",
2258
+ * "object": "zoned_date_time",
2259
+ * "time_zone": "America/New_York",
2260
+ * "unix_ts": 1771947000,
2261
+ * "utc": "2026-02-23T15:30:00Z"
2262
+ * },
2263
+ * "hold_duration": "PT10M",
2264
+ * "hold_enabled": true,
2265
+ * "hold_until": "2026-02-22T10:10:00Z",
2266
+ * "id": "bi_abc123def456abc123def456",
2267
+ * "locked_fields": [
2268
+ * "provider_id",
2269
+ * "start_at",
2270
+ * "end_at",
2271
+ * "time_zone"
2272
+ * ],
2273
+ * "metadata": {
2274
+ * "source": "web"
2275
+ * },
2276
+ * "object": "booking_intent",
2277
+ * "provider": {
2278
+ * "created_at": "2017-09-12T12:34:55Z",
2279
+ * "display_name": "John Smith",
2280
+ * "first_name": "John",
2281
+ * "id": "prov_d025a96ac0c6",
2282
+ * "last_name": "Smith",
2283
+ * "metadata": {
2284
+ * "external_id": "123"
2285
+ * },
2286
+ * "object": "provider",
2287
+ * "updated_at": "2017-09-13T10:11:12Z"
2288
+ * },
2289
+ * "service": {
2290
+ * "appointment_type": "in_person",
2291
+ * "booking_policy": {
2292
+ * "advance_notice": {
2293
+ * "enabled": true,
2294
+ * "minimum_duration": "PT1H"
2295
+ * },
2296
+ * "allow_booking": true,
2297
+ * "disabled_message": "Booking is disabled for this service.",
2298
+ * "hold": {
2299
+ * "duration": "PT10M",
2300
+ * "enabled": true
2301
+ * },
2302
+ * "maximize_utilization": {
2303
+ * "enabled": true
2304
+ * }
2305
+ * },
2306
+ * "cancellation_policy": {
2307
+ * "advance_notice": {
2308
+ * "enabled": true,
2309
+ * "minimum_duration": "PT1H"
2310
+ * },
2311
+ * "allow_cancellation": true,
2312
+ * "disabled_message": "Cancellation is disabled for this service."
2313
+ * },
2314
+ * "change_policy_text": "Appointments within 48 hours cannot be canceled or rescheduled online. Please call our office.",
2315
+ * "created_at": "2025-02-17T17:49:19Z",
2316
+ * "duration": "PT1H30M",
2317
+ * "id": "srv_d025a96ac0c6",
2318
+ * "name": "Initial Consult",
2319
+ * "object": "service",
2320
+ * "rescheduling_policy": {
2321
+ * "advance_notice": {
2322
+ * "enabled": true,
2323
+ * "minimum_duration": "PT1H"
2324
+ * },
2325
+ * "allow_rescheduling": true,
2326
+ * "disabled_message": "Rescheduling is disabled for this service."
2327
+ * },
2328
+ * "slot_rules": [
2329
+ * {
2330
+ * "recurrence_rule": {
2331
+ * "byday": [
2332
+ * "mo",
2333
+ * "we",
2334
+ * "fr"
2335
+ * ],
2336
+ * "freq": "weekly"
2337
+ * },
2338
+ * "start_times": [
2339
+ * "09:00",
2340
+ * "10:00"
2341
+ * ]
2342
+ * }
2343
+ * ],
2344
+ * "updated_at": "2025-02-17T17:49:19Z"
2345
+ * },
2346
+ * "start_at": {
2347
+ * "local": "2026-02-23T10:00:00-05:00",
2348
+ * "object": "zoned_date_time",
2349
+ * "time_zone": "America/New_York",
2350
+ * "unix_ts": 1771945200,
2351
+ * "utc": "2026-02-23T15:00:00Z"
2352
+ * },
2353
+ * "status": "slot_selected",
2354
+ * "updated_at": "2026-02-22T10:00:00Z"
2355
+ * },
2356
+ * "type": "booking_intent.completed"
2357
+ * }
2358
+ */
2359
+ BookingIntentCompletedEventData: {
2360
+ object: components["schemas"]["BookingIntent"];
2361
+ /**
2362
+ * @description The event type. (enum property replaced by openapi-typescript)
2363
+ * @enum {string}
2364
+ */
2365
+ type: "booking_intent.completed";
2366
+ };
2237
2367
  /**
2238
2368
  * AccountResponse
2239
2369
  * @description Response schema for a single account
@@ -2288,6 +2418,8 @@ interface components {
2288
2418
  * }
2289
2419
  */
2290
2420
  CreateBookingIntentRequest: {
2421
+ /** @description When true, automatically assigns an available provider for the selected time slot if no provider_id is specified. */
2422
+ auto_assign_provider?: boolean | null;
2291
2423
  /** @description Progressive client data to collect during the booking flow. */
2292
2424
  client_data?: {
2293
2425
  email?: string | null;
@@ -2332,6 +2464,136 @@ interface components {
2332
2464
  /** @description The local time zone for the slot (IANA format). */
2333
2465
  time_zone?: string | null;
2334
2466
  };
2467
+ /**
2468
+ * BookingIntentAbandonedEventData
2469
+ * @description This is an object representing data for the booking intent abandoned event.
2470
+ * @example {
2471
+ * "object": {
2472
+ * "abandoned_at": null,
2473
+ * "appointment": null,
2474
+ * "client": null,
2475
+ * "client_data": {
2476
+ * "email": "jane@example.com",
2477
+ * "first_name": "Jane",
2478
+ * "last_name": "Doe",
2479
+ * "locale": "en",
2480
+ * "phone": "+15551234567",
2481
+ * "reference_id": "ext_123",
2482
+ * "time_zone": "America/New_York"
2483
+ * },
2484
+ * "completed_at": null,
2485
+ * "created_at": "2026-02-22T10:00:00Z",
2486
+ * "end_at": {
2487
+ * "local": "2026-02-23T10:30:00-05:00",
2488
+ * "object": "zoned_date_time",
2489
+ * "time_zone": "America/New_York",
2490
+ * "unix_ts": 1771947000,
2491
+ * "utc": "2026-02-23T15:30:00Z"
2492
+ * },
2493
+ * "hold_duration": "PT10M",
2494
+ * "hold_enabled": true,
2495
+ * "hold_until": "2026-02-22T10:10:00Z",
2496
+ * "id": "bi_abc123def456abc123def456",
2497
+ * "locked_fields": [
2498
+ * "provider_id",
2499
+ * "start_at",
2500
+ * "end_at",
2501
+ * "time_zone"
2502
+ * ],
2503
+ * "metadata": {
2504
+ * "source": "web"
2505
+ * },
2506
+ * "object": "booking_intent",
2507
+ * "provider": {
2508
+ * "created_at": "2017-09-12T12:34:55Z",
2509
+ * "display_name": "John Smith",
2510
+ * "first_name": "John",
2511
+ * "id": "prov_d025a96ac0c6",
2512
+ * "last_name": "Smith",
2513
+ * "metadata": {
2514
+ * "external_id": "123"
2515
+ * },
2516
+ * "object": "provider",
2517
+ * "updated_at": "2017-09-13T10:11:12Z"
2518
+ * },
2519
+ * "service": {
2520
+ * "appointment_type": "in_person",
2521
+ * "booking_policy": {
2522
+ * "advance_notice": {
2523
+ * "enabled": true,
2524
+ * "minimum_duration": "PT1H"
2525
+ * },
2526
+ * "allow_booking": true,
2527
+ * "disabled_message": "Booking is disabled for this service.",
2528
+ * "hold": {
2529
+ * "duration": "PT10M",
2530
+ * "enabled": true
2531
+ * },
2532
+ * "maximize_utilization": {
2533
+ * "enabled": true
2534
+ * }
2535
+ * },
2536
+ * "cancellation_policy": {
2537
+ * "advance_notice": {
2538
+ * "enabled": true,
2539
+ * "minimum_duration": "PT1H"
2540
+ * },
2541
+ * "allow_cancellation": true,
2542
+ * "disabled_message": "Cancellation is disabled for this service."
2543
+ * },
2544
+ * "change_policy_text": "Appointments within 48 hours cannot be canceled or rescheduled online. Please call our office.",
2545
+ * "created_at": "2025-02-17T17:49:19Z",
2546
+ * "duration": "PT1H30M",
2547
+ * "id": "srv_d025a96ac0c6",
2548
+ * "name": "Initial Consult",
2549
+ * "object": "service",
2550
+ * "rescheduling_policy": {
2551
+ * "advance_notice": {
2552
+ * "enabled": true,
2553
+ * "minimum_duration": "PT1H"
2554
+ * },
2555
+ * "allow_rescheduling": true,
2556
+ * "disabled_message": "Rescheduling is disabled for this service."
2557
+ * },
2558
+ * "slot_rules": [
2559
+ * {
2560
+ * "recurrence_rule": {
2561
+ * "byday": [
2562
+ * "mo",
2563
+ * "we",
2564
+ * "fr"
2565
+ * ],
2566
+ * "freq": "weekly"
2567
+ * },
2568
+ * "start_times": [
2569
+ * "09:00",
2570
+ * "10:00"
2571
+ * ]
2572
+ * }
2573
+ * ],
2574
+ * "updated_at": "2025-02-17T17:49:19Z"
2575
+ * },
2576
+ * "start_at": {
2577
+ * "local": "2026-02-23T10:00:00-05:00",
2578
+ * "object": "zoned_date_time",
2579
+ * "time_zone": "America/New_York",
2580
+ * "unix_ts": 1771945200,
2581
+ * "utc": "2026-02-23T15:00:00Z"
2582
+ * },
2583
+ * "status": "slot_selected",
2584
+ * "updated_at": "2026-02-22T10:00:00Z"
2585
+ * },
2586
+ * "type": "booking_intent.abandoned"
2587
+ * }
2588
+ */
2589
+ BookingIntentAbandonedEventData: {
2590
+ object: components["schemas"]["BookingIntent"];
2591
+ /**
2592
+ * @description The event type. (enum property replaced by openapi-typescript)
2593
+ * @enum {string}
2594
+ */
2595
+ type: "booking_intent.abandoned";
2596
+ };
2335
2597
  /**
2336
2598
  * GenericErrorResponse
2337
2599
  * @description Response schema for generic error messages
@@ -2542,54 +2804,184 @@ interface components {
2542
2804
  * "duration": "PT10M",
2543
2805
  * "enabled": true
2544
2806
  * },
2545
- * "maximize_utilization": {
2546
- * "enabled": true
2547
- * }
2807
+ * "maximize_utilization": {
2808
+ * "enabled": true
2809
+ * }
2810
+ * },
2811
+ * "cancellation_policy": {
2812
+ * "advance_notice": {
2813
+ * "enabled": true,
2814
+ * "minimum_duration": "PT1H"
2815
+ * },
2816
+ * "allow_cancellation": true,
2817
+ * "disabled_message": "Cancellation is disabled for this service."
2818
+ * },
2819
+ * "change_policy_text": "Appointments within 48 hours cannot be canceled or rescheduled online. Please call our office.",
2820
+ * "created_at": "2025-02-17T17:49:19Z",
2821
+ * "duration": "PT1H30M",
2822
+ * "id": "srv_d025a96ac0c6",
2823
+ * "name": "Initial Consult",
2824
+ * "object": "service",
2825
+ * "rescheduling_policy": {
2826
+ * "advance_notice": {
2827
+ * "enabled": true,
2828
+ * "minimum_duration": "PT1H"
2829
+ * },
2830
+ * "allow_rescheduling": true,
2831
+ * "disabled_message": "Rescheduling is disabled for this service."
2832
+ * },
2833
+ * "slot_rules": [
2834
+ * {
2835
+ * "recurrence_rule": {
2836
+ * "byday": [
2837
+ * "mo",
2838
+ * "we",
2839
+ * "fr"
2840
+ * ],
2841
+ * "freq": "weekly"
2842
+ * },
2843
+ * "start_times": [
2844
+ * "09:00",
2845
+ * "10:00"
2846
+ * ]
2847
+ * }
2848
+ * ],
2849
+ * "updated_at": "2025-02-17T17:49:19Z"
2850
+ * }
2851
+ * }
2852
+ */
2853
+ ServiceResponse: {
2854
+ data: components["schemas"]["Service"];
2855
+ };
2856
+ /**
2857
+ * BookingIntentUpdatedEventData
2858
+ * @description This is an object representing data for the booking intent updated event.
2859
+ * @example {
2860
+ * "object": {
2861
+ * "abandoned_at": null,
2862
+ * "appointment": null,
2863
+ * "client": null,
2864
+ * "client_data": {
2865
+ * "email": "jane@example.com",
2866
+ * "first_name": "Jane",
2867
+ * "last_name": "Doe",
2868
+ * "locale": "en",
2869
+ * "phone": "+15551234567",
2870
+ * "reference_id": "ext_123",
2871
+ * "time_zone": "America/New_York"
2872
+ * },
2873
+ * "completed_at": null,
2874
+ * "created_at": "2026-02-22T10:00:00Z",
2875
+ * "end_at": {
2876
+ * "local": "2026-02-23T10:30:00-05:00",
2877
+ * "object": "zoned_date_time",
2878
+ * "time_zone": "America/New_York",
2879
+ * "unix_ts": 1771947000,
2880
+ * "utc": "2026-02-23T15:30:00Z"
2881
+ * },
2882
+ * "hold_duration": "PT10M",
2883
+ * "hold_enabled": true,
2884
+ * "hold_until": "2026-02-22T10:10:00Z",
2885
+ * "id": "bi_abc123def456abc123def456",
2886
+ * "locked_fields": [
2887
+ * "provider_id",
2888
+ * "start_at",
2889
+ * "end_at",
2890
+ * "time_zone"
2891
+ * ],
2892
+ * "metadata": {
2893
+ * "source": "web"
2894
+ * },
2895
+ * "object": "booking_intent",
2896
+ * "provider": {
2897
+ * "created_at": "2017-09-12T12:34:55Z",
2898
+ * "display_name": "John Smith",
2899
+ * "first_name": "John",
2900
+ * "id": "prov_d025a96ac0c6",
2901
+ * "last_name": "Smith",
2902
+ * "metadata": {
2903
+ * "external_id": "123"
2904
+ * },
2905
+ * "object": "provider",
2906
+ * "updated_at": "2017-09-13T10:11:12Z"
2548
2907
  * },
2549
- * "cancellation_policy": {
2550
- * "advance_notice": {
2551
- * "enabled": true,
2552
- * "minimum_duration": "PT1H"
2908
+ * "service": {
2909
+ * "appointment_type": "in_person",
2910
+ * "booking_policy": {
2911
+ * "advance_notice": {
2912
+ * "enabled": true,
2913
+ * "minimum_duration": "PT1H"
2914
+ * },
2915
+ * "allow_booking": true,
2916
+ * "disabled_message": "Booking is disabled for this service.",
2917
+ * "hold": {
2918
+ * "duration": "PT10M",
2919
+ * "enabled": true
2920
+ * },
2921
+ * "maximize_utilization": {
2922
+ * "enabled": true
2923
+ * }
2553
2924
  * },
2554
- * "allow_cancellation": true,
2555
- * "disabled_message": "Cancellation is disabled for this service."
2556
- * },
2557
- * "change_policy_text": "Appointments within 48 hours cannot be canceled or rescheduled online. Please call our office.",
2558
- * "created_at": "2025-02-17T17:49:19Z",
2559
- * "duration": "PT1H30M",
2560
- * "id": "srv_d025a96ac0c6",
2561
- * "name": "Initial Consult",
2562
- * "object": "service",
2563
- * "rescheduling_policy": {
2564
- * "advance_notice": {
2565
- * "enabled": true,
2566
- * "minimum_duration": "PT1H"
2925
+ * "cancellation_policy": {
2926
+ * "advance_notice": {
2927
+ * "enabled": true,
2928
+ * "minimum_duration": "PT1H"
2929
+ * },
2930
+ * "allow_cancellation": true,
2931
+ * "disabled_message": "Cancellation is disabled for this service."
2567
2932
  * },
2568
- * "allow_rescheduling": true,
2569
- * "disabled_message": "Rescheduling is disabled for this service."
2570
- * },
2571
- * "slot_rules": [
2572
- * {
2573
- * "recurrence_rule": {
2574
- * "byday": [
2575
- * "mo",
2576
- * "we",
2577
- * "fr"
2578
- * ],
2579
- * "freq": "weekly"
2933
+ * "change_policy_text": "Appointments within 48 hours cannot be canceled or rescheduled online. Please call our office.",
2934
+ * "created_at": "2025-02-17T17:49:19Z",
2935
+ * "duration": "PT1H30M",
2936
+ * "id": "srv_d025a96ac0c6",
2937
+ * "name": "Initial Consult",
2938
+ * "object": "service",
2939
+ * "rescheduling_policy": {
2940
+ * "advance_notice": {
2941
+ * "enabled": true,
2942
+ * "minimum_duration": "PT1H"
2580
2943
  * },
2581
- * "start_times": [
2582
- * "09:00",
2583
- * "10:00"
2584
- * ]
2585
- * }
2586
- * ],
2587
- * "updated_at": "2025-02-17T17:49:19Z"
2588
- * }
2944
+ * "allow_rescheduling": true,
2945
+ * "disabled_message": "Rescheduling is disabled for this service."
2946
+ * },
2947
+ * "slot_rules": [
2948
+ * {
2949
+ * "recurrence_rule": {
2950
+ * "byday": [
2951
+ * "mo",
2952
+ * "we",
2953
+ * "fr"
2954
+ * ],
2955
+ * "freq": "weekly"
2956
+ * },
2957
+ * "start_times": [
2958
+ * "09:00",
2959
+ * "10:00"
2960
+ * ]
2961
+ * }
2962
+ * ],
2963
+ * "updated_at": "2025-02-17T17:49:19Z"
2964
+ * },
2965
+ * "start_at": {
2966
+ * "local": "2026-02-23T10:00:00-05:00",
2967
+ * "object": "zoned_date_time",
2968
+ * "time_zone": "America/New_York",
2969
+ * "unix_ts": 1771945200,
2970
+ * "utc": "2026-02-23T15:00:00Z"
2971
+ * },
2972
+ * "status": "slot_selected",
2973
+ * "updated_at": "2026-02-22T10:00:00Z"
2974
+ * },
2975
+ * "type": "booking_intent.updated"
2589
2976
  * }
2590
2977
  */
2591
- ServiceResponse: {
2592
- data: components["schemas"]["Service"];
2978
+ BookingIntentUpdatedEventData: {
2979
+ object: components["schemas"]["BookingIntent"];
2980
+ /**
2981
+ * @description The event type. (enum property replaced by openapi-typescript)
2982
+ * @enum {string}
2983
+ */
2984
+ type: "booking_intent.updated";
2593
2985
  };
2594
2986
  /**
2595
2987
  * CreateCancellationReasonRequest
@@ -2970,6 +3362,8 @@ interface components {
2970
3362
  * }
2971
3363
  */
2972
3364
  CompleteBookingIntentRequest: {
3365
+ /** @description When true, automatically assigns an available provider for the selected time slot if no provider_id is specified. */
3366
+ auto_assign_provider?: boolean | null;
2973
3367
  /** @description Progressive client data. Provided fields are merged with existing values. */
2974
3368
  client_data?: {
2975
3369
  email?: string | null;
@@ -3461,6 +3855,136 @@ interface components {
3461
3855
  */
3462
3856
  type: "provider_schedule.deleted";
3463
3857
  };
3858
+ /**
3859
+ * BookingIntentCreatedEventData
3860
+ * @description This is an object representing data for the booking intent created event.
3861
+ * @example {
3862
+ * "object": {
3863
+ * "abandoned_at": null,
3864
+ * "appointment": null,
3865
+ * "client": null,
3866
+ * "client_data": {
3867
+ * "email": "jane@example.com",
3868
+ * "first_name": "Jane",
3869
+ * "last_name": "Doe",
3870
+ * "locale": "en",
3871
+ * "phone": "+15551234567",
3872
+ * "reference_id": "ext_123",
3873
+ * "time_zone": "America/New_York"
3874
+ * },
3875
+ * "completed_at": null,
3876
+ * "created_at": "2026-02-22T10:00:00Z",
3877
+ * "end_at": {
3878
+ * "local": "2026-02-23T10:30:00-05:00",
3879
+ * "object": "zoned_date_time",
3880
+ * "time_zone": "America/New_York",
3881
+ * "unix_ts": 1771947000,
3882
+ * "utc": "2026-02-23T15:30:00Z"
3883
+ * },
3884
+ * "hold_duration": "PT10M",
3885
+ * "hold_enabled": true,
3886
+ * "hold_until": "2026-02-22T10:10:00Z",
3887
+ * "id": "bi_abc123def456abc123def456",
3888
+ * "locked_fields": [
3889
+ * "provider_id",
3890
+ * "start_at",
3891
+ * "end_at",
3892
+ * "time_zone"
3893
+ * ],
3894
+ * "metadata": {
3895
+ * "source": "web"
3896
+ * },
3897
+ * "object": "booking_intent",
3898
+ * "provider": {
3899
+ * "created_at": "2017-09-12T12:34:55Z",
3900
+ * "display_name": "John Smith",
3901
+ * "first_name": "John",
3902
+ * "id": "prov_d025a96ac0c6",
3903
+ * "last_name": "Smith",
3904
+ * "metadata": {
3905
+ * "external_id": "123"
3906
+ * },
3907
+ * "object": "provider",
3908
+ * "updated_at": "2017-09-13T10:11:12Z"
3909
+ * },
3910
+ * "service": {
3911
+ * "appointment_type": "in_person",
3912
+ * "booking_policy": {
3913
+ * "advance_notice": {
3914
+ * "enabled": true,
3915
+ * "minimum_duration": "PT1H"
3916
+ * },
3917
+ * "allow_booking": true,
3918
+ * "disabled_message": "Booking is disabled for this service.",
3919
+ * "hold": {
3920
+ * "duration": "PT10M",
3921
+ * "enabled": true
3922
+ * },
3923
+ * "maximize_utilization": {
3924
+ * "enabled": true
3925
+ * }
3926
+ * },
3927
+ * "cancellation_policy": {
3928
+ * "advance_notice": {
3929
+ * "enabled": true,
3930
+ * "minimum_duration": "PT1H"
3931
+ * },
3932
+ * "allow_cancellation": true,
3933
+ * "disabled_message": "Cancellation is disabled for this service."
3934
+ * },
3935
+ * "change_policy_text": "Appointments within 48 hours cannot be canceled or rescheduled online. Please call our office.",
3936
+ * "created_at": "2025-02-17T17:49:19Z",
3937
+ * "duration": "PT1H30M",
3938
+ * "id": "srv_d025a96ac0c6",
3939
+ * "name": "Initial Consult",
3940
+ * "object": "service",
3941
+ * "rescheduling_policy": {
3942
+ * "advance_notice": {
3943
+ * "enabled": true,
3944
+ * "minimum_duration": "PT1H"
3945
+ * },
3946
+ * "allow_rescheduling": true,
3947
+ * "disabled_message": "Rescheduling is disabled for this service."
3948
+ * },
3949
+ * "slot_rules": [
3950
+ * {
3951
+ * "recurrence_rule": {
3952
+ * "byday": [
3953
+ * "mo",
3954
+ * "we",
3955
+ * "fr"
3956
+ * ],
3957
+ * "freq": "weekly"
3958
+ * },
3959
+ * "start_times": [
3960
+ * "09:00",
3961
+ * "10:00"
3962
+ * ]
3963
+ * }
3964
+ * ],
3965
+ * "updated_at": "2025-02-17T17:49:19Z"
3966
+ * },
3967
+ * "start_at": {
3968
+ * "local": "2026-02-23T10:00:00-05:00",
3969
+ * "object": "zoned_date_time",
3970
+ * "time_zone": "America/New_York",
3971
+ * "unix_ts": 1771945200,
3972
+ * "utc": "2026-02-23T15:00:00Z"
3973
+ * },
3974
+ * "status": "slot_selected",
3975
+ * "updated_at": "2026-02-22T10:00:00Z"
3976
+ * },
3977
+ * "type": "booking_intent.created"
3978
+ * }
3979
+ */
3980
+ BookingIntentCreatedEventData: {
3981
+ object: components["schemas"]["BookingIntent"];
3982
+ /**
3983
+ * @description The event type. (enum property replaced by openapi-typescript)
3984
+ * @enum {string}
3985
+ */
3986
+ type: "booking_intent.created";
3987
+ };
3464
3988
  /**
3465
3989
  * Account
3466
3990
  * @description This is an object representing an account in the app.
@@ -5653,6 +6177,34 @@ interface components {
5653
6177
  * @enum {string}
5654
6178
  */
5655
6179
  type: "block.deleted";
6180
+ } | {
6181
+ object: components["schemas"]["BookingIntent"];
6182
+ /**
6183
+ * @description The event type.
6184
+ * @enum {string}
6185
+ */
6186
+ type: "booking_intent.abandoned";
6187
+ } | {
6188
+ object: components["schemas"]["BookingIntent"];
6189
+ /**
6190
+ * @description The event type.
6191
+ * @enum {string}
6192
+ */
6193
+ type: "booking_intent.completed";
6194
+ } | {
6195
+ object: components["schemas"]["BookingIntent"];
6196
+ /**
6197
+ * @description The event type.
6198
+ * @enum {string}
6199
+ */
6200
+ type: "booking_intent.created";
6201
+ } | {
6202
+ object: components["schemas"]["BookingIntent"];
6203
+ /**
6204
+ * @description The event type.
6205
+ * @enum {string}
6206
+ */
6207
+ type: "booking_intent.updated";
5656
6208
  } | {
5657
6209
  /**
5658
6210
  * Client
@@ -7594,6 +8146,8 @@ interface components {
7594
8146
  * }
7595
8147
  */
7596
8148
  UpdateBookingIntentRequest: {
8149
+ /** @description When true, automatically assigns an available provider for the selected time slot if no provider_id is specified. */
8150
+ auto_assign_provider?: boolean | null;
7597
8151
  /** @description Progressive client data. Provided fields are merged with existing values. */
7598
8152
  client_data?: {
7599
8153
  email?: string | null;
@@ -9411,6 +9965,8 @@ interface components {
9411
9965
  * }
9412
9966
  */
9413
9967
  CompletePublicBookingIntentRequest: {
9968
+ /** @description When true, automatically assigns an available provider for the selected time slot if no provider_id is specified. */
9969
+ auto_assign_provider?: boolean | null;
9414
9970
  /** @description Progressive client data. Provided fields are merged with existing values. */
9415
9971
  client_data?: {
9416
9972
  email?: string | null;
@@ -10893,6 +11449,8 @@ interface components {
10893
11449
  * }
10894
11450
  */
10895
11451
  UpdatePublicBookingIntentRequest: {
11452
+ /** @description When true, automatically assigns an available provider for the selected time slot if no provider_id is specified. */
11453
+ auto_assign_provider?: boolean | null;
10896
11454
  /** @description Progressive client data. Provided fields are merged with existing values. */
10897
11455
  client_data?: {
10898
11456
  email?: string | null;
@@ -11721,6 +12279,8 @@ interface components {
11721
12279
  CreatePublicBookingIntentRequest: {
11722
12280
  /** @description The account ID. */
11723
12281
  account_id: string;
12282
+ /** @description When true, automatically assigns an available provider for the selected time slot if no provider_id is specified. */
12283
+ auto_assign_provider?: boolean | null;
11724
12284
  /** @description Progressive client data to collect during the booking flow. */
11725
12285
  client_data?: {
11726
12286
  email?: string | null;
@@ -18465,8 +19025,12 @@ type BlockResponse = Schemas["BlockResponse"];
18465
19025
  type BlocksResponse = Schemas["BlocksResponse"];
18466
19026
  type BlockUpdatedEventData = Schemas["BlockUpdatedEventData"];
18467
19027
  type BookingIntent = Schemas["BookingIntent"];
19028
+ type BookingIntentAbandonedEventData = Schemas["BookingIntentAbandonedEventData"];
19029
+ type BookingIntentCompletedEventData = Schemas["BookingIntentCompletedEventData"];
19030
+ type BookingIntentCreatedEventData = Schemas["BookingIntentCreatedEventData"];
18468
19031
  type BookingIntentResponse = Schemas["BookingIntentResponse"];
18469
19032
  type BookingIntentsResponse = Schemas["BookingIntentsResponse"];
19033
+ type BookingIntentUpdatedEventData = Schemas["BookingIntentUpdatedEventData"];
18470
19034
  type BookingPolicy = Schemas["BookingPolicy"];
18471
19035
  type CancelAppointmentRequest = Schemas["CancelAppointmentRequest"];
18472
19036
  type CancellationEvent = Schemas["CancellationEvent"];
@@ -18902,6 +19466,7 @@ declare function completeBookingIntent(client: FetchClient, path: PathParams<"/v
18902
19466
  };
18903
19467
  }, {
18904
19468
  body: {
19469
+ auto_assign_provider?: boolean | null;
18905
19470
  client_data?: {
18906
19471
  email?: string | null;
18907
19472
  first_name?: string | null;
@@ -18969,6 +19534,7 @@ declare function completePublicBookingIntent(client: FetchClient, path: PathPara
18969
19534
  };
18970
19535
  }, {
18971
19536
  body: {
19537
+ auto_assign_provider?: boolean | null;
18972
19538
  client_data?: {
18973
19539
  email?: string | null;
18974
19540
  first_name?: string | null;
@@ -19319,6 +19885,7 @@ declare function createBookingIntent(client: FetchClient, body: RequestBody<"/v1
19319
19885
  };
19320
19886
  }, {
19321
19887
  body: {
19888
+ auto_assign_provider?: boolean | null;
19322
19889
  client_data?: {
19323
19890
  email?: string | null;
19324
19891
  first_name?: string | null;
@@ -19686,6 +20253,7 @@ declare function createPublicBookingIntent(client: FetchClient, body: RequestBod
19686
20253
  }, {
19687
20254
  body: {
19688
20255
  account_id: string;
20256
+ auto_assign_provider?: boolean | null;
19689
20257
  client_data?: {
19690
20258
  email?: string | null;
19691
20259
  first_name?: string | null;
@@ -22317,6 +22885,7 @@ declare function updateBookingIntent(client: FetchClient, path: PathParams<"/v1/
22317
22885
  };
22318
22886
  }, {
22319
22887
  body: {
22888
+ auto_assign_provider?: boolean | null;
22320
22889
  client_data?: {
22321
22890
  email?: string | null;
22322
22891
  first_name?: string | null;
@@ -22696,6 +23265,7 @@ declare function updatePublicBookingIntent(client: FetchClient, path: PathParams
22696
23265
  };
22697
23266
  }, {
22698
23267
  body: {
23268
+ auto_assign_provider?: boolean | null;
22699
23269
  client_data?: {
22700
23270
  email?: string | null;
22701
23271
  first_name?: string | null;
@@ -22822,4 +23392,4 @@ declare function updateService(client: FetchClient, path: PathParams<"/v1/servic
22822
23392
  };
22823
23393
  }, `${string}/${string}`>>;
22824
23394
 
22825
- export { type Account, type AccountEvent, type AccountResponse, type AccountUser, type AccountUserCreatedEventData, type AccountUserDeletedEventData, type AccountUserResponse, type AccountUserUpdatedEventData, type AccountUsersResponse, type AccountsResponse, type AdvanceNoticePolicy, type AggregatedSlot, type Appointment, type AppointmentCanceledEventData, type AppointmentConfirmedEventData, type AppointmentCreatedEventData, type AppointmentDeletedEventData, type AppointmentRescheduledEventData, type AppointmentResponse, type AppointmentsResponse, type Block, type BlockCreatedEventData, type BlockDeletedEventData, type BlockResponse, type BlockUpdatedEventData, type BlocksResponse, type BookingIntent, type BookingIntentResponse, type BookingIntentsResponse, type BookingPolicy, type CancelAppointmentRequest, type CancelPublicAppointmentRequest, type CancellationEvent, type CancellationPolicy, type CancellationReason, type CancellationReasonResponse, type CancellationReasonsResponse, type Client, type ClientCreatedEventData, type ClientDeletedEventData, type ClientResponse, type ClientUpdatedEventData, type ClientsResponse, type CompleteBookingIntentRequest, type CompletePublicBookingIntentRequest, type ConfirmAppointmentRequest, type ConfirmationEvent, type ConnectedAccount, type ConnectedAccountCreatedEventData, type ConnectedAccountDeletedEventData, type ConnectedAccountReconnectedEventData, type ConnectedAccountRefreshFailedEventData, type ConnectedAccountResponse, type ConnectedAccountsResponse, type CreateAccountRequest, type CreateAccountUserRequest, type CreateAppointmentRequest, type CreateBlockRequest, type CreateBookingIntentRequest, type CreateCancellationReasonRequest, type CreateClientRequest, type CreateDashboardSessionRequest, type CreateProviderRequest, type CreateProviderScheduleRequest, type CreatePublicAppointmentRequest, type CreatePublicBookingIntentRequest, type CreateServiceProviderRequest, type CreateServiceRequest, type DashboardSession, type DashboardSessionResponse, type FetchClient, type FetchClientOptions, type GenericErrorResponse, type HoldPolicy, type JsonErrorResponse, type MaximizeUtilizationPolicy, type NotFoundResponse, type PaginationMeta, type PathParams, type Platform, type PlatformResponse, type Provider, type ProviderCreatedEventData, type ProviderDeactivatedEventData, type ProviderReactivatedEventData, type ProviderResponse, type ProviderSchedule, type ProviderScheduleCreatedEventData, type ProviderScheduleDeletedEventData, type ProviderScheduleResponse, type ProviderScheduleUpdatedEventData, type ProviderSchedulesResponse, type ProviderUpdatedEventData, type ProvidersResponse, type PublicAppointment, type PublicAppointmentResponse, type PublicBookingIntent, type PublicBookingIntentResponse, type PublicCancellationReason, type PublicCancellationReasonsResponse, type PublicServiceEarliestSlotResponse, type PublicServiceSlotsResponse, type QueryParams, type RecurrenceRule, type RequestBody, type RescheduleAppointmentRequest, type RescheduleEvent, type ReschedulePublicAppointmentRequest, type ReschedulingPolicy, type Role, type RolesResponse, type Service, type ServiceCreatedEventData, type ServiceDeletedEventData, type ServiceProvider, type ServiceProviderCreatedEventData, type ServiceProviderDeletedEventData, type ServiceProviderResponse, type ServiceProvidersResponse, type ServiceResponse, type ServiceSlotResponse, type ServiceUpdatedEventData, type ServicesResponse, type Slot, type SlotRule, type UnauthorizedResponse, type UpdateAccountRequest, type UpdateAccountUserRequest, type UpdateBlockRequest, type UpdateBookingIntentRequest, type UpdateCancellationReasonRequest, type UpdateClientRequest, type UpdateConnectedAccountRequest, type UpdateProviderRequest, type UpdateProviderScheduleRequest, type UpdatePublicBookingIntentRequest, type UpdateServiceRequest, type User, type WeeklyRule, type ZonedDateTime, abandonBookingIntent, abandonPublicBookingIntent, cancelAppointment, cancelPublicAppointment, completeBookingIntent, completePublicBookingIntent, confirmAppointment, createAccount, createAccountUser, createAppointment, createBlock, createBookingIntent, createCancellationReason, createClient, createDashboardSession, createFetchClient, createProvider, createProviderSchedule, createPublicAppointment, createPublicBookingIntent, createService, createServiceProvider, deactivateProvider, deleteBlock, deleteCancellationReason, deleteClient, deleteConnectedAccount, deleteProviderSchedule, deleteService, deleteServiceProvider, getAccountById, getAppointment, getBlock, getBookingIntent, getCancellationReason, getClient, getConnectedAccount, getCurrentAccount, getCurrentAccountUser, getCurrentPlatform, getEarliestPublicServiceSlot, getProvider, getProviderSchedule, getPublicAppointment, getPublicBookingIntent, getService, listAccountUsers, listAccounts, listAppointments, listBlocks, listBookingIntents, listCancellationReasons, listClients, listConnectedAccounts, listProviderSchedules, listProviders, listPublicCancellationReasons, listPublicServiceSlots, listRoles, listServiceProviders, listServiceSlots, listServices, type paths, rescheduleAppointment, reschedulePublicAppointment, updateAccount, updateAccountUser, updateBlock, updateBookingIntent, updateCancellationReason, updateClient, updateConnectedAccount, updateProvider, updateProviderSchedule, updatePublicBookingIntent, updateService };
23395
+ export { type Account, type AccountEvent, type AccountResponse, type AccountUser, type AccountUserCreatedEventData, type AccountUserDeletedEventData, type AccountUserResponse, type AccountUserUpdatedEventData, type AccountUsersResponse, type AccountsResponse, type AdvanceNoticePolicy, type AggregatedSlot, type Appointment, type AppointmentCanceledEventData, type AppointmentConfirmedEventData, type AppointmentCreatedEventData, type AppointmentDeletedEventData, type AppointmentRescheduledEventData, type AppointmentResponse, type AppointmentsResponse, type Block, type BlockCreatedEventData, type BlockDeletedEventData, type BlockResponse, type BlockUpdatedEventData, type BlocksResponse, type BookingIntent, type BookingIntentAbandonedEventData, type BookingIntentCompletedEventData, type BookingIntentCreatedEventData, type BookingIntentResponse, type BookingIntentUpdatedEventData, type BookingIntentsResponse, type BookingPolicy, type CancelAppointmentRequest, type CancelPublicAppointmentRequest, type CancellationEvent, type CancellationPolicy, type CancellationReason, type CancellationReasonResponse, type CancellationReasonsResponse, type Client, type ClientCreatedEventData, type ClientDeletedEventData, type ClientResponse, type ClientUpdatedEventData, type ClientsResponse, type CompleteBookingIntentRequest, type CompletePublicBookingIntentRequest, type ConfirmAppointmentRequest, type ConfirmationEvent, type ConnectedAccount, type ConnectedAccountCreatedEventData, type ConnectedAccountDeletedEventData, type ConnectedAccountReconnectedEventData, type ConnectedAccountRefreshFailedEventData, type ConnectedAccountResponse, type ConnectedAccountsResponse, type CreateAccountRequest, type CreateAccountUserRequest, type CreateAppointmentRequest, type CreateBlockRequest, type CreateBookingIntentRequest, type CreateCancellationReasonRequest, type CreateClientRequest, type CreateDashboardSessionRequest, type CreateProviderRequest, type CreateProviderScheduleRequest, type CreatePublicAppointmentRequest, type CreatePublicBookingIntentRequest, type CreateServiceProviderRequest, type CreateServiceRequest, type DashboardSession, type DashboardSessionResponse, type FetchClient, type FetchClientOptions, type GenericErrorResponse, type HoldPolicy, type JsonErrorResponse, type MaximizeUtilizationPolicy, type NotFoundResponse, type PaginationMeta, type PathParams, type Platform, type PlatformResponse, type Provider, type ProviderCreatedEventData, type ProviderDeactivatedEventData, type ProviderReactivatedEventData, type ProviderResponse, type ProviderSchedule, type ProviderScheduleCreatedEventData, type ProviderScheduleDeletedEventData, type ProviderScheduleResponse, type ProviderScheduleUpdatedEventData, type ProviderSchedulesResponse, type ProviderUpdatedEventData, type ProvidersResponse, type PublicAppointment, type PublicAppointmentResponse, type PublicBookingIntent, type PublicBookingIntentResponse, type PublicCancellationReason, type PublicCancellationReasonsResponse, type PublicServiceEarliestSlotResponse, type PublicServiceSlotsResponse, type QueryParams, type RecurrenceRule, type RequestBody, type RescheduleAppointmentRequest, type RescheduleEvent, type ReschedulePublicAppointmentRequest, type ReschedulingPolicy, type Role, type RolesResponse, type Service, type ServiceCreatedEventData, type ServiceDeletedEventData, type ServiceProvider, type ServiceProviderCreatedEventData, type ServiceProviderDeletedEventData, type ServiceProviderResponse, type ServiceProvidersResponse, type ServiceResponse, type ServiceSlotResponse, type ServiceUpdatedEventData, type ServicesResponse, type Slot, type SlotRule, type UnauthorizedResponse, type UpdateAccountRequest, type UpdateAccountUserRequest, type UpdateBlockRequest, type UpdateBookingIntentRequest, type UpdateCancellationReasonRequest, type UpdateClientRequest, type UpdateConnectedAccountRequest, type UpdateProviderRequest, type UpdateProviderScheduleRequest, type UpdatePublicBookingIntentRequest, type UpdateServiceRequest, type User, type WeeklyRule, type ZonedDateTime, abandonBookingIntent, abandonPublicBookingIntent, cancelAppointment, cancelPublicAppointment, completeBookingIntent, completePublicBookingIntent, confirmAppointment, createAccount, createAccountUser, createAppointment, createBlock, createBookingIntent, createCancellationReason, createClient, createDashboardSession, createFetchClient, createProvider, createProviderSchedule, createPublicAppointment, createPublicBookingIntent, createService, createServiceProvider, deactivateProvider, deleteBlock, deleteCancellationReason, deleteClient, deleteConnectedAccount, deleteProviderSchedule, deleteService, deleteServiceProvider, getAccountById, getAppointment, getBlock, getBookingIntent, getCancellationReason, getClient, getConnectedAccount, getCurrentAccount, getCurrentAccountUser, getCurrentPlatform, getEarliestPublicServiceSlot, getProvider, getProviderSchedule, getPublicAppointment, getPublicBookingIntent, getService, listAccountUsers, listAccounts, listAppointments, listBlocks, listBookingIntents, listCancellationReasons, listClients, listConnectedAccounts, listProviderSchedules, listProviders, listPublicCancellationReasons, listPublicServiceSlots, listRoles, listServiceProviders, listServiceSlots, listServices, type paths, rescheduleAppointment, reschedulePublicAppointment, updateAccount, updateAccountUser, updateBlock, updateBookingIntent, updateCancellationReason, updateClient, updateConnectedAccount, updateProvider, updateProviderSchedule, updatePublicBookingIntent, updateService };