@savvycal/appointments-core 0.3.0 → 0.5.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.cjs +29 -0
- package/dist/index.d.cts +717 -51
- package/dist/index.d.ts +717 -51
- package/dist/index.js +25 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -484,6 +484,34 @@ interface paths {
|
|
|
484
484
|
patch?: never;
|
|
485
485
|
trace?: never;
|
|
486
486
|
};
|
|
487
|
+
"/v1/connected_accounts/{connected_account_id}": {
|
|
488
|
+
parameters: {
|
|
489
|
+
query?: never;
|
|
490
|
+
header?: never;
|
|
491
|
+
path?: never;
|
|
492
|
+
cookie?: never;
|
|
493
|
+
};
|
|
494
|
+
/**
|
|
495
|
+
* Get connected account
|
|
496
|
+
* @description Get a single connected account by ID.
|
|
497
|
+
*/
|
|
498
|
+
get: operations["getConnectedAccount"];
|
|
499
|
+
put?: never;
|
|
500
|
+
post?: never;
|
|
501
|
+
/**
|
|
502
|
+
* Delete connected account
|
|
503
|
+
* @description Deletes (disconnects) an existing connected account.
|
|
504
|
+
*/
|
|
505
|
+
delete: operations["deleteConnectedAccount"];
|
|
506
|
+
options?: never;
|
|
507
|
+
head?: never;
|
|
508
|
+
/**
|
|
509
|
+
* Update connected account
|
|
510
|
+
* @description Update an existing connected account.
|
|
511
|
+
*/
|
|
512
|
+
patch: operations["updateConnectedAccount"];
|
|
513
|
+
trace?: never;
|
|
514
|
+
};
|
|
487
515
|
"/v1/roles": {
|
|
488
516
|
parameters: {
|
|
489
517
|
query?: never;
|
|
@@ -875,6 +903,30 @@ interface paths {
|
|
|
875
903
|
patch?: never;
|
|
876
904
|
trace?: never;
|
|
877
905
|
};
|
|
906
|
+
"/v1/connected_accounts": {
|
|
907
|
+
parameters: {
|
|
908
|
+
query?: never;
|
|
909
|
+
header?: never;
|
|
910
|
+
path?: never;
|
|
911
|
+
cookie?: never;
|
|
912
|
+
};
|
|
913
|
+
/**
|
|
914
|
+
* List connected accounts
|
|
915
|
+
* @description List all connected accounts accessible to the current actor.
|
|
916
|
+
*
|
|
917
|
+
* If the current actor is a user (for example, authenticated via JWT), then
|
|
918
|
+
* this returns all connected accounts the user has permission to view. Otherwise,
|
|
919
|
+
* this returns all connected accounts belonging to the current account.
|
|
920
|
+
*/
|
|
921
|
+
get: operations["listConnectedAccounts"];
|
|
922
|
+
put?: never;
|
|
923
|
+
post?: never;
|
|
924
|
+
delete?: never;
|
|
925
|
+
options?: never;
|
|
926
|
+
head?: never;
|
|
927
|
+
patch?: never;
|
|
928
|
+
trace?: never;
|
|
929
|
+
};
|
|
878
930
|
}
|
|
879
931
|
interface components {
|
|
880
932
|
schemas: {
|
|
@@ -1556,6 +1608,9 @@ interface components {
|
|
|
1556
1608
|
* "ics": [
|
|
1557
1609
|
* "https://savvycal.app/c/appointments/appt_a1b2c3d4e5f6/ics"
|
|
1558
1610
|
* ],
|
|
1611
|
+
* "join": [
|
|
1612
|
+
* "https://savvycal.app/c/appointments/appt_a1b2c3d4e5f6/join"
|
|
1613
|
+
* ],
|
|
1559
1614
|
* "reschedule": [
|
|
1560
1615
|
* "https://savvycal.app/c/appointments/appt_a1b2c3d4e5f6/reschedule"
|
|
1561
1616
|
* ]
|
|
@@ -1791,6 +1846,9 @@ interface components {
|
|
|
1791
1846
|
* "ics": [
|
|
1792
1847
|
* "https://savvycal.app/c/appointments/appt_a1b2c3d4e5f6/ics"
|
|
1793
1848
|
* ],
|
|
1849
|
+
* "join": [
|
|
1850
|
+
* "https://savvycal.app/c/appointments/appt_a1b2c3d4e5f6/join"
|
|
1851
|
+
* ],
|
|
1794
1852
|
* "reschedule": [
|
|
1795
1853
|
* "https://savvycal.app/c/appointments/appt_a1b2c3d4e5f6/reschedule"
|
|
1796
1854
|
* ]
|
|
@@ -2649,6 +2707,8 @@ interface components {
|
|
|
2649
2707
|
confirm: string[];
|
|
2650
2708
|
/** @description URLs for the client to use to download an iCal file for this appointment. */
|
|
2651
2709
|
ics: string[];
|
|
2710
|
+
/** @description URLs for the client to use to join this appointment. */
|
|
2711
|
+
join: string[];
|
|
2652
2712
|
/** @description URLs for the client to use to reschedule this appointment. */
|
|
2653
2713
|
reschedule: string[];
|
|
2654
2714
|
};
|
|
@@ -3052,6 +3112,17 @@ interface components {
|
|
|
3052
3112
|
AccountResponse: {
|
|
3053
3113
|
data?: components["schemas"]["Account"];
|
|
3054
3114
|
};
|
|
3115
|
+
/**
|
|
3116
|
+
* UpdateConnectedAccountRequest
|
|
3117
|
+
* @description Request schema for updating a connected account
|
|
3118
|
+
* @example {
|
|
3119
|
+
* "display_name": "Work Calendar"
|
|
3120
|
+
* }
|
|
3121
|
+
*/
|
|
3122
|
+
UpdateConnectedAccountRequest: {
|
|
3123
|
+
/** @description The display name for the connected account. */
|
|
3124
|
+
display_name?: string | null;
|
|
3125
|
+
};
|
|
3055
3126
|
/**
|
|
3056
3127
|
* GenericErrorResponse
|
|
3057
3128
|
* @description Response schema for generic error messages
|
|
@@ -3570,9 +3641,9 @@ interface components {
|
|
|
3570
3641
|
*/
|
|
3571
3642
|
passive: boolean;
|
|
3572
3643
|
/** @description List of role IDs to assign to the user. */
|
|
3573
|
-
role_ids
|
|
3644
|
+
role_ids: string[];
|
|
3574
3645
|
/** @description The user's time zone. */
|
|
3575
|
-
time_zone
|
|
3646
|
+
time_zone: string;
|
|
3576
3647
|
};
|
|
3577
3648
|
/**
|
|
3578
3649
|
* ConnectedAccountDeletedEventData
|
|
@@ -3583,6 +3654,7 @@ interface components {
|
|
|
3583
3654
|
* "created_at": "2025-03-12T12:34:55Z",
|
|
3584
3655
|
* "display_name": "John Doe",
|
|
3585
3656
|
* "email": "user@example.com",
|
|
3657
|
+
* "external_account_id": null,
|
|
3586
3658
|
* "external_subject": "123456789",
|
|
3587
3659
|
* "id": "cact_d025a96ac0c6",
|
|
3588
3660
|
* "object": "connected_account",
|
|
@@ -3597,12 +3669,13 @@ interface components {
|
|
|
3597
3669
|
ConnectedAccountDeletedEventData: {
|
|
3598
3670
|
/**
|
|
3599
3671
|
* ConnectedAccount
|
|
3600
|
-
* @description This is an object representing a connected calendar account (e.g., a Google Calendar integration).
|
|
3672
|
+
* @description This is an object representing a connected calendar account (e.g., a Google Calendar or Microsoft 365 integration).
|
|
3601
3673
|
* @example {
|
|
3602
3674
|
* "connection_scope": "user",
|
|
3603
3675
|
* "created_at": "2025-03-12T12:34:55Z",
|
|
3604
3676
|
* "display_name": "John Doe",
|
|
3605
3677
|
* "email": "user@example.com",
|
|
3678
|
+
* "external_account_id": null,
|
|
3606
3679
|
* "external_subject": "123456789",
|
|
3607
3680
|
* "id": "cact_d025a96ac0c6",
|
|
3608
3681
|
* "object": "connected_account",
|
|
@@ -3627,6 +3700,8 @@ interface components {
|
|
|
3627
3700
|
display_name: string | null;
|
|
3628
3701
|
/** @description The email address associated with this connected account. */
|
|
3629
3702
|
email: string;
|
|
3703
|
+
/** @description The unique identifier for the organization at the provider (e.g., Zoom account number). */
|
|
3704
|
+
external_account_id: string | null;
|
|
3630
3705
|
/** @description The unique identifier for this account at the provider. */
|
|
3631
3706
|
external_subject: string;
|
|
3632
3707
|
/** @description Unique identifier for the object. */
|
|
@@ -3637,15 +3712,15 @@ interface components {
|
|
|
3637
3712
|
*/
|
|
3638
3713
|
object: "connected_account";
|
|
3639
3714
|
/**
|
|
3640
|
-
* @description The
|
|
3715
|
+
* @description The provider for this connected account.
|
|
3641
3716
|
* @enum {string}
|
|
3642
3717
|
*/
|
|
3643
|
-
provider: "google";
|
|
3718
|
+
provider: "google" | "microsoft" | "zoom_admin";
|
|
3644
3719
|
/**
|
|
3645
|
-
* @description The current status of the connection. 'active' means the connection is working, 'reconnect_required' means the OAuth token has failed and needs reauthorization.
|
|
3720
|
+
* @description The current status of the connection. 'active' means the connection is working, 'reconnect_required' means the OAuth token has failed and needs reauthorization, 'insufficient_permissions' means the user did not grant all required OAuth scopes.
|
|
3646
3721
|
* @enum {string}
|
|
3647
3722
|
*/
|
|
3648
|
-
status: "active" | "reconnect_required";
|
|
3723
|
+
status: "active" | "reconnect_required" | "insufficient_permissions";
|
|
3649
3724
|
/**
|
|
3650
3725
|
* Format: date-time
|
|
3651
3726
|
* @description Time at which the object was last updated.
|
|
@@ -4113,6 +4188,7 @@ interface components {
|
|
|
4113
4188
|
* "created_at": "2025-03-12T12:34:55Z",
|
|
4114
4189
|
* "display_name": "John Doe",
|
|
4115
4190
|
* "email": "user@example.com",
|
|
4191
|
+
* "external_account_id": null,
|
|
4116
4192
|
* "external_subject": "123456789",
|
|
4117
4193
|
* "id": "cact_d025a96ac0c6",
|
|
4118
4194
|
* "object": "connected_account",
|
|
@@ -4127,12 +4203,13 @@ interface components {
|
|
|
4127
4203
|
ConnectedAccountReconnectedEventData: {
|
|
4128
4204
|
/**
|
|
4129
4205
|
* ConnectedAccount
|
|
4130
|
-
* @description This is an object representing a connected calendar account (e.g., a Google Calendar integration).
|
|
4206
|
+
* @description This is an object representing a connected calendar account (e.g., a Google Calendar or Microsoft 365 integration).
|
|
4131
4207
|
* @example {
|
|
4132
4208
|
* "connection_scope": "user",
|
|
4133
4209
|
* "created_at": "2025-03-12T12:34:55Z",
|
|
4134
4210
|
* "display_name": "John Doe",
|
|
4135
4211
|
* "email": "user@example.com",
|
|
4212
|
+
* "external_account_id": null,
|
|
4136
4213
|
* "external_subject": "123456789",
|
|
4137
4214
|
* "id": "cact_d025a96ac0c6",
|
|
4138
4215
|
* "object": "connected_account",
|
|
@@ -4157,6 +4234,8 @@ interface components {
|
|
|
4157
4234
|
display_name: string | null;
|
|
4158
4235
|
/** @description The email address associated with this connected account. */
|
|
4159
4236
|
email: string;
|
|
4237
|
+
/** @description The unique identifier for the organization at the provider (e.g., Zoom account number). */
|
|
4238
|
+
external_account_id: string | null;
|
|
4160
4239
|
/** @description The unique identifier for this account at the provider. */
|
|
4161
4240
|
external_subject: string;
|
|
4162
4241
|
/** @description Unique identifier for the object. */
|
|
@@ -4167,15 +4246,15 @@ interface components {
|
|
|
4167
4246
|
*/
|
|
4168
4247
|
object: "connected_account";
|
|
4169
4248
|
/**
|
|
4170
|
-
* @description The
|
|
4249
|
+
* @description The provider for this connected account.
|
|
4171
4250
|
* @enum {string}
|
|
4172
4251
|
*/
|
|
4173
|
-
provider: "google";
|
|
4252
|
+
provider: "google" | "microsoft" | "zoom_admin";
|
|
4174
4253
|
/**
|
|
4175
|
-
* @description The current status of the connection. 'active' means the connection is working, 'reconnect_required' means the OAuth token has failed and needs reauthorization.
|
|
4254
|
+
* @description The current status of the connection. 'active' means the connection is working, 'reconnect_required' means the OAuth token has failed and needs reauthorization, 'insufficient_permissions' means the user did not grant all required OAuth scopes.
|
|
4176
4255
|
* @enum {string}
|
|
4177
4256
|
*/
|
|
4178
|
-
status: "active" | "reconnect_required";
|
|
4257
|
+
status: "active" | "reconnect_required" | "insufficient_permissions";
|
|
4179
4258
|
/**
|
|
4180
4259
|
* Format: date-time
|
|
4181
4260
|
* @description Time at which the object was last updated.
|
|
@@ -4281,6 +4360,29 @@ interface components {
|
|
|
4281
4360
|
*/
|
|
4282
4361
|
updated_at: string;
|
|
4283
4362
|
};
|
|
4363
|
+
/**
|
|
4364
|
+
* ConnectedAccountResponse
|
|
4365
|
+
* @description Response schema for a single connected account
|
|
4366
|
+
* @example {
|
|
4367
|
+
* "data": {
|
|
4368
|
+
* "connection_scope": "user",
|
|
4369
|
+
* "created_at": "2025-03-12T12:34:55Z",
|
|
4370
|
+
* "display_name": "John Doe",
|
|
4371
|
+
* "email": "user@example.com",
|
|
4372
|
+
* "external_account_id": null,
|
|
4373
|
+
* "external_subject": "123456789",
|
|
4374
|
+
* "id": "cact_d025a96ac0c6",
|
|
4375
|
+
* "object": "connected_account",
|
|
4376
|
+
* "provider": "google",
|
|
4377
|
+
* "status": "active",
|
|
4378
|
+
* "updated_at": "2025-03-13T10:11:12Z",
|
|
4379
|
+
* "user_id": "user_d025a96ac0c6"
|
|
4380
|
+
* }
|
|
4381
|
+
* }
|
|
4382
|
+
*/
|
|
4383
|
+
ConnectedAccountResponse: {
|
|
4384
|
+
data: components["schemas"]["ConnectedAccount"];
|
|
4385
|
+
};
|
|
4284
4386
|
/**
|
|
4285
4387
|
* PublicServiceSlotsResponse
|
|
4286
4388
|
* @description Response schema for service slots via the public API
|
|
@@ -4588,6 +4690,9 @@ interface components {
|
|
|
4588
4690
|
* "ics": [
|
|
4589
4691
|
* "https://savvycal.app/c/appointments/appt_a1b2c3d4e5f6/ics"
|
|
4590
4692
|
* ],
|
|
4693
|
+
* "join": [
|
|
4694
|
+
* "https://savvycal.app/c/appointments/appt_a1b2c3d4e5f6/join"
|
|
4695
|
+
* ],
|
|
4591
4696
|
* "reschedule": [
|
|
4592
4697
|
* "https://savvycal.app/c/appointments/appt_a1b2c3d4e5f6/reschedule"
|
|
4593
4698
|
* ]
|
|
@@ -4807,6 +4912,9 @@ interface components {
|
|
|
4807
4912
|
* "ics": [
|
|
4808
4913
|
* "https://savvycal.app/c/appointments/appt_a1b2c3d4e5f6/ics"
|
|
4809
4914
|
* ],
|
|
4915
|
+
* "join": [
|
|
4916
|
+
* "https://savvycal.app/c/appointments/appt_a1b2c3d4e5f6/join"
|
|
4917
|
+
* ],
|
|
4810
4918
|
* "reschedule": [
|
|
4811
4919
|
* "https://savvycal.app/c/appointments/appt_a1b2c3d4e5f6/reschedule"
|
|
4812
4920
|
* ]
|
|
@@ -5665,6 +5773,8 @@ interface components {
|
|
|
5665
5773
|
confirm: string[];
|
|
5666
5774
|
/** @description URLs for the client to use to download an iCal file for this appointment. */
|
|
5667
5775
|
ics: string[];
|
|
5776
|
+
/** @description URLs for the client to use to join this appointment. */
|
|
5777
|
+
join: string[];
|
|
5668
5778
|
/** @description URLs for the client to use to reschedule this appointment. */
|
|
5669
5779
|
reschedule: string[];
|
|
5670
5780
|
};
|
|
@@ -5761,6 +5871,7 @@ interface components {
|
|
|
5761
5871
|
* "created_at": "2025-03-12T12:34:55Z",
|
|
5762
5872
|
* "display_name": "John Doe",
|
|
5763
5873
|
* "email": "user@example.com",
|
|
5874
|
+
* "external_account_id": null,
|
|
5764
5875
|
* "external_subject": "123456789",
|
|
5765
5876
|
* "id": "cact_d025a96ac0c6",
|
|
5766
5877
|
* "object": "connected_account",
|
|
@@ -5775,12 +5886,13 @@ interface components {
|
|
|
5775
5886
|
ConnectedAccountRefreshFailedEventData: {
|
|
5776
5887
|
/**
|
|
5777
5888
|
* ConnectedAccount
|
|
5778
|
-
* @description This is an object representing a connected calendar account (e.g., a Google Calendar integration).
|
|
5889
|
+
* @description This is an object representing a connected calendar account (e.g., a Google Calendar or Microsoft 365 integration).
|
|
5779
5890
|
* @example {
|
|
5780
5891
|
* "connection_scope": "user",
|
|
5781
5892
|
* "created_at": "2025-03-12T12:34:55Z",
|
|
5782
5893
|
* "display_name": "John Doe",
|
|
5783
5894
|
* "email": "user@example.com",
|
|
5895
|
+
* "external_account_id": null,
|
|
5784
5896
|
* "external_subject": "123456789",
|
|
5785
5897
|
* "id": "cact_d025a96ac0c6",
|
|
5786
5898
|
* "object": "connected_account",
|
|
@@ -5805,6 +5917,8 @@ interface components {
|
|
|
5805
5917
|
display_name: string | null;
|
|
5806
5918
|
/** @description The email address associated with this connected account. */
|
|
5807
5919
|
email: string;
|
|
5920
|
+
/** @description The unique identifier for the organization at the provider (e.g., Zoom account number). */
|
|
5921
|
+
external_account_id: string | null;
|
|
5808
5922
|
/** @description The unique identifier for this account at the provider. */
|
|
5809
5923
|
external_subject: string;
|
|
5810
5924
|
/** @description Unique identifier for the object. */
|
|
@@ -5815,15 +5929,15 @@ interface components {
|
|
|
5815
5929
|
*/
|
|
5816
5930
|
object: "connected_account";
|
|
5817
5931
|
/**
|
|
5818
|
-
* @description The
|
|
5932
|
+
* @description The provider for this connected account.
|
|
5819
5933
|
* @enum {string}
|
|
5820
5934
|
*/
|
|
5821
|
-
provider: "google";
|
|
5935
|
+
provider: "google" | "microsoft" | "zoom_admin";
|
|
5822
5936
|
/**
|
|
5823
|
-
* @description The current status of the connection. 'active' means the connection is working, 'reconnect_required' means the OAuth token has failed and needs reauthorization.
|
|
5937
|
+
* @description The current status of the connection. 'active' means the connection is working, 'reconnect_required' means the OAuth token has failed and needs reauthorization, 'insufficient_permissions' means the user did not grant all required OAuth scopes.
|
|
5824
5938
|
* @enum {string}
|
|
5825
5939
|
*/
|
|
5826
|
-
status: "active" | "reconnect_required";
|
|
5940
|
+
status: "active" | "reconnect_required" | "insufficient_permissions";
|
|
5827
5941
|
/**
|
|
5828
5942
|
* Format: date-time
|
|
5829
5943
|
* @description Time at which the object was last updated.
|
|
@@ -6051,6 +6165,9 @@ interface components {
|
|
|
6051
6165
|
* "ics": [
|
|
6052
6166
|
* "https://savvycal.app/c/appointments/appt_a1b2c3d4e5f6/ics"
|
|
6053
6167
|
* ],
|
|
6168
|
+
* "join": [
|
|
6169
|
+
* "https://savvycal.app/c/appointments/appt_a1b2c3d4e5f6/join"
|
|
6170
|
+
* ],
|
|
6054
6171
|
* "reschedule": [
|
|
6055
6172
|
* "https://savvycal.app/c/appointments/appt_a1b2c3d4e5f6/reschedule"
|
|
6056
6173
|
* ]
|
|
@@ -6281,6 +6398,9 @@ interface components {
|
|
|
6281
6398
|
* "ics": [
|
|
6282
6399
|
* "https://savvycal.app/c/appointments/appt_a1b2c3d4e5f6/ics"
|
|
6283
6400
|
* ],
|
|
6401
|
+
* "join": [
|
|
6402
|
+
* "https://savvycal.app/c/appointments/appt_a1b2c3d4e5f6/join"
|
|
6403
|
+
* ],
|
|
6284
6404
|
* "reschedule": [
|
|
6285
6405
|
* "https://savvycal.app/c/appointments/appt_a1b2c3d4e5f6/reschedule"
|
|
6286
6406
|
* ]
|
|
@@ -7139,6 +7259,8 @@ interface components {
|
|
|
7139
7259
|
confirm: string[];
|
|
7140
7260
|
/** @description URLs for the client to use to download an iCal file for this appointment. */
|
|
7141
7261
|
ics: string[];
|
|
7262
|
+
/** @description URLs for the client to use to join this appointment. */
|
|
7263
|
+
join: string[];
|
|
7142
7264
|
/** @description URLs for the client to use to reschedule this appointment. */
|
|
7143
7265
|
reschedule: string[];
|
|
7144
7266
|
};
|
|
@@ -7359,6 +7481,9 @@ interface components {
|
|
|
7359
7481
|
* "ics": [
|
|
7360
7482
|
* "https://savvycal.app/c/appointments/appt_a1b2c3d4e5f6/ics"
|
|
7361
7483
|
* ],
|
|
7484
|
+
* "join": [
|
|
7485
|
+
* "https://savvycal.app/c/appointments/appt_a1b2c3d4e5f6/join"
|
|
7486
|
+
* ],
|
|
7362
7487
|
* "reschedule": [
|
|
7363
7488
|
* "https://savvycal.app/c/appointments/appt_a1b2c3d4e5f6/reschedule"
|
|
7364
7489
|
* ]
|
|
@@ -8217,6 +8342,8 @@ interface components {
|
|
|
8217
8342
|
confirm: string[];
|
|
8218
8343
|
/** @description URLs for the client to use to download an iCal file for this appointment. */
|
|
8219
8344
|
ics: string[];
|
|
8345
|
+
/** @description URLs for the client to use to join this appointment. */
|
|
8346
|
+
join: string[];
|
|
8220
8347
|
/** @description URLs for the client to use to reschedule this appointment. */
|
|
8221
8348
|
reschedule: string[];
|
|
8222
8349
|
};
|
|
@@ -8517,6 +8644,9 @@ interface components {
|
|
|
8517
8644
|
* "ics": [
|
|
8518
8645
|
* "https://savvycal.app/c/appointments/appt_a1b2c3d4e5f6/ics"
|
|
8519
8646
|
* ],
|
|
8647
|
+
* "join": [
|
|
8648
|
+
* "https://savvycal.app/c/appointments/appt_a1b2c3d4e5f6/join"
|
|
8649
|
+
* ],
|
|
8520
8650
|
* "reschedule": [
|
|
8521
8651
|
* "https://savvycal.app/c/appointments/appt_a1b2c3d4e5f6/reschedule"
|
|
8522
8652
|
* ]
|
|
@@ -9375,6 +9505,8 @@ interface components {
|
|
|
9375
9505
|
confirm: string[];
|
|
9376
9506
|
/** @description URLs for the client to use to download an iCal file for this appointment. */
|
|
9377
9507
|
ics: string[];
|
|
9508
|
+
/** @description URLs for the client to use to join this appointment. */
|
|
9509
|
+
join: string[];
|
|
9378
9510
|
/** @description URLs for the client to use to reschedule this appointment. */
|
|
9379
9511
|
reschedule: string[];
|
|
9380
9512
|
};
|
|
@@ -9595,6 +9727,9 @@ interface components {
|
|
|
9595
9727
|
* "ics": [
|
|
9596
9728
|
* "https://savvycal.app/c/appointments/appt_a1b2c3d4e5f6/ics"
|
|
9597
9729
|
* ],
|
|
9730
|
+
* "join": [
|
|
9731
|
+
* "https://savvycal.app/c/appointments/appt_a1b2c3d4e5f6/join"
|
|
9732
|
+
* ],
|
|
9598
9733
|
* "reschedule": [
|
|
9599
9734
|
* "https://savvycal.app/c/appointments/appt_a1b2c3d4e5f6/reschedule"
|
|
9600
9735
|
* ]
|
|
@@ -10453,6 +10588,8 @@ interface components {
|
|
|
10453
10588
|
confirm: string[];
|
|
10454
10589
|
/** @description URLs for the client to use to download an iCal file for this appointment. */
|
|
10455
10590
|
ics: string[];
|
|
10591
|
+
/** @description URLs for the client to use to join this appointment. */
|
|
10592
|
+
join: string[];
|
|
10456
10593
|
/** @description URLs for the client to use to reschedule this appointment. */
|
|
10457
10594
|
reschedule: string[];
|
|
10458
10595
|
};
|
|
@@ -10673,6 +10810,9 @@ interface components {
|
|
|
10673
10810
|
* "ics": [
|
|
10674
10811
|
* "https://savvycal.app/c/appointments/appt_a1b2c3d4e5f6/ics"
|
|
10675
10812
|
* ],
|
|
10813
|
+
* "join": [
|
|
10814
|
+
* "https://savvycal.app/c/appointments/appt_a1b2c3d4e5f6/join"
|
|
10815
|
+
* ],
|
|
10676
10816
|
* "reschedule": [
|
|
10677
10817
|
* "https://savvycal.app/c/appointments/appt_a1b2c3d4e5f6/reschedule"
|
|
10678
10818
|
* ]
|
|
@@ -11531,6 +11671,8 @@ interface components {
|
|
|
11531
11671
|
confirm: string[];
|
|
11532
11672
|
/** @description URLs for the client to use to download an iCal file for this appointment. */
|
|
11533
11673
|
ics: string[];
|
|
11674
|
+
/** @description URLs for the client to use to join this appointment. */
|
|
11675
|
+
join: string[];
|
|
11534
11676
|
/** @description URLs for the client to use to reschedule this appointment. */
|
|
11535
11677
|
reschedule: string[];
|
|
11536
11678
|
};
|
|
@@ -11897,12 +12039,13 @@ interface components {
|
|
|
11897
12039
|
} | {
|
|
11898
12040
|
/**
|
|
11899
12041
|
* ConnectedAccount
|
|
11900
|
-
* @description This is an object representing a connected calendar account (e.g., a Google Calendar integration).
|
|
12042
|
+
* @description This is an object representing a connected calendar account (e.g., a Google Calendar or Microsoft 365 integration).
|
|
11901
12043
|
* @example {
|
|
11902
12044
|
* "connection_scope": "user",
|
|
11903
12045
|
* "created_at": "2025-03-12T12:34:55Z",
|
|
11904
12046
|
* "display_name": "John Doe",
|
|
11905
12047
|
* "email": "user@example.com",
|
|
12048
|
+
* "external_account_id": null,
|
|
11906
12049
|
* "external_subject": "123456789",
|
|
11907
12050
|
* "id": "cact_d025a96ac0c6",
|
|
11908
12051
|
* "object": "connected_account",
|
|
@@ -11927,6 +12070,8 @@ interface components {
|
|
|
11927
12070
|
display_name: string | null;
|
|
11928
12071
|
/** @description The email address associated with this connected account. */
|
|
11929
12072
|
email: string;
|
|
12073
|
+
/** @description The unique identifier for the organization at the provider (e.g., Zoom account number). */
|
|
12074
|
+
external_account_id: string | null;
|
|
11930
12075
|
/** @description The unique identifier for this account at the provider. */
|
|
11931
12076
|
external_subject: string;
|
|
11932
12077
|
/** @description Unique identifier for the object. */
|
|
@@ -11937,15 +12082,15 @@ interface components {
|
|
|
11937
12082
|
*/
|
|
11938
12083
|
object: "connected_account";
|
|
11939
12084
|
/**
|
|
11940
|
-
* @description The
|
|
12085
|
+
* @description The provider for this connected account.
|
|
11941
12086
|
* @enum {string}
|
|
11942
12087
|
*/
|
|
11943
|
-
provider: "google";
|
|
12088
|
+
provider: "google" | "microsoft" | "zoom_admin";
|
|
11944
12089
|
/**
|
|
11945
|
-
* @description The current status of the connection. 'active' means the connection is working, 'reconnect_required' means the OAuth token has failed and needs reauthorization.
|
|
12090
|
+
* @description The current status of the connection. 'active' means the connection is working, 'reconnect_required' means the OAuth token has failed and needs reauthorization, 'insufficient_permissions' means the user did not grant all required OAuth scopes.
|
|
11946
12091
|
* @enum {string}
|
|
11947
12092
|
*/
|
|
11948
|
-
status: "active" | "reconnect_required";
|
|
12093
|
+
status: "active" | "reconnect_required" | "insufficient_permissions";
|
|
11949
12094
|
/**
|
|
11950
12095
|
* Format: date-time
|
|
11951
12096
|
* @description Time at which the object was last updated.
|
|
@@ -11962,12 +12107,13 @@ interface components {
|
|
|
11962
12107
|
} | {
|
|
11963
12108
|
/**
|
|
11964
12109
|
* ConnectedAccount
|
|
11965
|
-
* @description This is an object representing a connected calendar account (e.g., a Google Calendar integration).
|
|
12110
|
+
* @description This is an object representing a connected calendar account (e.g., a Google Calendar or Microsoft 365 integration).
|
|
11966
12111
|
* @example {
|
|
11967
12112
|
* "connection_scope": "user",
|
|
11968
12113
|
* "created_at": "2025-03-12T12:34:55Z",
|
|
11969
12114
|
* "display_name": "John Doe",
|
|
11970
12115
|
* "email": "user@example.com",
|
|
12116
|
+
* "external_account_id": null,
|
|
11971
12117
|
* "external_subject": "123456789",
|
|
11972
12118
|
* "id": "cact_d025a96ac0c6",
|
|
11973
12119
|
* "object": "connected_account",
|
|
@@ -11992,6 +12138,8 @@ interface components {
|
|
|
11992
12138
|
display_name: string | null;
|
|
11993
12139
|
/** @description The email address associated with this connected account. */
|
|
11994
12140
|
email: string;
|
|
12141
|
+
/** @description The unique identifier for the organization at the provider (e.g., Zoom account number). */
|
|
12142
|
+
external_account_id: string | null;
|
|
11995
12143
|
/** @description The unique identifier for this account at the provider. */
|
|
11996
12144
|
external_subject: string;
|
|
11997
12145
|
/** @description Unique identifier for the object. */
|
|
@@ -12002,15 +12150,15 @@ interface components {
|
|
|
12002
12150
|
*/
|
|
12003
12151
|
object: "connected_account";
|
|
12004
12152
|
/**
|
|
12005
|
-
* @description The
|
|
12153
|
+
* @description The provider for this connected account.
|
|
12006
12154
|
* @enum {string}
|
|
12007
12155
|
*/
|
|
12008
|
-
provider: "google";
|
|
12156
|
+
provider: "google" | "microsoft" | "zoom_admin";
|
|
12009
12157
|
/**
|
|
12010
|
-
* @description The current status of the connection. 'active' means the connection is working, 'reconnect_required' means the OAuth token has failed and needs reauthorization.
|
|
12158
|
+
* @description The current status of the connection. 'active' means the connection is working, 'reconnect_required' means the OAuth token has failed and needs reauthorization, 'insufficient_permissions' means the user did not grant all required OAuth scopes.
|
|
12011
12159
|
* @enum {string}
|
|
12012
12160
|
*/
|
|
12013
|
-
status: "active" | "reconnect_required";
|
|
12161
|
+
status: "active" | "reconnect_required" | "insufficient_permissions";
|
|
12014
12162
|
/**
|
|
12015
12163
|
* Format: date-time
|
|
12016
12164
|
* @description Time at which the object was last updated.
|
|
@@ -12027,12 +12175,13 @@ interface components {
|
|
|
12027
12175
|
} | {
|
|
12028
12176
|
/**
|
|
12029
12177
|
* ConnectedAccount
|
|
12030
|
-
* @description This is an object representing a connected calendar account (e.g., a Google Calendar integration).
|
|
12178
|
+
* @description This is an object representing a connected calendar account (e.g., a Google Calendar or Microsoft 365 integration).
|
|
12031
12179
|
* @example {
|
|
12032
12180
|
* "connection_scope": "user",
|
|
12033
12181
|
* "created_at": "2025-03-12T12:34:55Z",
|
|
12034
12182
|
* "display_name": "John Doe",
|
|
12035
12183
|
* "email": "user@example.com",
|
|
12184
|
+
* "external_account_id": null,
|
|
12036
12185
|
* "external_subject": "123456789",
|
|
12037
12186
|
* "id": "cact_d025a96ac0c6",
|
|
12038
12187
|
* "object": "connected_account",
|
|
@@ -12057,6 +12206,8 @@ interface components {
|
|
|
12057
12206
|
display_name: string | null;
|
|
12058
12207
|
/** @description The email address associated with this connected account. */
|
|
12059
12208
|
email: string;
|
|
12209
|
+
/** @description The unique identifier for the organization at the provider (e.g., Zoom account number). */
|
|
12210
|
+
external_account_id: string | null;
|
|
12060
12211
|
/** @description The unique identifier for this account at the provider. */
|
|
12061
12212
|
external_subject: string;
|
|
12062
12213
|
/** @description Unique identifier for the object. */
|
|
@@ -12067,15 +12218,15 @@ interface components {
|
|
|
12067
12218
|
*/
|
|
12068
12219
|
object: "connected_account";
|
|
12069
12220
|
/**
|
|
12070
|
-
* @description The
|
|
12221
|
+
* @description The provider for this connected account.
|
|
12071
12222
|
* @enum {string}
|
|
12072
12223
|
*/
|
|
12073
|
-
provider: "google";
|
|
12224
|
+
provider: "google" | "microsoft" | "zoom_admin";
|
|
12074
12225
|
/**
|
|
12075
|
-
* @description The current status of the connection. 'active' means the connection is working, 'reconnect_required' means the OAuth token has failed and needs reauthorization.
|
|
12226
|
+
* @description The current status of the connection. 'active' means the connection is working, 'reconnect_required' means the OAuth token has failed and needs reauthorization, 'insufficient_permissions' means the user did not grant all required OAuth scopes.
|
|
12076
12227
|
* @enum {string}
|
|
12077
12228
|
*/
|
|
12078
|
-
status: "active" | "reconnect_required";
|
|
12229
|
+
status: "active" | "reconnect_required" | "insufficient_permissions";
|
|
12079
12230
|
/**
|
|
12080
12231
|
* Format: date-time
|
|
12081
12232
|
* @description Time at which the object was last updated.
|
|
@@ -12092,12 +12243,13 @@ interface components {
|
|
|
12092
12243
|
} | {
|
|
12093
12244
|
/**
|
|
12094
12245
|
* ConnectedAccount
|
|
12095
|
-
* @description This is an object representing a connected calendar account (e.g., a Google Calendar integration).
|
|
12246
|
+
* @description This is an object representing a connected calendar account (e.g., a Google Calendar or Microsoft 365 integration).
|
|
12096
12247
|
* @example {
|
|
12097
12248
|
* "connection_scope": "user",
|
|
12098
12249
|
* "created_at": "2025-03-12T12:34:55Z",
|
|
12099
12250
|
* "display_name": "John Doe",
|
|
12100
12251
|
* "email": "user@example.com",
|
|
12252
|
+
* "external_account_id": null,
|
|
12101
12253
|
* "external_subject": "123456789",
|
|
12102
12254
|
* "id": "cact_d025a96ac0c6",
|
|
12103
12255
|
* "object": "connected_account",
|
|
@@ -12122,6 +12274,8 @@ interface components {
|
|
|
12122
12274
|
display_name: string | null;
|
|
12123
12275
|
/** @description The email address associated with this connected account. */
|
|
12124
12276
|
email: string;
|
|
12277
|
+
/** @description The unique identifier for the organization at the provider (e.g., Zoom account number). */
|
|
12278
|
+
external_account_id: string | null;
|
|
12125
12279
|
/** @description The unique identifier for this account at the provider. */
|
|
12126
12280
|
external_subject: string;
|
|
12127
12281
|
/** @description Unique identifier for the object. */
|
|
@@ -12132,15 +12286,15 @@ interface components {
|
|
|
12132
12286
|
*/
|
|
12133
12287
|
object: "connected_account";
|
|
12134
12288
|
/**
|
|
12135
|
-
* @description The
|
|
12289
|
+
* @description The provider for this connected account.
|
|
12136
12290
|
* @enum {string}
|
|
12137
12291
|
*/
|
|
12138
|
-
provider: "google";
|
|
12292
|
+
provider: "google" | "microsoft" | "zoom_admin";
|
|
12139
12293
|
/**
|
|
12140
|
-
* @description The current status of the connection. 'active' means the connection is working, 'reconnect_required' means the OAuth token has failed and needs reauthorization.
|
|
12294
|
+
* @description The current status of the connection. 'active' means the connection is working, 'reconnect_required' means the OAuth token has failed and needs reauthorization, 'insufficient_permissions' means the user did not grant all required OAuth scopes.
|
|
12141
12295
|
* @enum {string}
|
|
12142
12296
|
*/
|
|
12143
|
-
status: "active" | "reconnect_required";
|
|
12297
|
+
status: "active" | "reconnect_required" | "insufficient_permissions";
|
|
12144
12298
|
/**
|
|
12145
12299
|
* Format: date-time
|
|
12146
12300
|
* @description Time at which the object was last updated.
|
|
@@ -12377,6 +12531,9 @@ interface components {
|
|
|
12377
12531
|
* "ics": [
|
|
12378
12532
|
* "https://savvycal.app/c/appointments/appt_a1b2c3d4e5f6/ics"
|
|
12379
12533
|
* ],
|
|
12534
|
+
* "join": [
|
|
12535
|
+
* "https://savvycal.app/c/appointments/appt_a1b2c3d4e5f6/join"
|
|
12536
|
+
* ],
|
|
12380
12537
|
* "reschedule": [
|
|
12381
12538
|
* "https://savvycal.app/c/appointments/appt_a1b2c3d4e5f6/reschedule"
|
|
12382
12539
|
* ]
|
|
@@ -12993,6 +13150,9 @@ interface components {
|
|
|
12993
13150
|
* "ics": [
|
|
12994
13151
|
* "https://savvycal.app/c/appointments/appt_a1b2c3d4e5f6/ics"
|
|
12995
13152
|
* ],
|
|
13153
|
+
* "join": [
|
|
13154
|
+
* "https://savvycal.app/c/appointments/appt_a1b2c3d4e5f6/join"
|
|
13155
|
+
* ],
|
|
12996
13156
|
* "reschedule": [
|
|
12997
13157
|
* "https://savvycal.app/c/appointments/appt_a1b2c3d4e5f6/reschedule"
|
|
12998
13158
|
* ]
|
|
@@ -13825,6 +13985,7 @@ interface components {
|
|
|
13825
13985
|
* "created_at": "2025-03-12T12:34:55Z",
|
|
13826
13986
|
* "display_name": "John Doe",
|
|
13827
13987
|
* "email": "user@example.com",
|
|
13988
|
+
* "external_account_id": null,
|
|
13828
13989
|
* "external_subject": "123456789",
|
|
13829
13990
|
* "id": "cact_d025a96ac0c6",
|
|
13830
13991
|
* "object": "connected_account",
|
|
@@ -13839,12 +14000,13 @@ interface components {
|
|
|
13839
14000
|
ConnectedAccountCreatedEventData: {
|
|
13840
14001
|
/**
|
|
13841
14002
|
* ConnectedAccount
|
|
13842
|
-
* @description This is an object representing a connected calendar account (e.g., a Google Calendar integration).
|
|
14003
|
+
* @description This is an object representing a connected calendar account (e.g., a Google Calendar or Microsoft 365 integration).
|
|
13843
14004
|
* @example {
|
|
13844
14005
|
* "connection_scope": "user",
|
|
13845
14006
|
* "created_at": "2025-03-12T12:34:55Z",
|
|
13846
14007
|
* "display_name": "John Doe",
|
|
13847
14008
|
* "email": "user@example.com",
|
|
14009
|
+
* "external_account_id": null,
|
|
13848
14010
|
* "external_subject": "123456789",
|
|
13849
14011
|
* "id": "cact_d025a96ac0c6",
|
|
13850
14012
|
* "object": "connected_account",
|
|
@@ -13869,6 +14031,8 @@ interface components {
|
|
|
13869
14031
|
display_name: string | null;
|
|
13870
14032
|
/** @description The email address associated with this connected account. */
|
|
13871
14033
|
email: string;
|
|
14034
|
+
/** @description The unique identifier for the organization at the provider (e.g., Zoom account number). */
|
|
14035
|
+
external_account_id: string | null;
|
|
13872
14036
|
/** @description The unique identifier for this account at the provider. */
|
|
13873
14037
|
external_subject: string;
|
|
13874
14038
|
/** @description Unique identifier for the object. */
|
|
@@ -13879,15 +14043,15 @@ interface components {
|
|
|
13879
14043
|
*/
|
|
13880
14044
|
object: "connected_account";
|
|
13881
14045
|
/**
|
|
13882
|
-
* @description The
|
|
14046
|
+
* @description The provider for this connected account.
|
|
13883
14047
|
* @enum {string}
|
|
13884
14048
|
*/
|
|
13885
|
-
provider: "google";
|
|
14049
|
+
provider: "google" | "microsoft" | "zoom_admin";
|
|
13886
14050
|
/**
|
|
13887
|
-
* @description The current status of the connection. 'active' means the connection is working, 'reconnect_required' means the OAuth token has failed and needs reauthorization.
|
|
14051
|
+
* @description The current status of the connection. 'active' means the connection is working, 'reconnect_required' means the OAuth token has failed and needs reauthorization, 'insufficient_permissions' means the user did not grant all required OAuth scopes.
|
|
13888
14052
|
* @enum {string}
|
|
13889
14053
|
*/
|
|
13890
|
-
status: "active" | "reconnect_required";
|
|
14054
|
+
status: "active" | "reconnect_required" | "insufficient_permissions";
|
|
13891
14055
|
/**
|
|
13892
14056
|
* Format: date-time
|
|
13893
14057
|
* @description Time at which the object was last updated.
|
|
@@ -14229,12 +14393,32 @@ interface components {
|
|
|
14229
14393
|
* UpdateAccountUserRequest
|
|
14230
14394
|
* @description Request schema for updating a user in an account
|
|
14231
14395
|
* @example {
|
|
14232
|
-
* "
|
|
14396
|
+
* "email": "john.doe@example.com",
|
|
14397
|
+
* "first_name": "John",
|
|
14398
|
+
* "last_name": "Doe",
|
|
14399
|
+
* "passive": true,
|
|
14400
|
+
* "role_ids": [
|
|
14401
|
+
* "role_abc123def456"
|
|
14402
|
+
* ],
|
|
14403
|
+
* "time_zone": "America/Chicago"
|
|
14233
14404
|
* }
|
|
14234
14405
|
*/
|
|
14235
14406
|
UpdateAccountUserRequest: {
|
|
14407
|
+
/**
|
|
14408
|
+
* Format: email
|
|
14409
|
+
* @description The user's email address.
|
|
14410
|
+
*/
|
|
14411
|
+
email?: string;
|
|
14412
|
+
/** @description The user's first name. */
|
|
14413
|
+
first_name?: string;
|
|
14414
|
+
/** @description The user's last name. */
|
|
14415
|
+
last_name?: string;
|
|
14236
14416
|
/** @description Whether this user is passive. Passive users do not receive direct email notifications (e.g., OAuth reconnection notices). Use this for platform/headless scenarios where the platform handles user communication. */
|
|
14237
14417
|
passive?: boolean;
|
|
14418
|
+
/** @description List of role IDs to assign to the user. Replaces all existing role assignments. */
|
|
14419
|
+
role_ids?: string[];
|
|
14420
|
+
/** @description The user's time zone. */
|
|
14421
|
+
time_zone?: string;
|
|
14238
14422
|
};
|
|
14239
14423
|
/**
|
|
14240
14424
|
* AdvanceNoticePolicy
|
|
@@ -14461,6 +14645,9 @@ interface components {
|
|
|
14461
14645
|
* "ics": [
|
|
14462
14646
|
* "https://savvycal.app/c/appointments/appt_a1b2c3d4e5f6/ics"
|
|
14463
14647
|
* ],
|
|
14648
|
+
* "join": [
|
|
14649
|
+
* "https://savvycal.app/c/appointments/appt_a1b2c3d4e5f6/join"
|
|
14650
|
+
* ],
|
|
14464
14651
|
* "reschedule": [
|
|
14465
14652
|
* "https://savvycal.app/c/appointments/appt_a1b2c3d4e5f6/reschedule"
|
|
14466
14653
|
* ]
|
|
@@ -14680,6 +14867,9 @@ interface components {
|
|
|
14680
14867
|
* "ics": [
|
|
14681
14868
|
* "https://savvycal.app/c/appointments/appt_a1b2c3d4e5f6/ics"
|
|
14682
14869
|
* ],
|
|
14870
|
+
* "join": [
|
|
14871
|
+
* "https://savvycal.app/c/appointments/appt_a1b2c3d4e5f6/join"
|
|
14872
|
+
* ],
|
|
14683
14873
|
* "reschedule": [
|
|
14684
14874
|
* "https://savvycal.app/c/appointments/appt_a1b2c3d4e5f6/reschedule"
|
|
14685
14875
|
* ]
|
|
@@ -15538,6 +15728,8 @@ interface components {
|
|
|
15538
15728
|
confirm: string[];
|
|
15539
15729
|
/** @description URLs for the client to use to download an iCal file for this appointment. */
|
|
15540
15730
|
ics: string[];
|
|
15731
|
+
/** @description URLs for the client to use to join this appointment. */
|
|
15732
|
+
join: string[];
|
|
15541
15733
|
/** @description URLs for the client to use to reschedule this appointment. */
|
|
15542
15734
|
reschedule: string[];
|
|
15543
15735
|
};
|
|
@@ -15818,6 +16010,39 @@ interface components {
|
|
|
15818
16010
|
*/
|
|
15819
16011
|
updated_at: string;
|
|
15820
16012
|
};
|
|
16013
|
+
/**
|
|
16014
|
+
* ConnectedAccountsResponse
|
|
16015
|
+
* @description Response schema for multiple connected accounts
|
|
16016
|
+
* @example {
|
|
16017
|
+
* "data": [
|
|
16018
|
+
* {
|
|
16019
|
+
* "connection_scope": "user",
|
|
16020
|
+
* "created_at": "2025-03-12T12:34:55Z",
|
|
16021
|
+
* "display_name": "John Doe",
|
|
16022
|
+
* "email": "user@example.com",
|
|
16023
|
+
* "external_account_id": null,
|
|
16024
|
+
* "external_subject": "123456789",
|
|
16025
|
+
* "id": "cact_d025a96ac0c6",
|
|
16026
|
+
* "object": "connected_account",
|
|
16027
|
+
* "provider": "google",
|
|
16028
|
+
* "status": "active",
|
|
16029
|
+
* "updated_at": "2025-03-13T10:11:12Z",
|
|
16030
|
+
* "user_id": "user_d025a96ac0c6"
|
|
16031
|
+
* }
|
|
16032
|
+
* ],
|
|
16033
|
+
* "meta": {
|
|
16034
|
+
* "current_page": 1,
|
|
16035
|
+
* "page_size": 10,
|
|
16036
|
+
* "total_count": 50,
|
|
16037
|
+
* "total_pages": 5
|
|
16038
|
+
* }
|
|
16039
|
+
* }
|
|
16040
|
+
*/
|
|
16041
|
+
ConnectedAccountsResponse: {
|
|
16042
|
+
/** @description A list of connected accounts */
|
|
16043
|
+
data: components["schemas"]["ConnectedAccount"][];
|
|
16044
|
+
meta: components["schemas"]["PaginationMeta"];
|
|
16045
|
+
};
|
|
15821
16046
|
/**
|
|
15822
16047
|
* AccountsResponse
|
|
15823
16048
|
* @description Response schema for a list of accounts
|
|
@@ -16322,6 +16547,9 @@ interface components {
|
|
|
16322
16547
|
* "ics": [
|
|
16323
16548
|
* "https://savvycal.app/c/appointments/appt_a1b2c3d4e5f6/ics"
|
|
16324
16549
|
* ],
|
|
16550
|
+
* "join": [
|
|
16551
|
+
* "https://savvycal.app/c/appointments/appt_a1b2c3d4e5f6/join"
|
|
16552
|
+
* ],
|
|
16325
16553
|
* "reschedule": [
|
|
16326
16554
|
* "https://savvycal.app/c/appointments/appt_a1b2c3d4e5f6/reschedule"
|
|
16327
16555
|
* ]
|
|
@@ -16541,6 +16769,9 @@ interface components {
|
|
|
16541
16769
|
* "ics": [
|
|
16542
16770
|
* "https://savvycal.app/c/appointments/appt_a1b2c3d4e5f6/ics"
|
|
16543
16771
|
* ],
|
|
16772
|
+
* "join": [
|
|
16773
|
+
* "https://savvycal.app/c/appointments/appt_a1b2c3d4e5f6/join"
|
|
16774
|
+
* ],
|
|
16544
16775
|
* "reschedule": [
|
|
16545
16776
|
* "https://savvycal.app/c/appointments/appt_a1b2c3d4e5f6/reschedule"
|
|
16546
16777
|
* ]
|
|
@@ -17399,6 +17630,8 @@ interface components {
|
|
|
17399
17630
|
confirm: string[];
|
|
17400
17631
|
/** @description URLs for the client to use to download an iCal file for this appointment. */
|
|
17401
17632
|
ics: string[];
|
|
17633
|
+
/** @description URLs for the client to use to join this appointment. */
|
|
17634
|
+
join: string[];
|
|
17402
17635
|
/** @description URLs for the client to use to reschedule this appointment. */
|
|
17403
17636
|
reschedule: string[];
|
|
17404
17637
|
};
|
|
@@ -17781,6 +18014,9 @@ interface components {
|
|
|
17781
18014
|
* "ics": [
|
|
17782
18015
|
* "https://savvycal.app/c/appointments/appt_a1b2c3d4e5f6/ics"
|
|
17783
18016
|
* ],
|
|
18017
|
+
* "join": [
|
|
18018
|
+
* "https://savvycal.app/c/appointments/appt_a1b2c3d4e5f6/join"
|
|
18019
|
+
* ],
|
|
17784
18020
|
* "reschedule": [
|
|
17785
18021
|
* "https://savvycal.app/c/appointments/appt_a1b2c3d4e5f6/reschedule"
|
|
17786
18022
|
* ]
|
|
@@ -18639,6 +18875,8 @@ interface components {
|
|
|
18639
18875
|
confirm: string[];
|
|
18640
18876
|
/** @description URLs for the client to use to download an iCal file for this appointment. */
|
|
18641
18877
|
ics: string[];
|
|
18878
|
+
/** @description URLs for the client to use to join this appointment. */
|
|
18879
|
+
join: string[];
|
|
18642
18880
|
/** @description URLs for the client to use to reschedule this appointment. */
|
|
18643
18881
|
reschedule: string[];
|
|
18644
18882
|
};
|
|
@@ -18746,12 +18984,13 @@ interface components {
|
|
|
18746
18984
|
};
|
|
18747
18985
|
/**
|
|
18748
18986
|
* ConnectedAccount
|
|
18749
|
-
* @description This is an object representing a connected calendar account (e.g., a Google Calendar integration).
|
|
18987
|
+
* @description This is an object representing a connected calendar account (e.g., a Google Calendar or Microsoft 365 integration).
|
|
18750
18988
|
* @example {
|
|
18751
18989
|
* "connection_scope": "user",
|
|
18752
18990
|
* "created_at": "2025-03-12T12:34:55Z",
|
|
18753
18991
|
* "display_name": "John Doe",
|
|
18754
18992
|
* "email": "user@example.com",
|
|
18993
|
+
* "external_account_id": null,
|
|
18755
18994
|
* "external_subject": "123456789",
|
|
18756
18995
|
* "id": "cact_d025a96ac0c6",
|
|
18757
18996
|
* "object": "connected_account",
|
|
@@ -18776,6 +19015,8 @@ interface components {
|
|
|
18776
19015
|
display_name: string | null;
|
|
18777
19016
|
/** @description The email address associated with this connected account. */
|
|
18778
19017
|
email: string;
|
|
19018
|
+
/** @description The unique identifier for the organization at the provider (e.g., Zoom account number). */
|
|
19019
|
+
external_account_id: string | null;
|
|
18779
19020
|
/** @description The unique identifier for this account at the provider. */
|
|
18780
19021
|
external_subject: string;
|
|
18781
19022
|
/** @description Unique identifier for the object. */
|
|
@@ -18786,15 +19027,15 @@ interface components {
|
|
|
18786
19027
|
*/
|
|
18787
19028
|
object: "connected_account";
|
|
18788
19029
|
/**
|
|
18789
|
-
* @description The
|
|
19030
|
+
* @description The provider for this connected account.
|
|
18790
19031
|
* @enum {string}
|
|
18791
19032
|
*/
|
|
18792
|
-
provider: "google";
|
|
19033
|
+
provider: "google" | "microsoft" | "zoom_admin";
|
|
18793
19034
|
/**
|
|
18794
|
-
* @description The current status of the connection. 'active' means the connection is working, 'reconnect_required' means the OAuth token has failed and needs reauthorization.
|
|
19035
|
+
* @description The current status of the connection. 'active' means the connection is working, 'reconnect_required' means the OAuth token has failed and needs reauthorization, 'insufficient_permissions' means the user did not grant all required OAuth scopes.
|
|
18795
19036
|
* @enum {string}
|
|
18796
19037
|
*/
|
|
18797
|
-
status: "active" | "reconnect_required";
|
|
19038
|
+
status: "active" | "reconnect_required" | "insufficient_permissions";
|
|
18798
19039
|
/**
|
|
18799
19040
|
* Format: date-time
|
|
18800
19041
|
* @description Time at which the object was last updated.
|
|
@@ -19243,6 +19484,9 @@ interface components {
|
|
|
19243
19484
|
* "ics": [
|
|
19244
19485
|
* "https://savvycal.app/c/appointments/appt_a1b2c3d4e5f6/ics"
|
|
19245
19486
|
* ],
|
|
19487
|
+
* "join": [
|
|
19488
|
+
* "https://savvycal.app/c/appointments/appt_a1b2c3d4e5f6/join"
|
|
19489
|
+
* ],
|
|
19246
19490
|
* "reschedule": [
|
|
19247
19491
|
* "https://savvycal.app/c/appointments/appt_a1b2c3d4e5f6/reschedule"
|
|
19248
19492
|
* ]
|
|
@@ -19462,6 +19706,9 @@ interface components {
|
|
|
19462
19706
|
* "ics": [
|
|
19463
19707
|
* "https://savvycal.app/c/appointments/appt_a1b2c3d4e5f6/ics"
|
|
19464
19708
|
* ],
|
|
19709
|
+
* "join": [
|
|
19710
|
+
* "https://savvycal.app/c/appointments/appt_a1b2c3d4e5f6/join"
|
|
19711
|
+
* ],
|
|
19465
19712
|
* "reschedule": [
|
|
19466
19713
|
* "https://savvycal.app/c/appointments/appt_a1b2c3d4e5f6/reschedule"
|
|
19467
19714
|
* ]
|
|
@@ -20320,6 +20567,8 @@ interface components {
|
|
|
20320
20567
|
confirm: string[];
|
|
20321
20568
|
/** @description URLs for the client to use to download an iCal file for this appointment. */
|
|
20322
20569
|
ics: string[];
|
|
20570
|
+
/** @description URLs for the client to use to join this appointment. */
|
|
20571
|
+
join: string[];
|
|
20323
20572
|
/** @description URLs for the client to use to reschedule this appointment. */
|
|
20324
20573
|
reschedule: string[];
|
|
20325
20574
|
};
|
|
@@ -22089,6 +22338,161 @@ interface operations {
|
|
|
22089
22338
|
};
|
|
22090
22339
|
};
|
|
22091
22340
|
};
|
|
22341
|
+
getConnectedAccount: {
|
|
22342
|
+
parameters: {
|
|
22343
|
+
query?: never;
|
|
22344
|
+
header?: {
|
|
22345
|
+
/**
|
|
22346
|
+
* @description When authenticating with a platform token, specifies the account ID for the request
|
|
22347
|
+
* @example acct_1234567890
|
|
22348
|
+
*/
|
|
22349
|
+
"X-SavvyCal-Account"?: string;
|
|
22350
|
+
};
|
|
22351
|
+
path: {
|
|
22352
|
+
/** @description Connected Account ID */
|
|
22353
|
+
connected_account_id: string;
|
|
22354
|
+
};
|
|
22355
|
+
cookie?: never;
|
|
22356
|
+
};
|
|
22357
|
+
requestBody?: never;
|
|
22358
|
+
responses: {
|
|
22359
|
+
/** @description Success */
|
|
22360
|
+
200: {
|
|
22361
|
+
headers: {
|
|
22362
|
+
[name: string]: unknown;
|
|
22363
|
+
};
|
|
22364
|
+
content: {
|
|
22365
|
+
"application/json": components["schemas"]["ConnectedAccountResponse"];
|
|
22366
|
+
};
|
|
22367
|
+
};
|
|
22368
|
+
/** @description Unauthorized */
|
|
22369
|
+
401: {
|
|
22370
|
+
headers: {
|
|
22371
|
+
[name: string]: unknown;
|
|
22372
|
+
};
|
|
22373
|
+
content: {
|
|
22374
|
+
"application/json": components["schemas"]["UnauthorizedResponse"];
|
|
22375
|
+
};
|
|
22376
|
+
};
|
|
22377
|
+
/** @description Not Found */
|
|
22378
|
+
404: {
|
|
22379
|
+
headers: {
|
|
22380
|
+
[name: string]: unknown;
|
|
22381
|
+
};
|
|
22382
|
+
content: {
|
|
22383
|
+
"application/json": components["schemas"]["NotFoundResponse"];
|
|
22384
|
+
};
|
|
22385
|
+
};
|
|
22386
|
+
};
|
|
22387
|
+
};
|
|
22388
|
+
deleteConnectedAccount: {
|
|
22389
|
+
parameters: {
|
|
22390
|
+
query?: never;
|
|
22391
|
+
header?: {
|
|
22392
|
+
/**
|
|
22393
|
+
* @description When authenticating with a platform token, specifies the account ID for the request
|
|
22394
|
+
* @example acct_1234567890
|
|
22395
|
+
*/
|
|
22396
|
+
"X-SavvyCal-Account"?: string;
|
|
22397
|
+
};
|
|
22398
|
+
path: {
|
|
22399
|
+
/** @description Connected Account ID */
|
|
22400
|
+
connected_account_id: string;
|
|
22401
|
+
};
|
|
22402
|
+
cookie?: never;
|
|
22403
|
+
};
|
|
22404
|
+
requestBody?: never;
|
|
22405
|
+
responses: {
|
|
22406
|
+
/** @description No Content */
|
|
22407
|
+
204: {
|
|
22408
|
+
headers: {
|
|
22409
|
+
[name: string]: unknown;
|
|
22410
|
+
};
|
|
22411
|
+
content: {
|
|
22412
|
+
"text/plain": string;
|
|
22413
|
+
};
|
|
22414
|
+
};
|
|
22415
|
+
/** @description Unauthorized */
|
|
22416
|
+
401: {
|
|
22417
|
+
headers: {
|
|
22418
|
+
[name: string]: unknown;
|
|
22419
|
+
};
|
|
22420
|
+
content: {
|
|
22421
|
+
"application/json": components["schemas"]["UnauthorizedResponse"];
|
|
22422
|
+
};
|
|
22423
|
+
};
|
|
22424
|
+
/** @description Not Found */
|
|
22425
|
+
404: {
|
|
22426
|
+
headers: {
|
|
22427
|
+
[name: string]: unknown;
|
|
22428
|
+
};
|
|
22429
|
+
content: {
|
|
22430
|
+
"application/json": components["schemas"]["NotFoundResponse"];
|
|
22431
|
+
};
|
|
22432
|
+
};
|
|
22433
|
+
};
|
|
22434
|
+
};
|
|
22435
|
+
updateConnectedAccount: {
|
|
22436
|
+
parameters: {
|
|
22437
|
+
query?: never;
|
|
22438
|
+
header?: {
|
|
22439
|
+
/**
|
|
22440
|
+
* @description When authenticating with a platform token, specifies the account ID for the request
|
|
22441
|
+
* @example acct_1234567890
|
|
22442
|
+
*/
|
|
22443
|
+
"X-SavvyCal-Account"?: string;
|
|
22444
|
+
};
|
|
22445
|
+
path: {
|
|
22446
|
+
/** @description Connected Account ID */
|
|
22447
|
+
connected_account_id: string;
|
|
22448
|
+
};
|
|
22449
|
+
cookie?: never;
|
|
22450
|
+
};
|
|
22451
|
+
/** @description Connected account params */
|
|
22452
|
+
requestBody?: {
|
|
22453
|
+
content: {
|
|
22454
|
+
"application/json": components["schemas"]["UpdateConnectedAccountRequest"];
|
|
22455
|
+
};
|
|
22456
|
+
};
|
|
22457
|
+
responses: {
|
|
22458
|
+
/** @description Success */
|
|
22459
|
+
200: {
|
|
22460
|
+
headers: {
|
|
22461
|
+
[name: string]: unknown;
|
|
22462
|
+
};
|
|
22463
|
+
content: {
|
|
22464
|
+
"application/json": components["schemas"]["ConnectedAccountResponse"];
|
|
22465
|
+
};
|
|
22466
|
+
};
|
|
22467
|
+
/** @description Unauthorized */
|
|
22468
|
+
401: {
|
|
22469
|
+
headers: {
|
|
22470
|
+
[name: string]: unknown;
|
|
22471
|
+
};
|
|
22472
|
+
content: {
|
|
22473
|
+
"application/json": components["schemas"]["UnauthorizedResponse"];
|
|
22474
|
+
};
|
|
22475
|
+
};
|
|
22476
|
+
/** @description Not Found */
|
|
22477
|
+
404: {
|
|
22478
|
+
headers: {
|
|
22479
|
+
[name: string]: unknown;
|
|
22480
|
+
};
|
|
22481
|
+
content: {
|
|
22482
|
+
"application/json": components["schemas"]["NotFoundResponse"];
|
|
22483
|
+
};
|
|
22484
|
+
};
|
|
22485
|
+
/** @description Unprocessable Entity */
|
|
22486
|
+
422: {
|
|
22487
|
+
headers: {
|
|
22488
|
+
[name: string]: unknown;
|
|
22489
|
+
};
|
|
22490
|
+
content: {
|
|
22491
|
+
"application/json": components["schemas"]["JsonErrorResponse"];
|
|
22492
|
+
};
|
|
22493
|
+
};
|
|
22494
|
+
};
|
|
22495
|
+
};
|
|
22092
22496
|
listRoles: {
|
|
22093
22497
|
parameters: {
|
|
22094
22498
|
query?: never;
|
|
@@ -23476,6 +23880,59 @@ interface operations {
|
|
|
23476
23880
|
};
|
|
23477
23881
|
};
|
|
23478
23882
|
};
|
|
23883
|
+
listConnectedAccounts: {
|
|
23884
|
+
parameters: {
|
|
23885
|
+
query?: {
|
|
23886
|
+
/** @description Page number */
|
|
23887
|
+
page?: number;
|
|
23888
|
+
/** @description Number of items per page */
|
|
23889
|
+
page_size?: number;
|
|
23890
|
+
/** @description Only return connected accounts that belong to the specified user. */
|
|
23891
|
+
user_id?: string;
|
|
23892
|
+
/** @description Only return connected accounts for the specified provider. */
|
|
23893
|
+
provider?: "google" | "microsoft" | "zoom_admin";
|
|
23894
|
+
};
|
|
23895
|
+
header?: {
|
|
23896
|
+
/**
|
|
23897
|
+
* @description When authenticating with a platform token, specifies the account ID for the request
|
|
23898
|
+
* @example acct_1234567890
|
|
23899
|
+
*/
|
|
23900
|
+
"X-SavvyCal-Account"?: string;
|
|
23901
|
+
};
|
|
23902
|
+
path?: never;
|
|
23903
|
+
cookie?: never;
|
|
23904
|
+
};
|
|
23905
|
+
requestBody?: never;
|
|
23906
|
+
responses: {
|
|
23907
|
+
/** @description Success */
|
|
23908
|
+
200: {
|
|
23909
|
+
headers: {
|
|
23910
|
+
[name: string]: unknown;
|
|
23911
|
+
};
|
|
23912
|
+
content: {
|
|
23913
|
+
"application/json": components["schemas"]["ConnectedAccountsResponse"];
|
|
23914
|
+
};
|
|
23915
|
+
};
|
|
23916
|
+
/** @description Unauthorized */
|
|
23917
|
+
401: {
|
|
23918
|
+
headers: {
|
|
23919
|
+
[name: string]: unknown;
|
|
23920
|
+
};
|
|
23921
|
+
content: {
|
|
23922
|
+
"application/json": components["schemas"]["UnauthorizedResponse"];
|
|
23923
|
+
};
|
|
23924
|
+
};
|
|
23925
|
+
/** @description Unprocessable Entity */
|
|
23926
|
+
422: {
|
|
23927
|
+
headers: {
|
|
23928
|
+
[name: string]: unknown;
|
|
23929
|
+
};
|
|
23930
|
+
content: {
|
|
23931
|
+
"application/json": components["schemas"]["JsonErrorResponse"];
|
|
23932
|
+
};
|
|
23933
|
+
};
|
|
23934
|
+
};
|
|
23935
|
+
};
|
|
23479
23936
|
}
|
|
23480
23937
|
|
|
23481
23938
|
/**
|
|
@@ -23524,6 +23981,8 @@ type ConnectedAccountCreatedEventData = Schemas["ConnectedAccountCreatedEventDat
|
|
|
23524
23981
|
type ConnectedAccountDeletedEventData = Schemas["ConnectedAccountDeletedEventData"];
|
|
23525
23982
|
type ConnectedAccountReconnectedEventData = Schemas["ConnectedAccountReconnectedEventData"];
|
|
23526
23983
|
type ConnectedAccountRefreshFailedEventData = Schemas["ConnectedAccountRefreshFailedEventData"];
|
|
23984
|
+
type ConnectedAccountResponse = Schemas["ConnectedAccountResponse"];
|
|
23985
|
+
type ConnectedAccountsResponse = Schemas["ConnectedAccountsResponse"];
|
|
23527
23986
|
type CreateAccountRequest = Schemas["CreateAccountRequest"];
|
|
23528
23987
|
type CreateAccountUserRequest = Schemas["CreateAccountUserRequest"];
|
|
23529
23988
|
type CreateAppointmentRequest = Schemas["CreateAppointmentRequest"];
|
|
@@ -23579,6 +24038,7 @@ type UpdateAccountUserRequest = Schemas["UpdateAccountUserRequest"];
|
|
|
23579
24038
|
type UpdateBlockRequest = Schemas["UpdateBlockRequest"];
|
|
23580
24039
|
type UpdateCancellationReasonRequest = Schemas["UpdateCancellationReasonRequest"];
|
|
23581
24040
|
type UpdateClientRequest = Schemas["UpdateClientRequest"];
|
|
24041
|
+
type UpdateConnectedAccountRequest = Schemas["UpdateConnectedAccountRequest"];
|
|
23582
24042
|
type UpdateProviderRequest = Schemas["UpdateProviderRequest"];
|
|
23583
24043
|
type UpdateProviderScheduleRequest = Schemas["UpdateProviderScheduleRequest"];
|
|
23584
24044
|
type UpdateServiceRequest = Schemas["UpdateServiceRequest"];
|
|
@@ -23919,8 +24379,8 @@ declare function createAccountUser(client: FetchClient, body: RequestBody<"/v1/u
|
|
|
23919
24379
|
last_name: string;
|
|
23920
24380
|
notify: boolean;
|
|
23921
24381
|
passive: boolean;
|
|
23922
|
-
role_ids
|
|
23923
|
-
time_zone
|
|
24382
|
+
role_ids: string[];
|
|
24383
|
+
time_zone: string;
|
|
23924
24384
|
} | undefined;
|
|
23925
24385
|
}, `${string}/${string}`>>;
|
|
23926
24386
|
declare function createAppointment(client: FetchClient, body: RequestBody<"/v1/appointments", "post">): Promise<openapi_fetch.FetchResponse<{
|
|
@@ -24670,6 +25130,51 @@ declare function deleteClient(client: FetchClient, path: PathParams<"/v1/clients
|
|
|
24670
25130
|
};
|
|
24671
25131
|
};
|
|
24672
25132
|
}, `${string}/${string}`>>;
|
|
25133
|
+
declare function deleteConnectedAccount(client: FetchClient, path: PathParams<"/v1/connected_accounts/{connected_account_id}", "delete">): Promise<openapi_fetch.FetchResponse<{
|
|
25134
|
+
parameters: {
|
|
25135
|
+
query?: never;
|
|
25136
|
+
header?: {
|
|
25137
|
+
"X-SavvyCal-Account"?: string;
|
|
25138
|
+
};
|
|
25139
|
+
path: {
|
|
25140
|
+
connected_account_id: string;
|
|
25141
|
+
};
|
|
25142
|
+
cookie?: never;
|
|
25143
|
+
};
|
|
25144
|
+
requestBody?: never;
|
|
25145
|
+
responses: {
|
|
25146
|
+
204: {
|
|
25147
|
+
headers: {
|
|
25148
|
+
[name: string]: unknown;
|
|
25149
|
+
};
|
|
25150
|
+
content: {
|
|
25151
|
+
"text/plain": string;
|
|
25152
|
+
};
|
|
25153
|
+
};
|
|
25154
|
+
401: {
|
|
25155
|
+
headers: {
|
|
25156
|
+
[name: string]: unknown;
|
|
25157
|
+
};
|
|
25158
|
+
content: {
|
|
25159
|
+
"application/json": components["schemas"]["UnauthorizedResponse"];
|
|
25160
|
+
};
|
|
25161
|
+
};
|
|
25162
|
+
404: {
|
|
25163
|
+
headers: {
|
|
25164
|
+
[name: string]: unknown;
|
|
25165
|
+
};
|
|
25166
|
+
content: {
|
|
25167
|
+
"application/json": components["schemas"]["NotFoundResponse"];
|
|
25168
|
+
};
|
|
25169
|
+
};
|
|
25170
|
+
};
|
|
25171
|
+
}, {
|
|
25172
|
+
params: {
|
|
25173
|
+
path: {
|
|
25174
|
+
connected_account_id: string;
|
|
25175
|
+
};
|
|
25176
|
+
};
|
|
25177
|
+
}, `${string}/${string}`>>;
|
|
24673
25178
|
declare function deleteProviderSchedule(client: FetchClient, path: PathParams<"/v1/provider_schedules/{provider_schedule_id}", "delete">): Promise<openapi_fetch.FetchResponse<{
|
|
24674
25179
|
parameters: {
|
|
24675
25180
|
query?: never;
|
|
@@ -25031,6 +25536,51 @@ declare function getClient(client: FetchClient, path: PathParams<"/v1/clients/{c
|
|
|
25031
25536
|
};
|
|
25032
25537
|
};
|
|
25033
25538
|
}, `${string}/${string}`>>;
|
|
25539
|
+
declare function getConnectedAccount(client: FetchClient, path: PathParams<"/v1/connected_accounts/{connected_account_id}", "get">): Promise<openapi_fetch.FetchResponse<{
|
|
25540
|
+
parameters: {
|
|
25541
|
+
query?: never;
|
|
25542
|
+
header?: {
|
|
25543
|
+
"X-SavvyCal-Account"?: string;
|
|
25544
|
+
};
|
|
25545
|
+
path: {
|
|
25546
|
+
connected_account_id: string;
|
|
25547
|
+
};
|
|
25548
|
+
cookie?: never;
|
|
25549
|
+
};
|
|
25550
|
+
requestBody?: never;
|
|
25551
|
+
responses: {
|
|
25552
|
+
200: {
|
|
25553
|
+
headers: {
|
|
25554
|
+
[name: string]: unknown;
|
|
25555
|
+
};
|
|
25556
|
+
content: {
|
|
25557
|
+
"application/json": components["schemas"]["ConnectedAccountResponse"];
|
|
25558
|
+
};
|
|
25559
|
+
};
|
|
25560
|
+
401: {
|
|
25561
|
+
headers: {
|
|
25562
|
+
[name: string]: unknown;
|
|
25563
|
+
};
|
|
25564
|
+
content: {
|
|
25565
|
+
"application/json": components["schemas"]["UnauthorizedResponse"];
|
|
25566
|
+
};
|
|
25567
|
+
};
|
|
25568
|
+
404: {
|
|
25569
|
+
headers: {
|
|
25570
|
+
[name: string]: unknown;
|
|
25571
|
+
};
|
|
25572
|
+
content: {
|
|
25573
|
+
"application/json": components["schemas"]["NotFoundResponse"];
|
|
25574
|
+
};
|
|
25575
|
+
};
|
|
25576
|
+
};
|
|
25577
|
+
}, {
|
|
25578
|
+
params: {
|
|
25579
|
+
path: {
|
|
25580
|
+
connected_account_id: string;
|
|
25581
|
+
};
|
|
25582
|
+
};
|
|
25583
|
+
}, `${string}/${string}`>>;
|
|
25034
25584
|
declare function getCurrentAccount(client: FetchClient): Promise<openapi_fetch.FetchResponse<{
|
|
25035
25585
|
parameters: {
|
|
25036
25586
|
query?: never;
|
|
@@ -25870,6 +26420,57 @@ declare function listClients(client: FetchClient, query?: QueryParams<"/v1/clien
|
|
|
25870
26420
|
} | undefined;
|
|
25871
26421
|
};
|
|
25872
26422
|
}, `${string}/${string}`>>;
|
|
26423
|
+
declare function listConnectedAccounts(client: FetchClient, query?: QueryParams<"/v1/connected_accounts", "get">): Promise<openapi_fetch.FetchResponse<{
|
|
26424
|
+
parameters: {
|
|
26425
|
+
query?: {
|
|
26426
|
+
page?: number;
|
|
26427
|
+
page_size?: number;
|
|
26428
|
+
user_id?: string;
|
|
26429
|
+
provider?: "google" | "microsoft" | "zoom_admin";
|
|
26430
|
+
};
|
|
26431
|
+
header?: {
|
|
26432
|
+
"X-SavvyCal-Account"?: string;
|
|
26433
|
+
};
|
|
26434
|
+
path?: never;
|
|
26435
|
+
cookie?: never;
|
|
26436
|
+
};
|
|
26437
|
+
requestBody?: never;
|
|
26438
|
+
responses: {
|
|
26439
|
+
200: {
|
|
26440
|
+
headers: {
|
|
26441
|
+
[name: string]: unknown;
|
|
26442
|
+
};
|
|
26443
|
+
content: {
|
|
26444
|
+
"application/json": components["schemas"]["ConnectedAccountsResponse"];
|
|
26445
|
+
};
|
|
26446
|
+
};
|
|
26447
|
+
401: {
|
|
26448
|
+
headers: {
|
|
26449
|
+
[name: string]: unknown;
|
|
26450
|
+
};
|
|
26451
|
+
content: {
|
|
26452
|
+
"application/json": components["schemas"]["UnauthorizedResponse"];
|
|
26453
|
+
};
|
|
26454
|
+
};
|
|
26455
|
+
422: {
|
|
26456
|
+
headers: {
|
|
26457
|
+
[name: string]: unknown;
|
|
26458
|
+
};
|
|
26459
|
+
content: {
|
|
26460
|
+
"application/json": components["schemas"]["JsonErrorResponse"];
|
|
26461
|
+
};
|
|
26462
|
+
};
|
|
26463
|
+
};
|
|
26464
|
+
}, {
|
|
26465
|
+
params: {
|
|
26466
|
+
query: {
|
|
26467
|
+
page?: number;
|
|
26468
|
+
page_size?: number;
|
|
26469
|
+
user_id?: string;
|
|
26470
|
+
provider?: "google" | "microsoft" | "zoom_admin";
|
|
26471
|
+
} | undefined;
|
|
26472
|
+
};
|
|
26473
|
+
}, `${string}/${string}`>>;
|
|
25873
26474
|
declare function listProviders(client: FetchClient, query?: QueryParams<"/v1/providers", "get">): Promise<openapi_fetch.FetchResponse<{
|
|
25874
26475
|
parameters: {
|
|
25875
26476
|
query?: {
|
|
@@ -26533,7 +27134,12 @@ declare function updateAccountUser(client: FetchClient, path: PathParams<"/v1/us
|
|
|
26533
27134
|
};
|
|
26534
27135
|
}, {
|
|
26535
27136
|
body: {
|
|
27137
|
+
email?: string;
|
|
27138
|
+
first_name?: string;
|
|
27139
|
+
last_name?: string;
|
|
26536
27140
|
passive?: boolean;
|
|
27141
|
+
role_ids?: string[];
|
|
27142
|
+
time_zone?: string;
|
|
26537
27143
|
} | undefined;
|
|
26538
27144
|
params: {
|
|
26539
27145
|
path: {
|
|
@@ -26732,6 +27338,66 @@ declare function updateClient(client: FetchClient, path: PathParams<"/v1/clients
|
|
|
26732
27338
|
};
|
|
26733
27339
|
};
|
|
26734
27340
|
}, `${string}/${string}`>>;
|
|
27341
|
+
declare function updateConnectedAccount(client: FetchClient, path: PathParams<"/v1/connected_accounts/{connected_account_id}", "patch">, body: RequestBody<"/v1/connected_accounts/{connected_account_id}", "patch">): Promise<openapi_fetch.FetchResponse<{
|
|
27342
|
+
parameters: {
|
|
27343
|
+
query?: never;
|
|
27344
|
+
header?: {
|
|
27345
|
+
"X-SavvyCal-Account"?: string;
|
|
27346
|
+
};
|
|
27347
|
+
path: {
|
|
27348
|
+
connected_account_id: string;
|
|
27349
|
+
};
|
|
27350
|
+
cookie?: never;
|
|
27351
|
+
};
|
|
27352
|
+
requestBody?: {
|
|
27353
|
+
content: {
|
|
27354
|
+
"application/json": components["schemas"]["UpdateConnectedAccountRequest"];
|
|
27355
|
+
};
|
|
27356
|
+
};
|
|
27357
|
+
responses: {
|
|
27358
|
+
200: {
|
|
27359
|
+
headers: {
|
|
27360
|
+
[name: string]: unknown;
|
|
27361
|
+
};
|
|
27362
|
+
content: {
|
|
27363
|
+
"application/json": components["schemas"]["ConnectedAccountResponse"];
|
|
27364
|
+
};
|
|
27365
|
+
};
|
|
27366
|
+
401: {
|
|
27367
|
+
headers: {
|
|
27368
|
+
[name: string]: unknown;
|
|
27369
|
+
};
|
|
27370
|
+
content: {
|
|
27371
|
+
"application/json": components["schemas"]["UnauthorizedResponse"];
|
|
27372
|
+
};
|
|
27373
|
+
};
|
|
27374
|
+
404: {
|
|
27375
|
+
headers: {
|
|
27376
|
+
[name: string]: unknown;
|
|
27377
|
+
};
|
|
27378
|
+
content: {
|
|
27379
|
+
"application/json": components["schemas"]["NotFoundResponse"];
|
|
27380
|
+
};
|
|
27381
|
+
};
|
|
27382
|
+
422: {
|
|
27383
|
+
headers: {
|
|
27384
|
+
[name: string]: unknown;
|
|
27385
|
+
};
|
|
27386
|
+
content: {
|
|
27387
|
+
"application/json": components["schemas"]["JsonErrorResponse"];
|
|
27388
|
+
};
|
|
27389
|
+
};
|
|
27390
|
+
};
|
|
27391
|
+
}, {
|
|
27392
|
+
body: {
|
|
27393
|
+
display_name?: string | null;
|
|
27394
|
+
} | undefined;
|
|
27395
|
+
params: {
|
|
27396
|
+
path: {
|
|
27397
|
+
connected_account_id: string;
|
|
27398
|
+
};
|
|
27399
|
+
};
|
|
27400
|
+
}, `${string}/${string}`>>;
|
|
26735
27401
|
declare function updateProvider(client: FetchClient, path: PathParams<"/v1/providers/{provider_id}", "patch">, body: RequestBody<"/v1/providers/{provider_id}", "patch">): Promise<openapi_fetch.FetchResponse<{
|
|
26736
27402
|
parameters: {
|
|
26737
27403
|
query?: never;
|
|
@@ -26953,4 +27619,4 @@ declare function updateService(client: FetchClient, path: PathParams<"/v1/servic
|
|
|
26953
27619
|
};
|
|
26954
27620
|
}, `${string}/${string}`>>;
|
|
26955
27621
|
|
|
26956
|
-
export { type Account, type AccountEvent, type AccountResponse, type AccountUser, type AccountUserResponse, 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 BookingPolicy, type CancelAppointmentRequest, type CancelPublicAppointmentRequest, type CancellationEvent, type CancellationPolicy, type CancellationReason, type CancellationReasonResponse, type CancellationReasonsResponse, type Client, type ClientResponse, type ClientsResponse, type ConfirmAppointmentRequest, type ConfirmationEvent, type ConnectedAccount, type ConnectedAccountCreatedEventData, type ConnectedAccountDeletedEventData, type ConnectedAccountReconnectedEventData, type ConnectedAccountRefreshFailedEventData, type CreateAccountRequest, type CreateAccountUserRequest, type CreateAppointmentRequest, type CreateBlockRequest, type CreateCancellationReasonRequest, type CreateClientRequest, type CreateDashboardSessionRequest, type CreateProviderRequest, type CreateProviderScheduleRequest, type CreatePublicAppointmentRequest, type CreateServiceProviderRequest, type CreateServiceRequest, type DashboardSession, type DashboardSessionResponse, type FetchClient, type FetchClientOptions, type GenericErrorResponse, type JsonErrorResponse, type MaximizeUtilizationPolicy, type NotFoundResponse, type PaginationMeta, type PathParams, type Platform, type PlatformResponse, type Provider, type ProviderResponse, type ProviderSchedule, type ProviderScheduleResponse, type ProviderSchedulesResponse, type ProvidersResponse, type PublicAppointment, type PublicAppointmentResponse, 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 ServiceProvider, type ServiceProviderResponse, type ServiceProvidersResponse, type ServiceResponse, type ServiceSlotResponse, type ServicesResponse, type Slot, type SlotRule, type UnauthorizedResponse, type UpdateAccountRequest, type UpdateAccountUserRequest, type UpdateBlockRequest, type UpdateCancellationReasonRequest, type UpdateClientRequest, type UpdateProviderRequest, type UpdateProviderScheduleRequest, type UpdateServiceRequest, type User, type WeeklyRule, type ZonedDateTime, cancelAppointment, cancelPublicAppointment, confirmAppointment, createAccount, createAccountUser, createAppointment, createBlock, createCancellationReason, createClient, createDashboardSession, createFetchClient, createProvider, createProviderSchedule, createPublicAppointment, createService, createServiceProvider, deactivateProvider, deleteBlock, deleteCancellationReason, deleteClient, deleteProviderSchedule, deleteService, deleteServiceProvider, getAccountById, getAppointment, getBlock, getCancellationReason, getClient, getCurrentAccount, getCurrentAccountUser, getCurrentPlatform, getEarliestPublicServiceSlot, getProvider, getProviderSchedule, getPublicAppointment, getService, listAccountUsers, listAccounts, listAppointments, listBlocks, listCancellationReasons, listClients, listProviderSchedules, listProviders, listPublicCancellationReasons, listPublicServiceSlots, listRoles, listServiceProviders, listServiceSlots, listServices, type paths, rescheduleAppointment, reschedulePublicAppointment, updateAccount, updateAccountUser, updateBlock, updateCancellationReason, updateClient, updateProvider, updateProviderSchedule, updateService };
|
|
27622
|
+
export { type Account, type AccountEvent, type AccountResponse, type AccountUser, type AccountUserResponse, 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 BookingPolicy, type CancelAppointmentRequest, type CancelPublicAppointmentRequest, type CancellationEvent, type CancellationPolicy, type CancellationReason, type CancellationReasonResponse, type CancellationReasonsResponse, type Client, type ClientResponse, type ClientsResponse, 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 CreateCancellationReasonRequest, type CreateClientRequest, type CreateDashboardSessionRequest, type CreateProviderRequest, type CreateProviderScheduleRequest, type CreatePublicAppointmentRequest, type CreateServiceProviderRequest, type CreateServiceRequest, type DashboardSession, type DashboardSessionResponse, type FetchClient, type FetchClientOptions, type GenericErrorResponse, type JsonErrorResponse, type MaximizeUtilizationPolicy, type NotFoundResponse, type PaginationMeta, type PathParams, type Platform, type PlatformResponse, type Provider, type ProviderResponse, type ProviderSchedule, type ProviderScheduleResponse, type ProviderSchedulesResponse, type ProvidersResponse, type PublicAppointment, type PublicAppointmentResponse, 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 ServiceProvider, type ServiceProviderResponse, type ServiceProvidersResponse, type ServiceResponse, type ServiceSlotResponse, type ServicesResponse, type Slot, type SlotRule, type UnauthorizedResponse, type UpdateAccountRequest, type UpdateAccountUserRequest, type UpdateBlockRequest, type UpdateCancellationReasonRequest, type UpdateClientRequest, type UpdateConnectedAccountRequest, type UpdateProviderRequest, type UpdateProviderScheduleRequest, type UpdateServiceRequest, type User, type WeeklyRule, type ZonedDateTime, cancelAppointment, cancelPublicAppointment, confirmAppointment, createAccount, createAccountUser, createAppointment, createBlock, createCancellationReason, createClient, createDashboardSession, createFetchClient, createProvider, createProviderSchedule, createPublicAppointment, createService, createServiceProvider, deactivateProvider, deleteBlock, deleteCancellationReason, deleteClient, deleteConnectedAccount, deleteProviderSchedule, deleteService, deleteServiceProvider, getAccountById, getAppointment, getBlock, getCancellationReason, getClient, getConnectedAccount, getCurrentAccount, getCurrentAccountUser, getCurrentPlatform, getEarliestPublicServiceSlot, getProvider, getProviderSchedule, getPublicAppointment, getService, listAccountUsers, listAccounts, listAppointments, listBlocks, listCancellationReasons, listClients, listConnectedAccounts, listProviderSchedules, listProviders, listPublicCancellationReasons, listPublicServiceSlots, listRoles, listServiceProviders, listServiceSlots, listServices, type paths, rescheduleAppointment, reschedulePublicAppointment, updateAccount, updateAccountUser, updateBlock, updateCancellationReason, updateClient, updateConnectedAccount, updateProvider, updateProviderSchedule, updateService };
|