recal-sdk 0.3.3 → 1.0.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.
Files changed (198) hide show
  1. package/README.md +24 -796
  2. package/dist/client/client/client.gen.d.ts +3 -0
  3. package/dist/client/client/client.gen.d.ts.map +1 -0
  4. package/dist/client/client/client.gen.js +205 -0
  5. package/dist/client/client/client.gen.js.map +1 -0
  6. package/dist/client/client/index.d.ts +9 -0
  7. package/dist/client/client/index.d.ts.map +1 -0
  8. package/dist/client/client/index.js +7 -0
  9. package/dist/client/client/index.js.map +1 -0
  10. package/dist/client/client/types.gen.d.ts +125 -0
  11. package/dist/client/client/types.gen.d.ts.map +1 -0
  12. package/dist/client/client/types.gen.js +3 -0
  13. package/dist/client/client/types.gen.js.map +1 -0
  14. package/dist/client/client/utils.gen.d.ts +34 -0
  15. package/dist/client/client/utils.gen.d.ts.map +1 -0
  16. package/dist/client/client/utils.gen.js +232 -0
  17. package/dist/client/client/utils.gen.js.map +1 -0
  18. package/dist/client/client.gen.d.ts +13 -0
  19. package/dist/client/client.gen.d.ts.map +1 -0
  20. package/dist/client/client.gen.js +6 -0
  21. package/dist/client/client.gen.js.map +1 -0
  22. package/dist/client/core/auth.gen.d.ts +19 -0
  23. package/dist/client/core/auth.gen.d.ts.map +1 -0
  24. package/dist/client/core/auth.gen.js +15 -0
  25. package/dist/client/core/auth.gen.js.map +1 -0
  26. package/dist/client/core/bodySerializer.gen.d.ts +26 -0
  27. package/dist/client/core/bodySerializer.gen.d.ts.map +1 -0
  28. package/dist/client/core/bodySerializer.gen.js +58 -0
  29. package/dist/client/core/bodySerializer.gen.js.map +1 -0
  30. package/dist/client/core/params.gen.d.ts +34 -0
  31. package/dist/client/core/params.gen.d.ts.map +1 -0
  32. package/dist/client/core/params.gen.js +89 -0
  33. package/dist/client/core/params.gen.js.map +1 -0
  34. package/dist/client/core/pathSerializer.gen.d.ts +34 -0
  35. package/dist/client/core/pathSerializer.gen.d.ts.map +1 -0
  36. package/dist/client/core/pathSerializer.gen.js +115 -0
  37. package/dist/client/core/pathSerializer.gen.js.map +1 -0
  38. package/dist/client/core/queryKeySerializer.gen.d.ts +19 -0
  39. package/dist/client/core/queryKeySerializer.gen.d.ts.map +1 -0
  40. package/dist/client/core/queryKeySerializer.gen.js +100 -0
  41. package/dist/client/core/queryKeySerializer.gen.js.map +1 -0
  42. package/dist/client/core/serverSentEvents.gen.d.ts +72 -0
  43. package/dist/client/core/serverSentEvents.gen.d.ts.map +1 -0
  44. package/dist/client/core/serverSentEvents.gen.js +136 -0
  45. package/dist/client/core/serverSentEvents.gen.js.map +1 -0
  46. package/dist/client/core/types.gen.d.ts +79 -0
  47. package/dist/client/core/types.gen.d.ts.map +1 -0
  48. package/dist/client/core/types.gen.js +3 -0
  49. package/dist/client/core/types.gen.js.map +1 -0
  50. package/dist/client/core/utils.gen.d.ts +20 -0
  51. package/dist/client/core/utils.gen.d.ts.map +1 -0
  52. package/dist/client/core/utils.gen.js +88 -0
  53. package/dist/client/core/utils.gen.js.map +1 -0
  54. package/dist/client/index.d.ts +3 -0
  55. package/dist/client/index.d.ts.map +1 -0
  56. package/dist/client/index.js +3 -0
  57. package/dist/client/index.js.map +1 -0
  58. package/dist/client/sdk.gen.d.ts +170 -0
  59. package/dist/client/sdk.gen.d.ts.map +1 -0
  60. package/dist/client/sdk.gen.js +884 -0
  61. package/dist/client/sdk.gen.js.map +1 -0
  62. package/dist/client/transformers.gen.d.ts +31 -0
  63. package/dist/client/transformers.gen.d.ts.map +1 -0
  64. package/dist/client/transformers.gen.js +263 -0
  65. package/dist/client/transformers.gen.js.map +1 -0
  66. package/dist/client/types.gen.d.ts +1765 -0
  67. package/dist/client/types.gen.d.ts.map +1 -0
  68. package/dist/client/types.gen.js +3 -0
  69. package/dist/client/types.gen.js.map +1 -0
  70. package/dist/client/zod.gen.d.ts +1457 -0
  71. package/dist/client/zod.gen.d.ts.map +1 -0
  72. package/dist/client/zod.gen.js +1214 -0
  73. package/dist/client/zod.gen.js.map +1 -0
  74. package/dist/index.d.ts +5 -33
  75. package/dist/index.d.ts.map +1 -1
  76. package/dist/index.js +8 -55
  77. package/dist/index.js.map +1 -1
  78. package/dist/recal.d.ts +64 -0
  79. package/dist/recal.d.ts.map +1 -0
  80. package/dist/recal.js +81 -0
  81. package/dist/recal.js.map +1 -0
  82. package/dist/services/calendar.service.d.ts +55 -167
  83. package/dist/services/calendar.service.d.ts.map +1 -1
  84. package/dist/services/calendar.service.js +68 -301
  85. package/dist/services/calendar.service.js.map +1 -1
  86. package/dist/services/events.service.d.ts +167 -0
  87. package/dist/services/events.service.d.ts.map +1 -0
  88. package/dist/services/events.service.js +215 -0
  89. package/dist/services/events.service.js.map +1 -0
  90. package/dist/services/oauth.service.d.ts +120 -66
  91. package/dist/services/oauth.service.d.ts.map +1 -1
  92. package/dist/services/oauth.service.js +162 -151
  93. package/dist/services/oauth.service.js.map +1 -1
  94. package/dist/services/organizations.service.d.ts +137 -36
  95. package/dist/services/organizations.service.d.ts.map +1 -1
  96. package/dist/services/organizations.service.js +164 -90
  97. package/dist/services/organizations.service.js.map +1 -1
  98. package/dist/services/scheduling.service.d.ts +121 -58
  99. package/dist/services/scheduling.service.d.ts.map +1 -1
  100. package/dist/services/scheduling.service.js +98 -140
  101. package/dist/services/scheduling.service.js.map +1 -1
  102. package/dist/services/users.service.d.ts +87 -27
  103. package/dist/services/users.service.d.ts.map +1 -1
  104. package/dist/services/users.service.js +94 -69
  105. package/dist/services/users.service.js.map +1 -1
  106. package/dist/types.d.ts +68 -0
  107. package/dist/types.d.ts.map +1 -0
  108. package/dist/types.js +8 -0
  109. package/dist/types.js.map +1 -0
  110. package/dist/utils/response.d.ts +33 -0
  111. package/dist/utils/response.d.ts.map +1 -0
  112. package/dist/utils/response.js +54 -0
  113. package/dist/utils/response.js.map +1 -0
  114. package/package.json +5 -2
  115. package/dist/entities/organization.d.ts +0 -21
  116. package/dist/entities/organization.d.ts.map +0 -1
  117. package/dist/entities/organization.js +0 -32
  118. package/dist/entities/organization.js.map +0 -1
  119. package/dist/entities/user.d.ts +0 -23
  120. package/dist/entities/user.d.ts.map +0 -1
  121. package/dist/entities/user.js +0 -45
  122. package/dist/entities/user.js.map +0 -1
  123. package/dist/errors.d.ts +0 -22
  124. package/dist/errors.d.ts.map +0 -1
  125. package/dist/errors.js +0 -36
  126. package/dist/errors.js.map +0 -1
  127. package/dist/typebox/calendar.tb.d.ts +0 -113
  128. package/dist/typebox/calendar.tb.d.ts.map +0 -1
  129. package/dist/typebox/calendar.tb.js +0 -92
  130. package/dist/typebox/calendar.tb.js.map +0 -1
  131. package/dist/typebox/oauth.tb.d.ts +0 -14
  132. package/dist/typebox/oauth.tb.d.ts.map +0 -1
  133. package/dist/typebox/oauth.tb.js +0 -16
  134. package/dist/typebox/oauth.tb.js.map +0 -1
  135. package/dist/typebox/organization.stripped.tb.d.ts +0 -6
  136. package/dist/typebox/organization.stripped.tb.d.ts.map +0 -1
  137. package/dist/typebox/organization.stripped.tb.js +0 -7
  138. package/dist/typebox/organization.stripped.tb.js.map +0 -1
  139. package/dist/typebox/organization.tb.d.ts +0 -10
  140. package/dist/typebox/organization.tb.d.ts.map +0 -1
  141. package/dist/typebox/organization.tb.js +0 -8
  142. package/dist/typebox/organization.tb.js.map +0 -1
  143. package/dist/typebox/scheduling.tb.d.ts +0 -107
  144. package/dist/typebox/scheduling.tb.d.ts.map +0 -1
  145. package/dist/typebox/scheduling.tb.js +0 -105
  146. package/dist/typebox/scheduling.tb.js.map +0 -1
  147. package/dist/typebox/timeString.tb.d.ts +0 -3
  148. package/dist/typebox/timeString.tb.d.ts.map +0 -1
  149. package/dist/typebox/timeString.tb.js +0 -7
  150. package/dist/typebox/timeString.tb.js.map +0 -1
  151. package/dist/typebox/user.stripped.tb.d.ts +0 -5
  152. package/dist/typebox/user.stripped.tb.d.ts.map +0 -1
  153. package/dist/typebox/user.stripped.tb.js +0 -6
  154. package/dist/typebox/user.stripped.tb.js.map +0 -1
  155. package/dist/typebox/user.tb.d.ts +0 -19
  156. package/dist/typebox/user.tb.d.ts.map +0 -1
  157. package/dist/typebox/user.tb.js +0 -10
  158. package/dist/typebox/user.tb.js.map +0 -1
  159. package/dist/types/calendar.types.d.ts +0 -124
  160. package/dist/types/calendar.types.d.ts.map +0 -1
  161. package/dist/types/calendar.types.js +0 -27
  162. package/dist/types/calendar.types.js.map +0 -1
  163. package/dist/types/internal.types.d.ts +0 -7
  164. package/dist/types/internal.types.d.ts.map +0 -1
  165. package/dist/types/internal.types.js +0 -2
  166. package/dist/types/internal.types.js.map +0 -1
  167. package/dist/types/oauth.types.d.ts +0 -22
  168. package/dist/types/oauth.types.d.ts.map +0 -1
  169. package/dist/types/oauth.types.js +0 -2
  170. package/dist/types/oauth.types.js.map +0 -1
  171. package/dist/types/organization.types.d.ts +0 -18
  172. package/dist/types/organization.types.d.ts.map +0 -1
  173. package/dist/types/organization.types.js +0 -2
  174. package/dist/types/organization.types.js.map +0 -1
  175. package/dist/types/scheduling.types.d.ts +0 -50
  176. package/dist/types/scheduling.types.d.ts.map +0 -1
  177. package/dist/types/scheduling.types.js +0 -2
  178. package/dist/types/scheduling.types.js.map +0 -1
  179. package/dist/types/user.types.d.ts +0 -11
  180. package/dist/types/user.types.d.ts.map +0 -1
  181. package/dist/types/user.types.js +0 -2
  182. package/dist/types/user.types.js.map +0 -1
  183. package/dist/utils/fetch.helper.d.ts +0 -62
  184. package/dist/utils/fetch.helper.d.ts.map +0 -1
  185. package/dist/utils/fetch.helper.js +0 -116
  186. package/dist/utils/fetch.helper.js.map +0 -1
  187. package/dist/utils/fetchErrorHandler.d.ts +0 -22
  188. package/dist/utils/fetchErrorHandler.d.ts.map +0 -1
  189. package/dist/utils/fetchErrorHandler.js +0 -35
  190. package/dist/utils/fetchErrorHandler.js.map +0 -1
  191. package/dist/utils/includes.helper.d.ts +0 -4
  192. package/dist/utils/includes.helper.d.ts.map +0 -1
  193. package/dist/utils/includes.helper.js +0 -10
  194. package/dist/utils/includes.helper.js.map +0 -1
  195. package/dist/utils/omit.d.ts +0 -2
  196. package/dist/utils/omit.d.ts.map +0 -1
  197. package/dist/utils/omit.js +0 -4
  198. package/dist/utils/omit.js.map +0 -1
@@ -0,0 +1,1765 @@
1
+ export type ClientOptions = {
2
+ baseUrl: 'https://api.recal.dev' | (string & {});
3
+ };
4
+ /**
5
+ * User
6
+ */
7
+ export type User = {
8
+ createdAt: Date;
9
+ id: string;
10
+ };
11
+ /**
12
+ * Organization
13
+ */
14
+ export type Organization = {
15
+ createdAt: Date;
16
+ name: string | null;
17
+ slug: string;
18
+ members?: Array<User>;
19
+ };
20
+ /**
21
+ * OAuth Connection
22
+ */
23
+ export type AuthConnection = {
24
+ alive: boolean;
25
+ email: string | null;
26
+ expiresAt: Date | null;
27
+ provider: 'google' | 'microsoft';
28
+ scope: Array<string>;
29
+ accessToken?: unknown;
30
+ refreshToken?: unknown;
31
+ };
32
+ /**
33
+ * Recal Normalized Time Range
34
+ */
35
+ export type TimeRange = {
36
+ /**
37
+ * End time of the time range in ISO format
38
+ */
39
+ end: Date;
40
+ /**
41
+ * Start time of the time range in ISO format
42
+ */
43
+ start: Date;
44
+ };
45
+ /**
46
+ * Recal Normalized Calendar
47
+ */
48
+ export type Calendar = {
49
+ id: string;
50
+ original: unknown;
51
+ provider: 'google' | 'microsoft';
52
+ accessRole?: 'freeBusyReader' | 'owner' | 'reader' | 'writer';
53
+ backgroundColor?: string;
54
+ foregroundColor?: string;
55
+ selected?: boolean;
56
+ subject?: string;
57
+ /**
58
+ * A valid IANA timezone identifier
59
+ */
60
+ timeZone?: string;
61
+ };
62
+ /**
63
+ * Recal Normalized Event
64
+ */
65
+ export type Event = {
66
+ /**
67
+ * Recal Normalized Attendee
68
+ */
69
+ attendees: Array<{
70
+ email: string;
71
+ original: unknown;
72
+ self: true;
73
+ } | {
74
+ email: string;
75
+ original: unknown;
76
+ responseStatus?: 'accepted' | 'declined' | 'needsAction' | 'tentative';
77
+ }>;
78
+ calendarId: string;
79
+ id: string;
80
+ original: unknown;
81
+ description?: string;
82
+ end?: Date;
83
+ location?: string;
84
+ metaId?: string;
85
+ start?: Date;
86
+ subject?: string;
87
+ };
88
+ /**
89
+ * Recal Normalized Meta Event
90
+ */
91
+ export type MetaEvent = {
92
+ /**
93
+ * Recal Normalized Meta Event Attendee
94
+ */
95
+ attendees: Array<{
96
+ email: string;
97
+ originals: Array<unknown>;
98
+ self: true;
99
+ } | {
100
+ email: string;
101
+ originals: Array<unknown>;
102
+ responseStatus?: 'accepted' | 'declined' | 'needsAction' | 'tentative';
103
+ }>;
104
+ originals: Array<unknown>;
105
+ description?: string;
106
+ end?: Date;
107
+ location?: string;
108
+ metaId?: string;
109
+ start?: Date;
110
+ subject?: string;
111
+ };
112
+ /**
113
+ * Recal Normalized Create Meta Event
114
+ */
115
+ export type CreateMetaEvent = {
116
+ attendees?: Array<{
117
+ email: string;
118
+ }>;
119
+ description?: string;
120
+ end?: string;
121
+ location?: string;
122
+ meeting?: {
123
+ url: string;
124
+ } | boolean;
125
+ metaId?: string;
126
+ sendNotificationsFor?: Array<'google' | 'microsoft'>;
127
+ start?: string;
128
+ subject?: string;
129
+ };
130
+ /**
131
+ * Recal Normalized Update Meta Event
132
+ */
133
+ export type UpdateMetaEvent = {
134
+ attendees?: Array<{
135
+ email: string;
136
+ }>;
137
+ description?: string;
138
+ end?: string;
139
+ location?: string;
140
+ meeting?: {
141
+ url: string;
142
+ } | boolean;
143
+ metaId?: string;
144
+ sendNotificationsFor?: Array<'google' | 'microsoft'>;
145
+ start?: string;
146
+ subject?: string;
147
+ };
148
+ /**
149
+ * Recal Normalized Create Event
150
+ */
151
+ export type CreateEvent = {
152
+ attendees?: Array<{
153
+ email: string;
154
+ }>;
155
+ description?: string;
156
+ end?: string;
157
+ id?: string;
158
+ location?: string;
159
+ meeting?: {
160
+ url: string;
161
+ } | boolean;
162
+ metaId?: string;
163
+ sendNotifications?: boolean;
164
+ start?: string;
165
+ subject?: string;
166
+ };
167
+ /**
168
+ * Recal Normalized Update Event
169
+ */
170
+ export type UpdateEvent = {
171
+ attendees?: Array<{
172
+ email: string;
173
+ }>;
174
+ description?: string;
175
+ end?: string;
176
+ id?: string;
177
+ location?: string;
178
+ meeting?: {
179
+ url: string;
180
+ } | boolean;
181
+ metaId?: string;
182
+ sendNotifications?: boolean;
183
+ start?: string;
184
+ subject?: string;
185
+ };
186
+ export type GetV1OrganizationsData = {
187
+ body?: never;
188
+ path?: never;
189
+ query?: never;
190
+ url: '/v1/organizations';
191
+ };
192
+ export type GetV1OrganizationsResponses = {
193
+ /**
194
+ * All organizations
195
+ */
196
+ 200: {
197
+ data: Array<Organization>;
198
+ };
199
+ };
200
+ export type GetV1OrganizationsResponse = GetV1OrganizationsResponses[keyof GetV1OrganizationsResponses];
201
+ export type PostV1OrganizationsData = {
202
+ body?: {
203
+ name: string | null;
204
+ slug: string;
205
+ };
206
+ path?: never;
207
+ query?: never;
208
+ url: '/v1/organizations';
209
+ };
210
+ export type PostV1OrganizationsErrors = {
211
+ /**
212
+ * Organization with slug already exists
213
+ */
214
+ 409: {
215
+ data: null;
216
+ error: string;
217
+ };
218
+ };
219
+ export type PostV1OrganizationsError = PostV1OrganizationsErrors[keyof PostV1OrganizationsErrors];
220
+ export type PostV1OrganizationsResponses = {
221
+ /**
222
+ * Created organization
223
+ */
224
+ 200: {
225
+ data: Organization;
226
+ };
227
+ };
228
+ export type PostV1OrganizationsResponse = PostV1OrganizationsResponses[keyof PostV1OrganizationsResponses];
229
+ export type DeleteV1OrganizationsOrgSlugData = {
230
+ body?: never;
231
+ path: {
232
+ orgSlug: string;
233
+ };
234
+ query?: never;
235
+ url: '/v1/organizations/{orgSlug}';
236
+ };
237
+ export type DeleteV1OrganizationsOrgSlugErrors = {
238
+ /**
239
+ * Organization not found
240
+ */
241
+ 404: {
242
+ data: null;
243
+ error: string;
244
+ };
245
+ };
246
+ export type DeleteV1OrganizationsOrgSlugError = DeleteV1OrganizationsOrgSlugErrors[keyof DeleteV1OrganizationsOrgSlugErrors];
247
+ export type DeleteV1OrganizationsOrgSlugResponses = {
248
+ /**
249
+ * Deleted organization
250
+ */
251
+ 200: {
252
+ data: Organization;
253
+ };
254
+ };
255
+ export type DeleteV1OrganizationsOrgSlugResponse = DeleteV1OrganizationsOrgSlugResponses[keyof DeleteV1OrganizationsOrgSlugResponses];
256
+ export type GetV1OrganizationsOrgSlugData = {
257
+ body?: never;
258
+ path: {
259
+ orgSlug: string;
260
+ };
261
+ query?: never;
262
+ url: '/v1/organizations/{orgSlug}';
263
+ };
264
+ export type GetV1OrganizationsOrgSlugErrors = {
265
+ /**
266
+ * Organization not found
267
+ */
268
+ 404: {
269
+ data: null;
270
+ error: string;
271
+ };
272
+ };
273
+ export type GetV1OrganizationsOrgSlugError = GetV1OrganizationsOrgSlugErrors[keyof GetV1OrganizationsOrgSlugErrors];
274
+ export type GetV1OrganizationsOrgSlugResponses = {
275
+ /**
276
+ * Organization
277
+ */
278
+ 200: {
279
+ data: Organization;
280
+ };
281
+ };
282
+ export type GetV1OrganizationsOrgSlugResponse = GetV1OrganizationsOrgSlugResponses[keyof GetV1OrganizationsOrgSlugResponses];
283
+ export type PutV1OrganizationsOrgSlugData = {
284
+ body?: {
285
+ name: string | null;
286
+ slug: string;
287
+ };
288
+ path: {
289
+ orgSlug: string;
290
+ };
291
+ query?: never;
292
+ url: '/v1/organizations/{orgSlug}';
293
+ };
294
+ export type PutV1OrganizationsOrgSlugErrors = {
295
+ /**
296
+ * Organization not found
297
+ */
298
+ 404: {
299
+ data: null;
300
+ error: string;
301
+ };
302
+ };
303
+ export type PutV1OrganizationsOrgSlugError = PutV1OrganizationsOrgSlugErrors[keyof PutV1OrganizationsOrgSlugErrors];
304
+ export type PutV1OrganizationsOrgSlugResponses = {
305
+ /**
306
+ * Updated organization
307
+ */
308
+ 200: {
309
+ data: Organization;
310
+ };
311
+ };
312
+ export type PutV1OrganizationsOrgSlugResponse = PutV1OrganizationsOrgSlugResponses[keyof PutV1OrganizationsOrgSlugResponses];
313
+ export type DeleteV1OrganizationsOrgSlugMembersData = {
314
+ body?: {
315
+ userIds: Array<string>;
316
+ };
317
+ path: {
318
+ orgSlug: string;
319
+ };
320
+ query?: never;
321
+ url: '/v1/organizations/{orgSlug}/members';
322
+ };
323
+ export type DeleteV1OrganizationsOrgSlugMembersErrors = {
324
+ /**
325
+ * Organization not found
326
+ */
327
+ 404: {
328
+ data: null;
329
+ error: string;
330
+ };
331
+ };
332
+ export type DeleteV1OrganizationsOrgSlugMembersError = DeleteV1OrganizationsOrgSlugMembersErrors[keyof DeleteV1OrganizationsOrgSlugMembersErrors];
333
+ export type DeleteV1OrganizationsOrgSlugMembersResponses = {
334
+ 200: {
335
+ data: string;
336
+ };
337
+ };
338
+ export type DeleteV1OrganizationsOrgSlugMembersResponse = DeleteV1OrganizationsOrgSlugMembersResponses[keyof DeleteV1OrganizationsOrgSlugMembersResponses];
339
+ export type GetV1OrganizationsOrgSlugMembersData = {
340
+ body?: never;
341
+ path: {
342
+ orgSlug: string;
343
+ };
344
+ query?: {
345
+ include?: Array<'oauthConnections' | 'organizations'> | 'oauthConnections' | 'organizations';
346
+ };
347
+ url: '/v1/organizations/{orgSlug}/members';
348
+ };
349
+ export type GetV1OrganizationsOrgSlugMembersErrors = {
350
+ /**
351
+ * Organization not found
352
+ */
353
+ 404: {
354
+ data: null;
355
+ error: string;
356
+ };
357
+ };
358
+ export type GetV1OrganizationsOrgSlugMembersError = GetV1OrganizationsOrgSlugMembersErrors[keyof GetV1OrganizationsOrgSlugMembersErrors];
359
+ export type GetV1OrganizationsOrgSlugMembersResponses = {
360
+ /**
361
+ * All members of an organization
362
+ */
363
+ 200: {
364
+ data: Array<{
365
+ createdAt: Date;
366
+ id: string;
367
+ oauthConnections?: Array<AuthConnection>;
368
+ organizations?: Array<Organization>;
369
+ }>;
370
+ };
371
+ };
372
+ export type GetV1OrganizationsOrgSlugMembersResponse = GetV1OrganizationsOrgSlugMembersResponses[keyof GetV1OrganizationsOrgSlugMembersResponses];
373
+ export type PostV1OrganizationsOrgSlugMembersData = {
374
+ body?: {
375
+ userIds: Array<string>;
376
+ };
377
+ path: {
378
+ orgSlug: string;
379
+ };
380
+ query?: never;
381
+ url: '/v1/organizations/{orgSlug}/members';
382
+ };
383
+ export type PostV1OrganizationsOrgSlugMembersErrors = {
384
+ /**
385
+ * Organization not found
386
+ */
387
+ 404: {
388
+ data: null;
389
+ error: string;
390
+ };
391
+ };
392
+ export type PostV1OrganizationsOrgSlugMembersError = PostV1OrganizationsOrgSlugMembersErrors[keyof PostV1OrganizationsOrgSlugMembersErrors];
393
+ export type PostV1OrganizationsOrgSlugMembersResponses = {
394
+ /**
395
+ * All users are already members of the organization
396
+ */
397
+ 200: {
398
+ data: string;
399
+ };
400
+ /**
401
+ * n users added successfully to the organization
402
+ */
403
+ 201: {
404
+ data: string;
405
+ };
406
+ };
407
+ export type PostV1OrganizationsOrgSlugMembersResponse = PostV1OrganizationsOrgSlugMembersResponses[keyof PostV1OrganizationsOrgSlugMembersResponses];
408
+ export type GetV1OrganizationsOrgSlugCalendarBusyData = {
409
+ body?: never;
410
+ path: {
411
+ orgSlug: string;
412
+ };
413
+ query: {
414
+ end: string;
415
+ start: string;
416
+ /**
417
+ * Boolean query parameter (accepts "true" or "false")
418
+ */
419
+ primaryOnly?: 'false' | 'true';
420
+ provider?: Array<'google' | 'microsoft'> | 'google' | 'microsoft';
421
+ };
422
+ url: '/v1/organizations/{orgSlug}/calendar/busy';
423
+ };
424
+ export type GetV1OrganizationsOrgSlugCalendarBusyErrors = {
425
+ /**
426
+ * Organization not found
427
+ */
428
+ 404: {
429
+ data: null;
430
+ error: string;
431
+ };
432
+ };
433
+ export type GetV1OrganizationsOrgSlugCalendarBusyError = GetV1OrganizationsOrgSlugCalendarBusyErrors[keyof GetV1OrganizationsOrgSlugCalendarBusyErrors];
434
+ export type GetV1OrganizationsOrgSlugCalendarBusyResponses = {
435
+ /**
436
+ * Busy times of all users of an organization
437
+ */
438
+ 200: {
439
+ data: Array<TimeRange>;
440
+ };
441
+ };
442
+ export type GetV1OrganizationsOrgSlugCalendarBusyResponse = GetV1OrganizationsOrgSlugCalendarBusyResponses[keyof GetV1OrganizationsOrgSlugCalendarBusyResponses];
443
+ export type GetV1OrganizationsOrgSlugSchedulingData = {
444
+ body?: never;
445
+ path: {
446
+ orgSlug: string;
447
+ };
448
+ query: {
449
+ /**
450
+ * End time of the time range in ISO format
451
+ */
452
+ end: string;
453
+ /**
454
+ * Padding in minutes to add before and after busy times
455
+ */
456
+ padding: string | unknown;
457
+ /**
458
+ * Duration of each slot in minutes
459
+ */
460
+ slotDuration: string | unknown;
461
+ /**
462
+ * Start time of the time range in ISO format
463
+ */
464
+ start: string;
465
+ /**
466
+ * Requested earliest time of each day (in the time zone of the request)
467
+ */
468
+ earliestTimeEachDay?: string;
469
+ /**
470
+ * Requested latest time of each day (in the time zone of the request)
471
+ */
472
+ latestTimeEachDay?: string;
473
+ /**
474
+ * An integer >= 0 (default: 0)
475
+ */
476
+ maxOverlaps?: string | unknown;
477
+ provider?: Array<'google' | 'microsoft'> | 'google' | 'microsoft';
478
+ };
479
+ url: '/v1/organizations/{orgSlug}/scheduling';
480
+ };
481
+ export type GetV1OrganizationsOrgSlugSchedulingErrors = {
482
+ /**
483
+ * Organization not found
484
+ */
485
+ 404: {
486
+ data: null;
487
+ error: string;
488
+ };
489
+ };
490
+ export type GetV1OrganizationsOrgSlugSchedulingError = GetV1OrganizationsOrgSlugSchedulingErrors[keyof GetV1OrganizationsOrgSlugSchedulingErrors];
491
+ export type GetV1OrganizationsOrgSlugSchedulingResponses = {
492
+ /**
493
+ * Available time slots
494
+ */
495
+ 200: {
496
+ data: {
497
+ availableSlots: Array<{
498
+ /**
499
+ * End time of the time range in ISO format
500
+ */
501
+ end: Date;
502
+ /**
503
+ * Start time of the time range in ISO format
504
+ */
505
+ start: Date;
506
+ userId: string;
507
+ }>;
508
+ options: {
509
+ /**
510
+ * End time of the time range in ISO format
511
+ */
512
+ end: Date;
513
+ maxOverlaps: number;
514
+ /**
515
+ * Padding in minutes to add before and after busy times
516
+ */
517
+ padding: number;
518
+ /**
519
+ * Duration of each slot in minutes
520
+ */
521
+ slotDuration: number;
522
+ /**
523
+ * Start time of the time range in ISO format
524
+ */
525
+ start: Date;
526
+ /**
527
+ * Requested earliest time of each day (in the time zone of the request)
528
+ */
529
+ earliestTimeEachDay?: string;
530
+ /**
531
+ * Requested latest time of each day (in the time zone of the request)
532
+ */
533
+ latestTimeEachDay?: string;
534
+ };
535
+ };
536
+ };
537
+ };
538
+ export type GetV1OrganizationsOrgSlugSchedulingResponse = GetV1OrganizationsOrgSlugSchedulingResponses[keyof GetV1OrganizationsOrgSlugSchedulingResponses];
539
+ export type GetV1UsersData = {
540
+ body?: never;
541
+ path?: never;
542
+ query?: never;
543
+ url: '/v1/users';
544
+ };
545
+ export type GetV1UsersResponses = {
546
+ /**
547
+ * List of users
548
+ */
549
+ 200: {
550
+ data: Array<{
551
+ createdAt: Date;
552
+ id: string;
553
+ oauthConnections?: Array<AuthConnection>;
554
+ organizations?: Array<Organization>;
555
+ }>;
556
+ };
557
+ };
558
+ export type GetV1UsersResponse = GetV1UsersResponses[keyof GetV1UsersResponses];
559
+ export type PostV1UsersData = {
560
+ body?: {
561
+ id: string;
562
+ organizationSlugs?: Array<string>;
563
+ };
564
+ path?: never;
565
+ query?: never;
566
+ url: '/v1/users';
567
+ };
568
+ export type PostV1UsersErrors = {
569
+ /**
570
+ * Organization not found
571
+ */
572
+ 404: {
573
+ data: null;
574
+ error: string;
575
+ };
576
+ /**
577
+ * User already exists
578
+ */
579
+ 409: {
580
+ data: null;
581
+ error: string;
582
+ };
583
+ };
584
+ export type PostV1UsersError = PostV1UsersErrors[keyof PostV1UsersErrors];
585
+ export type PostV1UsersResponses = {
586
+ /**
587
+ * Created user
588
+ */
589
+ 201: {
590
+ data: {
591
+ createdAt: Date;
592
+ id: string;
593
+ oauthConnections?: Array<AuthConnection>;
594
+ organizations?: Array<Organization>;
595
+ };
596
+ };
597
+ };
598
+ export type PostV1UsersResponse = PostV1UsersResponses[keyof PostV1UsersResponses];
599
+ export type DeleteV1UsersUserIdData = {
600
+ body?: never;
601
+ path: {
602
+ userId: string;
603
+ };
604
+ query?: never;
605
+ url: '/v1/users/{userId}';
606
+ };
607
+ export type DeleteV1UsersUserIdErrors = {
608
+ /**
609
+ * User not found
610
+ */
611
+ 404: {
612
+ data: null;
613
+ error: string;
614
+ };
615
+ };
616
+ export type DeleteV1UsersUserIdError = DeleteV1UsersUserIdErrors[keyof DeleteV1UsersUserIdErrors];
617
+ export type DeleteV1UsersUserIdResponses = {
618
+ /**
619
+ * User
620
+ */
621
+ 200: {
622
+ data: {
623
+ createdAt: Date;
624
+ id: string;
625
+ oauthConnections?: Array<AuthConnection>;
626
+ organizations?: Array<Organization>;
627
+ };
628
+ };
629
+ };
630
+ export type DeleteV1UsersUserIdResponse = DeleteV1UsersUserIdResponses[keyof DeleteV1UsersUserIdResponses];
631
+ export type GetV1UsersUserIdData = {
632
+ body?: never;
633
+ path: {
634
+ userId: string;
635
+ };
636
+ query?: {
637
+ include?: Array<'oauthConnections' | 'organizations'> | 'oauthConnections' | 'organizations';
638
+ };
639
+ url: '/v1/users/{userId}';
640
+ };
641
+ export type GetV1UsersUserIdErrors = {
642
+ /**
643
+ * User not found
644
+ */
645
+ 404: {
646
+ data: null;
647
+ error: string;
648
+ };
649
+ };
650
+ export type GetV1UsersUserIdError = GetV1UsersUserIdErrors[keyof GetV1UsersUserIdErrors];
651
+ export type GetV1UsersUserIdResponses = {
652
+ /**
653
+ * User
654
+ */
655
+ 200: {
656
+ data: {
657
+ createdAt: Date;
658
+ id: string;
659
+ oauthConnections?: Array<AuthConnection>;
660
+ organizations?: Array<Organization>;
661
+ };
662
+ };
663
+ };
664
+ export type GetV1UsersUserIdResponse = GetV1UsersUserIdResponses[keyof GetV1UsersUserIdResponses];
665
+ export type PutV1UsersUserIdData = {
666
+ body?: {
667
+ userId: string;
668
+ };
669
+ path: {
670
+ userId: string;
671
+ };
672
+ query?: never;
673
+ url: '/v1/users/{userId}';
674
+ };
675
+ export type PutV1UsersUserIdErrors = {
676
+ /**
677
+ * User not found
678
+ */
679
+ 404: {
680
+ data: null;
681
+ error: string;
682
+ };
683
+ /**
684
+ * User already exists
685
+ */
686
+ 409: {
687
+ data: null;
688
+ error: string;
689
+ };
690
+ };
691
+ export type PutV1UsersUserIdError = PutV1UsersUserIdErrors[keyof PutV1UsersUserIdErrors];
692
+ export type PutV1UsersUserIdResponses = {
693
+ /**
694
+ * User
695
+ */
696
+ 200: {
697
+ data: {
698
+ createdAt: Date;
699
+ id: string;
700
+ oauthConnections?: Array<AuthConnection>;
701
+ organizations?: Array<Organization>;
702
+ };
703
+ };
704
+ };
705
+ export type PutV1UsersUserIdResponse = PutV1UsersUserIdResponses[keyof PutV1UsersUserIdResponses];
706
+ export type GetV1UsersUserIdOrganizationsData = {
707
+ body?: never;
708
+ path: {
709
+ userId: string;
710
+ };
711
+ query?: never;
712
+ url: '/v1/users/{userId}/organizations';
713
+ };
714
+ export type GetV1UsersUserIdOrganizationsErrors = {
715
+ /**
716
+ * User not found
717
+ */
718
+ 404: {
719
+ data: null;
720
+ error: string;
721
+ };
722
+ };
723
+ export type GetV1UsersUserIdOrganizationsError = GetV1UsersUserIdOrganizationsErrors[keyof GetV1UsersUserIdOrganizationsErrors];
724
+ export type GetV1UsersUserIdOrganizationsResponses = {
725
+ /**
726
+ * List of organizations
727
+ */
728
+ 200: {
729
+ data: Array<Organization>;
730
+ };
731
+ };
732
+ export type GetV1UsersUserIdOrganizationsResponse = GetV1UsersUserIdOrganizationsResponses[keyof GetV1UsersUserIdOrganizationsResponses];
733
+ export type GetV1UsersUserIdCalendarData = {
734
+ body?: never;
735
+ path: {
736
+ userId: string;
737
+ };
738
+ query?: {
739
+ provider?: Array<'google' | 'microsoft'> | 'google' | 'microsoft';
740
+ };
741
+ url: '/v1/users/{userId}/calendar';
742
+ };
743
+ export type GetV1UsersUserIdCalendarErrors = {
744
+ /**
745
+ * Bad request
746
+ */
747
+ 400: {
748
+ data: null;
749
+ error: string;
750
+ };
751
+ /**
752
+ * User not found
753
+ */
754
+ 404: {
755
+ data: null;
756
+ error: string;
757
+ };
758
+ };
759
+ export type GetV1UsersUserIdCalendarError = GetV1UsersUserIdCalendarErrors[keyof GetV1UsersUserIdCalendarErrors];
760
+ export type GetV1UsersUserIdCalendarResponses = {
761
+ /**
762
+ * List of calendars
763
+ */
764
+ 200: {
765
+ data: Array<Calendar>;
766
+ };
767
+ };
768
+ export type GetV1UsersUserIdCalendarResponse = GetV1UsersUserIdCalendarResponses[keyof GetV1UsersUserIdCalendarResponses];
769
+ export type GetV1UsersUserIdCalendarBusyData = {
770
+ body?: never;
771
+ path: {
772
+ userId: string;
773
+ };
774
+ query: {
775
+ /**
776
+ * End time of the time range in ISO format
777
+ */
778
+ end: string;
779
+ /**
780
+ * Start time of the time range in ISO format
781
+ */
782
+ start: string;
783
+ calendarIds?: Array<string>;
784
+ provider?: Array<'google' | 'microsoft'> | 'google' | 'microsoft';
785
+ };
786
+ url: '/v1/users/{userId}/calendar/busy';
787
+ };
788
+ export type GetV1UsersUserIdCalendarBusyErrors = {
789
+ /**
790
+ * Bad request
791
+ */
792
+ 400: {
793
+ data: null;
794
+ error: string;
795
+ };
796
+ /**
797
+ * User not found
798
+ */
799
+ 404: {
800
+ data: null;
801
+ error: string;
802
+ };
803
+ };
804
+ export type GetV1UsersUserIdCalendarBusyError = GetV1UsersUserIdCalendarBusyErrors[keyof GetV1UsersUserIdCalendarBusyErrors];
805
+ export type GetV1UsersUserIdCalendarBusyResponses = {
806
+ /**
807
+ * List of busy intervals
808
+ */
809
+ 200: {
810
+ data: Array<TimeRange>;
811
+ };
812
+ };
813
+ export type GetV1UsersUserIdCalendarBusyResponse = GetV1UsersUserIdCalendarBusyResponses[keyof GetV1UsersUserIdCalendarBusyResponses];
814
+ export type GetV1UsersUserIdCalendarEventsData = {
815
+ body?: never;
816
+ path: {
817
+ userId: string;
818
+ };
819
+ query: {
820
+ /**
821
+ * End time of the time range in ISO format
822
+ */
823
+ end: string;
824
+ /**
825
+ * Start time of the time range in ISO format
826
+ */
827
+ start: string;
828
+ calendarIds?: Array<string>;
829
+ provider?: Array<'google' | 'microsoft'> | 'google' | 'microsoft';
830
+ };
831
+ url: '/v1/users/{userId}/calendar/events';
832
+ };
833
+ export type GetV1UsersUserIdCalendarEventsErrors = {
834
+ /**
835
+ * Bad request
836
+ */
837
+ 400: {
838
+ data: null;
839
+ error: string;
840
+ };
841
+ /**
842
+ * User not found
843
+ */
844
+ 404: {
845
+ data: null;
846
+ error: string;
847
+ };
848
+ };
849
+ export type GetV1UsersUserIdCalendarEventsError = GetV1UsersUserIdCalendarEventsErrors[keyof GetV1UsersUserIdCalendarEventsErrors];
850
+ export type GetV1UsersUserIdCalendarEventsResponses = {
851
+ /**
852
+ * List of events
853
+ */
854
+ 200: {
855
+ data: Array<Event>;
856
+ };
857
+ };
858
+ export type GetV1UsersUserIdCalendarEventsResponse = GetV1UsersUserIdCalendarEventsResponses[keyof GetV1UsersUserIdCalendarEventsResponses];
859
+ export type PostV1UsersUserIdCalendarEventsMetaData = {
860
+ body?: CreateMetaEvent;
861
+ path: {
862
+ userId: string;
863
+ };
864
+ query?: {
865
+ provider?: Array<'google' | 'microsoft'> | 'google' | 'microsoft';
866
+ };
867
+ url: '/v1/users/{userId}/calendar/events/meta';
868
+ };
869
+ export type PostV1UsersUserIdCalendarEventsMetaErrors = {
870
+ /**
871
+ * Bad request
872
+ */
873
+ 400: {
874
+ data: null;
875
+ error: string;
876
+ };
877
+ /**
878
+ * User not found
879
+ */
880
+ 404: {
881
+ data: null;
882
+ error: string;
883
+ };
884
+ };
885
+ export type PostV1UsersUserIdCalendarEventsMetaError = PostV1UsersUserIdCalendarEventsMetaErrors[keyof PostV1UsersUserIdCalendarEventsMetaErrors];
886
+ export type PostV1UsersUserIdCalendarEventsMetaResponses = {
887
+ /**
888
+ * Meta event created
889
+ */
890
+ 200: {
891
+ data: MetaEvent;
892
+ };
893
+ };
894
+ export type PostV1UsersUserIdCalendarEventsMetaResponse = PostV1UsersUserIdCalendarEventsMetaResponses[keyof PostV1UsersUserIdCalendarEventsMetaResponses];
895
+ export type DeleteV1UsersUserIdCalendarEventsMetaMetaIdData = {
896
+ body?: never;
897
+ path: {
898
+ metaId: string;
899
+ userId: string;
900
+ };
901
+ query?: {
902
+ provider?: Array<'google' | 'microsoft'> | 'google' | 'microsoft';
903
+ };
904
+ url: '/v1/users/{userId}/calendar/events/meta/{metaId}';
905
+ };
906
+ export type DeleteV1UsersUserIdCalendarEventsMetaMetaIdErrors = {
907
+ /**
908
+ * Bad request
909
+ */
910
+ 400: {
911
+ data: null;
912
+ error: string;
913
+ };
914
+ /**
915
+ * Event not found
916
+ */
917
+ 404: {
918
+ data: null;
919
+ error: string;
920
+ };
921
+ };
922
+ export type DeleteV1UsersUserIdCalendarEventsMetaMetaIdError = DeleteV1UsersUserIdCalendarEventsMetaMetaIdErrors[keyof DeleteV1UsersUserIdCalendarEventsMetaMetaIdErrors];
923
+ export type DeleteV1UsersUserIdCalendarEventsMetaMetaIdResponses = {
924
+ /**
925
+ * Meta event deleted
926
+ */
927
+ 200: {
928
+ data: {
929
+ success: true;
930
+ };
931
+ };
932
+ };
933
+ export type DeleteV1UsersUserIdCalendarEventsMetaMetaIdResponse = DeleteV1UsersUserIdCalendarEventsMetaMetaIdResponses[keyof DeleteV1UsersUserIdCalendarEventsMetaMetaIdResponses];
934
+ export type GetV1UsersUserIdCalendarEventsMetaMetaIdData = {
935
+ body?: never;
936
+ path: {
937
+ metaId: string;
938
+ userId: string;
939
+ };
940
+ query?: {
941
+ provider?: Array<'google' | 'microsoft'> | 'google' | 'microsoft';
942
+ };
943
+ url: '/v1/users/{userId}/calendar/events/meta/{metaId}';
944
+ };
945
+ export type GetV1UsersUserIdCalendarEventsMetaMetaIdErrors = {
946
+ /**
947
+ * Bad request
948
+ */
949
+ 400: {
950
+ data: null;
951
+ error: string;
952
+ };
953
+ /**
954
+ * Event not found
955
+ */
956
+ 404: {
957
+ data: null;
958
+ error: string;
959
+ };
960
+ };
961
+ export type GetV1UsersUserIdCalendarEventsMetaMetaIdError = GetV1UsersUserIdCalendarEventsMetaMetaIdErrors[keyof GetV1UsersUserIdCalendarEventsMetaMetaIdErrors];
962
+ export type GetV1UsersUserIdCalendarEventsMetaMetaIdResponses = {
963
+ /**
964
+ * Event
965
+ */
966
+ 200: {
967
+ data: MetaEvent;
968
+ };
969
+ };
970
+ export type GetV1UsersUserIdCalendarEventsMetaMetaIdResponse = GetV1UsersUserIdCalendarEventsMetaMetaIdResponses[keyof GetV1UsersUserIdCalendarEventsMetaMetaIdResponses];
971
+ export type PutV1UsersUserIdCalendarEventsMetaMetaIdData = {
972
+ body?: UpdateMetaEvent;
973
+ path: {
974
+ metaId: string;
975
+ userId: string;
976
+ };
977
+ query?: {
978
+ provider?: Array<'google' | 'microsoft'> | 'google' | 'microsoft';
979
+ };
980
+ url: '/v1/users/{userId}/calendar/events/meta/{metaId}';
981
+ };
982
+ export type PutV1UsersUserIdCalendarEventsMetaMetaIdErrors = {
983
+ /**
984
+ * Bad request
985
+ */
986
+ 400: {
987
+ data: null;
988
+ error: string;
989
+ };
990
+ /**
991
+ * Event not found
992
+ */
993
+ 404: {
994
+ data: null;
995
+ error: string;
996
+ };
997
+ };
998
+ export type PutV1UsersUserIdCalendarEventsMetaMetaIdError = PutV1UsersUserIdCalendarEventsMetaMetaIdErrors[keyof PutV1UsersUserIdCalendarEventsMetaMetaIdErrors];
999
+ export type PutV1UsersUserIdCalendarEventsMetaMetaIdResponses = {
1000
+ /**
1001
+ * Meta event updated
1002
+ */
1003
+ 200: {
1004
+ data: MetaEvent;
1005
+ };
1006
+ };
1007
+ export type PutV1UsersUserIdCalendarEventsMetaMetaIdResponse = PutV1UsersUserIdCalendarEventsMetaMetaIdResponses[keyof PutV1UsersUserIdCalendarEventsMetaMetaIdResponses];
1008
+ export type PostV1UsersUserIdCalendarEventsProviderCalendarIdData = {
1009
+ body?: CreateEvent;
1010
+ path: {
1011
+ calendarId: string;
1012
+ provider: 'google' | 'microsoft';
1013
+ userId: string;
1014
+ };
1015
+ query?: never;
1016
+ url: '/v1/users/{userId}/calendar/events/{provider}/{calendarId}';
1017
+ };
1018
+ export type PostV1UsersUserIdCalendarEventsProviderCalendarIdErrors = {
1019
+ /**
1020
+ * Bad request
1021
+ */
1022
+ 400: {
1023
+ data: null;
1024
+ error: string;
1025
+ };
1026
+ /**
1027
+ * User not found
1028
+ */
1029
+ 404: {
1030
+ data: null;
1031
+ error: string;
1032
+ };
1033
+ };
1034
+ export type PostV1UsersUserIdCalendarEventsProviderCalendarIdError = PostV1UsersUserIdCalendarEventsProviderCalendarIdErrors[keyof PostV1UsersUserIdCalendarEventsProviderCalendarIdErrors];
1035
+ export type PostV1UsersUserIdCalendarEventsProviderCalendarIdResponses = {
1036
+ /**
1037
+ * Event created
1038
+ */
1039
+ 200: {
1040
+ data: Event;
1041
+ };
1042
+ };
1043
+ export type PostV1UsersUserIdCalendarEventsProviderCalendarIdResponse = PostV1UsersUserIdCalendarEventsProviderCalendarIdResponses[keyof PostV1UsersUserIdCalendarEventsProviderCalendarIdResponses];
1044
+ export type DeleteV1UsersUserIdCalendarEventsProviderCalendarIdEventIdData = {
1045
+ body?: never;
1046
+ path: {
1047
+ calendarId: string;
1048
+ eventId: string;
1049
+ provider: 'google' | 'microsoft';
1050
+ userId: string;
1051
+ };
1052
+ query?: never;
1053
+ url: '/v1/users/{userId}/calendar/events/{provider}/{calendarId}/{eventId}';
1054
+ };
1055
+ export type DeleteV1UsersUserIdCalendarEventsProviderCalendarIdEventIdErrors = {
1056
+ /**
1057
+ * Bad request
1058
+ */
1059
+ 400: {
1060
+ data: null;
1061
+ error: string;
1062
+ };
1063
+ /**
1064
+ * User not found
1065
+ */
1066
+ 404: {
1067
+ data: null;
1068
+ error: string;
1069
+ };
1070
+ };
1071
+ export type DeleteV1UsersUserIdCalendarEventsProviderCalendarIdEventIdError = DeleteV1UsersUserIdCalendarEventsProviderCalendarIdEventIdErrors[keyof DeleteV1UsersUserIdCalendarEventsProviderCalendarIdEventIdErrors];
1072
+ export type DeleteV1UsersUserIdCalendarEventsProviderCalendarIdEventIdResponses = {
1073
+ /**
1074
+ * Event deleted
1075
+ */
1076
+ 200: {
1077
+ data: {
1078
+ success: true;
1079
+ };
1080
+ };
1081
+ };
1082
+ export type DeleteV1UsersUserIdCalendarEventsProviderCalendarIdEventIdResponse = DeleteV1UsersUserIdCalendarEventsProviderCalendarIdEventIdResponses[keyof DeleteV1UsersUserIdCalendarEventsProviderCalendarIdEventIdResponses];
1083
+ export type GetV1UsersUserIdCalendarEventsProviderCalendarIdEventIdData = {
1084
+ body?: never;
1085
+ path: {
1086
+ calendarId: string;
1087
+ eventId: string;
1088
+ provider: 'google' | 'microsoft';
1089
+ userId: string;
1090
+ };
1091
+ query?: never;
1092
+ url: '/v1/users/{userId}/calendar/events/{provider}/{calendarId}/{eventId}';
1093
+ };
1094
+ export type GetV1UsersUserIdCalendarEventsProviderCalendarIdEventIdErrors = {
1095
+ /**
1096
+ * Bad request
1097
+ */
1098
+ 400: {
1099
+ data: null;
1100
+ error: string;
1101
+ };
1102
+ /**
1103
+ * User not found
1104
+ */
1105
+ 404: {
1106
+ data: null;
1107
+ error: string;
1108
+ };
1109
+ };
1110
+ export type GetV1UsersUserIdCalendarEventsProviderCalendarIdEventIdError = GetV1UsersUserIdCalendarEventsProviderCalendarIdEventIdErrors[keyof GetV1UsersUserIdCalendarEventsProviderCalendarIdEventIdErrors];
1111
+ export type GetV1UsersUserIdCalendarEventsProviderCalendarIdEventIdResponses = {
1112
+ /**
1113
+ * Event found
1114
+ */
1115
+ 200: {
1116
+ data: Event;
1117
+ };
1118
+ };
1119
+ export type GetV1UsersUserIdCalendarEventsProviderCalendarIdEventIdResponse = GetV1UsersUserIdCalendarEventsProviderCalendarIdEventIdResponses[keyof GetV1UsersUserIdCalendarEventsProviderCalendarIdEventIdResponses];
1120
+ export type PutV1UsersUserIdCalendarEventsProviderCalendarIdEventIdData = {
1121
+ body?: UpdateEvent;
1122
+ path: {
1123
+ calendarId: string;
1124
+ eventId: string;
1125
+ provider: 'google' | 'microsoft';
1126
+ userId: string;
1127
+ };
1128
+ query?: never;
1129
+ url: '/v1/users/{userId}/calendar/events/{provider}/{calendarId}/{eventId}';
1130
+ };
1131
+ export type PutV1UsersUserIdCalendarEventsProviderCalendarIdEventIdErrors = {
1132
+ /**
1133
+ * Bad request
1134
+ */
1135
+ 400: {
1136
+ data: null;
1137
+ error: string;
1138
+ };
1139
+ /**
1140
+ * User not found
1141
+ */
1142
+ 404: {
1143
+ data: null;
1144
+ error: string;
1145
+ };
1146
+ };
1147
+ export type PutV1UsersUserIdCalendarEventsProviderCalendarIdEventIdError = PutV1UsersUserIdCalendarEventsProviderCalendarIdEventIdErrors[keyof PutV1UsersUserIdCalendarEventsProviderCalendarIdEventIdErrors];
1148
+ export type PutV1UsersUserIdCalendarEventsProviderCalendarIdEventIdResponses = {
1149
+ /**
1150
+ * Event updated
1151
+ */
1152
+ 200: {
1153
+ data: Event;
1154
+ };
1155
+ };
1156
+ export type PutV1UsersUserIdCalendarEventsProviderCalendarIdEventIdResponse = PutV1UsersUserIdCalendarEventsProviderCalendarIdEventIdResponses[keyof PutV1UsersUserIdCalendarEventsProviderCalendarIdEventIdResponses];
1157
+ export type GetV1UsersUserIdOauthData = {
1158
+ body?: never;
1159
+ path: {
1160
+ userId: string;
1161
+ };
1162
+ query?: {
1163
+ /**
1164
+ * Show access and refresh tokens
1165
+ */
1166
+ showToken?: 'false' | 'true';
1167
+ };
1168
+ url: '/v1/users/{userId}/oauth';
1169
+ };
1170
+ export type GetV1UsersUserIdOauthErrors = {
1171
+ /**
1172
+ * User not found
1173
+ */
1174
+ 404: {
1175
+ data: null;
1176
+ error: string;
1177
+ };
1178
+ };
1179
+ export type GetV1UsersUserIdOauthError = GetV1UsersUserIdOauthErrors[keyof GetV1UsersUserIdOauthErrors];
1180
+ export type GetV1UsersUserIdOauthResponses = {
1181
+ /**
1182
+ * All oauth connections of the user
1183
+ */
1184
+ 200: {
1185
+ data: Array<AuthConnection>;
1186
+ };
1187
+ };
1188
+ export type GetV1UsersUserIdOauthResponse = GetV1UsersUserIdOauthResponses[keyof GetV1UsersUserIdOauthResponses];
1189
+ export type GetV1UsersUserIdOauthLinksData = {
1190
+ body?: never;
1191
+ path: {
1192
+ userId: string;
1193
+ };
1194
+ query: {
1195
+ /**
1196
+ * Access type of the oauth connection
1197
+ */
1198
+ accessType: 'offline' | 'online';
1199
+ /**
1200
+ * Scope of the oauth connection
1201
+ */
1202
+ scope: Array<string> | 'edit' | 'free-busy';
1203
+ provider?: Array<'google' | 'microsoft'>;
1204
+ };
1205
+ url: '/v1/users/{userId}/oauth/links';
1206
+ };
1207
+ export type GetV1UsersUserIdOauthLinksErrors = {
1208
+ /**
1209
+ * Invalid request
1210
+ */
1211
+ 400: {
1212
+ data: null;
1213
+ error: string;
1214
+ };
1215
+ /**
1216
+ * User not found
1217
+ */
1218
+ 404: {
1219
+ data: null;
1220
+ error: string;
1221
+ };
1222
+ };
1223
+ export type GetV1UsersUserIdOauthLinksError = GetV1UsersUserIdOauthLinksErrors[keyof GetV1UsersUserIdOauthLinksErrors];
1224
+ export type GetV1UsersUserIdOauthLinksResponses = {
1225
+ /**
1226
+ * Auth urls for the oauth providers
1227
+ */
1228
+ 200: {
1229
+ data: Array<{
1230
+ /**
1231
+ * Auth url for the user to connect to the oauth provider
1232
+ */
1233
+ link: string;
1234
+ provider: 'google' | 'microsoft';
1235
+ }>;
1236
+ };
1237
+ };
1238
+ export type GetV1UsersUserIdOauthLinksResponse = GetV1UsersUserIdOauthLinksResponses[keyof GetV1UsersUserIdOauthLinksResponses];
1239
+ export type GetV1UsersUserIdOauthProviderLinkData = {
1240
+ body?: never;
1241
+ path: {
1242
+ provider: 'google' | 'microsoft';
1243
+ userId: string;
1244
+ };
1245
+ query: {
1246
+ /**
1247
+ * Access type of the oauth connection
1248
+ */
1249
+ accessType: 'offline' | 'online';
1250
+ /**
1251
+ * Scope of the oauth connection
1252
+ */
1253
+ scope: Array<string> | 'edit' | 'free-busy';
1254
+ /**
1255
+ * Redirect url for the oauth provider
1256
+ */
1257
+ redirectUrl?: string;
1258
+ };
1259
+ url: '/v1/users/{userId}/oauth/{provider}/link';
1260
+ };
1261
+ export type GetV1UsersUserIdOauthProviderLinkErrors = {
1262
+ /**
1263
+ * Invalid request
1264
+ */
1265
+ 400: {
1266
+ data: null;
1267
+ error: string;
1268
+ };
1269
+ /**
1270
+ * User not found
1271
+ */
1272
+ 404: {
1273
+ data: null;
1274
+ error: string;
1275
+ };
1276
+ };
1277
+ export type GetV1UsersUserIdOauthProviderLinkError = GetV1UsersUserIdOauthProviderLinkErrors[keyof GetV1UsersUserIdOauthProviderLinkErrors];
1278
+ export type GetV1UsersUserIdOauthProviderLinkResponses = {
1279
+ /**
1280
+ * Auth url for the oauth provider
1281
+ */
1282
+ 200: {
1283
+ data: {
1284
+ /**
1285
+ * Auth url for the user to connect to the oauth provider
1286
+ */
1287
+ link: string;
1288
+ };
1289
+ };
1290
+ };
1291
+ export type GetV1UsersUserIdOauthProviderLinkResponse = GetV1UsersUserIdOauthProviderLinkResponses[keyof GetV1UsersUserIdOauthProviderLinkResponses];
1292
+ export type PostV1UsersOauthProviderVerifyData = {
1293
+ body?: {
1294
+ code: string;
1295
+ scope: Array<string>;
1296
+ state: string;
1297
+ };
1298
+ path: {
1299
+ provider: 'google' | 'microsoft';
1300
+ };
1301
+ query?: {
1302
+ /**
1303
+ * Redirect url for the oauth provider
1304
+ */
1305
+ redirectUrl?: string;
1306
+ };
1307
+ url: '/v1/users/oauth/{provider}/verify';
1308
+ };
1309
+ export type PostV1UsersOauthProviderVerifyErrors = {
1310
+ /**
1311
+ * Invalid request
1312
+ */
1313
+ 400: {
1314
+ data: null;
1315
+ error: string;
1316
+ };
1317
+ /**
1318
+ * User not found
1319
+ */
1320
+ 404: {
1321
+ data: null;
1322
+ error: string;
1323
+ };
1324
+ };
1325
+ export type PostV1UsersOauthProviderVerifyError = PostV1UsersOauthProviderVerifyErrors[keyof PostV1UsersOauthProviderVerifyErrors];
1326
+ export type PostV1UsersOauthProviderVerifyResponses = {
1327
+ /**
1328
+ * OAuth code verified successfully
1329
+ */
1330
+ 200: unknown;
1331
+ };
1332
+ export type DeleteV1UsersUserIdOauthProviderData = {
1333
+ body?: never;
1334
+ path: {
1335
+ provider: 'google' | 'microsoft';
1336
+ userId: string;
1337
+ };
1338
+ query?: never;
1339
+ url: '/v1/users/{userId}/oauth/{provider}';
1340
+ };
1341
+ export type DeleteV1UsersUserIdOauthProviderErrors = {
1342
+ /**
1343
+ * User not found
1344
+ */
1345
+ 404: {
1346
+ data: null;
1347
+ error: string;
1348
+ };
1349
+ };
1350
+ export type DeleteV1UsersUserIdOauthProviderError = DeleteV1UsersUserIdOauthProviderErrors[keyof DeleteV1UsersUserIdOauthProviderErrors];
1351
+ export type DeleteV1UsersUserIdOauthProviderResponses = {
1352
+ /**
1353
+ * OAuth connection deleted
1354
+ */
1355
+ 200: unknown;
1356
+ };
1357
+ export type GetV1UsersUserIdOauthProviderData = {
1358
+ body?: never;
1359
+ path: {
1360
+ provider: 'google' | 'microsoft';
1361
+ userId: string;
1362
+ };
1363
+ query?: {
1364
+ /**
1365
+ * Show access and refresh tokens
1366
+ */
1367
+ showToken?: 'false' | 'true';
1368
+ };
1369
+ url: '/v1/users/{userId}/oauth/{provider}';
1370
+ };
1371
+ export type GetV1UsersUserIdOauthProviderErrors = {
1372
+ /**
1373
+ * User not found
1374
+ */
1375
+ 404: {
1376
+ data: null;
1377
+ error: string;
1378
+ };
1379
+ };
1380
+ export type GetV1UsersUserIdOauthProviderError = GetV1UsersUserIdOauthProviderErrors[keyof GetV1UsersUserIdOauthProviderErrors];
1381
+ export type GetV1UsersUserIdOauthProviderResponses = {
1382
+ /**
1383
+ * OAuth connection of the user
1384
+ */
1385
+ 200: {
1386
+ data: AuthConnection;
1387
+ };
1388
+ };
1389
+ export type GetV1UsersUserIdOauthProviderResponse = GetV1UsersUserIdOauthProviderResponses[keyof GetV1UsersUserIdOauthProviderResponses];
1390
+ export type PostV1UsersUserIdOauthProviderData = {
1391
+ body?: {
1392
+ accessToken: string;
1393
+ email: string | null;
1394
+ expiresAt: string | null;
1395
+ refreshToken: string | unknown;
1396
+ scope: Array<string>;
1397
+ };
1398
+ path: {
1399
+ provider: 'google' | 'microsoft';
1400
+ userId: string;
1401
+ };
1402
+ query?: never;
1403
+ url: '/v1/users/{userId}/oauth/{provider}';
1404
+ };
1405
+ export type PostV1UsersUserIdOauthProviderErrors = {
1406
+ /**
1407
+ * Invalid request
1408
+ */
1409
+ 400: {
1410
+ data: null;
1411
+ error: string;
1412
+ };
1413
+ /**
1414
+ * User not found
1415
+ */
1416
+ 404: {
1417
+ data: null;
1418
+ error: string;
1419
+ };
1420
+ };
1421
+ export type PostV1UsersUserIdOauthProviderError = PostV1UsersUserIdOauthProviderErrors[keyof PostV1UsersUserIdOauthProviderErrors];
1422
+ export type PostV1UsersUserIdOauthProviderResponses = {
1423
+ /**
1424
+ * OAuth connection created
1425
+ */
1426
+ 201: {
1427
+ data: AuthConnection;
1428
+ };
1429
+ };
1430
+ export type PostV1UsersUserIdOauthProviderResponse = PostV1UsersUserIdOauthProviderResponses[keyof PostV1UsersUserIdOauthProviderResponses];
1431
+ export type GetV1UsersUserIdOauthProviderTokenData = {
1432
+ body?: never;
1433
+ path: {
1434
+ provider: 'google' | 'microsoft';
1435
+ userId: string;
1436
+ };
1437
+ query?: never;
1438
+ url: '/v1/users/{userId}/oauth/{provider}/token';
1439
+ };
1440
+ export type GetV1UsersUserIdOauthProviderTokenErrors = {
1441
+ /**
1442
+ * Invalid request
1443
+ */
1444
+ 400: {
1445
+ data: null;
1446
+ error: string;
1447
+ };
1448
+ /**
1449
+ * User not found
1450
+ */
1451
+ 404: {
1452
+ data: null;
1453
+ error: string;
1454
+ };
1455
+ };
1456
+ export type GetV1UsersUserIdOauthProviderTokenError = GetV1UsersUserIdOauthProviderTokenErrors[keyof GetV1UsersUserIdOauthProviderTokenErrors];
1457
+ export type GetV1UsersUserIdOauthProviderTokenResponses = {
1458
+ /**
1459
+ * Access token
1460
+ */
1461
+ 200: {
1462
+ data: {
1463
+ accessToken: string;
1464
+ };
1465
+ };
1466
+ };
1467
+ export type GetV1UsersUserIdOauthProviderTokenResponse = GetV1UsersUserIdOauthProviderTokenResponses[keyof GetV1UsersUserIdOauthProviderTokenResponses];
1468
+ export type GetV1UsersUserIdSchedulingData = {
1469
+ body?: never;
1470
+ path: {
1471
+ userId: string;
1472
+ };
1473
+ query: {
1474
+ /**
1475
+ * End time of the time range in ISO format
1476
+ */
1477
+ end: string;
1478
+ /**
1479
+ * Padding in minutes to add before and after busy times
1480
+ */
1481
+ padding: string | unknown;
1482
+ /**
1483
+ * Duration of each slot in minutes
1484
+ */
1485
+ slotDuration: string | unknown;
1486
+ /**
1487
+ * Start time of the time range in ISO format
1488
+ */
1489
+ start: string;
1490
+ /**
1491
+ * Requested earliest time of each day (in the time zone of the request)
1492
+ */
1493
+ earliestTimeEachDay?: string;
1494
+ /**
1495
+ * Requested latest time of each day (in the time zone of the request)
1496
+ */
1497
+ latestTimeEachDay?: string;
1498
+ /**
1499
+ * An integer >= 0 (default: 0)
1500
+ */
1501
+ maxOverlaps?: string | unknown;
1502
+ provider?: Array<'google' | 'microsoft'> | 'google' | 'microsoft';
1503
+ };
1504
+ url: '/v1/users/{userId}/scheduling';
1505
+ };
1506
+ export type GetV1UsersUserIdSchedulingErrors = {
1507
+ /**
1508
+ * Bad request
1509
+ */
1510
+ 400: {
1511
+ data: null;
1512
+ error: string;
1513
+ };
1514
+ /**
1515
+ * User not found
1516
+ */
1517
+ 404: {
1518
+ data: null;
1519
+ error: string;
1520
+ };
1521
+ };
1522
+ export type GetV1UsersUserIdSchedulingError = GetV1UsersUserIdSchedulingErrors[keyof GetV1UsersUserIdSchedulingErrors];
1523
+ export type GetV1UsersUserIdSchedulingResponses = {
1524
+ /**
1525
+ * Available time slots
1526
+ */
1527
+ 200: {
1528
+ data: {
1529
+ availableSlots: Array<TimeRange>;
1530
+ options: {
1531
+ /**
1532
+ * End time of the time range in ISO format
1533
+ */
1534
+ end: Date;
1535
+ maxOverlaps: number;
1536
+ /**
1537
+ * Padding in minutes to add before and after busy times
1538
+ */
1539
+ padding: number;
1540
+ /**
1541
+ * Duration of each slot in minutes
1542
+ */
1543
+ slotDuration: number;
1544
+ /**
1545
+ * Start time of the time range in ISO format
1546
+ */
1547
+ start: Date;
1548
+ /**
1549
+ * Requested earliest time of each day (in the time zone of the request)
1550
+ */
1551
+ earliestTimeEachDay?: string;
1552
+ /**
1553
+ * Requested latest time of each day (in the time zone of the request)
1554
+ */
1555
+ latestTimeEachDay?: string;
1556
+ };
1557
+ };
1558
+ };
1559
+ };
1560
+ export type GetV1UsersUserIdSchedulingResponse = GetV1UsersUserIdSchedulingResponses[keyof GetV1UsersUserIdSchedulingResponses];
1561
+ export type PostV1UsersUserIdSchedulingData = {
1562
+ body?: {
1563
+ schedules: Array<{
1564
+ /**
1565
+ * The days to apply this scheduling element to
1566
+ */
1567
+ days: Array<'friday' | 'monday' | 'saturday' | 'sunday' | 'thursday' | 'tuesday' | 'wednesday'>;
1568
+ /**
1569
+ * End time
1570
+ */
1571
+ end: string;
1572
+ /**
1573
+ * Start time
1574
+ */
1575
+ start: string;
1576
+ }>;
1577
+ };
1578
+ path: {
1579
+ userId: string;
1580
+ };
1581
+ query: {
1582
+ /**
1583
+ * End time of the time range in ISO format
1584
+ */
1585
+ end: string;
1586
+ /**
1587
+ * Padding in minutes to add before and after busy times
1588
+ */
1589
+ padding: string | unknown;
1590
+ /**
1591
+ * Duration of each slot in minutes
1592
+ */
1593
+ slotDuration: string | unknown;
1594
+ /**
1595
+ * Start time of the time range in ISO format
1596
+ */
1597
+ start: string;
1598
+ /**
1599
+ * An integer >= 0 (default: 0)
1600
+ */
1601
+ maxOverlaps?: string | unknown;
1602
+ provider?: Array<'google' | 'microsoft'> | 'google' | 'microsoft';
1603
+ };
1604
+ url: '/v1/users/{userId}/scheduling';
1605
+ };
1606
+ export type PostV1UsersUserIdSchedulingErrors = {
1607
+ /**
1608
+ * User has no connected calendars
1609
+ */
1610
+ 400: {
1611
+ data: null;
1612
+ error: string;
1613
+ };
1614
+ /**
1615
+ * User not found
1616
+ */
1617
+ 404: {
1618
+ data: null;
1619
+ error: string;
1620
+ };
1621
+ };
1622
+ export type PostV1UsersUserIdSchedulingError = PostV1UsersUserIdSchedulingErrors[keyof PostV1UsersUserIdSchedulingErrors];
1623
+ export type PostV1UsersUserIdSchedulingResponses = {
1624
+ /**
1625
+ * Available time slots
1626
+ */
1627
+ 200: {
1628
+ data: {
1629
+ availableSlots: Array<TimeRange>;
1630
+ options: {
1631
+ /**
1632
+ * End time of the time range in ISO format
1633
+ */
1634
+ end: Date;
1635
+ maxOverlaps: number;
1636
+ /**
1637
+ * Padding in minutes to add before and after busy times
1638
+ */
1639
+ padding: number;
1640
+ /**
1641
+ * Duration of each slot in minutes
1642
+ */
1643
+ slotDuration: number;
1644
+ /**
1645
+ * Start time of the time range in ISO format
1646
+ */
1647
+ start: Date;
1648
+ /**
1649
+ * Requested earliest time of each day (in the time zone of the request)
1650
+ */
1651
+ earliestTimeEachDay?: string;
1652
+ /**
1653
+ * Requested latest time of each day (in the time zone of the request)
1654
+ */
1655
+ latestTimeEachDay?: string;
1656
+ };
1657
+ };
1658
+ };
1659
+ };
1660
+ export type PostV1UsersUserIdSchedulingResponse = PostV1UsersUserIdSchedulingResponses[keyof PostV1UsersUserIdSchedulingResponses];
1661
+ export type PostV1UsersSchedulingData = {
1662
+ body?: {
1663
+ users: Array<{
1664
+ id: string;
1665
+ calendarIds?: Array<string>;
1666
+ schedules?: Array<{
1667
+ /**
1668
+ * The days to apply this scheduling element to
1669
+ */
1670
+ days: Array<'friday' | 'monday' | 'saturday' | 'sunday' | 'thursday' | 'tuesday' | 'wednesday'>;
1671
+ /**
1672
+ * End time
1673
+ */
1674
+ end: string;
1675
+ /**
1676
+ * Start time
1677
+ */
1678
+ start: string;
1679
+ }>;
1680
+ }>;
1681
+ };
1682
+ path?: never;
1683
+ query: {
1684
+ /**
1685
+ * End time of the time range in ISO format
1686
+ */
1687
+ end: string;
1688
+ /**
1689
+ * Padding in minutes to add before and after busy times
1690
+ */
1691
+ padding: string | unknown;
1692
+ /**
1693
+ * Duration of each slot in minutes
1694
+ */
1695
+ slotDuration: string | unknown;
1696
+ /**
1697
+ * Start time of the time range in ISO format
1698
+ */
1699
+ start: string;
1700
+ /**
1701
+ * An integer >= 0 (default: 0)
1702
+ */
1703
+ maxOverlaps?: string | unknown;
1704
+ provider?: Array<'google' | 'microsoft'> | 'google' | 'microsoft';
1705
+ };
1706
+ url: '/v1/users/scheduling';
1707
+ };
1708
+ export type PostV1UsersSchedulingResponses = {
1709
+ /**
1710
+ * Available time slots for each user
1711
+ */
1712
+ 200: {
1713
+ data: Array<{
1714
+ availableSlots: Array<TimeRange>;
1715
+ options: {
1716
+ /**
1717
+ * End time of the time range in ISO format
1718
+ */
1719
+ end: Date;
1720
+ maxOverlaps: number;
1721
+ /**
1722
+ * Padding in minutes to add before and after busy times
1723
+ */
1724
+ padding: number;
1725
+ /**
1726
+ * Duration of each slot in minutes
1727
+ */
1728
+ slotDuration: number;
1729
+ /**
1730
+ * Start time of the time range in ISO format
1731
+ */
1732
+ start: Date;
1733
+ /**
1734
+ * Requested earliest time of each day (in the time zone of the request)
1735
+ */
1736
+ earliestTimeEachDay?: string;
1737
+ /**
1738
+ * Requested latest time of each day (in the time zone of the request)
1739
+ */
1740
+ latestTimeEachDay?: string;
1741
+ };
1742
+ userId: string;
1743
+ calendarIds?: Array<string>;
1744
+ schedules?: Array<{
1745
+ /**
1746
+ * The days to apply this scheduling element to
1747
+ */
1748
+ days: Array<'friday' | 'monday' | 'saturday' | 'sunday' | 'thursday' | 'tuesday' | 'wednesday'>;
1749
+ /**
1750
+ * End time
1751
+ */
1752
+ end: string;
1753
+ /**
1754
+ * Start time
1755
+ */
1756
+ start: string;
1757
+ }>;
1758
+ } | {
1759
+ error: string;
1760
+ userId: string;
1761
+ }>;
1762
+ };
1763
+ };
1764
+ export type PostV1UsersSchedulingResponse = PostV1UsersSchedulingResponses[keyof PostV1UsersSchedulingResponses];
1765
+ //# sourceMappingURL=types.gen.d.ts.map