@savvycal/appointments-react-query 0.2.0 → 0.2.1

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
@@ -51,10 +51,10 @@ type GetResponseData<Path extends keyof paths, Method extends HttpMethod, Media
51
51
  type GetResponseError<Path extends keyof paths, Method extends HttpMethod, Media extends MediaType> = Path extends keyof paths ? Method extends keyof paths[Path] ? paths[Path][Method] extends infer Operation ? Operation extends Record<string, any> ? Required<FetchResponse<Operation, MaybeOptionalInit<paths[Path], Method>, Media>>["error"] : never : never : never : never;
52
52
  type QueryKey<Path extends keyof paths, Method extends HttpMethod, Init = MaybeOptionalInit<paths[Path], Method>> = Init extends undefined ? readonly [Method, Path] : readonly [Method, Path, Init];
53
53
 
54
- interface Options$W extends MutationOptionsFor<"post", "/v1/appointments/{appointment_id}/cancel"> {
54
+ interface Options$_ extends MutationOptionsFor<"post", "/v1/appointments/{appointment_id}/cancel"> {
55
55
  client?: QueryClient;
56
56
  }
57
- declare const useCancelAppointment: (options?: Options$W) => _tanstack_react_query.UseMutationResult<{
57
+ declare const useCancelAppointment: (options?: Options$_) => _tanstack_react_query.UseMutationResult<{
58
58
  data: {
59
59
  appointment_type: "in_person" | "virtual";
60
60
  cancellation_events: {
@@ -241,6 +241,7 @@ declare const useCancelAppointment: (options?: Options$W) => _tanstack_react_que
241
241
  cancel: string[];
242
242
  confirm: string[];
243
243
  ics: string[];
244
+ join: string[];
244
245
  reschedule: string[];
245
246
  };
246
247
  };
@@ -437,6 +438,7 @@ declare const useCancelAppointment: (options?: Options$W) => _tanstack_react_que
437
438
  cancel: string[];
438
439
  confirm: string[];
439
440
  ics: string[];
441
+ join: string[];
440
442
  reschedule: string[];
441
443
  };
442
444
  };
@@ -686,6 +688,7 @@ declare const useCancelAppointment: (options?: Options$W) => _tanstack_react_que
686
688
  cancel: string[];
687
689
  confirm: string[];
688
690
  ics: string[];
691
+ join: string[];
689
692
  reschedule: string[];
690
693
  };
691
694
  };
@@ -725,10 +728,10 @@ declare const useCancelAppointment: (options?: Options$W) => _tanstack_react_que
725
728
  };
726
729
  }>>;
727
730
 
728
- interface Options$V extends MutationOptionsFor<"post", "/v1/public/appointments/{appointment_id}/cancel"> {
731
+ interface Options$Z extends MutationOptionsFor<"post", "/v1/public/appointments/{appointment_id}/cancel"> {
729
732
  client?: QueryClient;
730
733
  }
731
- declare const useCancelPublicAppointment: (options?: Options$V) => _tanstack_react_query.UseMutationResult<{
734
+ declare const useCancelPublicAppointment: (options?: Options$Z) => _tanstack_react_query.UseMutationResult<{
732
735
  data: {
733
736
  cancellation: {
734
737
  allowed: boolean;
@@ -871,10 +874,10 @@ declare const useCancelPublicAppointment: (options?: Options$V) => _tanstack_rea
871
874
  };
872
875
  }>>;
873
876
 
874
- interface Options$U extends MutationOptionsFor<"post", "/v1/appointments/{appointment_id}/confirm"> {
877
+ interface Options$Y extends MutationOptionsFor<"post", "/v1/appointments/{appointment_id}/confirm"> {
875
878
  client?: QueryClient;
876
879
  }
877
- declare const useConfirmAppointment: (options?: Options$U) => _tanstack_react_query.UseMutationResult<{
880
+ declare const useConfirmAppointment: (options?: Options$Y) => _tanstack_react_query.UseMutationResult<{
878
881
  data: {
879
882
  appointment_type: "in_person" | "virtual";
880
883
  cancellation_events: {
@@ -1061,6 +1064,7 @@ declare const useConfirmAppointment: (options?: Options$U) => _tanstack_react_qu
1061
1064
  cancel: string[];
1062
1065
  confirm: string[];
1063
1066
  ics: string[];
1067
+ join: string[];
1064
1068
  reschedule: string[];
1065
1069
  };
1066
1070
  };
@@ -1257,6 +1261,7 @@ declare const useConfirmAppointment: (options?: Options$U) => _tanstack_react_qu
1257
1261
  cancel: string[];
1258
1262
  confirm: string[];
1259
1263
  ics: string[];
1264
+ join: string[];
1260
1265
  reschedule: string[];
1261
1266
  };
1262
1267
  };
@@ -1504,6 +1509,7 @@ declare const useConfirmAppointment: (options?: Options$U) => _tanstack_react_qu
1504
1509
  cancel: string[];
1505
1510
  confirm: string[];
1506
1511
  ics: string[];
1512
+ join: string[];
1507
1513
  reschedule: string[];
1508
1514
  };
1509
1515
  };
@@ -1543,10 +1549,10 @@ declare const useConfirmAppointment: (options?: Options$U) => _tanstack_react_qu
1543
1549
  };
1544
1550
  }>>;
1545
1551
 
1546
- interface Options$T extends MutationOptionsFor<"post", "/v1/accounts"> {
1552
+ interface Options$X extends MutationOptionsFor<"post", "/v1/accounts"> {
1547
1553
  client?: QueryClient;
1548
1554
  }
1549
- declare const useCreateAccount: (options?: Options$T) => _tanstack_react_query.UseMutationResult<{
1555
+ declare const useCreateAccount: (options?: Options$X) => _tanstack_react_query.UseMutationResult<{
1550
1556
  data?: {
1551
1557
  created_at: string;
1552
1558
  id: string;
@@ -1694,10 +1700,10 @@ declare const useCreateAccount: (options?: Options$T) => _tanstack_react_query.U
1694
1700
  };
1695
1701
  }> | undefined>;
1696
1702
 
1697
- interface Options$S extends MutationOptionsFor<"post", "/v1/users"> {
1703
+ interface Options$W extends MutationOptionsFor<"post", "/v1/users"> {
1698
1704
  client?: QueryClient;
1699
1705
  }
1700
- declare const useCreateAccountUser: (options?: Options$S) => _tanstack_react_query.UseMutationResult<{
1706
+ declare const useCreateAccountUser: (options?: Options$W) => _tanstack_react_query.UseMutationResult<{
1701
1707
  object: "account_user";
1702
1708
  passive: boolean;
1703
1709
  roles: {
@@ -1791,8 +1797,8 @@ declare const useCreateAccountUser: (options?: Options$S) => _tanstack_react_que
1791
1797
  last_name: string;
1792
1798
  notify: boolean;
1793
1799
  passive: boolean;
1794
- role_ids?: string[];
1795
- time_zone?: string;
1800
+ role_ids: string[];
1801
+ time_zone: string;
1796
1802
  };
1797
1803
  };
1798
1804
  };
@@ -1856,10 +1862,10 @@ declare const useCreateAccountUser: (options?: Options$S) => _tanstack_react_que
1856
1862
  };
1857
1863
  }> | undefined>;
1858
1864
 
1859
- interface Options$R extends MutationOptionsFor<"post", "/v1/appointments"> {
1865
+ interface Options$V extends MutationOptionsFor<"post", "/v1/appointments"> {
1860
1866
  client?: QueryClient;
1861
1867
  }
1862
- declare const useCreateAppointment: (options?: Options$R) => _tanstack_react_query.UseMutationResult<{
1868
+ declare const useCreateAppointment: (options?: Options$V) => _tanstack_react_query.UseMutationResult<{
1863
1869
  data: {
1864
1870
  appointment_type: "in_person" | "virtual";
1865
1871
  cancellation_events: {
@@ -2046,6 +2052,7 @@ declare const useCreateAppointment: (options?: Options$R) => _tanstack_react_que
2046
2052
  cancel: string[];
2047
2053
  confirm: string[];
2048
2054
  ics: string[];
2055
+ join: string[];
2049
2056
  reschedule: string[];
2050
2057
  };
2051
2058
  };
@@ -2242,6 +2249,7 @@ declare const useCreateAppointment: (options?: Options$R) => _tanstack_react_que
2242
2249
  cancel: string[];
2243
2250
  confirm: string[];
2244
2251
  ics: string[];
2252
+ join: string[];
2245
2253
  reschedule: string[];
2246
2254
  };
2247
2255
  };
@@ -2502,6 +2510,7 @@ declare const useCreateAppointment: (options?: Options$R) => _tanstack_react_que
2502
2510
  cancel: string[];
2503
2511
  confirm: string[];
2504
2512
  ics: string[];
2513
+ join: string[];
2505
2514
  reschedule: string[];
2506
2515
  };
2507
2516
  };
@@ -2541,10 +2550,10 @@ declare const useCreateAppointment: (options?: Options$R) => _tanstack_react_que
2541
2550
  };
2542
2551
  }> | undefined>;
2543
2552
 
2544
- interface Options$Q extends MutationOptionsFor<"post", "/v1/blocks"> {
2553
+ interface Options$U extends MutationOptionsFor<"post", "/v1/blocks"> {
2545
2554
  client?: QueryClient;
2546
2555
  }
2547
- declare const useCreateBlock: (options?: Options$Q) => _tanstack_react_query.UseMutationResult<{
2556
+ declare const useCreateBlock: (options?: Options$U) => _tanstack_react_query.UseMutationResult<{
2548
2557
  data: {
2549
2558
  all_day: boolean;
2550
2559
  attachment_type: "location" | "service" | "provider" | "service_provider";
@@ -2733,10 +2742,10 @@ declare const useCreateBlock: (options?: Options$Q) => _tanstack_react_query.Use
2733
2742
  };
2734
2743
  }> | undefined>;
2735
2744
 
2736
- interface Options$P extends MutationOptionsFor<"post", "/v1/cancellation_reasons"> {
2745
+ interface Options$T extends MutationOptionsFor<"post", "/v1/cancellation_reasons"> {
2737
2746
  client?: QueryClient;
2738
2747
  }
2739
- declare const useCreateCancellationReason: (options?: Options$P) => _tanstack_react_query.UseMutationResult<{
2748
+ declare const useCreateCancellationReason: (options?: Options$T) => _tanstack_react_query.UseMutationResult<{
2740
2749
  data: Record<string, never>;
2741
2750
  }, openapi_typescript_helpers.ErrorResponse<{
2742
2751
  201: {
@@ -2839,10 +2848,10 @@ declare const useCreateCancellationReason: (options?: Options$P) => _tanstack_re
2839
2848
  };
2840
2849
  }> | undefined>;
2841
2850
 
2842
- interface Options$O extends MutationOptionsFor<"post", "/v1/clients"> {
2851
+ interface Options$S extends MutationOptionsFor<"post", "/v1/clients"> {
2843
2852
  client?: QueryClient;
2844
2853
  }
2845
- declare const useCreateClient: (options?: Options$O) => _tanstack_react_query.UseMutationResult<{
2854
+ declare const useCreateClient: (options?: Options$S) => _tanstack_react_query.UseMutationResult<{
2846
2855
  data: {
2847
2856
  created_at: string;
2848
2857
  email?: string | null;
@@ -2987,10 +2996,10 @@ declare const useCreateClient: (options?: Options$O) => _tanstack_react_query.Us
2987
2996
  };
2988
2997
  }> | undefined>;
2989
2998
 
2990
- interface Options$N extends MutationOptionsFor<"post", "/v1/dashboard_sessions"> {
2999
+ interface Options$R extends MutationOptionsFor<"post", "/v1/dashboard_sessions"> {
2991
3000
  client?: QueryClient;
2992
3001
  }
2993
- declare const useCreateDashboardSession: (options?: Options$N) => _tanstack_react_query.UseMutationResult<{
3002
+ declare const useCreateDashboardSession: (options?: Options$R) => _tanstack_react_query.UseMutationResult<{
2994
3003
  data: {
2995
3004
  created_at: string;
2996
3005
  id: string;
@@ -3115,10 +3124,10 @@ declare const useCreateDashboardSession: (options?: Options$N) => _tanstack_reac
3115
3124
  };
3116
3125
  }> | undefined>;
3117
3126
 
3118
- interface Options$M extends MutationOptionsFor<"post", "/v1/providers"> {
3127
+ interface Options$Q extends MutationOptionsFor<"post", "/v1/providers"> {
3119
3128
  client?: QueryClient;
3120
3129
  }
3121
- declare const useCreateProvider: (options?: Options$M) => _tanstack_react_query.UseMutationResult<{
3130
+ declare const useCreateProvider: (options?: Options$Q) => _tanstack_react_query.UseMutationResult<{
3122
3131
  data: {
3123
3132
  created_at: string;
3124
3133
  display_name: string;
@@ -3255,10 +3264,10 @@ declare const useCreateProvider: (options?: Options$M) => _tanstack_react_query.
3255
3264
  };
3256
3265
  }> | undefined>;
3257
3266
 
3258
- interface Options$L extends MutationOptionsFor<"post", "/v1/providers/{provider_id}/schedules"> {
3267
+ interface Options$P extends MutationOptionsFor<"post", "/v1/providers/{provider_id}/schedules"> {
3259
3268
  client?: QueryClient;
3260
3269
  }
3261
- declare const useCreateProviderSchedule: (options?: Options$L) => _tanstack_react_query.UseMutationResult<{
3270
+ declare const useCreateProviderSchedule: (options?: Options$P) => _tanstack_react_query.UseMutationResult<{
3262
3271
  data: {
3263
3272
  created_at: string;
3264
3273
  effective_from: string;
@@ -3415,10 +3424,10 @@ declare const useCreateProviderSchedule: (options?: Options$L) => _tanstack_reac
3415
3424
  };
3416
3425
  }> | undefined>;
3417
3426
 
3418
- interface Options$K extends MutationOptionsFor<"post", "/v1/public/appointments"> {
3427
+ interface Options$O extends MutationOptionsFor<"post", "/v1/public/appointments"> {
3419
3428
  client?: QueryClient;
3420
3429
  }
3421
- declare const useCreatePublicAppointment: (options?: Options$K) => _tanstack_react_query.UseMutationResult<{
3430
+ declare const useCreatePublicAppointment: (options?: Options$O) => _tanstack_react_query.UseMutationResult<{
3422
3431
  data: {
3423
3432
  cancellation: {
3424
3433
  allowed: boolean;
@@ -3540,10 +3549,10 @@ declare const useCreatePublicAppointment: (options?: Options$K) => _tanstack_rea
3540
3549
  };
3541
3550
  }> | undefined>;
3542
3551
 
3543
- interface Options$J extends MutationOptionsFor<"post", "/v1/services"> {
3552
+ interface Options$N extends MutationOptionsFor<"post", "/v1/services"> {
3544
3553
  client?: QueryClient;
3545
3554
  }
3546
- declare const useCreateService: (options?: Options$J) => _tanstack_react_query.UseMutationResult<{
3555
+ declare const useCreateService: (options?: Options$N) => _tanstack_react_query.UseMutationResult<{
3547
3556
  data: {
3548
3557
  appointment_type: "in_person" | "virtual";
3549
3558
  booking_policy: {
@@ -3824,10 +3833,10 @@ declare const useCreateService: (options?: Options$J) => _tanstack_react_query.U
3824
3833
  };
3825
3834
  }> | undefined>;
3826
3835
 
3827
- interface Options$I extends MutationOptionsFor<"post", "/v1/services/{service_id}/providers"> {
3836
+ interface Options$M extends MutationOptionsFor<"post", "/v1/services/{service_id}/providers"> {
3828
3837
  client?: QueryClient;
3829
3838
  }
3830
- declare const useCreateServiceProvider: (options?: Options$I) => _tanstack_react_query.UseMutationResult<{
3839
+ declare const useCreateServiceProvider: (options?: Options$M) => _tanstack_react_query.UseMutationResult<{
3831
3840
  data: {
3832
3841
  created_at: string;
3833
3842
  id: string;
@@ -4006,10 +4015,10 @@ declare const useCreateServiceProvider: (options?: Options$I) => _tanstack_react
4006
4015
  };
4007
4016
  }>>;
4008
4017
 
4009
- interface Options$H extends MutationOptionsFor<"delete", "/v1/providers/{provider_id}"> {
4018
+ interface Options$L extends MutationOptionsFor<"delete", "/v1/providers/{provider_id}"> {
4010
4019
  client?: QueryClient;
4011
4020
  }
4012
- declare const useDeactivateProvider: (options?: Options$H) => _tanstack_react_query.UseMutationResult<string, openapi_typescript_helpers.ErrorResponse<{
4021
+ declare const useDeactivateProvider: (options?: Options$L) => _tanstack_react_query.UseMutationResult<string, openapi_typescript_helpers.ErrorResponse<{
4013
4022
  204: {
4014
4023
  headers: {
4015
4024
  [name: string]: unknown;
@@ -4096,10 +4105,10 @@ declare const useDeactivateProvider: (options?: Options$H) => _tanstack_react_qu
4096
4105
  };
4097
4106
  }>>;
4098
4107
 
4099
- interface Options$G extends MutationOptionsFor<"delete", "/v1/blocks/{block_id}"> {
4108
+ interface Options$K extends MutationOptionsFor<"delete", "/v1/blocks/{block_id}"> {
4100
4109
  client?: QueryClient;
4101
4110
  }
4102
- declare const useDeleteBlock: (options?: Options$G) => _tanstack_react_query.UseMutationResult<string, openapi_typescript_helpers.ErrorResponse<{
4111
+ declare const useDeleteBlock: (options?: Options$K) => _tanstack_react_query.UseMutationResult<string, openapi_typescript_helpers.ErrorResponse<{
4103
4112
  204: {
4104
4113
  headers: {
4105
4114
  [name: string]: unknown;
@@ -4186,10 +4195,10 @@ declare const useDeleteBlock: (options?: Options$G) => _tanstack_react_query.Use
4186
4195
  };
4187
4196
  }>>;
4188
4197
 
4189
- interface Options$F extends MutationOptionsFor<"delete", "/v1/cancellation_reasons/{cancellation_reason_id}"> {
4198
+ interface Options$J extends MutationOptionsFor<"delete", "/v1/cancellation_reasons/{cancellation_reason_id}"> {
4190
4199
  client?: QueryClient;
4191
4200
  }
4192
- declare const useDeleteCancellationReason: (options?: Options$F) => _tanstack_react_query.UseMutationResult<string, openapi_typescript_helpers.ErrorResponse<{
4201
+ declare const useDeleteCancellationReason: (options?: Options$J) => _tanstack_react_query.UseMutationResult<string, openapi_typescript_helpers.ErrorResponse<{
4193
4202
  204: {
4194
4203
  headers: {
4195
4204
  [name: string]: unknown;
@@ -4276,10 +4285,10 @@ declare const useDeleteCancellationReason: (options?: Options$F) => _tanstack_re
4276
4285
  };
4277
4286
  }>>;
4278
4287
 
4279
- interface Options$E extends MutationOptionsFor<"delete", "/v1/clients/{client_id}"> {
4288
+ interface Options$I extends MutationOptionsFor<"delete", "/v1/clients/{client_id}"> {
4280
4289
  client?: QueryClient;
4281
4290
  }
4282
- declare const useDeleteClient: (options?: Options$E) => _tanstack_react_query.UseMutationResult<string, openapi_typescript_helpers.ErrorResponse<{
4291
+ declare const useDeleteClient: (options?: Options$I) => _tanstack_react_query.UseMutationResult<string, openapi_typescript_helpers.ErrorResponse<{
4283
4292
  204: {
4284
4293
  headers: {
4285
4294
  [name: string]: unknown;
@@ -4366,10 +4375,100 @@ declare const useDeleteClient: (options?: Options$E) => _tanstack_react_query.Us
4366
4375
  };
4367
4376
  }>>;
4368
4377
 
4369
- interface Options$D extends MutationOptionsFor<"delete", "/v1/provider_schedules/{provider_schedule_id}"> {
4378
+ interface Options$H extends MutationOptionsFor<"delete", "/v1/connected_accounts/{connected_account_id}"> {
4370
4379
  client?: QueryClient;
4371
4380
  }
4372
- declare const useDeleteProviderSchedule: (options?: Options$D) => _tanstack_react_query.UseMutationResult<string, openapi_typescript_helpers.ErrorResponse<{
4381
+ declare const useDeleteConnectedAccount: (options?: Options$H) => _tanstack_react_query.UseMutationResult<string, openapi_typescript_helpers.ErrorResponse<{
4382
+ 204: {
4383
+ headers: {
4384
+ [name: string]: unknown;
4385
+ };
4386
+ content: {
4387
+ "text/plain": string;
4388
+ };
4389
+ };
4390
+ 401: {
4391
+ headers: {
4392
+ [name: string]: unknown;
4393
+ };
4394
+ content: {
4395
+ "application/json": {
4396
+ errors: {
4397
+ detail: string;
4398
+ status?: string;
4399
+ title?: string;
4400
+ }[];
4401
+ };
4402
+ };
4403
+ };
4404
+ 404: {
4405
+ headers: {
4406
+ [name: string]: unknown;
4407
+ };
4408
+ content: {
4409
+ "application/json": {
4410
+ errors: {
4411
+ detail: "Not Found";
4412
+ status: "404";
4413
+ }[];
4414
+ };
4415
+ };
4416
+ };
4417
+ }, `${string}/${string}`>, openapi_fetch.FetchOptions<{
4418
+ parameters: {
4419
+ query?: never;
4420
+ header?: {
4421
+ "X-SavvyCal-Account"?: string;
4422
+ };
4423
+ path: {
4424
+ connected_account_id: string;
4425
+ };
4426
+ cookie?: never;
4427
+ };
4428
+ requestBody?: never;
4429
+ responses: {
4430
+ 204: {
4431
+ headers: {
4432
+ [name: string]: unknown;
4433
+ };
4434
+ content: {
4435
+ "text/plain": string;
4436
+ };
4437
+ };
4438
+ 401: {
4439
+ headers: {
4440
+ [name: string]: unknown;
4441
+ };
4442
+ content: {
4443
+ "application/json": {
4444
+ errors: {
4445
+ detail: string;
4446
+ status?: string;
4447
+ title?: string;
4448
+ }[];
4449
+ };
4450
+ };
4451
+ };
4452
+ 404: {
4453
+ headers: {
4454
+ [name: string]: unknown;
4455
+ };
4456
+ content: {
4457
+ "application/json": {
4458
+ errors: {
4459
+ detail: "Not Found";
4460
+ status: "404";
4461
+ }[];
4462
+ };
4463
+ };
4464
+ };
4465
+ };
4466
+ }>>;
4467
+
4468
+ interface Options$G extends MutationOptionsFor<"delete", "/v1/provider_schedules/{provider_schedule_id}"> {
4469
+ client?: QueryClient;
4470
+ }
4471
+ declare const useDeleteProviderSchedule: (options?: Options$G) => _tanstack_react_query.UseMutationResult<string, openapi_typescript_helpers.ErrorResponse<{
4373
4472
  204: {
4374
4473
  headers: {
4375
4474
  [name: string]: unknown;
@@ -4456,10 +4555,10 @@ declare const useDeleteProviderSchedule: (options?: Options$D) => _tanstack_reac
4456
4555
  };
4457
4556
  }>>;
4458
4557
 
4459
- interface Options$C extends MutationOptionsFor<"delete", "/v1/services/{service_id}"> {
4558
+ interface Options$F extends MutationOptionsFor<"delete", "/v1/services/{service_id}"> {
4460
4559
  client?: QueryClient;
4461
4560
  }
4462
- declare const useDeleteService: (options?: Options$C) => _tanstack_react_query.UseMutationResult<string, openapi_typescript_helpers.ErrorResponse<{
4561
+ declare const useDeleteService: (options?: Options$F) => _tanstack_react_query.UseMutationResult<string, openapi_typescript_helpers.ErrorResponse<{
4463
4562
  204: {
4464
4563
  headers: {
4465
4564
  [name: string]: unknown;
@@ -4546,10 +4645,10 @@ declare const useDeleteService: (options?: Options$C) => _tanstack_react_query.U
4546
4645
  };
4547
4646
  }>>;
4548
4647
 
4549
- interface Options$B extends MutationOptionsFor<"delete", "/v1/service_providers/{service_provider_id}"> {
4648
+ interface Options$E extends MutationOptionsFor<"delete", "/v1/service_providers/{service_provider_id}"> {
4550
4649
  client?: QueryClient;
4551
4650
  }
4552
- declare const useDeleteServiceProvider: (options?: Options$B) => _tanstack_react_query.UseMutationResult<string, openapi_typescript_helpers.ErrorResponse<{
4651
+ declare const useDeleteServiceProvider: (options?: Options$E) => _tanstack_react_query.UseMutationResult<string, openapi_typescript_helpers.ErrorResponse<{
4553
4652
  204: {
4554
4653
  headers: {
4555
4654
  [name: string]: unknown;
@@ -4636,10 +4735,10 @@ declare const useDeleteServiceProvider: (options?: Options$B) => _tanstack_react
4636
4735
  };
4637
4736
  }>>;
4638
4737
 
4639
- interface Options$A extends MutationOptionsFor<"post", "/v1/appointments/{appointment_id}/reschedule"> {
4738
+ interface Options$D extends MutationOptionsFor<"post", "/v1/appointments/{appointment_id}/reschedule"> {
4640
4739
  client?: QueryClient;
4641
4740
  }
4642
- declare const useRescheduleAppointment: (options?: Options$A) => _tanstack_react_query.UseMutationResult<{
4741
+ declare const useRescheduleAppointment: (options?: Options$D) => _tanstack_react_query.UseMutationResult<{
4643
4742
  data: {
4644
4743
  appointment_type: "in_person" | "virtual";
4645
4744
  cancellation_events: {
@@ -4826,6 +4925,7 @@ declare const useRescheduleAppointment: (options?: Options$A) => _tanstack_react
4826
4925
  cancel: string[];
4827
4926
  confirm: string[];
4828
4927
  ics: string[];
4928
+ join: string[];
4829
4929
  reschedule: string[];
4830
4930
  };
4831
4931
  };
@@ -5022,6 +5122,7 @@ declare const useRescheduleAppointment: (options?: Options$A) => _tanstack_react
5022
5122
  cancel: string[];
5023
5123
  confirm: string[];
5024
5124
  ics: string[];
5125
+ join: string[];
5025
5126
  reschedule: string[];
5026
5127
  };
5027
5128
  };
@@ -5273,6 +5374,7 @@ declare const useRescheduleAppointment: (options?: Options$A) => _tanstack_react
5273
5374
  cancel: string[];
5274
5375
  confirm: string[];
5275
5376
  ics: string[];
5377
+ join: string[];
5276
5378
  reschedule: string[];
5277
5379
  };
5278
5380
  };
@@ -5312,10 +5414,10 @@ declare const useRescheduleAppointment: (options?: Options$A) => _tanstack_react
5312
5414
  };
5313
5415
  }>>;
5314
5416
 
5315
- interface Options$z extends MutationOptionsFor<"post", "/v1/public/appointments/{appointment_id}/reschedule"> {
5417
+ interface Options$C extends MutationOptionsFor<"post", "/v1/public/appointments/{appointment_id}/reschedule"> {
5316
5418
  client?: QueryClient;
5317
5419
  }
5318
- declare const useReschedulePublicAppointment: (options?: Options$z) => _tanstack_react_query.UseMutationResult<{
5420
+ declare const useReschedulePublicAppointment: (options?: Options$C) => _tanstack_react_query.UseMutationResult<{
5319
5421
  data: {
5320
5422
  cancellation: {
5321
5423
  allowed: boolean;
@@ -5460,10 +5562,10 @@ declare const useReschedulePublicAppointment: (options?: Options$z) => _tanstack
5460
5562
  };
5461
5563
  }>>;
5462
5564
 
5463
- interface Options$y extends MutationOptionsFor<"patch", "/v1/accounts/{account_id}"> {
5565
+ interface Options$B extends MutationOptionsFor<"patch", "/v1/accounts/{account_id}"> {
5464
5566
  client?: QueryClient;
5465
5567
  }
5466
- declare const useUpdateAccount: (options?: Options$y) => _tanstack_react_query.UseMutationResult<{
5568
+ declare const useUpdateAccount: (options?: Options$B) => _tanstack_react_query.UseMutationResult<{
5467
5569
  data?: {
5468
5570
  created_at: string;
5469
5571
  id: string;
@@ -5610,10 +5712,10 @@ declare const useUpdateAccount: (options?: Options$y) => _tanstack_react_query.U
5610
5712
  };
5611
5713
  }>>;
5612
5714
 
5613
- interface Options$x extends MutationOptionsFor<"patch", "/v1/users/{user_id}"> {
5715
+ interface Options$A extends MutationOptionsFor<"patch", "/v1/users/{user_id}"> {
5614
5716
  client?: QueryClient;
5615
5717
  }
5616
- declare const useUpdateAccountUser: (options?: Options$x) => _tanstack_react_query.UseMutationResult<{
5718
+ declare const useUpdateAccountUser: (options?: Options$A) => _tanstack_react_query.UseMutationResult<{
5617
5719
  object: "account_user";
5618
5720
  passive: boolean;
5619
5721
  roles: {
@@ -5716,7 +5818,12 @@ declare const useUpdateAccountUser: (options?: Options$x) => _tanstack_react_que
5716
5818
  requestBody?: {
5717
5819
  content: {
5718
5820
  "application/json": {
5821
+ email?: string;
5822
+ first_name?: string;
5823
+ last_name?: string;
5719
5824
  passive?: boolean;
5825
+ role_ids?: string[];
5826
+ time_zone?: string;
5720
5827
  };
5721
5828
  };
5722
5829
  };
@@ -5794,10 +5901,10 @@ declare const useUpdateAccountUser: (options?: Options$x) => _tanstack_react_que
5794
5901
  };
5795
5902
  }>>;
5796
5903
 
5797
- interface Options$w extends MutationOptionsFor<"patch", "/v1/blocks/{block_id}"> {
5904
+ interface Options$z extends MutationOptionsFor<"patch", "/v1/blocks/{block_id}"> {
5798
5905
  client?: QueryClient;
5799
5906
  }
5800
- declare const useUpdateBlock: (options?: Options$w) => _tanstack_react_query.UseMutationResult<{
5907
+ declare const useUpdateBlock: (options?: Options$z) => _tanstack_react_query.UseMutationResult<{
5801
5908
  data: {
5802
5909
  all_day: boolean;
5803
5910
  attachment_type: "location" | "service" | "provider" | "service_provider";
@@ -5986,10 +6093,10 @@ declare const useUpdateBlock: (options?: Options$w) => _tanstack_react_query.Use
5986
6093
  };
5987
6094
  }> | undefined>;
5988
6095
 
5989
- interface Options$v extends MutationOptionsFor<"patch", "/v1/cancellation_reasons/{cancellation_reason_id}"> {
6096
+ interface Options$y extends MutationOptionsFor<"patch", "/v1/cancellation_reasons/{cancellation_reason_id}"> {
5990
6097
  client?: QueryClient;
5991
6098
  }
5992
- declare const useUpdateCancellationReason: (options?: Options$v) => _tanstack_react_query.UseMutationResult<{
6099
+ declare const useUpdateCancellationReason: (options?: Options$y) => _tanstack_react_query.UseMutationResult<{
5993
6100
  data: Record<string, never>;
5994
6101
  }, openapi_typescript_helpers.ErrorResponse<{
5995
6102
  200: {
@@ -6120,10 +6227,10 @@ declare const useUpdateCancellationReason: (options?: Options$v) => _tanstack_re
6120
6227
  };
6121
6228
  }>>;
6122
6229
 
6123
- interface Options$u extends MutationOptionsFor<"patch", "/v1/clients/{client_id}"> {
6230
+ interface Options$x extends MutationOptionsFor<"patch", "/v1/clients/{client_id}"> {
6124
6231
  client?: QueryClient;
6125
6232
  }
6126
- declare const useUpdateClient: (options?: Options$u) => _tanstack_react_query.UseMutationResult<{
6233
+ declare const useUpdateClient: (options?: Options$x) => _tanstack_react_query.UseMutationResult<{
6127
6234
  data: {
6128
6235
  created_at: string;
6129
6236
  email?: string | null;
@@ -6296,10 +6403,183 @@ declare const useUpdateClient: (options?: Options$u) => _tanstack_react_query.Us
6296
6403
  };
6297
6404
  }>>;
6298
6405
 
6299
- interface Options$t extends MutationOptionsFor<"patch", "/v1/providers/{provider_id}"> {
6406
+ interface Options$w extends MutationOptionsFor<"patch", "/v1/connected_accounts/{connected_account_id}"> {
6300
6407
  client?: QueryClient;
6301
6408
  }
6302
- declare const useUpdateProvider: (options?: Options$t) => _tanstack_react_query.UseMutationResult<{
6409
+ declare const useUpdateConnectedAccount: (options?: Options$w) => _tanstack_react_query.UseMutationResult<{
6410
+ data: {
6411
+ connection_scope: "user" | "account";
6412
+ created_at: string;
6413
+ display_name: string | null;
6414
+ email: string;
6415
+ external_account_id: string | null;
6416
+ external_subject: string;
6417
+ id: string;
6418
+ object: "connected_account";
6419
+ provider: "google" | "microsoft" | "zoom_admin";
6420
+ status: "active" | "reconnect_required" | "insufficient_permissions";
6421
+ updated_at: string;
6422
+ user_id: string | null;
6423
+ };
6424
+ }, openapi_typescript_helpers.ErrorResponse<{
6425
+ 200: {
6426
+ headers: {
6427
+ [name: string]: unknown;
6428
+ };
6429
+ content: {
6430
+ "application/json": {
6431
+ data: {
6432
+ connection_scope: "user" | "account";
6433
+ created_at: string;
6434
+ display_name: string | null;
6435
+ email: string;
6436
+ external_account_id: string | null;
6437
+ external_subject: string;
6438
+ id: string;
6439
+ object: "connected_account";
6440
+ provider: "google" | "microsoft" | "zoom_admin";
6441
+ status: "active" | "reconnect_required" | "insufficient_permissions";
6442
+ updated_at: string;
6443
+ user_id: string | null;
6444
+ };
6445
+ };
6446
+ };
6447
+ };
6448
+ 401: {
6449
+ headers: {
6450
+ [name: string]: unknown;
6451
+ };
6452
+ content: {
6453
+ "application/json": {
6454
+ errors: {
6455
+ detail: string;
6456
+ status?: string;
6457
+ title?: string;
6458
+ }[];
6459
+ };
6460
+ };
6461
+ };
6462
+ 404: {
6463
+ headers: {
6464
+ [name: string]: unknown;
6465
+ };
6466
+ content: {
6467
+ "application/json": {
6468
+ errors: {
6469
+ detail: "Not Found";
6470
+ status: "404";
6471
+ }[];
6472
+ };
6473
+ };
6474
+ };
6475
+ 422: {
6476
+ headers: {
6477
+ [name: string]: unknown;
6478
+ };
6479
+ content: {
6480
+ "application/json": {
6481
+ errors: {
6482
+ detail: string;
6483
+ source: {
6484
+ pointer: string;
6485
+ };
6486
+ title: string;
6487
+ }[];
6488
+ };
6489
+ };
6490
+ };
6491
+ }, `${string}/${string}`>, openapi_fetch.FetchOptions<{
6492
+ parameters: {
6493
+ query?: never;
6494
+ header?: {
6495
+ "X-SavvyCal-Account"?: string;
6496
+ };
6497
+ path: {
6498
+ connected_account_id: string;
6499
+ };
6500
+ cookie?: never;
6501
+ };
6502
+ requestBody?: {
6503
+ content: {
6504
+ "application/json": {
6505
+ display_name?: string | null;
6506
+ };
6507
+ };
6508
+ };
6509
+ responses: {
6510
+ 200: {
6511
+ headers: {
6512
+ [name: string]: unknown;
6513
+ };
6514
+ content: {
6515
+ "application/json": {
6516
+ data: {
6517
+ connection_scope: "user" | "account";
6518
+ created_at: string;
6519
+ display_name: string | null;
6520
+ email: string;
6521
+ external_account_id: string | null;
6522
+ external_subject: string;
6523
+ id: string;
6524
+ object: "connected_account";
6525
+ provider: "google" | "microsoft" | "zoom_admin";
6526
+ status: "active" | "reconnect_required" | "insufficient_permissions";
6527
+ updated_at: string;
6528
+ user_id: string | null;
6529
+ };
6530
+ };
6531
+ };
6532
+ };
6533
+ 401: {
6534
+ headers: {
6535
+ [name: string]: unknown;
6536
+ };
6537
+ content: {
6538
+ "application/json": {
6539
+ errors: {
6540
+ detail: string;
6541
+ status?: string;
6542
+ title?: string;
6543
+ }[];
6544
+ };
6545
+ };
6546
+ };
6547
+ 404: {
6548
+ headers: {
6549
+ [name: string]: unknown;
6550
+ };
6551
+ content: {
6552
+ "application/json": {
6553
+ errors: {
6554
+ detail: "Not Found";
6555
+ status: "404";
6556
+ }[];
6557
+ };
6558
+ };
6559
+ };
6560
+ 422: {
6561
+ headers: {
6562
+ [name: string]: unknown;
6563
+ };
6564
+ content: {
6565
+ "application/json": {
6566
+ errors: {
6567
+ detail: string;
6568
+ source: {
6569
+ pointer: string;
6570
+ };
6571
+ title: string;
6572
+ }[];
6573
+ };
6574
+ };
6575
+ };
6576
+ };
6577
+ }>>;
6578
+
6579
+ interface Options$v extends MutationOptionsFor<"patch", "/v1/providers/{provider_id}"> {
6580
+ client?: QueryClient;
6581
+ }
6582
+ declare const useUpdateProvider: (options?: Options$v) => _tanstack_react_query.UseMutationResult<{
6303
6583
  data: {
6304
6584
  created_at: string;
6305
6585
  display_name: string;
@@ -6460,10 +6740,10 @@ declare const useUpdateProvider: (options?: Options$t) => _tanstack_react_query.
6460
6740
  };
6461
6741
  }>>;
6462
6742
 
6463
- interface Options$s extends MutationOptionsFor<"patch", "/v1/provider_schedules/{provider_schedule_id}"> {
6743
+ interface Options$u extends MutationOptionsFor<"patch", "/v1/provider_schedules/{provider_schedule_id}"> {
6464
6744
  client?: QueryClient;
6465
6745
  }
6466
- declare const useUpdateProviderSchedule: (options?: Options$s) => _tanstack_react_query.UseMutationResult<{
6746
+ declare const useUpdateProviderSchedule: (options?: Options$u) => _tanstack_react_query.UseMutationResult<{
6467
6747
  data: {
6468
6748
  created_at: string;
6469
6749
  effective_from: string;
@@ -6620,10 +6900,10 @@ declare const useUpdateProviderSchedule: (options?: Options$s) => _tanstack_reac
6620
6900
  };
6621
6901
  }> | undefined>;
6622
6902
 
6623
- interface Options$r extends MutationOptionsFor<"patch", "/v1/services/{service_id}"> {
6903
+ interface Options$t extends MutationOptionsFor<"patch", "/v1/services/{service_id}"> {
6624
6904
  client?: QueryClient;
6625
6905
  }
6626
- declare const useUpdateService: (options?: Options$r) => _tanstack_react_query.UseMutationResult<{
6906
+ declare const useUpdateService: (options?: Options$t) => _tanstack_react_query.UseMutationResult<{
6627
6907
  data: {
6628
6908
  appointment_type: "in_person" | "virtual";
6629
6909
  booking_policy: {
@@ -6958,10 +7238,10 @@ declare const useSavvyCalQueryClient: (overrideClient?: QueryClient) => openapi_
6958
7238
  declare const useSavvyCalFetchClient: (overrideClient?: FetchClient) => openapi_fetch.Client<_savvycal_appointments_core.paths, `${string}/${string}`>;
6959
7239
 
6960
7240
  type AccountByIdParams = paths["/v1/accounts/{account_id}"]["get"]["parameters"];
6961
- interface Options$q extends QueryOptionsFor<"get", "/v1/accounts/{account_id}"> {
7241
+ interface Options$s extends QueryOptionsFor<"get", "/v1/accounts/{account_id}"> {
6962
7242
  client?: QueryClient;
6963
7243
  }
6964
- declare const useAccountById: (account_id: AccountByIdParams["path"]["account_id"], options?: Options$q) => _tanstack_react_query.UseQueryResult<{
7244
+ declare const useAccountById: (account_id: AccountByIdParams["path"]["account_id"], options?: Options$s) => _tanstack_react_query.UseQueryResult<{
6965
7245
  data?: {
6966
7246
  created_at: string;
6967
7247
  id: string;
@@ -7015,10 +7295,10 @@ declare const useAccountById: (account_id: AccountByIdParams["path"]["account_id
7015
7295
  };
7016
7296
  }, `${string}/${string}`>>;
7017
7297
 
7018
- interface Options$p extends QueryOptionsFor<"get", "/v1/users"> {
7298
+ interface Options$r extends QueryOptionsFor<"get", "/v1/users"> {
7019
7299
  client?: QueryClient;
7020
7300
  }
7021
- declare const useAccountUsers: (options?: Options$p) => _tanstack_react_query.UseQueryResult<{
7301
+ declare const useAccountUsers: (options?: Options$r) => _tanstack_react_query.UseQueryResult<{
7022
7302
  data?: {
7023
7303
  object: "account_user";
7024
7304
  passive: boolean;
@@ -7100,10 +7380,10 @@ declare const useAccountUsers: (options?: Options$p) => _tanstack_react_query.Us
7100
7380
  }, `${string}/${string}`>>;
7101
7381
 
7102
7382
  type AccountsParams = paths["/v1/accounts"]["get"]["parameters"];
7103
- interface Options$o extends QueryOptionsFor<"get", "/v1/accounts"> {
7383
+ interface Options$q extends QueryOptionsFor<"get", "/v1/accounts"> {
7104
7384
  client?: QueryClient;
7105
7385
  }
7106
- declare const useAccounts: (queryParams?: AccountsParams["query"], options?: Options$o) => _tanstack_react_query.UseQueryResult<{
7386
+ declare const useAccounts: (queryParams?: AccountsParams["query"], options?: Options$q) => _tanstack_react_query.UseQueryResult<{
7107
7387
  data: {
7108
7388
  created_at: string;
7109
7389
  id: string;
@@ -7187,10 +7467,10 @@ declare const useAccounts: (queryParams?: AccountsParams["query"], options?: Opt
7187
7467
  }, `${string}/${string}`>>;
7188
7468
 
7189
7469
  type AppointmentParams = paths["/v1/appointments/{appointment_id}"]["get"]["parameters"];
7190
- interface Options$n extends QueryOptionsFor<"get", "/v1/appointments/{appointment_id}"> {
7470
+ interface Options$p extends QueryOptionsFor<"get", "/v1/appointments/{appointment_id}"> {
7191
7471
  client?: QueryClient;
7192
7472
  }
7193
- declare const useAppointment: (appointment_id: AppointmentParams["path"]["appointment_id"], queryParams?: AppointmentParams["query"], options?: Options$n) => _tanstack_react_query.UseQueryResult<{
7473
+ declare const useAppointment: (appointment_id: AppointmentParams["path"]["appointment_id"], queryParams?: AppointmentParams["query"], options?: Options$p) => _tanstack_react_query.UseQueryResult<{
7194
7474
  data: {
7195
7475
  appointment_type: "in_person" | "virtual";
7196
7476
  cancellation_events: {
@@ -7377,6 +7657,7 @@ declare const useAppointment: (appointment_id: AppointmentParams["path"]["appoin
7377
7657
  cancel: string[];
7378
7658
  confirm: string[];
7379
7659
  ics: string[];
7660
+ join: string[];
7380
7661
  reschedule: string[];
7381
7662
  };
7382
7663
  };
@@ -7573,6 +7854,7 @@ declare const useAppointment: (appointment_id: AppointmentParams["path"]["appoin
7573
7854
  cancel: string[];
7574
7855
  confirm: string[];
7575
7856
  ics: string[];
7857
+ join: string[];
7576
7858
  reschedule: string[];
7577
7859
  };
7578
7860
  };
@@ -7612,10 +7894,10 @@ declare const useAppointment: (appointment_id: AppointmentParams["path"]["appoin
7612
7894
  }, `${string}/${string}`>>;
7613
7895
 
7614
7896
  type AppointmentsParams = paths["/v1/appointments"]["get"]["parameters"];
7615
- interface Options$m extends QueryOptionsFor<"get", "/v1/appointments"> {
7897
+ interface Options$o extends QueryOptionsFor<"get", "/v1/appointments"> {
7616
7898
  client?: QueryClient;
7617
7899
  }
7618
- declare const useAppointments: (queryParams?: AppointmentsParams["query"], options?: Options$m) => _tanstack_react_query.UseQueryResult<{
7900
+ declare const useAppointments: (queryParams?: AppointmentsParams["query"], options?: Options$o) => _tanstack_react_query.UseQueryResult<{
7619
7901
  data: {
7620
7902
  appointment_type: "in_person" | "virtual";
7621
7903
  cancellation_events: {
@@ -7802,6 +8084,7 @@ declare const useAppointments: (queryParams?: AppointmentsParams["query"], optio
7802
8084
  cancel: string[];
7803
8085
  confirm: string[];
7804
8086
  ics: string[];
8087
+ join: string[];
7805
8088
  reschedule: string[];
7806
8089
  };
7807
8090
  }[];
@@ -8004,6 +8287,7 @@ declare const useAppointments: (queryParams?: AppointmentsParams["query"], optio
8004
8287
  cancel: string[];
8005
8288
  confirm: string[];
8006
8289
  ics: string[];
8290
+ join: string[];
8007
8291
  reschedule: string[];
8008
8292
  };
8009
8293
  }[];
@@ -8049,10 +8333,10 @@ declare const useAppointments: (queryParams?: AppointmentsParams["query"], optio
8049
8333
  }, `${string}/${string}`>>;
8050
8334
 
8051
8335
  type BlockParams = paths["/v1/blocks/{block_id}"]["get"]["parameters"];
8052
- interface Options$l extends QueryOptionsFor<"get", "/v1/blocks/{block_id}"> {
8336
+ interface Options$n extends QueryOptionsFor<"get", "/v1/blocks/{block_id}"> {
8053
8337
  client?: QueryClient;
8054
8338
  }
8055
- declare const useBlock: (block_id: BlockParams["path"]["block_id"], options?: Options$l) => _tanstack_react_query.UseQueryResult<{
8339
+ declare const useBlock: (block_id: BlockParams["path"]["block_id"], options?: Options$n) => _tanstack_react_query.UseQueryResult<{
8056
8340
  data: {
8057
8341
  all_day: boolean;
8058
8342
  attachment_type: "location" | "service" | "provider" | "service_provider";
@@ -8141,10 +8425,10 @@ declare const useBlock: (block_id: BlockParams["path"]["block_id"], options?: Op
8141
8425
  }, `${string}/${string}`>>;
8142
8426
 
8143
8427
  type BlocksParams = paths["/v1/blocks"]["get"]["parameters"];
8144
- interface Options$k extends QueryOptionsFor<"get", "/v1/blocks"> {
8428
+ interface Options$m extends QueryOptionsFor<"get", "/v1/blocks"> {
8145
8429
  client?: QueryClient;
8146
8430
  }
8147
- declare const useBlocks: (queryParams?: BlocksParams["query"], options?: Options$k) => _tanstack_react_query.UseQueryResult<{
8431
+ declare const useBlocks: (queryParams?: BlocksParams["query"], options?: Options$m) => _tanstack_react_query.UseQueryResult<{
8148
8432
  data: {
8149
8433
  all_day: boolean;
8150
8434
  attachment_type: "location" | "service" | "provider" | "service_provider";
@@ -8248,10 +8532,10 @@ declare const useBlocks: (queryParams?: BlocksParams["query"], options?: Options
8248
8532
  }, `${string}/${string}`>>;
8249
8533
 
8250
8534
  type CancellationReasonParams = paths["/v1/cancellation_reasons/{cancellation_reason_id}"]["get"]["parameters"];
8251
- interface Options$j extends QueryOptionsFor<"get", "/v1/cancellation_reasons/{cancellation_reason_id}"> {
8535
+ interface Options$l extends QueryOptionsFor<"get", "/v1/cancellation_reasons/{cancellation_reason_id}"> {
8252
8536
  client?: QueryClient;
8253
8537
  }
8254
- declare const useCancellationReason: (cancellation_reason_id: CancellationReasonParams["path"]["cancellation_reason_id"], options?: Options$j) => _tanstack_react_query.UseQueryResult<{
8538
+ declare const useCancellationReason: (cancellation_reason_id: CancellationReasonParams["path"]["cancellation_reason_id"], options?: Options$l) => _tanstack_react_query.UseQueryResult<{
8255
8539
  data: Record<string, never>;
8256
8540
  }, openapi_typescript_helpers.ErrorResponse<{
8257
8541
  200: {
@@ -8293,10 +8577,10 @@ declare const useCancellationReason: (cancellation_reason_id: CancellationReason
8293
8577
  };
8294
8578
  }, `${string}/${string}`>>;
8295
8579
 
8296
- interface Options$i extends QueryOptionsFor<"get", "/v1/cancellation_reasons"> {
8580
+ interface Options$k extends QueryOptionsFor<"get", "/v1/cancellation_reasons"> {
8297
8581
  client?: QueryClient;
8298
8582
  }
8299
- declare const useCancellationReasons: (options?: Options$i) => _tanstack_react_query.UseQueryResult<{
8583
+ declare const useCancellationReasons: (options?: Options$k) => _tanstack_react_query.UseQueryResult<{
8300
8584
  data: ({
8301
8585
  id: string;
8302
8586
  name: string;
@@ -8352,10 +8636,10 @@ declare const useCancellationReasons: (options?: Options$i) => _tanstack_react_q
8352
8636
  }, `${string}/${string}`>>;
8353
8637
 
8354
8638
  type ClientParams = paths["/v1/clients/{client_id}"]["get"]["parameters"];
8355
- interface Options$h extends QueryOptionsFor<"get", "/v1/clients/{client_id}"> {
8639
+ interface Options$j extends QueryOptionsFor<"get", "/v1/clients/{client_id}"> {
8356
8640
  client?: QueryClient;
8357
8641
  }
8358
- declare const useClient: (client_id: ClientParams["path"]["client_id"], options?: Options$h) => _tanstack_react_query.UseQueryResult<{
8642
+ declare const useClient: (client_id: ClientParams["path"]["client_id"], options?: Options$j) => _tanstack_react_query.UseQueryResult<{
8359
8643
  data: {
8360
8644
  created_at: string;
8361
8645
  email?: string | null;
@@ -8422,10 +8706,10 @@ declare const useClient: (client_id: ClientParams["path"]["client_id"], options?
8422
8706
  }, `${string}/${string}`>>;
8423
8707
 
8424
8708
  type ClientsParams = paths["/v1/clients"]["get"]["parameters"];
8425
- interface Options$g extends QueryOptionsFor<"get", "/v1/clients"> {
8709
+ interface Options$i extends QueryOptionsFor<"get", "/v1/clients"> {
8426
8710
  client?: QueryClient;
8427
8711
  }
8428
- declare const useClients: (queryParams?: ClientsParams["query"], options?: Options$g) => _tanstack_react_query.UseQueryResult<{
8712
+ declare const useClients: (queryParams?: ClientsParams["query"], options?: Options$i) => _tanstack_react_query.UseQueryResult<{
8429
8713
  data: {
8430
8714
  created_at: string;
8431
8715
  email?: string | null;
@@ -8506,6 +8790,165 @@ declare const useClients: (queryParams?: ClientsParams["query"], options?: Optio
8506
8790
  };
8507
8791
  }, `${string}/${string}`>>;
8508
8792
 
8793
+ type ConnectedAccountParams = paths["/v1/connected_accounts/{connected_account_id}"]["get"]["parameters"];
8794
+ interface Options$h extends QueryOptionsFor<"get", "/v1/connected_accounts/{connected_account_id}"> {
8795
+ client?: QueryClient;
8796
+ }
8797
+ declare const useConnectedAccount: (connected_account_id: ConnectedAccountParams["path"]["connected_account_id"], options?: Options$h) => _tanstack_react_query.UseQueryResult<{
8798
+ data: {
8799
+ connection_scope: "user" | "account";
8800
+ created_at: string;
8801
+ display_name: string | null;
8802
+ email: string;
8803
+ external_account_id: string | null;
8804
+ external_subject: string;
8805
+ id: string;
8806
+ object: "connected_account";
8807
+ provider: "google" | "microsoft" | "zoom_admin";
8808
+ status: "active" | "reconnect_required" | "insufficient_permissions";
8809
+ updated_at: string;
8810
+ user_id: string | null;
8811
+ };
8812
+ }, openapi_typescript_helpers.ErrorResponse<{
8813
+ 200: {
8814
+ headers: {
8815
+ [name: string]: unknown;
8816
+ };
8817
+ content: {
8818
+ "application/json": {
8819
+ data: {
8820
+ connection_scope: "user" | "account";
8821
+ created_at: string;
8822
+ display_name: string | null;
8823
+ email: string;
8824
+ external_account_id: string | null;
8825
+ external_subject: string;
8826
+ id: string;
8827
+ object: "connected_account";
8828
+ provider: "google" | "microsoft" | "zoom_admin";
8829
+ status: "active" | "reconnect_required" | "insufficient_permissions";
8830
+ updated_at: string;
8831
+ user_id: string | null;
8832
+ };
8833
+ };
8834
+ };
8835
+ };
8836
+ 401: {
8837
+ headers: {
8838
+ [name: string]: unknown;
8839
+ };
8840
+ content: {
8841
+ "application/json": {
8842
+ errors: {
8843
+ detail: string;
8844
+ status?: string;
8845
+ title?: string;
8846
+ }[];
8847
+ };
8848
+ };
8849
+ };
8850
+ 404: {
8851
+ headers: {
8852
+ [name: string]: unknown;
8853
+ };
8854
+ content: {
8855
+ "application/json": {
8856
+ errors: {
8857
+ detail: "Not Found";
8858
+ status: "404";
8859
+ }[];
8860
+ };
8861
+ };
8862
+ };
8863
+ }, `${string}/${string}`>>;
8864
+
8865
+ type ConnectedAccountsParams = paths["/v1/connected_accounts"]["get"]["parameters"];
8866
+ interface Options$g extends QueryOptionsFor<"get", "/v1/connected_accounts"> {
8867
+ client?: QueryClient;
8868
+ }
8869
+ declare const useConnectedAccounts: (queryParams?: ConnectedAccountsParams["query"], options?: Options$g) => _tanstack_react_query.UseQueryResult<{
8870
+ data: {
8871
+ connection_scope: "user" | "account";
8872
+ created_at: string;
8873
+ display_name: string | null;
8874
+ email: string;
8875
+ external_account_id: string | null;
8876
+ external_subject: string;
8877
+ id: string;
8878
+ object: "connected_account";
8879
+ provider: "google" | "microsoft" | "zoom_admin";
8880
+ status: "active" | "reconnect_required" | "insufficient_permissions";
8881
+ updated_at: string;
8882
+ user_id: string | null;
8883
+ }[];
8884
+ meta: {
8885
+ current_page: number;
8886
+ page_size: number;
8887
+ total_count: number;
8888
+ total_pages: number;
8889
+ };
8890
+ }, openapi_typescript_helpers.ErrorResponse<{
8891
+ 200: {
8892
+ headers: {
8893
+ [name: string]: unknown;
8894
+ };
8895
+ content: {
8896
+ "application/json": {
8897
+ data: {
8898
+ connection_scope: "user" | "account";
8899
+ created_at: string;
8900
+ display_name: string | null;
8901
+ email: string;
8902
+ external_account_id: string | null;
8903
+ external_subject: string;
8904
+ id: string;
8905
+ object: "connected_account";
8906
+ provider: "google" | "microsoft" | "zoom_admin";
8907
+ status: "active" | "reconnect_required" | "insufficient_permissions";
8908
+ updated_at: string;
8909
+ user_id: string | null;
8910
+ }[];
8911
+ meta: {
8912
+ current_page: number;
8913
+ page_size: number;
8914
+ total_count: number;
8915
+ total_pages: number;
8916
+ };
8917
+ };
8918
+ };
8919
+ };
8920
+ 401: {
8921
+ headers: {
8922
+ [name: string]: unknown;
8923
+ };
8924
+ content: {
8925
+ "application/json": {
8926
+ errors: {
8927
+ detail: string;
8928
+ status?: string;
8929
+ title?: string;
8930
+ }[];
8931
+ };
8932
+ };
8933
+ };
8934
+ 422: {
8935
+ headers: {
8936
+ [name: string]: unknown;
8937
+ };
8938
+ content: {
8939
+ "application/json": {
8940
+ errors: {
8941
+ detail: string;
8942
+ source: {
8943
+ pointer: string;
8944
+ };
8945
+ title: string;
8946
+ }[];
8947
+ };
8948
+ };
8949
+ };
8950
+ }, `${string}/${string}`>>;
8951
+
8509
8952
  interface Options$f extends QueryOptionsFor<"get", "/v1/account"> {
8510
8953
  client?: QueryClient;
8511
8954
  }
@@ -9789,4 +10232,4 @@ declare const useServices: (queryParams?: ServicesParams["query"], options?: Opt
9789
10232
  };
9790
10233
  }, `${string}/${string}`>>;
9791
10234
 
9792
- export { type MutationOptionsFor, type QueryClient, type QueryOptionsFor, SavvyCalProvider, type SavvyCalProviderProps, createQueryClient, useAccountById, useAccountUsers, useAccounts, useAppointment, useAppointments, useBlock, useBlocks, useCancelAppointment, useCancelPublicAppointment, useCancellationReason, useCancellationReasons, useClient, useClients, useConfirmAppointment, useCreateAccount, useCreateAccountUser, useCreateAppointment, useCreateBlock, useCreateCancellationReason, useCreateClient, useCreateDashboardSession, useCreateProvider, useCreateProviderSchedule, useCreatePublicAppointment, useCreateService, useCreateServiceProvider, useCurrentAccount, useCurrentAccountUser, useCurrentPlatform, useDeactivateProvider, useDeleteBlock, useDeleteCancellationReason, useDeleteClient, useDeleteProviderSchedule, useDeleteService, useDeleteServiceProvider, useEarliestPublicServiceSlot, useProvider, useProviderSchedule, useProviderSchedules, useProviders, usePublicAppointment, usePublicCancellationReasons, usePublicServiceSlots, useRescheduleAppointment, useReschedulePublicAppointment, useRoles, useSavvyCalFetchClient, useSavvyCalQueryClient, useService, useServiceProviders, useServiceSlots, useServices, useUpdateAccount, useUpdateAccountUser, useUpdateBlock, useUpdateCancellationReason, useUpdateClient, useUpdateProvider, useUpdateProviderSchedule, useUpdateService };
10235
+ export { type MutationOptionsFor, type QueryClient, type QueryOptionsFor, SavvyCalProvider, type SavvyCalProviderProps, createQueryClient, useAccountById, useAccountUsers, useAccounts, useAppointment, useAppointments, useBlock, useBlocks, useCancelAppointment, useCancelPublicAppointment, useCancellationReason, useCancellationReasons, useClient, useClients, useConfirmAppointment, useConnectedAccount, useConnectedAccounts, useCreateAccount, useCreateAccountUser, useCreateAppointment, useCreateBlock, useCreateCancellationReason, useCreateClient, useCreateDashboardSession, useCreateProvider, useCreateProviderSchedule, useCreatePublicAppointment, useCreateService, useCreateServiceProvider, useCurrentAccount, useCurrentAccountUser, useCurrentPlatform, useDeactivateProvider, useDeleteBlock, useDeleteCancellationReason, useDeleteClient, useDeleteConnectedAccount, useDeleteProviderSchedule, useDeleteService, useDeleteServiceProvider, useEarliestPublicServiceSlot, useProvider, useProviderSchedule, useProviderSchedules, useProviders, usePublicAppointment, usePublicCancellationReasons, usePublicServiceSlots, useRescheduleAppointment, useReschedulePublicAppointment, useRoles, useSavvyCalFetchClient, useSavvyCalQueryClient, useService, useServiceProviders, useServiceSlots, useServices, useUpdateAccount, useUpdateAccountUser, useUpdateBlock, useUpdateCancellationReason, useUpdateClient, useUpdateConnectedAccount, useUpdateProvider, useUpdateProviderSchedule, useUpdateService };