@epilot/sdk 2.16.0 → 2.16.2

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 (141) hide show
  1. package/definitions/calendar-runtime.json +1 -1
  2. package/definitions/calendar.json +2346 -131
  3. package/definitions/entity.json +22 -1
  4. package/dist/apis/access-token.cjs +6 -6
  5. package/dist/apis/access-token.js +1 -1
  6. package/dist/apis/address-suggestions.cjs +6 -6
  7. package/dist/apis/address-suggestions.js +1 -1
  8. package/dist/apis/address.cjs +6 -6
  9. package/dist/apis/address.js +1 -1
  10. package/dist/apis/ai-agents.cjs +6 -6
  11. package/dist/apis/ai-agents.js +1 -1
  12. package/dist/apis/app.cjs +6 -6
  13. package/dist/apis/app.js +1 -1
  14. package/dist/apis/audit-logs.cjs +6 -6
  15. package/dist/apis/audit-logs.js +1 -1
  16. package/dist/apis/automation.cjs +6 -6
  17. package/dist/apis/automation.js +1 -1
  18. package/dist/apis/billing.cjs +6 -6
  19. package/dist/apis/billing.js +1 -1
  20. package/dist/apis/blueprint-manifest.cjs +6 -6
  21. package/dist/apis/blueprint-manifest.js +1 -1
  22. package/dist/apis/calendar.cjs +8 -8
  23. package/dist/apis/calendar.d.cts +2 -2
  24. package/dist/apis/calendar.d.ts +2 -2
  25. package/dist/apis/calendar.js +2 -2
  26. package/dist/apis/configuration-hub.cjs +6 -6
  27. package/dist/apis/configuration-hub.js +1 -1
  28. package/dist/apis/consent.cjs +6 -6
  29. package/dist/apis/consent.js +1 -1
  30. package/dist/apis/customer-portal.cjs +6 -6
  31. package/dist/apis/customer-portal.js +1 -1
  32. package/dist/apis/dashboard.cjs +6 -6
  33. package/dist/apis/dashboard.js +1 -1
  34. package/dist/apis/data-governance.cjs +6 -6
  35. package/dist/apis/data-governance.js +1 -1
  36. package/dist/apis/deduplication.cjs +6 -6
  37. package/dist/apis/deduplication.js +1 -1
  38. package/dist/apis/design.cjs +6 -6
  39. package/dist/apis/design.js +1 -1
  40. package/dist/apis/document.cjs +6 -6
  41. package/dist/apis/document.js +1 -1
  42. package/dist/apis/email-settings.cjs +6 -6
  43. package/dist/apis/email-settings.js +1 -1
  44. package/dist/apis/email-template.cjs +6 -6
  45. package/dist/apis/email-template.js +1 -1
  46. package/dist/apis/entity-mapping.cjs +6 -6
  47. package/dist/apis/entity-mapping.js +1 -1
  48. package/dist/apis/entity.cjs +6 -6
  49. package/dist/apis/entity.d.cts +2 -2
  50. package/dist/apis/entity.d.ts +2 -2
  51. package/dist/apis/entity.js +1 -1
  52. package/dist/apis/environments.cjs +6 -6
  53. package/dist/apis/environments.js +1 -1
  54. package/dist/apis/event-catalog.cjs +6 -6
  55. package/dist/apis/event-catalog.js +1 -1
  56. package/dist/apis/file.cjs +6 -6
  57. package/dist/apis/file.js +1 -1
  58. package/dist/apis/iban.cjs +6 -6
  59. package/dist/apis/iban.js +1 -1
  60. package/dist/apis/integration-toolkit.cjs +6 -6
  61. package/dist/apis/integration-toolkit.js +1 -1
  62. package/dist/apis/journey.cjs +6 -6
  63. package/dist/apis/journey.js +1 -1
  64. package/dist/apis/kanban.cjs +6 -6
  65. package/dist/apis/kanban.js +1 -1
  66. package/dist/apis/message.cjs +6 -6
  67. package/dist/apis/message.js +1 -1
  68. package/dist/apis/metering.cjs +6 -6
  69. package/dist/apis/metering.js +1 -1
  70. package/dist/apis/notes.cjs +6 -6
  71. package/dist/apis/notes.js +1 -1
  72. package/dist/apis/notification.cjs +6 -6
  73. package/dist/apis/notification.js +1 -1
  74. package/dist/apis/organization.cjs +6 -6
  75. package/dist/apis/organization.js +1 -1
  76. package/dist/apis/partner-directory.cjs +6 -6
  77. package/dist/apis/partner-directory.js +1 -1
  78. package/dist/apis/permissions.cjs +6 -6
  79. package/dist/apis/permissions.js +1 -1
  80. package/dist/apis/pricing-tier.cjs +6 -6
  81. package/dist/apis/pricing-tier.js +1 -1
  82. package/dist/apis/pricing.cjs +6 -6
  83. package/dist/apis/pricing.js +1 -1
  84. package/dist/apis/purpose.cjs +6 -6
  85. package/dist/apis/purpose.js +1 -1
  86. package/dist/apis/query.cjs +6 -6
  87. package/dist/apis/query.js +1 -1
  88. package/dist/apis/sandbox.cjs +6 -6
  89. package/dist/apis/sandbox.js +1 -1
  90. package/dist/apis/sharing.cjs +6 -6
  91. package/dist/apis/sharing.js +1 -1
  92. package/dist/apis/snapshot.cjs +6 -6
  93. package/dist/apis/snapshot.js +1 -1
  94. package/dist/apis/submission.cjs +6 -6
  95. package/dist/apis/submission.js +1 -1
  96. package/dist/apis/target.cjs +6 -6
  97. package/dist/apis/target.js +1 -1
  98. package/dist/apis/targeting.cjs +6 -6
  99. package/dist/apis/targeting.js +1 -1
  100. package/dist/apis/template-variables.cjs +6 -6
  101. package/dist/apis/template-variables.js +1 -1
  102. package/dist/apis/user.cjs +6 -6
  103. package/dist/apis/user.js +1 -1
  104. package/dist/apis/validation-rules.cjs +6 -6
  105. package/dist/apis/validation-rules.js +1 -1
  106. package/dist/apis/webhooks.cjs +6 -6
  107. package/dist/apis/webhooks.js +1 -1
  108. package/dist/apis/workflow-definition.cjs +6 -6
  109. package/dist/apis/workflow-definition.js +1 -1
  110. package/dist/apis/workflow.cjs +6 -6
  111. package/dist/apis/workflow.js +1 -1
  112. package/dist/calendar-GJ7UX6PX.cjs +7 -0
  113. package/dist/calendar-W42TSLFV.js +7 -0
  114. package/dist/{calendar-runtime-6CMMEQMG.js → calendar-runtime-KZPDEYT7.js} +1 -1
  115. package/dist/{calendar-runtime-G4SN5PDY.cjs → calendar-runtime-WMR6GL6I.cjs} +2 -2
  116. package/dist/calendar.d-Cinz1Vzo.d.cts +2357 -0
  117. package/dist/calendar.d-Cinz1Vzo.d.ts +2357 -0
  118. package/dist/chunk-HBJJOW2M.cjs +14 -0
  119. package/dist/{chunk-UCCKYJMU.js → chunk-MK6ZFMSY.js} +3 -3
  120. package/dist/{chunk-X3MPAK4C.cjs → chunk-NBEPUBSZ.cjs} +3 -3
  121. package/dist/chunk-QEAIJQTE.js +14 -0
  122. package/dist/entity-IZHQB3JX.js +7 -0
  123. package/dist/entity-MYDUQBEE.cjs +7 -0
  124. package/dist/{entity.d-CmQvgvyi.d.cts → entity.d-CaFNmDfj.d.cts} +33 -3
  125. package/dist/{entity.d-CmQvgvyi.d.ts → entity.d-CaFNmDfj.d.ts} +33 -3
  126. package/dist/index.cjs +10 -10
  127. package/dist/index.d.cts +2 -2
  128. package/dist/index.d.ts +2 -2
  129. package/dist/index.js +2 -2
  130. package/dist/js-yaml-DLCVPJ7G.js +0 -0
  131. package/docs/calendar.md +1329 -9
  132. package/docs/entity.md +35 -0
  133. package/package.json +11 -12
  134. package/dist/calendar-2YDAYG7S.cjs +0 -7
  135. package/dist/calendar-ACFIHQ2N.js +0 -7
  136. package/dist/calendar.d-BEjLDagH.d.cts +0 -353
  137. package/dist/calendar.d-BEjLDagH.d.ts +0 -353
  138. package/dist/chunk-CKLEBO4K.cjs +0 -14
  139. package/dist/chunk-JNH37UUH.js +0 -14
  140. package/dist/entity-K5HYURU7.js +0 -7
  141. package/dist/entity-V5375UNT.cjs +0 -7
@@ -0,0 +1,2357 @@
1
+ import { OpenAPIClient, Parameters, AxiosRequestConfig, OperationResponse, UnknownParamsObject } from 'openapi-client-axios';
2
+
3
+ /* Auto-copied from calendar-client */
4
+
5
+
6
+ declare namespace Components {
7
+ namespace Schemas {
8
+ export interface AbsenceAdjustment {
9
+ /**
10
+ * Adjustment start. Maximum adjustment duration: 7 days.
11
+ */
12
+ from: string; // date-time
13
+ /**
14
+ * Adjustment end. Must be after from.
15
+ */
16
+ to: string; // date-time
17
+ /**
18
+ * Manual override state: true means absent, false means not absent.
19
+ */
20
+ absent: boolean;
21
+ status: /* Calendar status targeted by the absence adjustment. */ AbsenceStatus;
22
+ type?: /* Optional producer-defined reference stored with an absence adjustment. */ AbsenceType;
23
+ reason?: string | null;
24
+ adjustment_id: string;
25
+ user_id: string;
26
+ created_by: string;
27
+ created_at: string; // date-time
28
+ updated_at: string; // date-time
29
+ }
30
+ export interface AbsenceInterval {
31
+ /**
32
+ * Absence interval start clipped to the requested window.
33
+ */
34
+ from: string; // date-time
35
+ /**
36
+ * Absence interval end clipped to the requested window.
37
+ */
38
+ to: string; // date-time
39
+ /**
40
+ * Original absence interval start before clipping.
41
+ */
42
+ original_from: string; // date-time
43
+ /**
44
+ * Original absence interval end before clipping.
45
+ */
46
+ original_to: string; // date-time
47
+ /**
48
+ * Effective absence state for this interval.
49
+ */
50
+ absent: boolean;
51
+ source: AbsenceIntervalSource;
52
+ /**
53
+ * calendar_event ID for calendar-derived intervals.
54
+ */
55
+ calendar_event_id?: string;
56
+ /**
57
+ * absence adjustment ID for manual intervals.
58
+ */
59
+ absence_adjustment_id?: string;
60
+ reason?: string | null;
61
+ }
62
+ export type AbsenceIntervalSource = "calendar_event" | "absence_adjustment" | "working_hours";
63
+ /**
64
+ * Calendar status targeted by the absence adjustment.
65
+ */
66
+ export type AbsenceStatus = "oof" | "busy";
67
+ /**
68
+ * Optional producer-defined reference stored with an absence adjustment.
69
+ */
70
+ export type AbsenceType = string;
71
+ export interface AddOutlookCalendarRequest {
72
+ provider_calendar_id: string;
73
+ /**
74
+ * Optional override; defaults to the provider calendar name.
75
+ */
76
+ name?: string;
77
+ }
78
+ export interface Attendee {
79
+ email: string; // email
80
+ name?: string | null;
81
+ response: /* Caller's response to the invite */ ResponseStatus;
82
+ type: "required" | "optional" | "resource";
83
+ }
84
+ export interface AvailableOutlookCalendar {
85
+ /**
86
+ * Microsoft Graph calendar id (immutable, e.g. base64-encoded)
87
+ */
88
+ provider_calendar_id: string;
89
+ name: string;
90
+ color?: string | null;
91
+ is_default?: boolean;
92
+ can_edit?: boolean;
93
+ /**
94
+ * Owner email address on the Microsoft side
95
+ */
96
+ owner?: string | null;
97
+ }
98
+ export interface Calendar {
99
+ /**
100
+ * epilot calendar ID
101
+ */
102
+ _id: string;
103
+ _schema: "calendar";
104
+ /**
105
+ * Organization the calendar belongs to
106
+ */
107
+ _org: string;
108
+ /**
109
+ * Computed display title
110
+ */
111
+ _title?: string;
112
+ name: string;
113
+ description?: string | null;
114
+ /**
115
+ * Hex color (e.g. "#3b82f6") or provider-defined named color
116
+ */
117
+ color?: string | null;
118
+ /**
119
+ * True if this is the user's primary calendar
120
+ */
121
+ is_default: boolean;
122
+ /**
123
+ * True if the caller cannot modify events in this calendar
124
+ */
125
+ read_only: boolean;
126
+ owner_email?: string | null; // email
127
+ source: CalendarSource;
128
+ _created_at?: string; // date-time
129
+ _updated_at?: string; // date-time
130
+ }
131
+ export interface CalendarCreateBody {
132
+ name: string;
133
+ description?: string | null;
134
+ /**
135
+ * Hex color (e.g. "#3b82f6") or provider-defined named color
136
+ */
137
+ color?: string | null;
138
+ }
139
+ export interface CalendarEvent {
140
+ /**
141
+ * epilot event ID
142
+ */
143
+ _id: string;
144
+ _schema: "calendar_event";
145
+ _org: string;
146
+ /**
147
+ * Null when sensitivity is private or confidential
148
+ */
149
+ _title?: string | null;
150
+ /**
151
+ * Provider categories (Outlook) or colours (Google) as epilot tags
152
+ */
153
+ _tags?: string[];
154
+ /**
155
+ * epilot calendar this event belongs to
156
+ */
157
+ calendar_id: string;
158
+ event_type: EventType;
159
+ /**
160
+ * Preview of the event body, truncated to 255 chars
161
+ */
162
+ description?: string | null;
163
+ /**
164
+ * Event start in UTC
165
+ */
166
+ start_time: string; // date-time
167
+ /**
168
+ * Event end in UTC
169
+ */
170
+ end_time: string; // date-time
171
+ /**
172
+ * IANA timezone of the original event (for display)
173
+ */
174
+ timezone: string;
175
+ is_all_day: boolean;
176
+ location?: string | null;
177
+ status: /* Free/busy state derived from provider `showAs` */ EventStatus;
178
+ /**
179
+ * Convenience flag, true when status is busy/oof/tentative
180
+ */
181
+ busy: boolean;
182
+ is_cancelled: boolean;
183
+ sensitivity: Sensitivity;
184
+ importance: Importance;
185
+ is_online_meeting: boolean;
186
+ /**
187
+ * Teams, Meet, Zoom, or similar join URL
188
+ */
189
+ online_meeting_url?: string | null; // uri
190
+ /**
191
+ * Deep link to open the event in the originating provider
192
+ */
193
+ web_link?: string | null; // uri
194
+ response_status: /* Caller's response to the invite */ ResponseStatus;
195
+ organizer_email?: string | null; // email
196
+ /**
197
+ * Null when sensitivity is private or confidential
198
+ */
199
+ attendees?: Attendee[] | null;
200
+ is_recurring: boolean;
201
+ /**
202
+ * ID of the recurring series this occurrence belongs to
203
+ */
204
+ series_master_id?: string | null;
205
+ source: EventSource;
206
+ _created_at?: string; // date-time
207
+ _updated_at?: string; // date-time
208
+ }
209
+ export interface CalendarEventCreateBody {
210
+ /**
211
+ * epilot calendar this event belongs to
212
+ */
213
+ calendar_id: string;
214
+ /**
215
+ * Preview of the event body, truncated to 255 chars
216
+ */
217
+ description?: string | null;
218
+ /**
219
+ * Event start in UTC
220
+ */
221
+ start_time: string; // date-time
222
+ /**
223
+ * Event end in UTC
224
+ */
225
+ end_time: string; // date-time
226
+ /**
227
+ * IANA timezone of the original event (for display)
228
+ */
229
+ timezone: string;
230
+ is_all_day: boolean;
231
+ location?: string | null;
232
+ status: /* Free/busy state derived from provider `showAs` */ EventStatus;
233
+ sensitivity: Sensitivity;
234
+ _title: string;
235
+ }
236
+ export interface CalendarEventPatchBody {
237
+ /**
238
+ * Preview of the event body, truncated to 255 chars
239
+ */
240
+ description?: string | null;
241
+ /**
242
+ * Event start in UTC
243
+ */
244
+ start_time?: string; // date-time
245
+ /**
246
+ * Event end in UTC
247
+ */
248
+ end_time?: string; // date-time
249
+ /**
250
+ * IANA timezone of the original event (for display)
251
+ */
252
+ timezone?: string;
253
+ is_all_day?: boolean;
254
+ location?: string | null;
255
+ status?: /* Free/busy state derived from provider `showAs` */ EventStatus;
256
+ sensitivity?: Sensitivity;
257
+ _title?: string;
258
+ }
259
+ export interface CalendarPatchBody {
260
+ name?: string;
261
+ description?: string | null;
262
+ /**
263
+ * Hex color (e.g. "#3b82f6") or provider-defined named color
264
+ */
265
+ color?: string | null;
266
+ }
267
+ export interface CalendarSource {
268
+ /**
269
+ * `native` = hosted by epilot. `synced` = mirrored from an external provider.
270
+ */
271
+ type: "native" | "synced";
272
+ provider?: /* Null for native epilot calendars */ Provider;
273
+ provider_calendar_id?: string | null;
274
+ last_synced_at?: string | null; // date-time
275
+ }
276
+ export interface CreateAbsenceAdjustmentBody {
277
+ /**
278
+ * Adjustment start. Maximum adjustment duration: 7 days.
279
+ */
280
+ from: string; // date-time
281
+ /**
282
+ * Adjustment end. Must be after from.
283
+ */
284
+ to: string; // date-time
285
+ /**
286
+ * Manual override state: true means absent, false means not absent.
287
+ */
288
+ absent: boolean;
289
+ status: /* Calendar status targeted by the absence adjustment. */ AbsenceStatus;
290
+ type?: /* Optional producer-defined reference stored with an absence adjustment. */ AbsenceType;
291
+ reason?: string | null;
292
+ }
293
+ export interface Error {
294
+ status: number;
295
+ error: string | any[];
296
+ }
297
+ export interface EventSource {
298
+ /**
299
+ * `native` = hosted by epilot. `synced` = mirrored from an external provider.
300
+ */
301
+ type: "native" | "synced";
302
+ provider?: /* Null for native epilot calendars */ Provider;
303
+ provider_event_id?: string | null;
304
+ /**
305
+ * Deep link to open the event in the originating provider
306
+ */
307
+ provider_event_url?: string | null; // uri
308
+ last_synced_at?: string | null; // date-time
309
+ /**
310
+ * Provider-supplied version tag used for conflict detection
311
+ */
312
+ etag?: string | null;
313
+ }
314
+ /**
315
+ * Free/busy state derived from provider `showAs`
316
+ */
317
+ export type EventStatus = "free" | "tentative" | "busy" | "oof" | "workingElsewhere" | "unknown";
318
+ export type EventType = "singleInstance" | "occurrence" | "exception" | "seriesMaster";
319
+ export interface ExternalCalendar {
320
+ /**
321
+ * External calendar provider.
322
+ */
323
+ provider: "outlook" | "google";
324
+ /**
325
+ * Last successful sync of this provider calendar, if any.
326
+ */
327
+ last_synced_at: string | null; // date-time
328
+ }
329
+ export type Importance = "low" | "normal" | "high";
330
+ export interface PatchAbsenceAdjustmentBody {
331
+ /**
332
+ * Adjustment start. Maximum adjustment duration: 7 days.
333
+ */
334
+ from?: string; // date-time
335
+ /**
336
+ * Adjustment end. Must be after from.
337
+ */
338
+ to?: string; // date-time
339
+ /**
340
+ * Manual override state: true means absent, false means not absent.
341
+ */
342
+ absent?: boolean;
343
+ status?: /* Calendar status targeted by the absence adjustment. */ AbsenceStatus;
344
+ type?: /* Optional producer-defined reference stored with an absence adjustment. */ AbsenceType;
345
+ reason?: string | null;
346
+ }
347
+ /**
348
+ * Null for native epilot calendars
349
+ */
350
+ export type Provider = "outlook" | "google" | null;
351
+ /**
352
+ * Caller's response to the invite
353
+ */
354
+ export type ResponseStatus = "none" | "organizer" | "tentativelyAccepted" | "accepted" | "declined" | "notResponded";
355
+ export interface SearchAbsenceBody {
356
+ /**
357
+ * Start of the time window (inclusive). Maximum window: 31 days.
358
+ */
359
+ from: string; // date-time
360
+ /**
361
+ * End of the time window (exclusive). Must be after from.
362
+ */
363
+ to: string; // date-time
364
+ /**
365
+ * Candidate users to check for absence inside the caller organization.
366
+ */
367
+ user_ids: [
368
+ string,
369
+ string?,
370
+ string?,
371
+ string?,
372
+ string?,
373
+ string?,
374
+ string?,
375
+ string?,
376
+ string?,
377
+ string?,
378
+ string?,
379
+ string?,
380
+ string?,
381
+ string?,
382
+ string?,
383
+ string?,
384
+ string?,
385
+ string?,
386
+ string?,
387
+ string?,
388
+ string?,
389
+ string?,
390
+ string?,
391
+ string?,
392
+ string?,
393
+ string?,
394
+ string?,
395
+ string?,
396
+ string?,
397
+ string?,
398
+ string?,
399
+ string?,
400
+ string?,
401
+ string?,
402
+ string?,
403
+ string?,
404
+ string?,
405
+ string?,
406
+ string?,
407
+ string?,
408
+ string?,
409
+ string?,
410
+ string?,
411
+ string?,
412
+ string?,
413
+ string?,
414
+ string?,
415
+ string?,
416
+ string?,
417
+ string?,
418
+ string?,
419
+ string?,
420
+ string?,
421
+ string?,
422
+ string?,
423
+ string?,
424
+ string?,
425
+ string?,
426
+ string?,
427
+ string?,
428
+ string?,
429
+ string?,
430
+ string?,
431
+ string?,
432
+ string?,
433
+ string?,
434
+ string?,
435
+ string?,
436
+ string?,
437
+ string?,
438
+ string?,
439
+ string?,
440
+ string?,
441
+ string?,
442
+ string?,
443
+ string?,
444
+ string?,
445
+ string?,
446
+ string?,
447
+ string?,
448
+ string?,
449
+ string?,
450
+ string?,
451
+ string?,
452
+ string?,
453
+ string?,
454
+ string?,
455
+ string?,
456
+ string?,
457
+ string?,
458
+ string?,
459
+ string?,
460
+ string?,
461
+ string?,
462
+ string?,
463
+ string?,
464
+ string?,
465
+ string?,
466
+ string?,
467
+ string?,
468
+ string?,
469
+ string?,
470
+ string?,
471
+ string?,
472
+ string?,
473
+ string?,
474
+ string?,
475
+ string?,
476
+ string?,
477
+ string?,
478
+ string?,
479
+ string?,
480
+ string?,
481
+ string?,
482
+ string?,
483
+ string?,
484
+ string?,
485
+ string?,
486
+ string?,
487
+ string?,
488
+ string?,
489
+ string?,
490
+ string?,
491
+ string?,
492
+ string?,
493
+ string?,
494
+ string?,
495
+ string?,
496
+ string?,
497
+ string?,
498
+ string?,
499
+ string?,
500
+ string?,
501
+ string?,
502
+ string?,
503
+ string?,
504
+ string?,
505
+ string?,
506
+ string?,
507
+ string?,
508
+ string?,
509
+ string?,
510
+ string?,
511
+ string?,
512
+ string?,
513
+ string?,
514
+ string?,
515
+ string?,
516
+ string?,
517
+ string?,
518
+ string?,
519
+ string?,
520
+ string?,
521
+ string?,
522
+ string?,
523
+ string?,
524
+ string?,
525
+ string?,
526
+ string?,
527
+ string?,
528
+ string?,
529
+ string?,
530
+ string?,
531
+ string?,
532
+ string?,
533
+ string?,
534
+ string?,
535
+ string?,
536
+ string?,
537
+ string?,
538
+ string?,
539
+ string?,
540
+ string?,
541
+ string?,
542
+ string?,
543
+ string?,
544
+ string?,
545
+ string?,
546
+ string?,
547
+ string?,
548
+ string?,
549
+ string?,
550
+ string?,
551
+ string?,
552
+ string?,
553
+ string?,
554
+ string?,
555
+ string?,
556
+ string?,
557
+ string?,
558
+ string?,
559
+ string?,
560
+ string?,
561
+ string?,
562
+ string?,
563
+ string?,
564
+ string?,
565
+ string?,
566
+ string?,
567
+ string?,
568
+ string?,
569
+ string?,
570
+ string?,
571
+ string?,
572
+ string?,
573
+ string?,
574
+ string?,
575
+ string?,
576
+ string?,
577
+ string?,
578
+ string?,
579
+ string?,
580
+ string?,
581
+ string?,
582
+ string?,
583
+ string?,
584
+ string?,
585
+ string?,
586
+ string?,
587
+ string?,
588
+ string?,
589
+ string?,
590
+ string?,
591
+ string?,
592
+ string?,
593
+ string?,
594
+ string?,
595
+ string?,
596
+ string?,
597
+ string?,
598
+ string?,
599
+ string?,
600
+ string?,
601
+ string?,
602
+ string?,
603
+ string?,
604
+ string?,
605
+ string?,
606
+ string?,
607
+ string?,
608
+ string?,
609
+ string?,
610
+ string?,
611
+ string?,
612
+ string?,
613
+ string?,
614
+ string?,
615
+ string?,
616
+ string?,
617
+ string?,
618
+ string?,
619
+ string?,
620
+ string?,
621
+ string?,
622
+ string?,
623
+ string?,
624
+ string?,
625
+ string?,
626
+ string?,
627
+ string?,
628
+ string?,
629
+ string?,
630
+ string?,
631
+ string?,
632
+ string?,
633
+ string?,
634
+ string?,
635
+ string?,
636
+ string?,
637
+ string?,
638
+ string?,
639
+ string?,
640
+ string?,
641
+ string?,
642
+ string?,
643
+ string?,
644
+ string?,
645
+ string?,
646
+ string?,
647
+ string?,
648
+ string?,
649
+ string?,
650
+ string?,
651
+ string?,
652
+ string?,
653
+ string?,
654
+ string?,
655
+ string?,
656
+ string?,
657
+ string?,
658
+ string?,
659
+ string?,
660
+ string?,
661
+ string?,
662
+ string?,
663
+ string?,
664
+ string?,
665
+ string?,
666
+ string?,
667
+ string?
668
+ ];
669
+ /**
670
+ * Include busy inputs in addition to out-of-office absence. Defaults to false.
671
+ */
672
+ include_busy?: boolean;
673
+ /**
674
+ * At what granularity working hours contribute to absence. "time" (default): all time outside a user's working windows counts as absent. "day": only full days with no working windows count as absent (whole-day granularity, used by thread assignment). Users without a working-hours record never produce working-hours intervals.
675
+ */
676
+ working_hours_granularity?: "time" | "day";
677
+ }
678
+ export interface SearchNowAbsenceBody {
679
+ /**
680
+ * Candidate users to check for absence at the current server time inside the caller organization.
681
+ */
682
+ user_ids: [
683
+ string,
684
+ string?,
685
+ string?,
686
+ string?,
687
+ string?,
688
+ string?,
689
+ string?,
690
+ string?,
691
+ string?,
692
+ string?,
693
+ string?,
694
+ string?,
695
+ string?,
696
+ string?,
697
+ string?,
698
+ string?,
699
+ string?,
700
+ string?,
701
+ string?,
702
+ string?,
703
+ string?,
704
+ string?,
705
+ string?,
706
+ string?,
707
+ string?,
708
+ string?,
709
+ string?,
710
+ string?,
711
+ string?,
712
+ string?,
713
+ string?,
714
+ string?,
715
+ string?,
716
+ string?,
717
+ string?,
718
+ string?,
719
+ string?,
720
+ string?,
721
+ string?,
722
+ string?,
723
+ string?,
724
+ string?,
725
+ string?,
726
+ string?,
727
+ string?,
728
+ string?,
729
+ string?,
730
+ string?,
731
+ string?,
732
+ string?,
733
+ string?,
734
+ string?,
735
+ string?,
736
+ string?,
737
+ string?,
738
+ string?,
739
+ string?,
740
+ string?,
741
+ string?,
742
+ string?,
743
+ string?,
744
+ string?,
745
+ string?,
746
+ string?,
747
+ string?,
748
+ string?,
749
+ string?,
750
+ string?,
751
+ string?,
752
+ string?,
753
+ string?,
754
+ string?,
755
+ string?,
756
+ string?,
757
+ string?,
758
+ string?,
759
+ string?,
760
+ string?,
761
+ string?,
762
+ string?,
763
+ string?,
764
+ string?,
765
+ string?,
766
+ string?,
767
+ string?,
768
+ string?,
769
+ string?,
770
+ string?,
771
+ string?,
772
+ string?,
773
+ string?,
774
+ string?,
775
+ string?,
776
+ string?,
777
+ string?,
778
+ string?,
779
+ string?,
780
+ string?,
781
+ string?,
782
+ string?,
783
+ string?,
784
+ string?,
785
+ string?,
786
+ string?,
787
+ string?,
788
+ string?,
789
+ string?,
790
+ string?,
791
+ string?,
792
+ string?,
793
+ string?,
794
+ string?,
795
+ string?,
796
+ string?,
797
+ string?,
798
+ string?,
799
+ string?,
800
+ string?,
801
+ string?,
802
+ string?,
803
+ string?,
804
+ string?,
805
+ string?,
806
+ string?,
807
+ string?,
808
+ string?,
809
+ string?,
810
+ string?,
811
+ string?,
812
+ string?,
813
+ string?,
814
+ string?,
815
+ string?,
816
+ string?,
817
+ string?,
818
+ string?,
819
+ string?,
820
+ string?,
821
+ string?,
822
+ string?,
823
+ string?,
824
+ string?,
825
+ string?,
826
+ string?,
827
+ string?,
828
+ string?,
829
+ string?,
830
+ string?,
831
+ string?,
832
+ string?,
833
+ string?,
834
+ string?,
835
+ string?,
836
+ string?,
837
+ string?,
838
+ string?,
839
+ string?,
840
+ string?,
841
+ string?,
842
+ string?,
843
+ string?,
844
+ string?,
845
+ string?,
846
+ string?,
847
+ string?,
848
+ string?,
849
+ string?,
850
+ string?,
851
+ string?,
852
+ string?,
853
+ string?,
854
+ string?,
855
+ string?,
856
+ string?,
857
+ string?,
858
+ string?,
859
+ string?,
860
+ string?,
861
+ string?,
862
+ string?,
863
+ string?,
864
+ string?,
865
+ string?,
866
+ string?,
867
+ string?,
868
+ string?,
869
+ string?,
870
+ string?,
871
+ string?,
872
+ string?,
873
+ string?,
874
+ string?,
875
+ string?,
876
+ string?,
877
+ string?,
878
+ string?,
879
+ string?,
880
+ string?,
881
+ string?,
882
+ string?,
883
+ string?,
884
+ string?,
885
+ string?,
886
+ string?,
887
+ string?,
888
+ string?,
889
+ string?,
890
+ string?,
891
+ string?,
892
+ string?,
893
+ string?,
894
+ string?,
895
+ string?,
896
+ string?,
897
+ string?,
898
+ string?,
899
+ string?,
900
+ string?,
901
+ string?,
902
+ string?,
903
+ string?,
904
+ string?,
905
+ string?,
906
+ string?,
907
+ string?,
908
+ string?,
909
+ string?,
910
+ string?,
911
+ string?,
912
+ string?,
913
+ string?,
914
+ string?,
915
+ string?,
916
+ string?,
917
+ string?,
918
+ string?,
919
+ string?,
920
+ string?,
921
+ string?,
922
+ string?,
923
+ string?,
924
+ string?,
925
+ string?,
926
+ string?,
927
+ string?,
928
+ string?,
929
+ string?,
930
+ string?,
931
+ string?,
932
+ string?,
933
+ string?,
934
+ string?,
935
+ string?,
936
+ string?,
937
+ string?,
938
+ string?,
939
+ string?,
940
+ string?,
941
+ string?,
942
+ string?,
943
+ string?,
944
+ string?,
945
+ string?,
946
+ string?,
947
+ string?,
948
+ string?,
949
+ string?,
950
+ string?,
951
+ string?,
952
+ string?,
953
+ string?,
954
+ string?,
955
+ string?,
956
+ string?,
957
+ string?,
958
+ string?,
959
+ string?,
960
+ string?,
961
+ string?,
962
+ string?,
963
+ string?,
964
+ string?,
965
+ string?,
966
+ string?,
967
+ string?,
968
+ string?,
969
+ string?,
970
+ string?,
971
+ string?,
972
+ string?,
973
+ string?,
974
+ string?,
975
+ string?,
976
+ string?,
977
+ string?,
978
+ string?,
979
+ string?,
980
+ string?,
981
+ string?,
982
+ string?
983
+ ];
984
+ /**
985
+ * Include busy inputs in addition to out-of-office absence. Defaults to false.
986
+ */
987
+ include_busy?: boolean;
988
+ /**
989
+ * At what granularity working hours contribute to absence. "time" (default): all time outside a user's working windows counts as absent. "day": only full days with no working windows count as absent (whole-day granularity, used by thread assignment). Users without a working-hours record never produce working-hours intervals.
990
+ */
991
+ working_hours_granularity?: "time" | "day";
992
+ }
993
+ export type Sensitivity = "normal" | "personal" | "private" | "confidential";
994
+ export interface ShareEventBody {
995
+ /**
996
+ * epilot user id (same organization) to grant view-only access to this event
997
+ */
998
+ user_id: string;
999
+ }
1000
+ /**
1001
+ * A wall-clock working window within a single day.
1002
+ */
1003
+ export interface TimeWindow {
1004
+ /**
1005
+ * 24h wall-clock time ("HH:mm") in the timezone of the working-hours record.
1006
+ */
1007
+ start: string; // ^([01]\d|2[0-3]):[0-5]\d$
1008
+ /**
1009
+ * 24h wall-clock time ("HH:mm") in the timezone of the working-hours record.
1010
+ */
1011
+ end: string; // ^([01]\d|2[0-3]):[0-5]\d$
1012
+ }
1013
+ /**
1014
+ * Full replacement of the working-hours record. All weekdays are required; an empty array means a day off. Users without a working-hours record are treated as always available.
1015
+ */
1016
+ export interface UpsertWorkingHoursBody {
1017
+ /**
1018
+ * Working windows for a day, sorted and non-overlapping. An empty array means a day off.
1019
+ */
1020
+ monday: [
1021
+ /* A wall-clock working window within a single day. */ TimeWindow?,
1022
+ /* A wall-clock working window within a single day. */ TimeWindow?,
1023
+ /* A wall-clock working window within a single day. */ TimeWindow?,
1024
+ /* A wall-clock working window within a single day. */ TimeWindow?,
1025
+ /* A wall-clock working window within a single day. */ TimeWindow?,
1026
+ /* A wall-clock working window within a single day. */ TimeWindow?
1027
+ ];
1028
+ /**
1029
+ * Working windows for a day, sorted and non-overlapping. An empty array means a day off.
1030
+ */
1031
+ tuesday: [
1032
+ /* A wall-clock working window within a single day. */ TimeWindow?,
1033
+ /* A wall-clock working window within a single day. */ TimeWindow?,
1034
+ /* A wall-clock working window within a single day. */ TimeWindow?,
1035
+ /* A wall-clock working window within a single day. */ TimeWindow?,
1036
+ /* A wall-clock working window within a single day. */ TimeWindow?,
1037
+ /* A wall-clock working window within a single day. */ TimeWindow?
1038
+ ];
1039
+ /**
1040
+ * Working windows for a day, sorted and non-overlapping. An empty array means a day off.
1041
+ */
1042
+ wednesday: [
1043
+ /* A wall-clock working window within a single day. */ TimeWindow?,
1044
+ /* A wall-clock working window within a single day. */ TimeWindow?,
1045
+ /* A wall-clock working window within a single day. */ TimeWindow?,
1046
+ /* A wall-clock working window within a single day. */ TimeWindow?,
1047
+ /* A wall-clock working window within a single day. */ TimeWindow?,
1048
+ /* A wall-clock working window within a single day. */ TimeWindow?
1049
+ ];
1050
+ /**
1051
+ * Working windows for a day, sorted and non-overlapping. An empty array means a day off.
1052
+ */
1053
+ thursday: [
1054
+ /* A wall-clock working window within a single day. */ TimeWindow?,
1055
+ /* A wall-clock working window within a single day. */ TimeWindow?,
1056
+ /* A wall-clock working window within a single day. */ TimeWindow?,
1057
+ /* A wall-clock working window within a single day. */ TimeWindow?,
1058
+ /* A wall-clock working window within a single day. */ TimeWindow?,
1059
+ /* A wall-clock working window within a single day. */ TimeWindow?
1060
+ ];
1061
+ /**
1062
+ * Working windows for a day, sorted and non-overlapping. An empty array means a day off.
1063
+ */
1064
+ friday: [
1065
+ /* A wall-clock working window within a single day. */ TimeWindow?,
1066
+ /* A wall-clock working window within a single day. */ TimeWindow?,
1067
+ /* A wall-clock working window within a single day. */ TimeWindow?,
1068
+ /* A wall-clock working window within a single day. */ TimeWindow?,
1069
+ /* A wall-clock working window within a single day. */ TimeWindow?,
1070
+ /* A wall-clock working window within a single day. */ TimeWindow?
1071
+ ];
1072
+ /**
1073
+ * Working windows for a day, sorted and non-overlapping. An empty array means a day off.
1074
+ */
1075
+ saturday: [
1076
+ /* A wall-clock working window within a single day. */ TimeWindow?,
1077
+ /* A wall-clock working window within a single day. */ TimeWindow?,
1078
+ /* A wall-clock working window within a single day. */ TimeWindow?,
1079
+ /* A wall-clock working window within a single day. */ TimeWindow?,
1080
+ /* A wall-clock working window within a single day. */ TimeWindow?,
1081
+ /* A wall-clock working window within a single day. */ TimeWindow?
1082
+ ];
1083
+ /**
1084
+ * Working windows for a day, sorted and non-overlapping. An empty array means a day off.
1085
+ */
1086
+ sunday: [
1087
+ /* A wall-clock working window within a single day. */ TimeWindow?,
1088
+ /* A wall-clock working window within a single day. */ TimeWindow?,
1089
+ /* A wall-clock working window within a single day. */ TimeWindow?,
1090
+ /* A wall-clock working window within a single day. */ TimeWindow?,
1091
+ /* A wall-clock working window within a single day. */ TimeWindow?,
1092
+ /* A wall-clock working window within a single day. */ TimeWindow?
1093
+ ];
1094
+ /**
1095
+ * IANA timezone the working windows are expressed in. Defaults to Europe/Berlin.
1096
+ */
1097
+ timezone?: string;
1098
+ }
1099
+ /**
1100
+ * Recurring weekly working hours of a user. The absence of a record means the user is treated as always available.
1101
+ */
1102
+ export interface WorkingHours {
1103
+ /**
1104
+ * Working windows for a day, sorted and non-overlapping. An empty array means a day off.
1105
+ */
1106
+ monday: [
1107
+ /* A wall-clock working window within a single day. */ TimeWindow?,
1108
+ /* A wall-clock working window within a single day. */ TimeWindow?,
1109
+ /* A wall-clock working window within a single day. */ TimeWindow?,
1110
+ /* A wall-clock working window within a single day. */ TimeWindow?,
1111
+ /* A wall-clock working window within a single day. */ TimeWindow?,
1112
+ /* A wall-clock working window within a single day. */ TimeWindow?
1113
+ ];
1114
+ /**
1115
+ * Working windows for a day, sorted and non-overlapping. An empty array means a day off.
1116
+ */
1117
+ tuesday: [
1118
+ /* A wall-clock working window within a single day. */ TimeWindow?,
1119
+ /* A wall-clock working window within a single day. */ TimeWindow?,
1120
+ /* A wall-clock working window within a single day. */ TimeWindow?,
1121
+ /* A wall-clock working window within a single day. */ TimeWindow?,
1122
+ /* A wall-clock working window within a single day. */ TimeWindow?,
1123
+ /* A wall-clock working window within a single day. */ TimeWindow?
1124
+ ];
1125
+ /**
1126
+ * Working windows for a day, sorted and non-overlapping. An empty array means a day off.
1127
+ */
1128
+ wednesday: [
1129
+ /* A wall-clock working window within a single day. */ TimeWindow?,
1130
+ /* A wall-clock working window within a single day. */ TimeWindow?,
1131
+ /* A wall-clock working window within a single day. */ TimeWindow?,
1132
+ /* A wall-clock working window within a single day. */ TimeWindow?,
1133
+ /* A wall-clock working window within a single day. */ TimeWindow?,
1134
+ /* A wall-clock working window within a single day. */ TimeWindow?
1135
+ ];
1136
+ /**
1137
+ * Working windows for a day, sorted and non-overlapping. An empty array means a day off.
1138
+ */
1139
+ thursday: [
1140
+ /* A wall-clock working window within a single day. */ TimeWindow?,
1141
+ /* A wall-clock working window within a single day. */ TimeWindow?,
1142
+ /* A wall-clock working window within a single day. */ TimeWindow?,
1143
+ /* A wall-clock working window within a single day. */ TimeWindow?,
1144
+ /* A wall-clock working window within a single day. */ TimeWindow?,
1145
+ /* A wall-clock working window within a single day. */ TimeWindow?
1146
+ ];
1147
+ /**
1148
+ * Working windows for a day, sorted and non-overlapping. An empty array means a day off.
1149
+ */
1150
+ friday: [
1151
+ /* A wall-clock working window within a single day. */ TimeWindow?,
1152
+ /* A wall-clock working window within a single day. */ TimeWindow?,
1153
+ /* A wall-clock working window within a single day. */ TimeWindow?,
1154
+ /* A wall-clock working window within a single day. */ TimeWindow?,
1155
+ /* A wall-clock working window within a single day. */ TimeWindow?,
1156
+ /* A wall-clock working window within a single day. */ TimeWindow?
1157
+ ];
1158
+ /**
1159
+ * Working windows for a day, sorted and non-overlapping. An empty array means a day off.
1160
+ */
1161
+ saturday: [
1162
+ /* A wall-clock working window within a single day. */ TimeWindow?,
1163
+ /* A wall-clock working window within a single day. */ TimeWindow?,
1164
+ /* A wall-clock working window within a single day. */ TimeWindow?,
1165
+ /* A wall-clock working window within a single day. */ TimeWindow?,
1166
+ /* A wall-clock working window within a single day. */ TimeWindow?,
1167
+ /* A wall-clock working window within a single day. */ TimeWindow?
1168
+ ];
1169
+ /**
1170
+ * Working windows for a day, sorted and non-overlapping. An empty array means a day off.
1171
+ */
1172
+ sunday: [
1173
+ /* A wall-clock working window within a single day. */ TimeWindow?,
1174
+ /* A wall-clock working window within a single day. */ TimeWindow?,
1175
+ /* A wall-clock working window within a single day. */ TimeWindow?,
1176
+ /* A wall-clock working window within a single day. */ TimeWindow?,
1177
+ /* A wall-clock working window within a single day. */ TimeWindow?,
1178
+ /* A wall-clock working window within a single day. */ TimeWindow?
1179
+ ];
1180
+ /**
1181
+ * IANA timezone the working windows are expressed in.
1182
+ */
1183
+ timezone: string;
1184
+ user_id: string;
1185
+ updated_by: string;
1186
+ created_at: string; // date-time
1187
+ updated_at: string; // date-time
1188
+ }
1189
+ }
1190
+ }
1191
+ declare namespace Paths {
1192
+ namespace AddOutlookCalendar {
1193
+ export type RequestBody = Components.Schemas.AddOutlookCalendarRequest;
1194
+ namespace Responses {
1195
+ export type $201 = Components.Schemas.Calendar;
1196
+ export type $400 = Components.Schemas.Error;
1197
+ export type $404 = Components.Schemas.Error;
1198
+ }
1199
+ }
1200
+ namespace CreateAbsenceAdjustment {
1201
+ namespace Parameters {
1202
+ export type UserId = string;
1203
+ }
1204
+ export interface PathParameters {
1205
+ user_id: Parameters.UserId;
1206
+ }
1207
+ export type RequestBody = Components.Schemas.CreateAbsenceAdjustmentBody;
1208
+ namespace Responses {
1209
+ export type $201 = Components.Schemas.AbsenceAdjustment;
1210
+ export type $400 = Components.Schemas.Error;
1211
+ }
1212
+ }
1213
+ namespace CreateCalendar {
1214
+ export type RequestBody = Components.Schemas.CalendarCreateBody;
1215
+ namespace Responses {
1216
+ export type $201 = Components.Schemas.Calendar;
1217
+ export type $400 = Components.Schemas.Error;
1218
+ }
1219
+ }
1220
+ namespace CreateEvent {
1221
+ export type RequestBody = Components.Schemas.CalendarEventCreateBody;
1222
+ namespace Responses {
1223
+ export type $201 = Components.Schemas.CalendarEvent;
1224
+ export type $400 = Components.Schemas.Error;
1225
+ export type $403 = Components.Schemas.Error;
1226
+ export type $404 = Components.Schemas.Error;
1227
+ }
1228
+ }
1229
+ namespace DeleteAbsenceAdjustment {
1230
+ namespace Parameters {
1231
+ export type AdjustmentId = string;
1232
+ export type UserId = string;
1233
+ }
1234
+ export interface PathParameters {
1235
+ user_id: Parameters.UserId;
1236
+ adjustment_id: Parameters.AdjustmentId;
1237
+ }
1238
+ namespace Responses {
1239
+ export interface $204 {
1240
+ }
1241
+ export type $404 = Components.Schemas.Error;
1242
+ }
1243
+ }
1244
+ namespace DeleteCalendar {
1245
+ namespace Parameters {
1246
+ export type CalendarId = string;
1247
+ }
1248
+ export interface PathParameters {
1249
+ calendar_id: Parameters.CalendarId;
1250
+ }
1251
+ namespace Responses {
1252
+ export interface $204 {
1253
+ }
1254
+ export type $403 = Components.Schemas.Error;
1255
+ export type $404 = Components.Schemas.Error;
1256
+ }
1257
+ }
1258
+ namespace DeleteEvent {
1259
+ namespace Parameters {
1260
+ export type EventId = string;
1261
+ }
1262
+ export interface PathParameters {
1263
+ event_id: Parameters.EventId;
1264
+ }
1265
+ namespace Responses {
1266
+ export interface $204 {
1267
+ }
1268
+ export type $403 = Components.Schemas.Error;
1269
+ export type $404 = Components.Schemas.Error;
1270
+ }
1271
+ }
1272
+ namespace DeleteOutlookCalendar {
1273
+ namespace Parameters {
1274
+ export type CalendarId = string;
1275
+ }
1276
+ export interface PathParameters {
1277
+ calendar_id: Parameters.CalendarId;
1278
+ }
1279
+ namespace Responses {
1280
+ export interface $204 {
1281
+ }
1282
+ export type $404 = Components.Schemas.Error;
1283
+ export type $502 = Components.Schemas.Error;
1284
+ }
1285
+ }
1286
+ namespace DeleteWorkingHours {
1287
+ namespace Parameters {
1288
+ export type UserId = string;
1289
+ }
1290
+ export interface PathParameters {
1291
+ user_id: Parameters.UserId;
1292
+ }
1293
+ namespace Responses {
1294
+ export interface $204 {
1295
+ }
1296
+ export type $404 = Components.Schemas.Error;
1297
+ }
1298
+ }
1299
+ namespace GetAbsenceAdjustment {
1300
+ namespace Parameters {
1301
+ export type AdjustmentId = string;
1302
+ export type UserId = string;
1303
+ }
1304
+ export interface PathParameters {
1305
+ user_id: Parameters.UserId;
1306
+ adjustment_id: Parameters.AdjustmentId;
1307
+ }
1308
+ namespace Responses {
1309
+ export type $200 = Components.Schemas.AbsenceAdjustment;
1310
+ export type $404 = Components.Schemas.Error;
1311
+ }
1312
+ }
1313
+ namespace GetCalendar {
1314
+ namespace Parameters {
1315
+ export type CalendarId = string;
1316
+ }
1317
+ export interface PathParameters {
1318
+ calendar_id: Parameters.CalendarId;
1319
+ }
1320
+ namespace Responses {
1321
+ export type $200 = Components.Schemas.Calendar;
1322
+ export type $404 = Components.Schemas.Error;
1323
+ }
1324
+ }
1325
+ namespace GetEvent {
1326
+ namespace Parameters {
1327
+ export type EventId = string;
1328
+ }
1329
+ export interface PathParameters {
1330
+ event_id: Parameters.EventId;
1331
+ }
1332
+ namespace Responses {
1333
+ export type $200 = Components.Schemas.CalendarEvent;
1334
+ export type $404 = Components.Schemas.Error;
1335
+ }
1336
+ }
1337
+ namespace GetUserAbsence {
1338
+ namespace Parameters {
1339
+ /**
1340
+ * Start of the time window (inclusive). Maximum window: 31 days.
1341
+ */
1342
+ export type From = string; // date-time
1343
+ /**
1344
+ * Include busy inputs in addition to out-of-office absence. Defaults to false.
1345
+ */
1346
+ export type IncludeBusy = boolean;
1347
+ /**
1348
+ * End of the time window (exclusive). Must be after from.
1349
+ */
1350
+ export type To = string; // date-time
1351
+ export type UserId = string;
1352
+ /**
1353
+ * At what granularity working hours contribute to absence. "time" (default): all time outside a user's working windows counts as absent. "day": only full days with no working windows count as absent (whole-day granularity, used by thread assignment). Users without a working-hours record never produce working-hours intervals.
1354
+ */
1355
+ export type WorkingHoursGranularity = "time" | "day";
1356
+ }
1357
+ export interface PathParameters {
1358
+ user_id: Parameters.UserId;
1359
+ }
1360
+ export interface QueryParameters {
1361
+ from: /* Start of the time window (inclusive). Maximum window: 31 days. */ Parameters.From /* date-time */;
1362
+ to: /* End of the time window (exclusive). Must be after from. */ Parameters.To /* date-time */;
1363
+ include_busy?: /* Include busy inputs in addition to out-of-office absence. Defaults to false. */ Parameters.IncludeBusy;
1364
+ working_hours_granularity?: /* At what granularity working hours contribute to absence. "time" (default): all time outside a user's working windows counts as absent. "day": only full days with no working windows count as absent (whole-day granularity, used by thread assignment). Users without a working-hours record never produce working-hours intervals. */ Parameters.WorkingHoursGranularity;
1365
+ }
1366
+ namespace Responses {
1367
+ export interface $200 {
1368
+ absent: boolean;
1369
+ absence_intervals: Components.Schemas.AbsenceInterval[];
1370
+ from: string; // date-time
1371
+ to: string; // date-time
1372
+ user_id: string;
1373
+ /**
1374
+ * The user's connected external calendars (Outlook/Google), if any.
1375
+ */
1376
+ external_calendars?: Components.Schemas.ExternalCalendar[];
1377
+ }
1378
+ export type $400 = Components.Schemas.Error;
1379
+ }
1380
+ }
1381
+ namespace GetWorkingHours {
1382
+ namespace Parameters {
1383
+ export type UserId = string;
1384
+ }
1385
+ export interface PathParameters {
1386
+ user_id: Parameters.UserId;
1387
+ }
1388
+ namespace Responses {
1389
+ export type $200 = /* Recurring weekly working hours of a user. The absence of a record means the user is treated as always available. */ Components.Schemas.WorkingHours;
1390
+ export type $404 = Components.Schemas.Error;
1391
+ }
1392
+ }
1393
+ namespace ListAbsenceAdjustments {
1394
+ namespace Parameters {
1395
+ /**
1396
+ * Start of the time window (inclusive). Maximum window: 90 days.
1397
+ */
1398
+ export type From = string; // date-time
1399
+ /**
1400
+ * End of the time window (exclusive). Must be after from.
1401
+ */
1402
+ export type To = string; // date-time
1403
+ export type UserId = string;
1404
+ }
1405
+ export interface PathParameters {
1406
+ user_id: Parameters.UserId;
1407
+ }
1408
+ export interface QueryParameters {
1409
+ from: /* Start of the time window (inclusive). Maximum window: 90 days. */ Parameters.From /* date-time */;
1410
+ to: /* End of the time window (exclusive). Must be after from. */ Parameters.To /* date-time */;
1411
+ }
1412
+ namespace Responses {
1413
+ export interface $200 {
1414
+ from: string; // date-time
1415
+ to: string; // date-time
1416
+ results: Components.Schemas.AbsenceAdjustment[];
1417
+ }
1418
+ export type $400 = Components.Schemas.Error;
1419
+ }
1420
+ }
1421
+ namespace ListCalendars {
1422
+ namespace Parameters {
1423
+ /**
1424
+ * Opaque cursor from a previous response
1425
+ */
1426
+ export type Cursor = string;
1427
+ export type Size = number;
1428
+ }
1429
+ export interface QueryParameters {
1430
+ size?: Parameters.Size;
1431
+ cursor?: /* Opaque cursor from a previous response */ Parameters.Cursor;
1432
+ }
1433
+ namespace Responses {
1434
+ export interface $200 {
1435
+ results: Components.Schemas.Calendar[];
1436
+ next_cursor?: string | null;
1437
+ }
1438
+ }
1439
+ }
1440
+ namespace ListEvents {
1441
+ namespace Parameters {
1442
+ /**
1443
+ * Filter to a single calendar. Omit to query across all accessible calendars.
1444
+ */
1445
+ export type CalendarId = string;
1446
+ export type Cursor = string;
1447
+ /**
1448
+ * Start of the time window (inclusive)
1449
+ */
1450
+ export type From = string; // date-time
1451
+ export type Size = number;
1452
+ /**
1453
+ * End of the time window (exclusive)
1454
+ */
1455
+ export type To = string; // date-time
1456
+ }
1457
+ export interface QueryParameters {
1458
+ from: /* Start of the time window (inclusive) */ Parameters.From /* date-time */;
1459
+ to: /* End of the time window (exclusive) */ Parameters.To /* date-time */;
1460
+ calendar_id?: /* Filter to a single calendar. Omit to query across all accessible calendars. */ Parameters.CalendarId;
1461
+ size?: Parameters.Size;
1462
+ cursor?: Parameters.Cursor;
1463
+ }
1464
+ namespace Responses {
1465
+ export interface $200 {
1466
+ results: Components.Schemas.CalendarEvent[];
1467
+ next_cursor?: string | null;
1468
+ }
1469
+ export type $400 = Components.Schemas.Error;
1470
+ }
1471
+ }
1472
+ namespace ListOutlookCalendars {
1473
+ namespace Responses {
1474
+ export interface $200 {
1475
+ calendars: Components.Schemas.AvailableOutlookCalendar[];
1476
+ }
1477
+ export type $404 = Components.Schemas.Error;
1478
+ }
1479
+ }
1480
+ namespace ListUsersAbsence {
1481
+ namespace Parameters {
1482
+ /**
1483
+ * Start of the time window (inclusive). Maximum window: 31 days.
1484
+ */
1485
+ export type From = string; // date-time
1486
+ /**
1487
+ * Include busy inputs in addition to out-of-office absence. Defaults to false.
1488
+ */
1489
+ export type IncludeBusy = boolean;
1490
+ /**
1491
+ * Maximum users to return.
1492
+ */
1493
+ export type Limit = number;
1494
+ /**
1495
+ * User directory offset.
1496
+ */
1497
+ export type Offset = number;
1498
+ /**
1499
+ * Optional user directory search query.
1500
+ */
1501
+ export type Query = string;
1502
+ /**
1503
+ * End of the time window (exclusive). Must be after from.
1504
+ */
1505
+ export type To = string; // date-time
1506
+ /**
1507
+ * At what granularity working hours contribute to absence. "time" (default): all time outside a user's working windows counts as absent. "day": only full days with no working windows count as absent (whole-day granularity, used by thread assignment). Users without a working-hours record never produce working-hours intervals.
1508
+ */
1509
+ export type WorkingHoursGranularity = "time" | "day";
1510
+ }
1511
+ export interface QueryParameters {
1512
+ from: /* Start of the time window (inclusive). Maximum window: 31 days. */ Parameters.From /* date-time */;
1513
+ to: /* End of the time window (exclusive). Must be after from. */ Parameters.To /* date-time */;
1514
+ include_busy?: /* Include busy inputs in addition to out-of-office absence. Defaults to false. */ Parameters.IncludeBusy;
1515
+ working_hours_granularity?: /* At what granularity working hours contribute to absence. "time" (default): all time outside a user's working windows counts as absent. "day": only full days with no working windows count as absent (whole-day granularity, used by thread assignment). Users without a working-hours record never produce working-hours intervals. */ Parameters.WorkingHoursGranularity;
1516
+ query?: /* Optional user directory search query. */ Parameters.Query;
1517
+ limit?: /* Maximum users to return. */ Parameters.Limit;
1518
+ offset?: /* User directory offset. */ Parameters.Offset;
1519
+ }
1520
+ namespace Responses {
1521
+ export interface $200 {
1522
+ from: string; // date-time
1523
+ to: string; // date-time
1524
+ hits: number;
1525
+ results: {
1526
+ absent: boolean;
1527
+ absence_intervals: Components.Schemas.AbsenceInterval[];
1528
+ user_id: string;
1529
+ display_name?: string | null;
1530
+ email?: string | null; // email
1531
+ status?: string | null;
1532
+ }[];
1533
+ }
1534
+ export type $400 = Components.Schemas.Error;
1535
+ }
1536
+ }
1537
+ namespace OutlookWebhook {
1538
+ namespace Parameters {
1539
+ /**
1540
+ * Set by Graph on the subscription-validation handshake; echoed back verbatim.
1541
+ */
1542
+ export type ValidationToken = string;
1543
+ }
1544
+ export interface QueryParameters {
1545
+ validationToken?: /* Set by Graph on the subscription-validation handshake; echoed back verbatim. */ Parameters.ValidationToken;
1546
+ }
1547
+ namespace Responses {
1548
+ export type $200 = string;
1549
+ export interface $202 {
1550
+ }
1551
+ }
1552
+ }
1553
+ namespace PatchAbsenceAdjustment {
1554
+ namespace Parameters {
1555
+ export type AdjustmentId = string;
1556
+ export type UserId = string;
1557
+ }
1558
+ export interface PathParameters {
1559
+ user_id: Parameters.UserId;
1560
+ adjustment_id: Parameters.AdjustmentId;
1561
+ }
1562
+ export type RequestBody = Components.Schemas.PatchAbsenceAdjustmentBody;
1563
+ namespace Responses {
1564
+ export type $200 = Components.Schemas.AbsenceAdjustment;
1565
+ export type $400 = Components.Schemas.Error;
1566
+ export type $404 = Components.Schemas.Error;
1567
+ }
1568
+ }
1569
+ namespace PutWorkingHours {
1570
+ namespace Parameters {
1571
+ export type UserId = string;
1572
+ }
1573
+ export interface PathParameters {
1574
+ user_id: Parameters.UserId;
1575
+ }
1576
+ export type RequestBody = /* Full replacement of the working-hours record. All weekdays are required; an empty array means a day off. Users without a working-hours record are treated as always available. */ Components.Schemas.UpsertWorkingHoursBody;
1577
+ namespace Responses {
1578
+ export type $200 = /* Recurring weekly working hours of a user. The absence of a record means the user is treated as always available. */ Components.Schemas.WorkingHours;
1579
+ export type $400 = Components.Schemas.Error;
1580
+ }
1581
+ }
1582
+ namespace SearchAbsence {
1583
+ export type RequestBody = Components.Schemas.SearchAbsenceBody;
1584
+ namespace Responses {
1585
+ export interface $200 {
1586
+ from: string; // date-time
1587
+ to: string; // date-time
1588
+ users: {
1589
+ [name: string]: {
1590
+ absent: boolean;
1591
+ absence_intervals: Components.Schemas.AbsenceInterval[];
1592
+ };
1593
+ };
1594
+ }
1595
+ export type $400 = Components.Schemas.Error;
1596
+ }
1597
+ }
1598
+ namespace SearchNowAbsence {
1599
+ export type RequestBody = Components.Schemas.SearchNowAbsenceBody;
1600
+ namespace Responses {
1601
+ export interface $200 {
1602
+ from: string; // date-time
1603
+ to: string; // date-time
1604
+ users: {
1605
+ [name: string]: {
1606
+ absent: boolean;
1607
+ absence_intervals: Components.Schemas.AbsenceInterval[];
1608
+ /**
1609
+ * End of the currently active absence interval, or null when the user is not absent.
1610
+ */
1611
+ absent_until: string | null; // date-time
1612
+ };
1613
+ };
1614
+ }
1615
+ export type $400 = Components.Schemas.Error;
1616
+ }
1617
+ }
1618
+ namespace ShareEvent {
1619
+ namespace Parameters {
1620
+ export type EventId = string;
1621
+ }
1622
+ export interface PathParameters {
1623
+ event_id: Parameters.EventId;
1624
+ }
1625
+ export type RequestBody = Components.Schemas.ShareEventBody;
1626
+ namespace Responses {
1627
+ export interface $204 {
1628
+ }
1629
+ export type $400 = Components.Schemas.Error;
1630
+ export type $403 = Components.Schemas.Error;
1631
+ export type $404 = Components.Schemas.Error;
1632
+ }
1633
+ }
1634
+ namespace UnshareEvent {
1635
+ namespace Parameters {
1636
+ export type EventId = string;
1637
+ export type UserId = string;
1638
+ }
1639
+ export interface PathParameters {
1640
+ event_id: Parameters.EventId;
1641
+ user_id: Parameters.UserId;
1642
+ }
1643
+ namespace Responses {
1644
+ export interface $204 {
1645
+ }
1646
+ export type $403 = Components.Schemas.Error;
1647
+ export type $404 = Components.Schemas.Error;
1648
+ }
1649
+ }
1650
+ namespace UpdateCalendar {
1651
+ namespace Parameters {
1652
+ export type CalendarId = string;
1653
+ }
1654
+ export interface PathParameters {
1655
+ calendar_id: Parameters.CalendarId;
1656
+ }
1657
+ export type RequestBody = Components.Schemas.CalendarPatchBody;
1658
+ namespace Responses {
1659
+ export type $200 = Components.Schemas.Calendar;
1660
+ export type $400 = Components.Schemas.Error;
1661
+ export type $403 = Components.Schemas.Error;
1662
+ export type $404 = Components.Schemas.Error;
1663
+ }
1664
+ }
1665
+ namespace UpdateEvent {
1666
+ namespace Parameters {
1667
+ export type EventId = string;
1668
+ }
1669
+ export interface PathParameters {
1670
+ event_id: Parameters.EventId;
1671
+ }
1672
+ export type RequestBody = Components.Schemas.CalendarEventPatchBody;
1673
+ namespace Responses {
1674
+ export type $200 = Components.Schemas.CalendarEvent;
1675
+ export type $400 = Components.Schemas.Error;
1676
+ export type $403 = Components.Schemas.Error;
1677
+ export type $404 = Components.Schemas.Error;
1678
+ }
1679
+ }
1680
+ }
1681
+
1682
+
1683
+ interface OperationMethods {
1684
+ /**
1685
+ * listUsersAbsence - listUsersAbsence
1686
+ *
1687
+ * List organization users with known absence metadata in the requested time window.
1688
+ */
1689
+ 'listUsersAbsence'(
1690
+ parameters?: Parameters<Paths.ListUsersAbsence.QueryParameters> | null,
1691
+ data?: any,
1692
+ config?: AxiosRequestConfig
1693
+ ): OperationResponse<Paths.ListUsersAbsence.Responses.$200>
1694
+ /**
1695
+ * searchAbsence - searchAbsence
1696
+ *
1697
+ * Search known absence for candidate users in the requested time window.
1698
+ */
1699
+ 'searchAbsence'(
1700
+ parameters?: Parameters<UnknownParamsObject> | null,
1701
+ data?: Paths.SearchAbsence.RequestBody,
1702
+ config?: AxiosRequestConfig
1703
+ ): OperationResponse<Paths.SearchAbsence.Responses.$200>
1704
+ /**
1705
+ * searchNowAbsence - searchNowAbsence
1706
+ *
1707
+ * Search known absence for candidate users at the current server time.
1708
+ */
1709
+ 'searchNowAbsence'(
1710
+ parameters?: Parameters<UnknownParamsObject> | null,
1711
+ data?: Paths.SearchNowAbsence.RequestBody,
1712
+ config?: AxiosRequestConfig
1713
+ ): OperationResponse<Paths.SearchNowAbsence.Responses.$200>
1714
+ /**
1715
+ * listAbsenceAdjustments - listAbsenceAdjustments
1716
+ *
1717
+ * List absence adjustments for a user in a time window.
1718
+ */
1719
+ 'listAbsenceAdjustments'(
1720
+ parameters?: Parameters<Paths.ListAbsenceAdjustments.QueryParameters & Paths.ListAbsenceAdjustments.PathParameters> | null,
1721
+ data?: any,
1722
+ config?: AxiosRequestConfig
1723
+ ): OperationResponse<Paths.ListAbsenceAdjustments.Responses.$200>
1724
+ /**
1725
+ * createAbsenceAdjustment - createAbsenceAdjustment
1726
+ *
1727
+ * Create a time-bound absence adjustment for a user in the caller organization.
1728
+ */
1729
+ 'createAbsenceAdjustment'(
1730
+ parameters?: Parameters<Paths.CreateAbsenceAdjustment.PathParameters> | null,
1731
+ data?: Paths.CreateAbsenceAdjustment.RequestBody,
1732
+ config?: AxiosRequestConfig
1733
+ ): OperationResponse<Paths.CreateAbsenceAdjustment.Responses.$201>
1734
+ /**
1735
+ * getAbsenceAdjustment - getAbsenceAdjustment
1736
+ *
1737
+ * Get an absence adjustment by ID.
1738
+ */
1739
+ 'getAbsenceAdjustment'(
1740
+ parameters?: Parameters<Paths.GetAbsenceAdjustment.PathParameters> | null,
1741
+ data?: any,
1742
+ config?: AxiosRequestConfig
1743
+ ): OperationResponse<Paths.GetAbsenceAdjustment.Responses.$200>
1744
+ /**
1745
+ * patchAbsenceAdjustment - patchAbsenceAdjustment
1746
+ *
1747
+ * Update an absence adjustment in the caller organization.
1748
+ */
1749
+ 'patchAbsenceAdjustment'(
1750
+ parameters?: Parameters<Paths.PatchAbsenceAdjustment.PathParameters> | null,
1751
+ data?: Paths.PatchAbsenceAdjustment.RequestBody,
1752
+ config?: AxiosRequestConfig
1753
+ ): OperationResponse<Paths.PatchAbsenceAdjustment.Responses.$200>
1754
+ /**
1755
+ * deleteAbsenceAdjustment - deleteAbsenceAdjustment
1756
+ *
1757
+ * Delete an absence adjustment.
1758
+ */
1759
+ 'deleteAbsenceAdjustment'(
1760
+ parameters?: Parameters<Paths.DeleteAbsenceAdjustment.PathParameters> | null,
1761
+ data?: any,
1762
+ config?: AxiosRequestConfig
1763
+ ): OperationResponse<Paths.DeleteAbsenceAdjustment.Responses.$204>
1764
+ /**
1765
+ * getUserAbsence - getUserAbsence
1766
+ *
1767
+ * Get known absence for a user in a time window. absent=false means no known absence, not guaranteed availability.
1768
+ */
1769
+ 'getUserAbsence'(
1770
+ parameters?: Parameters<Paths.GetUserAbsence.QueryParameters & Paths.GetUserAbsence.PathParameters> | null,
1771
+ data?: any,
1772
+ config?: AxiosRequestConfig
1773
+ ): OperationResponse<Paths.GetUserAbsence.Responses.$200>
1774
+ /**
1775
+ * getWorkingHours - getWorkingHours
1776
+ *
1777
+ * Get the recurring weekly working hours of a user. 404 means no record exists and the user is treated as always available.
1778
+ */
1779
+ 'getWorkingHours'(
1780
+ parameters?: Parameters<Paths.GetWorkingHours.PathParameters> | null,
1781
+ data?: any,
1782
+ config?: AxiosRequestConfig
1783
+ ): OperationResponse<Paths.GetWorkingHours.Responses.$200>
1784
+ /**
1785
+ * putWorkingHours - putWorkingHours
1786
+ *
1787
+ * Create or fully replace the working hours of a user in the caller organization. This is a full replace, not a merge.
1788
+ */
1789
+ 'putWorkingHours'(
1790
+ parameters?: Parameters<Paths.PutWorkingHours.PathParameters> | null,
1791
+ data?: Paths.PutWorkingHours.RequestBody,
1792
+ config?: AxiosRequestConfig
1793
+ ): OperationResponse<Paths.PutWorkingHours.Responses.$200>
1794
+ /**
1795
+ * deleteWorkingHours - deleteWorkingHours
1796
+ *
1797
+ * Delete the working hours of a user. The user is then treated as always available again.
1798
+ */
1799
+ 'deleteWorkingHours'(
1800
+ parameters?: Parameters<Paths.DeleteWorkingHours.PathParameters> | null,
1801
+ data?: any,
1802
+ config?: AxiosRequestConfig
1803
+ ): OperationResponse<Paths.DeleteWorkingHours.Responses.$204>
1804
+ /**
1805
+ * listCalendars - listCalendars
1806
+ *
1807
+ * List calendars visible to the caller.
1808
+ */
1809
+ 'listCalendars'(
1810
+ parameters?: Parameters<Paths.ListCalendars.QueryParameters> | null,
1811
+ data?: any,
1812
+ config?: AxiosRequestConfig
1813
+ ): OperationResponse<Paths.ListCalendars.Responses.$200>
1814
+ /**
1815
+ * createCalendar - createCalendar
1816
+ *
1817
+ * Create a native epilot calendar.
1818
+ */
1819
+ 'createCalendar'(
1820
+ parameters?: Parameters<UnknownParamsObject> | null,
1821
+ data?: Paths.CreateCalendar.RequestBody,
1822
+ config?: AxiosRequestConfig
1823
+ ): OperationResponse<Paths.CreateCalendar.Responses.$201>
1824
+ /**
1825
+ * addOutlookCalendar - addOutlookCalendar
1826
+ *
1827
+ * Registers one of the caller's Outlook calendars as an epilot calendar.
1828
+ *
1829
+ * The returned calendar resource carries `source.provider=outlook` and the
1830
+ * provider calendar id, so subsequent reads through `GET /v1/calendar` /
1831
+ * `GET /v1/calendar/events` route through the sync provider.
1832
+ */
1833
+ 'addOutlookCalendar'(
1834
+ parameters?: Parameters<UnknownParamsObject> | null,
1835
+ data?: Paths.AddOutlookCalendar.RequestBody,
1836
+ config?: AxiosRequestConfig
1837
+ ): OperationResponse<Paths.AddOutlookCalendar.Responses.$201>
1838
+ /**
1839
+ * listOutlookCalendars - listOutlookCalendars
1840
+ *
1841
+ * Lists the calling user's Outlook calendars available to import as epilot calendars.
1842
+ *
1843
+ * Requires the caller to have a personal Outlook calendar connection (created via the
1844
+ * OAuth flow on email-settings: `POST /v2/outlook/connect { "calendar": true }`).
1845
+ */
1846
+ 'listOutlookCalendars'(
1847
+ parameters?: Parameters<UnknownParamsObject> | null,
1848
+ data?: any,
1849
+ config?: AxiosRequestConfig
1850
+ ): OperationResponse<Paths.ListOutlookCalendars.Responses.$200>
1851
+ /**
1852
+ * deleteOutlookCalendar - deleteOutlookCalendar
1853
+ *
1854
+ * Disconnects a previously registered Outlook calendar.
1855
+ *
1856
+ * Deletes the Microsoft Graph subscription, removes the backing `calendar`
1857
+ * entity, and drops the local subscription record. Idempotent: a 404 from
1858
+ * Graph (subscription already gone) is treated as success.
1859
+ */
1860
+ 'deleteOutlookCalendar'(
1861
+ parameters?: Parameters<Paths.DeleteOutlookCalendar.PathParameters> | null,
1862
+ data?: any,
1863
+ config?: AxiosRequestConfig
1864
+ ): OperationResponse<Paths.DeleteOutlookCalendar.Responses.$204>
1865
+ /**
1866
+ * outlookWebhook - outlookWebhook
1867
+ *
1868
+ * Public Microsoft Graph webhook receiver for per-user Outlook calendar
1869
+ * subscriptions. Unauthenticated by design (API Gateway `Authorizer: NONE`):
1870
+ * Graph calls it with no epilot token.
1871
+ *
1872
+ * Handles both the subscription-validation handshake (echoes the
1873
+ * `validationToken` query param as `text/plain`) and change notifications.
1874
+ * Each notification is trusted only after its HMAC-signed `clientState` is
1875
+ * verified and matched against the stored subscription – identity is never
1876
+ * read from the request body.
1877
+ */
1878
+ 'outlookWebhook'(
1879
+ parameters?: Parameters<Paths.OutlookWebhook.QueryParameters> | null,
1880
+ data?: any,
1881
+ config?: AxiosRequestConfig
1882
+ ): OperationResponse<Paths.OutlookWebhook.Responses.$200 | Paths.OutlookWebhook.Responses.$202>
1883
+ /**
1884
+ * getCalendar - getCalendar
1885
+ *
1886
+ * Get a single calendar by its epilot ID.
1887
+ */
1888
+ 'getCalendar'(
1889
+ parameters?: Parameters<Paths.GetCalendar.PathParameters> | null,
1890
+ data?: any,
1891
+ config?: AxiosRequestConfig
1892
+ ): OperationResponse<Paths.GetCalendar.Responses.$200>
1893
+ /**
1894
+ * updateCalendar - updateCalendar
1895
+ *
1896
+ * Update fields on a calendar.
1897
+ */
1898
+ 'updateCalendar'(
1899
+ parameters?: Parameters<Paths.UpdateCalendar.PathParameters> | null,
1900
+ data?: Paths.UpdateCalendar.RequestBody,
1901
+ config?: AxiosRequestConfig
1902
+ ): OperationResponse<Paths.UpdateCalendar.Responses.$200>
1903
+ /**
1904
+ * deleteCalendar - deleteCalendar
1905
+ *
1906
+ * Delete a native epilot calendar and its events.
1907
+ */
1908
+ 'deleteCalendar'(
1909
+ parameters?: Parameters<Paths.DeleteCalendar.PathParameters> | null,
1910
+ data?: any,
1911
+ config?: AxiosRequestConfig
1912
+ ): OperationResponse<Paths.DeleteCalendar.Responses.$204>
1913
+ /**
1914
+ * listEvents - listEvents
1915
+ *
1916
+ * List events in a time window. Recurring events are returned as expanded occurrences – each instance appears as its own event.
1917
+ */
1918
+ 'listEvents'(
1919
+ parameters?: Parameters<Paths.ListEvents.QueryParameters> | null,
1920
+ data?: any,
1921
+ config?: AxiosRequestConfig
1922
+ ): OperationResponse<Paths.ListEvents.Responses.$200>
1923
+ /**
1924
+ * createEvent - createEvent
1925
+ *
1926
+ * Create a native epilot calendar event.
1927
+ */
1928
+ 'createEvent'(
1929
+ parameters?: Parameters<UnknownParamsObject> | null,
1930
+ data?: Paths.CreateEvent.RequestBody,
1931
+ config?: AxiosRequestConfig
1932
+ ): OperationResponse<Paths.CreateEvent.Responses.$201>
1933
+ /**
1934
+ * getEvent - getEvent
1935
+ *
1936
+ * Get a single event by its epilot ID.
1937
+ */
1938
+ 'getEvent'(
1939
+ parameters?: Parameters<Paths.GetEvent.PathParameters> | null,
1940
+ data?: any,
1941
+ config?: AxiosRequestConfig
1942
+ ): OperationResponse<Paths.GetEvent.Responses.$200>
1943
+ /**
1944
+ * updateEvent - updateEvent
1945
+ *
1946
+ * Update a native epilot calendar event.
1947
+ */
1948
+ 'updateEvent'(
1949
+ parameters?: Parameters<Paths.UpdateEvent.PathParameters> | null,
1950
+ data?: Paths.UpdateEvent.RequestBody,
1951
+ config?: AxiosRequestConfig
1952
+ ): OperationResponse<Paths.UpdateEvent.Responses.$200>
1953
+ /**
1954
+ * deleteEvent - deleteEvent
1955
+ *
1956
+ * Delete a native epilot calendar event.
1957
+ */
1958
+ 'deleteEvent'(
1959
+ parameters?: Parameters<Paths.DeleteEvent.PathParameters> | null,
1960
+ data?: any,
1961
+ config?: AxiosRequestConfig
1962
+ ): OperationResponse<Paths.DeleteEvent.Responses.$204>
1963
+ /**
1964
+ * shareEvent - shareEvent
1965
+ *
1966
+ * Share a calendar event with another user of the same organization, view-only. Owner-only: recipients of a share cannot re-share. Sharing an already-shared event is a no-op.
1967
+ */
1968
+ 'shareEvent'(
1969
+ parameters?: Parameters<Paths.ShareEvent.PathParameters> | null,
1970
+ data?: Paths.ShareEvent.RequestBody,
1971
+ config?: AxiosRequestConfig
1972
+ ): OperationResponse<Paths.ShareEvent.Responses.$204>
1973
+ /**
1974
+ * unshareEvent - unshareEvent
1975
+ *
1976
+ * Revoke a per-event share. The recipient loses access immediately. Owner-only.
1977
+ */
1978
+ 'unshareEvent'(
1979
+ parameters?: Parameters<Paths.UnshareEvent.PathParameters> | null,
1980
+ data?: any,
1981
+ config?: AxiosRequestConfig
1982
+ ): OperationResponse<Paths.UnshareEvent.Responses.$204>
1983
+ }
1984
+
1985
+ interface PathsDictionary {
1986
+ ['/v1/calendar/absence/users']: {
1987
+ /**
1988
+ * listUsersAbsence - listUsersAbsence
1989
+ *
1990
+ * List organization users with known absence metadata in the requested time window.
1991
+ */
1992
+ 'get'(
1993
+ parameters?: Parameters<Paths.ListUsersAbsence.QueryParameters> | null,
1994
+ data?: any,
1995
+ config?: AxiosRequestConfig
1996
+ ): OperationResponse<Paths.ListUsersAbsence.Responses.$200>
1997
+ }
1998
+ ['/v1/calendar/absence:search']: {
1999
+ /**
2000
+ * searchAbsence - searchAbsence
2001
+ *
2002
+ * Search known absence for candidate users in the requested time window.
2003
+ */
2004
+ 'post'(
2005
+ parameters?: Parameters<UnknownParamsObject> | null,
2006
+ data?: Paths.SearchAbsence.RequestBody,
2007
+ config?: AxiosRequestConfig
2008
+ ): OperationResponse<Paths.SearchAbsence.Responses.$200>
2009
+ }
2010
+ ['/v1/calendar/absence:search-now']: {
2011
+ /**
2012
+ * searchNowAbsence - searchNowAbsence
2013
+ *
2014
+ * Search known absence for candidate users at the current server time.
2015
+ */
2016
+ 'post'(
2017
+ parameters?: Parameters<UnknownParamsObject> | null,
2018
+ data?: Paths.SearchNowAbsence.RequestBody,
2019
+ config?: AxiosRequestConfig
2020
+ ): OperationResponse<Paths.SearchNowAbsence.Responses.$200>
2021
+ }
2022
+ ['/v1/calendar/absence/users/{user_id}/adjustments']: {
2023
+ /**
2024
+ * listAbsenceAdjustments - listAbsenceAdjustments
2025
+ *
2026
+ * List absence adjustments for a user in a time window.
2027
+ */
2028
+ 'get'(
2029
+ parameters?: Parameters<Paths.ListAbsenceAdjustments.QueryParameters & Paths.ListAbsenceAdjustments.PathParameters> | null,
2030
+ data?: any,
2031
+ config?: AxiosRequestConfig
2032
+ ): OperationResponse<Paths.ListAbsenceAdjustments.Responses.$200>
2033
+ /**
2034
+ * createAbsenceAdjustment - createAbsenceAdjustment
2035
+ *
2036
+ * Create a time-bound absence adjustment for a user in the caller organization.
2037
+ */
2038
+ 'post'(
2039
+ parameters?: Parameters<Paths.CreateAbsenceAdjustment.PathParameters> | null,
2040
+ data?: Paths.CreateAbsenceAdjustment.RequestBody,
2041
+ config?: AxiosRequestConfig
2042
+ ): OperationResponse<Paths.CreateAbsenceAdjustment.Responses.$201>
2043
+ }
2044
+ ['/v1/calendar/absence/users/{user_id}/adjustments/{adjustment_id}']: {
2045
+ /**
2046
+ * getAbsenceAdjustment - getAbsenceAdjustment
2047
+ *
2048
+ * Get an absence adjustment by ID.
2049
+ */
2050
+ 'get'(
2051
+ parameters?: Parameters<Paths.GetAbsenceAdjustment.PathParameters> | null,
2052
+ data?: any,
2053
+ config?: AxiosRequestConfig
2054
+ ): OperationResponse<Paths.GetAbsenceAdjustment.Responses.$200>
2055
+ /**
2056
+ * patchAbsenceAdjustment - patchAbsenceAdjustment
2057
+ *
2058
+ * Update an absence adjustment in the caller organization.
2059
+ */
2060
+ 'patch'(
2061
+ parameters?: Parameters<Paths.PatchAbsenceAdjustment.PathParameters> | null,
2062
+ data?: Paths.PatchAbsenceAdjustment.RequestBody,
2063
+ config?: AxiosRequestConfig
2064
+ ): OperationResponse<Paths.PatchAbsenceAdjustment.Responses.$200>
2065
+ /**
2066
+ * deleteAbsenceAdjustment - deleteAbsenceAdjustment
2067
+ *
2068
+ * Delete an absence adjustment.
2069
+ */
2070
+ 'delete'(
2071
+ parameters?: Parameters<Paths.DeleteAbsenceAdjustment.PathParameters> | null,
2072
+ data?: any,
2073
+ config?: AxiosRequestConfig
2074
+ ): OperationResponse<Paths.DeleteAbsenceAdjustment.Responses.$204>
2075
+ }
2076
+ ['/v1/calendar/absence/users/{user_id}']: {
2077
+ /**
2078
+ * getUserAbsence - getUserAbsence
2079
+ *
2080
+ * Get known absence for a user in a time window. absent=false means no known absence, not guaranteed availability.
2081
+ */
2082
+ 'get'(
2083
+ parameters?: Parameters<Paths.GetUserAbsence.QueryParameters & Paths.GetUserAbsence.PathParameters> | null,
2084
+ data?: any,
2085
+ config?: AxiosRequestConfig
2086
+ ): OperationResponse<Paths.GetUserAbsence.Responses.$200>
2087
+ }
2088
+ ['/v1/calendar/working-hours/users/{user_id}']: {
2089
+ /**
2090
+ * getWorkingHours - getWorkingHours
2091
+ *
2092
+ * Get the recurring weekly working hours of a user. 404 means no record exists and the user is treated as always available.
2093
+ */
2094
+ 'get'(
2095
+ parameters?: Parameters<Paths.GetWorkingHours.PathParameters> | null,
2096
+ data?: any,
2097
+ config?: AxiosRequestConfig
2098
+ ): OperationResponse<Paths.GetWorkingHours.Responses.$200>
2099
+ /**
2100
+ * putWorkingHours - putWorkingHours
2101
+ *
2102
+ * Create or fully replace the working hours of a user in the caller organization. This is a full replace, not a merge.
2103
+ */
2104
+ 'put'(
2105
+ parameters?: Parameters<Paths.PutWorkingHours.PathParameters> | null,
2106
+ data?: Paths.PutWorkingHours.RequestBody,
2107
+ config?: AxiosRequestConfig
2108
+ ): OperationResponse<Paths.PutWorkingHours.Responses.$200>
2109
+ /**
2110
+ * deleteWorkingHours - deleteWorkingHours
2111
+ *
2112
+ * Delete the working hours of a user. The user is then treated as always available again.
2113
+ */
2114
+ 'delete'(
2115
+ parameters?: Parameters<Paths.DeleteWorkingHours.PathParameters> | null,
2116
+ data?: any,
2117
+ config?: AxiosRequestConfig
2118
+ ): OperationResponse<Paths.DeleteWorkingHours.Responses.$204>
2119
+ }
2120
+ ['/v1/calendar']: {
2121
+ /**
2122
+ * listCalendars - listCalendars
2123
+ *
2124
+ * List calendars visible to the caller.
2125
+ */
2126
+ 'get'(
2127
+ parameters?: Parameters<Paths.ListCalendars.QueryParameters> | null,
2128
+ data?: any,
2129
+ config?: AxiosRequestConfig
2130
+ ): OperationResponse<Paths.ListCalendars.Responses.$200>
2131
+ /**
2132
+ * createCalendar - createCalendar
2133
+ *
2134
+ * Create a native epilot calendar.
2135
+ */
2136
+ 'post'(
2137
+ parameters?: Parameters<UnknownParamsObject> | null,
2138
+ data?: Paths.CreateCalendar.RequestBody,
2139
+ config?: AxiosRequestConfig
2140
+ ): OperationResponse<Paths.CreateCalendar.Responses.$201>
2141
+ }
2142
+ ['/v1/calendar/sources/outlook']: {
2143
+ /**
2144
+ * addOutlookCalendar - addOutlookCalendar
2145
+ *
2146
+ * Registers one of the caller's Outlook calendars as an epilot calendar.
2147
+ *
2148
+ * The returned calendar resource carries `source.provider=outlook` and the
2149
+ * provider calendar id, so subsequent reads through `GET /v1/calendar` /
2150
+ * `GET /v1/calendar/events` route through the sync provider.
2151
+ */
2152
+ 'post'(
2153
+ parameters?: Parameters<UnknownParamsObject> | null,
2154
+ data?: Paths.AddOutlookCalendar.RequestBody,
2155
+ config?: AxiosRequestConfig
2156
+ ): OperationResponse<Paths.AddOutlookCalendar.Responses.$201>
2157
+ }
2158
+ ['/v1/calendar/sources/outlook/available']: {
2159
+ /**
2160
+ * listOutlookCalendars - listOutlookCalendars
2161
+ *
2162
+ * Lists the calling user's Outlook calendars available to import as epilot calendars.
2163
+ *
2164
+ * Requires the caller to have a personal Outlook calendar connection (created via the
2165
+ * OAuth flow on email-settings: `POST /v2/outlook/connect { "calendar": true }`).
2166
+ */
2167
+ 'get'(
2168
+ parameters?: Parameters<UnknownParamsObject> | null,
2169
+ data?: any,
2170
+ config?: AxiosRequestConfig
2171
+ ): OperationResponse<Paths.ListOutlookCalendars.Responses.$200>
2172
+ }
2173
+ ['/v1/calendar/sources/outlook/{calendar_id}']: {
2174
+ /**
2175
+ * deleteOutlookCalendar - deleteOutlookCalendar
2176
+ *
2177
+ * Disconnects a previously registered Outlook calendar.
2178
+ *
2179
+ * Deletes the Microsoft Graph subscription, removes the backing `calendar`
2180
+ * entity, and drops the local subscription record. Idempotent: a 404 from
2181
+ * Graph (subscription already gone) is treated as success.
2182
+ */
2183
+ 'delete'(
2184
+ parameters?: Parameters<Paths.DeleteOutlookCalendar.PathParameters> | null,
2185
+ data?: any,
2186
+ config?: AxiosRequestConfig
2187
+ ): OperationResponse<Paths.DeleteOutlookCalendar.Responses.$204>
2188
+ }
2189
+ ['/v1/calendar/outlook/webhook']: {
2190
+ /**
2191
+ * outlookWebhook - outlookWebhook
2192
+ *
2193
+ * Public Microsoft Graph webhook receiver for per-user Outlook calendar
2194
+ * subscriptions. Unauthenticated by design (API Gateway `Authorizer: NONE`):
2195
+ * Graph calls it with no epilot token.
2196
+ *
2197
+ * Handles both the subscription-validation handshake (echoes the
2198
+ * `validationToken` query param as `text/plain`) and change notifications.
2199
+ * Each notification is trusted only after its HMAC-signed `clientState` is
2200
+ * verified and matched against the stored subscription – identity is never
2201
+ * read from the request body.
2202
+ */
2203
+ 'post'(
2204
+ parameters?: Parameters<Paths.OutlookWebhook.QueryParameters> | null,
2205
+ data?: any,
2206
+ config?: AxiosRequestConfig
2207
+ ): OperationResponse<Paths.OutlookWebhook.Responses.$200 | Paths.OutlookWebhook.Responses.$202>
2208
+ }
2209
+ ['/v1/calendar/{calendar_id}']: {
2210
+ /**
2211
+ * getCalendar - getCalendar
2212
+ *
2213
+ * Get a single calendar by its epilot ID.
2214
+ */
2215
+ 'get'(
2216
+ parameters?: Parameters<Paths.GetCalendar.PathParameters> | null,
2217
+ data?: any,
2218
+ config?: AxiosRequestConfig
2219
+ ): OperationResponse<Paths.GetCalendar.Responses.$200>
2220
+ /**
2221
+ * updateCalendar - updateCalendar
2222
+ *
2223
+ * Update fields on a calendar.
2224
+ */
2225
+ 'patch'(
2226
+ parameters?: Parameters<Paths.UpdateCalendar.PathParameters> | null,
2227
+ data?: Paths.UpdateCalendar.RequestBody,
2228
+ config?: AxiosRequestConfig
2229
+ ): OperationResponse<Paths.UpdateCalendar.Responses.$200>
2230
+ /**
2231
+ * deleteCalendar - deleteCalendar
2232
+ *
2233
+ * Delete a native epilot calendar and its events.
2234
+ */
2235
+ 'delete'(
2236
+ parameters?: Parameters<Paths.DeleteCalendar.PathParameters> | null,
2237
+ data?: any,
2238
+ config?: AxiosRequestConfig
2239
+ ): OperationResponse<Paths.DeleteCalendar.Responses.$204>
2240
+ }
2241
+ ['/v1/calendar/events']: {
2242
+ /**
2243
+ * listEvents - listEvents
2244
+ *
2245
+ * List events in a time window. Recurring events are returned as expanded occurrences – each instance appears as its own event.
2246
+ */
2247
+ 'get'(
2248
+ parameters?: Parameters<Paths.ListEvents.QueryParameters> | null,
2249
+ data?: any,
2250
+ config?: AxiosRequestConfig
2251
+ ): OperationResponse<Paths.ListEvents.Responses.$200>
2252
+ /**
2253
+ * createEvent - createEvent
2254
+ *
2255
+ * Create a native epilot calendar event.
2256
+ */
2257
+ 'post'(
2258
+ parameters?: Parameters<UnknownParamsObject> | null,
2259
+ data?: Paths.CreateEvent.RequestBody,
2260
+ config?: AxiosRequestConfig
2261
+ ): OperationResponse<Paths.CreateEvent.Responses.$201>
2262
+ }
2263
+ ['/v1/calendar/events/{event_id}']: {
2264
+ /**
2265
+ * getEvent - getEvent
2266
+ *
2267
+ * Get a single event by its epilot ID.
2268
+ */
2269
+ 'get'(
2270
+ parameters?: Parameters<Paths.GetEvent.PathParameters> | null,
2271
+ data?: any,
2272
+ config?: AxiosRequestConfig
2273
+ ): OperationResponse<Paths.GetEvent.Responses.$200>
2274
+ /**
2275
+ * updateEvent - updateEvent
2276
+ *
2277
+ * Update a native epilot calendar event.
2278
+ */
2279
+ 'patch'(
2280
+ parameters?: Parameters<Paths.UpdateEvent.PathParameters> | null,
2281
+ data?: Paths.UpdateEvent.RequestBody,
2282
+ config?: AxiosRequestConfig
2283
+ ): OperationResponse<Paths.UpdateEvent.Responses.$200>
2284
+ /**
2285
+ * deleteEvent - deleteEvent
2286
+ *
2287
+ * Delete a native epilot calendar event.
2288
+ */
2289
+ 'delete'(
2290
+ parameters?: Parameters<Paths.DeleteEvent.PathParameters> | null,
2291
+ data?: any,
2292
+ config?: AxiosRequestConfig
2293
+ ): OperationResponse<Paths.DeleteEvent.Responses.$204>
2294
+ }
2295
+ ['/v1/calendar/events/{event_id}/share']: {
2296
+ /**
2297
+ * shareEvent - shareEvent
2298
+ *
2299
+ * Share a calendar event with another user of the same organization, view-only. Owner-only: recipients of a share cannot re-share. Sharing an already-shared event is a no-op.
2300
+ */
2301
+ 'post'(
2302
+ parameters?: Parameters<Paths.ShareEvent.PathParameters> | null,
2303
+ data?: Paths.ShareEvent.RequestBody,
2304
+ config?: AxiosRequestConfig
2305
+ ): OperationResponse<Paths.ShareEvent.Responses.$204>
2306
+ }
2307
+ ['/v1/calendar/events/{event_id}/share/{user_id}']: {
2308
+ /**
2309
+ * unshareEvent - unshareEvent
2310
+ *
2311
+ * Revoke a per-event share. The recipient loses access immediately. Owner-only.
2312
+ */
2313
+ 'delete'(
2314
+ parameters?: Parameters<Paths.UnshareEvent.PathParameters> | null,
2315
+ data?: any,
2316
+ config?: AxiosRequestConfig
2317
+ ): OperationResponse<Paths.UnshareEvent.Responses.$204>
2318
+ }
2319
+ }
2320
+
2321
+ type Client = OpenAPIClient<OperationMethods, PathsDictionary>
2322
+
2323
+
2324
+ type AbsenceAdjustment = Components.Schemas.AbsenceAdjustment;
2325
+ type AbsenceInterval = Components.Schemas.AbsenceInterval;
2326
+ type AbsenceIntervalSource = Components.Schemas.AbsenceIntervalSource;
2327
+ type AbsenceStatus = Components.Schemas.AbsenceStatus;
2328
+ type AbsenceType = Components.Schemas.AbsenceType;
2329
+ type AddOutlookCalendarRequest = Components.Schemas.AddOutlookCalendarRequest;
2330
+ type Attendee = Components.Schemas.Attendee;
2331
+ type AvailableOutlookCalendar = Components.Schemas.AvailableOutlookCalendar;
2332
+ type Calendar = Components.Schemas.Calendar;
2333
+ type CalendarCreateBody = Components.Schemas.CalendarCreateBody;
2334
+ type CalendarEvent = Components.Schemas.CalendarEvent;
2335
+ type CalendarEventCreateBody = Components.Schemas.CalendarEventCreateBody;
2336
+ type CalendarEventPatchBody = Components.Schemas.CalendarEventPatchBody;
2337
+ type CalendarPatchBody = Components.Schemas.CalendarPatchBody;
2338
+ type CalendarSource = Components.Schemas.CalendarSource;
2339
+ type CreateAbsenceAdjustmentBody = Components.Schemas.CreateAbsenceAdjustmentBody;
2340
+ type Error = Components.Schemas.Error;
2341
+ type EventSource = Components.Schemas.EventSource;
2342
+ type EventStatus = Components.Schemas.EventStatus;
2343
+ type EventType = Components.Schemas.EventType;
2344
+ type ExternalCalendar = Components.Schemas.ExternalCalendar;
2345
+ type Importance = Components.Schemas.Importance;
2346
+ type PatchAbsenceAdjustmentBody = Components.Schemas.PatchAbsenceAdjustmentBody;
2347
+ type Provider = Components.Schemas.Provider;
2348
+ type ResponseStatus = Components.Schemas.ResponseStatus;
2349
+ type SearchAbsenceBody = Components.Schemas.SearchAbsenceBody;
2350
+ type SearchNowAbsenceBody = Components.Schemas.SearchNowAbsenceBody;
2351
+ type Sensitivity = Components.Schemas.Sensitivity;
2352
+ type ShareEventBody = Components.Schemas.ShareEventBody;
2353
+ type TimeWindow = Components.Schemas.TimeWindow;
2354
+ type UpsertWorkingHoursBody = Components.Schemas.UpsertWorkingHoursBody;
2355
+ type WorkingHours = Components.Schemas.WorkingHours;
2356
+
2357
+ export { type AbsenceAdjustment as A, type Client as C, type Error as E, type Importance as I, type OperationMethods as O, Paths as P, type ResponseStatus as R, type SearchAbsenceBody as S, type TimeWindow as T, type UpsertWorkingHoursBody as U, type WorkingHours as W, Components as a, type PathsDictionary as b, type AbsenceInterval as c, type AbsenceIntervalSource as d, type AbsenceStatus as e, type AbsenceType as f, type AddOutlookCalendarRequest as g, type Attendee as h, type AvailableOutlookCalendar as i, type Calendar as j, type CalendarCreateBody as k, type CalendarEvent as l, type CalendarEventCreateBody as m, type CalendarEventPatchBody as n, type CalendarPatchBody as o, type CalendarSource as p, type CreateAbsenceAdjustmentBody as q, type EventSource as r, type EventStatus as s, type EventType as t, type ExternalCalendar as u, type PatchAbsenceAdjustmentBody as v, type Provider as w, type SearchNowAbsenceBody as x, type Sensitivity as y, type ShareEventBody as z };