@savvycal/appointments-core 0.3.0 → 0.4.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 +548 -19
- package/dist/index.d.ts +548 -19
- package/dist/index.js +25 -0
- package/package.json +1 -1
package/dist/index.d.cts
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: {
|
|
@@ -3052,6 +3104,17 @@ interface components {
|
|
|
3052
3104
|
AccountResponse: {
|
|
3053
3105
|
data?: components["schemas"]["Account"];
|
|
3054
3106
|
};
|
|
3107
|
+
/**
|
|
3108
|
+
* UpdateConnectedAccountRequest
|
|
3109
|
+
* @description Request schema for updating a connected account
|
|
3110
|
+
* @example {
|
|
3111
|
+
* "display_name": "Work Calendar"
|
|
3112
|
+
* }
|
|
3113
|
+
*/
|
|
3114
|
+
UpdateConnectedAccountRequest: {
|
|
3115
|
+
/** @description The display name for the connected account. */
|
|
3116
|
+
display_name?: string | null;
|
|
3117
|
+
};
|
|
3055
3118
|
/**
|
|
3056
3119
|
* GenericErrorResponse
|
|
3057
3120
|
* @description Response schema for generic error messages
|
|
@@ -3642,10 +3705,10 @@ interface components {
|
|
|
3642
3705
|
*/
|
|
3643
3706
|
provider: "google";
|
|
3644
3707
|
/**
|
|
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.
|
|
3708
|
+
* @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
3709
|
* @enum {string}
|
|
3647
3710
|
*/
|
|
3648
|
-
status: "active" | "reconnect_required";
|
|
3711
|
+
status: "active" | "reconnect_required" | "insufficient_permissions";
|
|
3649
3712
|
/**
|
|
3650
3713
|
* Format: date-time
|
|
3651
3714
|
* @description Time at which the object was last updated.
|
|
@@ -4172,10 +4235,10 @@ interface components {
|
|
|
4172
4235
|
*/
|
|
4173
4236
|
provider: "google";
|
|
4174
4237
|
/**
|
|
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.
|
|
4238
|
+
* @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
4239
|
* @enum {string}
|
|
4177
4240
|
*/
|
|
4178
|
-
status: "active" | "reconnect_required";
|
|
4241
|
+
status: "active" | "reconnect_required" | "insufficient_permissions";
|
|
4179
4242
|
/**
|
|
4180
4243
|
* Format: date-time
|
|
4181
4244
|
* @description Time at which the object was last updated.
|
|
@@ -4281,6 +4344,28 @@ interface components {
|
|
|
4281
4344
|
*/
|
|
4282
4345
|
updated_at: string;
|
|
4283
4346
|
};
|
|
4347
|
+
/**
|
|
4348
|
+
* ConnectedAccountResponse
|
|
4349
|
+
* @description Response schema for a single connected account
|
|
4350
|
+
* @example {
|
|
4351
|
+
* "data": {
|
|
4352
|
+
* "connection_scope": "user",
|
|
4353
|
+
* "created_at": "2025-03-12T12:34:55Z",
|
|
4354
|
+
* "display_name": "John Doe",
|
|
4355
|
+
* "email": "user@example.com",
|
|
4356
|
+
* "external_subject": "123456789",
|
|
4357
|
+
* "id": "cact_d025a96ac0c6",
|
|
4358
|
+
* "object": "connected_account",
|
|
4359
|
+
* "provider": "google",
|
|
4360
|
+
* "status": "active",
|
|
4361
|
+
* "updated_at": "2025-03-13T10:11:12Z",
|
|
4362
|
+
* "user_id": "user_d025a96ac0c6"
|
|
4363
|
+
* }
|
|
4364
|
+
* }
|
|
4365
|
+
*/
|
|
4366
|
+
ConnectedAccountResponse: {
|
|
4367
|
+
data: components["schemas"]["ConnectedAccount"];
|
|
4368
|
+
};
|
|
4284
4369
|
/**
|
|
4285
4370
|
* PublicServiceSlotsResponse
|
|
4286
4371
|
* @description Response schema for service slots via the public API
|
|
@@ -5820,10 +5905,10 @@ interface components {
|
|
|
5820
5905
|
*/
|
|
5821
5906
|
provider: "google";
|
|
5822
5907
|
/**
|
|
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.
|
|
5908
|
+
* @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
5909
|
* @enum {string}
|
|
5825
5910
|
*/
|
|
5826
|
-
status: "active" | "reconnect_required";
|
|
5911
|
+
status: "active" | "reconnect_required" | "insufficient_permissions";
|
|
5827
5912
|
/**
|
|
5828
5913
|
* Format: date-time
|
|
5829
5914
|
* @description Time at which the object was last updated.
|
|
@@ -11942,10 +12027,10 @@ interface components {
|
|
|
11942
12027
|
*/
|
|
11943
12028
|
provider: "google";
|
|
11944
12029
|
/**
|
|
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.
|
|
12030
|
+
* @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
12031
|
* @enum {string}
|
|
11947
12032
|
*/
|
|
11948
|
-
status: "active" | "reconnect_required";
|
|
12033
|
+
status: "active" | "reconnect_required" | "insufficient_permissions";
|
|
11949
12034
|
/**
|
|
11950
12035
|
* Format: date-time
|
|
11951
12036
|
* @description Time at which the object was last updated.
|
|
@@ -12007,10 +12092,10 @@ interface components {
|
|
|
12007
12092
|
*/
|
|
12008
12093
|
provider: "google";
|
|
12009
12094
|
/**
|
|
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.
|
|
12095
|
+
* @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
12096
|
* @enum {string}
|
|
12012
12097
|
*/
|
|
12013
|
-
status: "active" | "reconnect_required";
|
|
12098
|
+
status: "active" | "reconnect_required" | "insufficient_permissions";
|
|
12014
12099
|
/**
|
|
12015
12100
|
* Format: date-time
|
|
12016
12101
|
* @description Time at which the object was last updated.
|
|
@@ -12072,10 +12157,10 @@ interface components {
|
|
|
12072
12157
|
*/
|
|
12073
12158
|
provider: "google";
|
|
12074
12159
|
/**
|
|
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.
|
|
12160
|
+
* @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
12161
|
* @enum {string}
|
|
12077
12162
|
*/
|
|
12078
|
-
status: "active" | "reconnect_required";
|
|
12163
|
+
status: "active" | "reconnect_required" | "insufficient_permissions";
|
|
12079
12164
|
/**
|
|
12080
12165
|
* Format: date-time
|
|
12081
12166
|
* @description Time at which the object was last updated.
|
|
@@ -12137,10 +12222,10 @@ interface components {
|
|
|
12137
12222
|
*/
|
|
12138
12223
|
provider: "google";
|
|
12139
12224
|
/**
|
|
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.
|
|
12225
|
+
* @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
12226
|
* @enum {string}
|
|
12142
12227
|
*/
|
|
12143
|
-
status: "active" | "reconnect_required";
|
|
12228
|
+
status: "active" | "reconnect_required" | "insufficient_permissions";
|
|
12144
12229
|
/**
|
|
12145
12230
|
* Format: date-time
|
|
12146
12231
|
* @description Time at which the object was last updated.
|
|
@@ -13884,10 +13969,10 @@ interface components {
|
|
|
13884
13969
|
*/
|
|
13885
13970
|
provider: "google";
|
|
13886
13971
|
/**
|
|
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.
|
|
13972
|
+
* @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
13973
|
* @enum {string}
|
|
13889
13974
|
*/
|
|
13890
|
-
status: "active" | "reconnect_required";
|
|
13975
|
+
status: "active" | "reconnect_required" | "insufficient_permissions";
|
|
13891
13976
|
/**
|
|
13892
13977
|
* Format: date-time
|
|
13893
13978
|
* @description Time at which the object was last updated.
|
|
@@ -15818,6 +15903,38 @@ interface components {
|
|
|
15818
15903
|
*/
|
|
15819
15904
|
updated_at: string;
|
|
15820
15905
|
};
|
|
15906
|
+
/**
|
|
15907
|
+
* ConnectedAccountsResponse
|
|
15908
|
+
* @description Response schema for multiple connected accounts
|
|
15909
|
+
* @example {
|
|
15910
|
+
* "data": [
|
|
15911
|
+
* {
|
|
15912
|
+
* "connection_scope": "user",
|
|
15913
|
+
* "created_at": "2025-03-12T12:34:55Z",
|
|
15914
|
+
* "display_name": "John Doe",
|
|
15915
|
+
* "email": "user@example.com",
|
|
15916
|
+
* "external_subject": "123456789",
|
|
15917
|
+
* "id": "cact_d025a96ac0c6",
|
|
15918
|
+
* "object": "connected_account",
|
|
15919
|
+
* "provider": "google",
|
|
15920
|
+
* "status": "active",
|
|
15921
|
+
* "updated_at": "2025-03-13T10:11:12Z",
|
|
15922
|
+
* "user_id": "user_d025a96ac0c6"
|
|
15923
|
+
* }
|
|
15924
|
+
* ],
|
|
15925
|
+
* "meta": {
|
|
15926
|
+
* "current_page": 1,
|
|
15927
|
+
* "page_size": 10,
|
|
15928
|
+
* "total_count": 50,
|
|
15929
|
+
* "total_pages": 5
|
|
15930
|
+
* }
|
|
15931
|
+
* }
|
|
15932
|
+
*/
|
|
15933
|
+
ConnectedAccountsResponse: {
|
|
15934
|
+
/** @description A list of connected accounts */
|
|
15935
|
+
data: components["schemas"]["ConnectedAccount"][];
|
|
15936
|
+
meta: components["schemas"]["PaginationMeta"];
|
|
15937
|
+
};
|
|
15821
15938
|
/**
|
|
15822
15939
|
* AccountsResponse
|
|
15823
15940
|
* @description Response schema for a list of accounts
|
|
@@ -18791,10 +18908,10 @@ interface components {
|
|
|
18791
18908
|
*/
|
|
18792
18909
|
provider: "google";
|
|
18793
18910
|
/**
|
|
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.
|
|
18911
|
+
* @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
18912
|
* @enum {string}
|
|
18796
18913
|
*/
|
|
18797
|
-
status: "active" | "reconnect_required";
|
|
18914
|
+
status: "active" | "reconnect_required" | "insufficient_permissions";
|
|
18798
18915
|
/**
|
|
18799
18916
|
* Format: date-time
|
|
18800
18917
|
* @description Time at which the object was last updated.
|
|
@@ -22089,6 +22206,161 @@ interface operations {
|
|
|
22089
22206
|
};
|
|
22090
22207
|
};
|
|
22091
22208
|
};
|
|
22209
|
+
getConnectedAccount: {
|
|
22210
|
+
parameters: {
|
|
22211
|
+
query?: never;
|
|
22212
|
+
header?: {
|
|
22213
|
+
/**
|
|
22214
|
+
* @description When authenticating with a platform token, specifies the account ID for the request
|
|
22215
|
+
* @example acct_1234567890
|
|
22216
|
+
*/
|
|
22217
|
+
"X-SavvyCal-Account"?: string;
|
|
22218
|
+
};
|
|
22219
|
+
path: {
|
|
22220
|
+
/** @description Connected Account ID */
|
|
22221
|
+
connected_account_id: string;
|
|
22222
|
+
};
|
|
22223
|
+
cookie?: never;
|
|
22224
|
+
};
|
|
22225
|
+
requestBody?: never;
|
|
22226
|
+
responses: {
|
|
22227
|
+
/** @description Success */
|
|
22228
|
+
200: {
|
|
22229
|
+
headers: {
|
|
22230
|
+
[name: string]: unknown;
|
|
22231
|
+
};
|
|
22232
|
+
content: {
|
|
22233
|
+
"application/json": components["schemas"]["ConnectedAccountResponse"];
|
|
22234
|
+
};
|
|
22235
|
+
};
|
|
22236
|
+
/** @description Unauthorized */
|
|
22237
|
+
401: {
|
|
22238
|
+
headers: {
|
|
22239
|
+
[name: string]: unknown;
|
|
22240
|
+
};
|
|
22241
|
+
content: {
|
|
22242
|
+
"application/json": components["schemas"]["UnauthorizedResponse"];
|
|
22243
|
+
};
|
|
22244
|
+
};
|
|
22245
|
+
/** @description Not Found */
|
|
22246
|
+
404: {
|
|
22247
|
+
headers: {
|
|
22248
|
+
[name: string]: unknown;
|
|
22249
|
+
};
|
|
22250
|
+
content: {
|
|
22251
|
+
"application/json": components["schemas"]["NotFoundResponse"];
|
|
22252
|
+
};
|
|
22253
|
+
};
|
|
22254
|
+
};
|
|
22255
|
+
};
|
|
22256
|
+
deleteConnectedAccount: {
|
|
22257
|
+
parameters: {
|
|
22258
|
+
query?: never;
|
|
22259
|
+
header?: {
|
|
22260
|
+
/**
|
|
22261
|
+
* @description When authenticating with a platform token, specifies the account ID for the request
|
|
22262
|
+
* @example acct_1234567890
|
|
22263
|
+
*/
|
|
22264
|
+
"X-SavvyCal-Account"?: string;
|
|
22265
|
+
};
|
|
22266
|
+
path: {
|
|
22267
|
+
/** @description Connected Account ID */
|
|
22268
|
+
connected_account_id: string;
|
|
22269
|
+
};
|
|
22270
|
+
cookie?: never;
|
|
22271
|
+
};
|
|
22272
|
+
requestBody?: never;
|
|
22273
|
+
responses: {
|
|
22274
|
+
/** @description No Content */
|
|
22275
|
+
204: {
|
|
22276
|
+
headers: {
|
|
22277
|
+
[name: string]: unknown;
|
|
22278
|
+
};
|
|
22279
|
+
content: {
|
|
22280
|
+
"text/plain": string;
|
|
22281
|
+
};
|
|
22282
|
+
};
|
|
22283
|
+
/** @description Unauthorized */
|
|
22284
|
+
401: {
|
|
22285
|
+
headers: {
|
|
22286
|
+
[name: string]: unknown;
|
|
22287
|
+
};
|
|
22288
|
+
content: {
|
|
22289
|
+
"application/json": components["schemas"]["UnauthorizedResponse"];
|
|
22290
|
+
};
|
|
22291
|
+
};
|
|
22292
|
+
/** @description Not Found */
|
|
22293
|
+
404: {
|
|
22294
|
+
headers: {
|
|
22295
|
+
[name: string]: unknown;
|
|
22296
|
+
};
|
|
22297
|
+
content: {
|
|
22298
|
+
"application/json": components["schemas"]["NotFoundResponse"];
|
|
22299
|
+
};
|
|
22300
|
+
};
|
|
22301
|
+
};
|
|
22302
|
+
};
|
|
22303
|
+
updateConnectedAccount: {
|
|
22304
|
+
parameters: {
|
|
22305
|
+
query?: never;
|
|
22306
|
+
header?: {
|
|
22307
|
+
/**
|
|
22308
|
+
* @description When authenticating with a platform token, specifies the account ID for the request
|
|
22309
|
+
* @example acct_1234567890
|
|
22310
|
+
*/
|
|
22311
|
+
"X-SavvyCal-Account"?: string;
|
|
22312
|
+
};
|
|
22313
|
+
path: {
|
|
22314
|
+
/** @description Connected Account ID */
|
|
22315
|
+
connected_account_id: string;
|
|
22316
|
+
};
|
|
22317
|
+
cookie?: never;
|
|
22318
|
+
};
|
|
22319
|
+
/** @description Connected account params */
|
|
22320
|
+
requestBody?: {
|
|
22321
|
+
content: {
|
|
22322
|
+
"application/json": components["schemas"]["UpdateConnectedAccountRequest"];
|
|
22323
|
+
};
|
|
22324
|
+
};
|
|
22325
|
+
responses: {
|
|
22326
|
+
/** @description Success */
|
|
22327
|
+
200: {
|
|
22328
|
+
headers: {
|
|
22329
|
+
[name: string]: unknown;
|
|
22330
|
+
};
|
|
22331
|
+
content: {
|
|
22332
|
+
"application/json": components["schemas"]["ConnectedAccountResponse"];
|
|
22333
|
+
};
|
|
22334
|
+
};
|
|
22335
|
+
/** @description Unauthorized */
|
|
22336
|
+
401: {
|
|
22337
|
+
headers: {
|
|
22338
|
+
[name: string]: unknown;
|
|
22339
|
+
};
|
|
22340
|
+
content: {
|
|
22341
|
+
"application/json": components["schemas"]["UnauthorizedResponse"];
|
|
22342
|
+
};
|
|
22343
|
+
};
|
|
22344
|
+
/** @description Not Found */
|
|
22345
|
+
404: {
|
|
22346
|
+
headers: {
|
|
22347
|
+
[name: string]: unknown;
|
|
22348
|
+
};
|
|
22349
|
+
content: {
|
|
22350
|
+
"application/json": components["schemas"]["NotFoundResponse"];
|
|
22351
|
+
};
|
|
22352
|
+
};
|
|
22353
|
+
/** @description Unprocessable Entity */
|
|
22354
|
+
422: {
|
|
22355
|
+
headers: {
|
|
22356
|
+
[name: string]: unknown;
|
|
22357
|
+
};
|
|
22358
|
+
content: {
|
|
22359
|
+
"application/json": components["schemas"]["JsonErrorResponse"];
|
|
22360
|
+
};
|
|
22361
|
+
};
|
|
22362
|
+
};
|
|
22363
|
+
};
|
|
22092
22364
|
listRoles: {
|
|
22093
22365
|
parameters: {
|
|
22094
22366
|
query?: never;
|
|
@@ -23476,6 +23748,59 @@ interface operations {
|
|
|
23476
23748
|
};
|
|
23477
23749
|
};
|
|
23478
23750
|
};
|
|
23751
|
+
listConnectedAccounts: {
|
|
23752
|
+
parameters: {
|
|
23753
|
+
query?: {
|
|
23754
|
+
/** @description Page number */
|
|
23755
|
+
page?: number;
|
|
23756
|
+
/** @description Number of items per page */
|
|
23757
|
+
page_size?: number;
|
|
23758
|
+
/** @description Only return connected accounts that belong to the specified user. */
|
|
23759
|
+
user_id?: string;
|
|
23760
|
+
/** @description Only return connected accounts for the specified provider. */
|
|
23761
|
+
provider?: "google";
|
|
23762
|
+
};
|
|
23763
|
+
header?: {
|
|
23764
|
+
/**
|
|
23765
|
+
* @description When authenticating with a platform token, specifies the account ID for the request
|
|
23766
|
+
* @example acct_1234567890
|
|
23767
|
+
*/
|
|
23768
|
+
"X-SavvyCal-Account"?: string;
|
|
23769
|
+
};
|
|
23770
|
+
path?: never;
|
|
23771
|
+
cookie?: never;
|
|
23772
|
+
};
|
|
23773
|
+
requestBody?: never;
|
|
23774
|
+
responses: {
|
|
23775
|
+
/** @description Success */
|
|
23776
|
+
200: {
|
|
23777
|
+
headers: {
|
|
23778
|
+
[name: string]: unknown;
|
|
23779
|
+
};
|
|
23780
|
+
content: {
|
|
23781
|
+
"application/json": components["schemas"]["ConnectedAccountsResponse"];
|
|
23782
|
+
};
|
|
23783
|
+
};
|
|
23784
|
+
/** @description Unauthorized */
|
|
23785
|
+
401: {
|
|
23786
|
+
headers: {
|
|
23787
|
+
[name: string]: unknown;
|
|
23788
|
+
};
|
|
23789
|
+
content: {
|
|
23790
|
+
"application/json": components["schemas"]["UnauthorizedResponse"];
|
|
23791
|
+
};
|
|
23792
|
+
};
|
|
23793
|
+
/** @description Unprocessable Entity */
|
|
23794
|
+
422: {
|
|
23795
|
+
headers: {
|
|
23796
|
+
[name: string]: unknown;
|
|
23797
|
+
};
|
|
23798
|
+
content: {
|
|
23799
|
+
"application/json": components["schemas"]["JsonErrorResponse"];
|
|
23800
|
+
};
|
|
23801
|
+
};
|
|
23802
|
+
};
|
|
23803
|
+
};
|
|
23479
23804
|
}
|
|
23480
23805
|
|
|
23481
23806
|
/**
|
|
@@ -23524,6 +23849,8 @@ type ConnectedAccountCreatedEventData = Schemas["ConnectedAccountCreatedEventDat
|
|
|
23524
23849
|
type ConnectedAccountDeletedEventData = Schemas["ConnectedAccountDeletedEventData"];
|
|
23525
23850
|
type ConnectedAccountReconnectedEventData = Schemas["ConnectedAccountReconnectedEventData"];
|
|
23526
23851
|
type ConnectedAccountRefreshFailedEventData = Schemas["ConnectedAccountRefreshFailedEventData"];
|
|
23852
|
+
type ConnectedAccountResponse = Schemas["ConnectedAccountResponse"];
|
|
23853
|
+
type ConnectedAccountsResponse = Schemas["ConnectedAccountsResponse"];
|
|
23527
23854
|
type CreateAccountRequest = Schemas["CreateAccountRequest"];
|
|
23528
23855
|
type CreateAccountUserRequest = Schemas["CreateAccountUserRequest"];
|
|
23529
23856
|
type CreateAppointmentRequest = Schemas["CreateAppointmentRequest"];
|
|
@@ -23579,6 +23906,7 @@ type UpdateAccountUserRequest = Schemas["UpdateAccountUserRequest"];
|
|
|
23579
23906
|
type UpdateBlockRequest = Schemas["UpdateBlockRequest"];
|
|
23580
23907
|
type UpdateCancellationReasonRequest = Schemas["UpdateCancellationReasonRequest"];
|
|
23581
23908
|
type UpdateClientRequest = Schemas["UpdateClientRequest"];
|
|
23909
|
+
type UpdateConnectedAccountRequest = Schemas["UpdateConnectedAccountRequest"];
|
|
23582
23910
|
type UpdateProviderRequest = Schemas["UpdateProviderRequest"];
|
|
23583
23911
|
type UpdateProviderScheduleRequest = Schemas["UpdateProviderScheduleRequest"];
|
|
23584
23912
|
type UpdateServiceRequest = Schemas["UpdateServiceRequest"];
|
|
@@ -24670,6 +24998,51 @@ declare function deleteClient(client: FetchClient, path: PathParams<"/v1/clients
|
|
|
24670
24998
|
};
|
|
24671
24999
|
};
|
|
24672
25000
|
}, `${string}/${string}`>>;
|
|
25001
|
+
declare function deleteConnectedAccount(client: FetchClient, path: PathParams<"/v1/connected_accounts/{connected_account_id}", "delete">): Promise<openapi_fetch.FetchResponse<{
|
|
25002
|
+
parameters: {
|
|
25003
|
+
query?: never;
|
|
25004
|
+
header?: {
|
|
25005
|
+
"X-SavvyCal-Account"?: string;
|
|
25006
|
+
};
|
|
25007
|
+
path: {
|
|
25008
|
+
connected_account_id: string;
|
|
25009
|
+
};
|
|
25010
|
+
cookie?: never;
|
|
25011
|
+
};
|
|
25012
|
+
requestBody?: never;
|
|
25013
|
+
responses: {
|
|
25014
|
+
204: {
|
|
25015
|
+
headers: {
|
|
25016
|
+
[name: string]: unknown;
|
|
25017
|
+
};
|
|
25018
|
+
content: {
|
|
25019
|
+
"text/plain": string;
|
|
25020
|
+
};
|
|
25021
|
+
};
|
|
25022
|
+
401: {
|
|
25023
|
+
headers: {
|
|
25024
|
+
[name: string]: unknown;
|
|
25025
|
+
};
|
|
25026
|
+
content: {
|
|
25027
|
+
"application/json": components["schemas"]["UnauthorizedResponse"];
|
|
25028
|
+
};
|
|
25029
|
+
};
|
|
25030
|
+
404: {
|
|
25031
|
+
headers: {
|
|
25032
|
+
[name: string]: unknown;
|
|
25033
|
+
};
|
|
25034
|
+
content: {
|
|
25035
|
+
"application/json": components["schemas"]["NotFoundResponse"];
|
|
25036
|
+
};
|
|
25037
|
+
};
|
|
25038
|
+
};
|
|
25039
|
+
}, {
|
|
25040
|
+
params: {
|
|
25041
|
+
path: {
|
|
25042
|
+
connected_account_id: string;
|
|
25043
|
+
};
|
|
25044
|
+
};
|
|
25045
|
+
}, `${string}/${string}`>>;
|
|
24673
25046
|
declare function deleteProviderSchedule(client: FetchClient, path: PathParams<"/v1/provider_schedules/{provider_schedule_id}", "delete">): Promise<openapi_fetch.FetchResponse<{
|
|
24674
25047
|
parameters: {
|
|
24675
25048
|
query?: never;
|
|
@@ -25031,6 +25404,51 @@ declare function getClient(client: FetchClient, path: PathParams<"/v1/clients/{c
|
|
|
25031
25404
|
};
|
|
25032
25405
|
};
|
|
25033
25406
|
}, `${string}/${string}`>>;
|
|
25407
|
+
declare function getConnectedAccount(client: FetchClient, path: PathParams<"/v1/connected_accounts/{connected_account_id}", "get">): Promise<openapi_fetch.FetchResponse<{
|
|
25408
|
+
parameters: {
|
|
25409
|
+
query?: never;
|
|
25410
|
+
header?: {
|
|
25411
|
+
"X-SavvyCal-Account"?: string;
|
|
25412
|
+
};
|
|
25413
|
+
path: {
|
|
25414
|
+
connected_account_id: string;
|
|
25415
|
+
};
|
|
25416
|
+
cookie?: never;
|
|
25417
|
+
};
|
|
25418
|
+
requestBody?: never;
|
|
25419
|
+
responses: {
|
|
25420
|
+
200: {
|
|
25421
|
+
headers: {
|
|
25422
|
+
[name: string]: unknown;
|
|
25423
|
+
};
|
|
25424
|
+
content: {
|
|
25425
|
+
"application/json": components["schemas"]["ConnectedAccountResponse"];
|
|
25426
|
+
};
|
|
25427
|
+
};
|
|
25428
|
+
401: {
|
|
25429
|
+
headers: {
|
|
25430
|
+
[name: string]: unknown;
|
|
25431
|
+
};
|
|
25432
|
+
content: {
|
|
25433
|
+
"application/json": components["schemas"]["UnauthorizedResponse"];
|
|
25434
|
+
};
|
|
25435
|
+
};
|
|
25436
|
+
404: {
|
|
25437
|
+
headers: {
|
|
25438
|
+
[name: string]: unknown;
|
|
25439
|
+
};
|
|
25440
|
+
content: {
|
|
25441
|
+
"application/json": components["schemas"]["NotFoundResponse"];
|
|
25442
|
+
};
|
|
25443
|
+
};
|
|
25444
|
+
};
|
|
25445
|
+
}, {
|
|
25446
|
+
params: {
|
|
25447
|
+
path: {
|
|
25448
|
+
connected_account_id: string;
|
|
25449
|
+
};
|
|
25450
|
+
};
|
|
25451
|
+
}, `${string}/${string}`>>;
|
|
25034
25452
|
declare function getCurrentAccount(client: FetchClient): Promise<openapi_fetch.FetchResponse<{
|
|
25035
25453
|
parameters: {
|
|
25036
25454
|
query?: never;
|
|
@@ -25870,6 +26288,57 @@ declare function listClients(client: FetchClient, query?: QueryParams<"/v1/clien
|
|
|
25870
26288
|
} | undefined;
|
|
25871
26289
|
};
|
|
25872
26290
|
}, `${string}/${string}`>>;
|
|
26291
|
+
declare function listConnectedAccounts(client: FetchClient, query?: QueryParams<"/v1/connected_accounts", "get">): Promise<openapi_fetch.FetchResponse<{
|
|
26292
|
+
parameters: {
|
|
26293
|
+
query?: {
|
|
26294
|
+
page?: number;
|
|
26295
|
+
page_size?: number;
|
|
26296
|
+
user_id?: string;
|
|
26297
|
+
provider?: "google";
|
|
26298
|
+
};
|
|
26299
|
+
header?: {
|
|
26300
|
+
"X-SavvyCal-Account"?: string;
|
|
26301
|
+
};
|
|
26302
|
+
path?: never;
|
|
26303
|
+
cookie?: never;
|
|
26304
|
+
};
|
|
26305
|
+
requestBody?: never;
|
|
26306
|
+
responses: {
|
|
26307
|
+
200: {
|
|
26308
|
+
headers: {
|
|
26309
|
+
[name: string]: unknown;
|
|
26310
|
+
};
|
|
26311
|
+
content: {
|
|
26312
|
+
"application/json": components["schemas"]["ConnectedAccountsResponse"];
|
|
26313
|
+
};
|
|
26314
|
+
};
|
|
26315
|
+
401: {
|
|
26316
|
+
headers: {
|
|
26317
|
+
[name: string]: unknown;
|
|
26318
|
+
};
|
|
26319
|
+
content: {
|
|
26320
|
+
"application/json": components["schemas"]["UnauthorizedResponse"];
|
|
26321
|
+
};
|
|
26322
|
+
};
|
|
26323
|
+
422: {
|
|
26324
|
+
headers: {
|
|
26325
|
+
[name: string]: unknown;
|
|
26326
|
+
};
|
|
26327
|
+
content: {
|
|
26328
|
+
"application/json": components["schemas"]["JsonErrorResponse"];
|
|
26329
|
+
};
|
|
26330
|
+
};
|
|
26331
|
+
};
|
|
26332
|
+
}, {
|
|
26333
|
+
params: {
|
|
26334
|
+
query: {
|
|
26335
|
+
page?: number;
|
|
26336
|
+
page_size?: number;
|
|
26337
|
+
user_id?: string;
|
|
26338
|
+
provider?: "google";
|
|
26339
|
+
} | undefined;
|
|
26340
|
+
};
|
|
26341
|
+
}, `${string}/${string}`>>;
|
|
25873
26342
|
declare function listProviders(client: FetchClient, query?: QueryParams<"/v1/providers", "get">): Promise<openapi_fetch.FetchResponse<{
|
|
25874
26343
|
parameters: {
|
|
25875
26344
|
query?: {
|
|
@@ -26732,6 +27201,66 @@ declare function updateClient(client: FetchClient, path: PathParams<"/v1/clients
|
|
|
26732
27201
|
};
|
|
26733
27202
|
};
|
|
26734
27203
|
}, `${string}/${string}`>>;
|
|
27204
|
+
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<{
|
|
27205
|
+
parameters: {
|
|
27206
|
+
query?: never;
|
|
27207
|
+
header?: {
|
|
27208
|
+
"X-SavvyCal-Account"?: string;
|
|
27209
|
+
};
|
|
27210
|
+
path: {
|
|
27211
|
+
connected_account_id: string;
|
|
27212
|
+
};
|
|
27213
|
+
cookie?: never;
|
|
27214
|
+
};
|
|
27215
|
+
requestBody?: {
|
|
27216
|
+
content: {
|
|
27217
|
+
"application/json": components["schemas"]["UpdateConnectedAccountRequest"];
|
|
27218
|
+
};
|
|
27219
|
+
};
|
|
27220
|
+
responses: {
|
|
27221
|
+
200: {
|
|
27222
|
+
headers: {
|
|
27223
|
+
[name: string]: unknown;
|
|
27224
|
+
};
|
|
27225
|
+
content: {
|
|
27226
|
+
"application/json": components["schemas"]["ConnectedAccountResponse"];
|
|
27227
|
+
};
|
|
27228
|
+
};
|
|
27229
|
+
401: {
|
|
27230
|
+
headers: {
|
|
27231
|
+
[name: string]: unknown;
|
|
27232
|
+
};
|
|
27233
|
+
content: {
|
|
27234
|
+
"application/json": components["schemas"]["UnauthorizedResponse"];
|
|
27235
|
+
};
|
|
27236
|
+
};
|
|
27237
|
+
404: {
|
|
27238
|
+
headers: {
|
|
27239
|
+
[name: string]: unknown;
|
|
27240
|
+
};
|
|
27241
|
+
content: {
|
|
27242
|
+
"application/json": components["schemas"]["NotFoundResponse"];
|
|
27243
|
+
};
|
|
27244
|
+
};
|
|
27245
|
+
422: {
|
|
27246
|
+
headers: {
|
|
27247
|
+
[name: string]: unknown;
|
|
27248
|
+
};
|
|
27249
|
+
content: {
|
|
27250
|
+
"application/json": components["schemas"]["JsonErrorResponse"];
|
|
27251
|
+
};
|
|
27252
|
+
};
|
|
27253
|
+
};
|
|
27254
|
+
}, {
|
|
27255
|
+
body: {
|
|
27256
|
+
display_name?: string | null;
|
|
27257
|
+
} | undefined;
|
|
27258
|
+
params: {
|
|
27259
|
+
path: {
|
|
27260
|
+
connected_account_id: string;
|
|
27261
|
+
};
|
|
27262
|
+
};
|
|
27263
|
+
}, `${string}/${string}`>>;
|
|
26735
27264
|
declare function updateProvider(client: FetchClient, path: PathParams<"/v1/providers/{provider_id}", "patch">, body: RequestBody<"/v1/providers/{provider_id}", "patch">): Promise<openapi_fetch.FetchResponse<{
|
|
26736
27265
|
parameters: {
|
|
26737
27266
|
query?: never;
|
|
@@ -26953,4 +27482,4 @@ declare function updateService(client: FetchClient, path: PathParams<"/v1/servic
|
|
|
26953
27482
|
};
|
|
26954
27483
|
}, `${string}/${string}`>>;
|
|
26955
27484
|
|
|
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 };
|
|
27485
|
+
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 };
|